Files
blinky1/Makefile
Wolfgang Hottgenroth 969f198084 * add readme with comments on debugging
* add optional CFLAGS in Makefile for debugging
* fix _patternChangeColor function in pattern.c
* add debug variant for measure exec function
2019-02-09 17:54:18 +01:00

33 lines
600 B
Makefile

CC=msp430-gcc
# regular
CFLAGS=-Wall -mmcu=msp430g2553 -std=gnu99 -I hottislib -O3 -g0
# for debugging
# CFLAGS=-Wall -mmcu=msp430g2553 -std=gnu99 -I hottislib -g3 -ggdb -gdwarf-2
LDFLAGS=-mmcu=msp430g2553
blinky1.elf: main.o led.o time.o pattern.o PontCoopScheduler.o myrand.o measure.o
$(CC) -o $@ $(LDFLAGS) $^
PontCoopScheduler.o: hottislib/PontCoopScheduler.c hottislib/PontCoopScheduler.h
$(CC) $(CFLAGS) -c $<
.c.o:
$(CC) $(CFLAGS) -c $<
.PHONY: all
all: blinky1.elf
.PHONY: clean
clean:
-rm -f *.o *.elf
.PHONY: upload
upload: blinky1.elf
mspdebug rf2500 "prog blinky1.elf"