beautify makefile

This commit is contained in:
Wolfgang Hottgenroth 2019-01-24 09:09:08 +01:00
parent e84b902996
commit db90eb17f9
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4

View File

@ -2,9 +2,6 @@ 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) $^
@ -14,6 +11,10 @@ PontCoopScheduler.o: hottislib/PontCoopScheduler.c hottislib/PontCoopScheduler.h
.c.o:
$(CC) $(CFLAGS) -c $<
.PHONY: all
all: blinky1.elf
.PHONY: clean
clean:
-rm -f *.o *.elf