upgrade: Rename target to blackmagic_upgrade and add a rule for .exe file.

This commit is contained in:
Gareth McMullin 2015-03-08 19:39:42 -07:00
parent 0e99f6f11c
commit 3a746d199f
1 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
OUTFILE = blackmagic_upgrade
CC = $(CROSS_COMPILE)gcc
@ -9,14 +10,14 @@ OBJ = bindata.o \
stm32mem.o \
main.o
all: bmp_upgrade
all: $(OUTFILE)
bmp_upgrade: $(OBJ)
$(OUTFILE) $(OUTFILE).exe: $(OBJ)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
.PHONY: clean
clean:
-rm -rf bmp_upgrade *.d *.o
-rm -rf $(OUTFILE) $(OUTFILE).exe *.d *.o
-include *.d