blinky1/Makefile

40 lines
698 B
Makefile
Raw Normal View History

2019-01-24 09:05:31 +01:00
CC=msp430-gcc
# regular
2019-02-16 22:46:30 +01:00
CFLAGS=-Wall -mmcu=msp430g2553 -std=gnu99 -I hottislib -O3 -g0
# for debugging
2019-02-16 22:46:30 +01:00
# CFLAGS=-Wall -mmcu=msp430g2553 -std=gnu99 -I hottislib -g3 -ggdb -gdwarf-2
2019-01-24 09:05:31 +01:00
LDFLAGS=-mmcu=msp430g2553
blinky1.elf: main.o led.o time.o pattern.o PontCoopScheduler.o myrand.o measure.o
2019-01-24 09:05:31 +01:00
$(CC) -o $@ $(LDFLAGS) $^
PontCoopScheduler.o: hottislib/PontCoopScheduler.c hottislib/PontCoopScheduler.h
$(CC) $(CFLAGS) -c $<
.c.o:
$(CC) $(CFLAGS) -c $<
2019-01-24 09:09:08 +01:00
.PHONY: all
all: blinky1.elf
2019-01-24 09:05:31 +01:00
.PHONY: clean
clean:
-rm -f *.o *.elf
.PHONY: upload
upload: blinky1.elf
mspdebug rf2500 "prog blinky1.elf"
2019-02-11 13:43:39 +01:00
.PHONY: debug
debug: upload
mspdebug rf2500 gdb &
ddd --debugger "msp430-gdb -x blinky1.gdb"
2019-01-24 09:05:31 +01:00