main: leds.c busywait.c main.c
	msp430-gcc -c -mmcu=msp430x2274 -Wall -mdisable-hwmul busywait.c
	msp430-gcc -c -mmcu=msp430x2274 -Wall -mdisable-hwmul leds.c
	msp430-gcc -c -mmcu=msp430x2274 -Wall -mdisable-hwmul main.c
	msp430-gcc -mmcu=msp430x2274 leds.o main.o busywait.o  -o leds.elf
	@echo "mspdebug -R \"prog leds.elf\""

clean: 
	rm *.o *.elf
