beautify makefile
This commit is contained in:
parent
e84b902996
commit
db90eb17f9
7
Makefile
7
Makefile
@ -2,9 +2,6 @@ CC=msp430-gcc
|
|||||||
CFLAGS=-O3 -g0 -Wall -mmcu=msp430g2553 -std=gnu99 -I hottislib
|
CFLAGS=-O3 -g0 -Wall -mmcu=msp430g2553 -std=gnu99 -I hottislib
|
||||||
LDFLAGS=-mmcu=msp430g2553
|
LDFLAGS=-mmcu=msp430g2553
|
||||||
|
|
||||||
.PHONY: all
|
|
||||||
all: blinky1.elf
|
|
||||||
|
|
||||||
blinky1.elf: main.o led.o time.o PontCoopScheduler.o
|
blinky1.elf: main.o led.o time.o PontCoopScheduler.o
|
||||||
$(CC) -o $@ $(LDFLAGS) $^
|
$(CC) -o $@ $(LDFLAGS) $^
|
||||||
|
|
||||||
@ -14,6 +11,10 @@ PontCoopScheduler.o: hottislib/PontCoopScheduler.c hottislib/PontCoopScheduler.h
|
|||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) -c $<
|
$(CC) $(CFLAGS) -c $<
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: blinky1.elf
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
-rm -f *.o *.elf
|
-rm -f *.o *.elf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user