add Makefile
This commit is contained in:
parent
783e8a357e
commit
e84b902996
25
Makefile
Normal file
25
Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
CC=msp430-gcc
|
||||
CFLAGS=-O3 -g0 -Wall -mmcu=msp430g2553 -std=gnu99 -I hottislib
|
||||
LDFLAGS=-mmcu=msp430g2553
|
||||
|
||||
.PHONY: all
|
||||
all: blinky1.elf
|
||||
|
||||
blinky1.elf: main.o led.o time.o PontCoopScheduler.o
|
||||
$(CC) -o $@ $(LDFLAGS) $^
|
||||
|
||||
PontCoopScheduler.o: hottislib/PontCoopScheduler.c hottislib/PontCoopScheduler.h
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm -f *.o *.elf
|
||||
|
||||
.PHONY: upload
|
||||
upload: blinky1.elf
|
||||
mspdebug rf2500 "prog blinky1.elf"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user