upgrade: Rename target to blackmagic_upgrade and add a rule for .exe file.
This commit is contained in:
parent
0e99f6f11c
commit
3a746d199f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue