COPT= -mmcu=msp430x448 -O1 -g

all:    test.a43 force
	testing.py test.a43

test.a43: test.elf
	msp430-objcopy -O ihex $< $@
	#msp430-objdump -DS $< >testing.dump.txt

test.elf: test.c
	msp430-gcc ${COPT} -o $@ $<
	msp430-gcc ${COPT} -S $< >/dev/null

clean:
	rm -f test.elf test.a43 test.o
        
.PHONY: force
force:
