Move targets to make bin and hex files to toplevel makefile.
This commit is contained in:
parent
2b774102fe
commit
1eac78b1c8
|
@ -47,6 +47,12 @@ OBJ = $(SRC:.c=.o)
|
||||||
blackmagic: $(OBJ)
|
blackmagic: $(OBJ)
|
||||||
$(CC) -o $@ $^ $(LDFLAGS)
|
$(CC) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
%.bin: %
|
||||||
|
$(OBJCOPY) -O binary $^ $@
|
||||||
|
|
||||||
|
%.hex: %
|
||||||
|
$(OBJCOPY) -O ihex $^ $@
|
||||||
|
|
||||||
.PHONY: clean host_clean all_platforms
|
.PHONY: clean host_clean all_platforms
|
||||||
|
|
||||||
clean: host_clean
|
clean: host_clean
|
||||||
|
|
|
@ -24,8 +24,5 @@ SRC += cdcacm.c \
|
||||||
|
|
||||||
all: blackmagic.bin
|
all: blackmagic.bin
|
||||||
|
|
||||||
blackmagic.bin: blackmagic
|
|
||||||
$(OBJCOPY) -O binary $^ $@
|
|
||||||
|
|
||||||
host_clean:
|
host_clean:
|
||||||
-rm blackmagic.bin
|
-rm blackmagic.bin
|
||||||
|
|
|
@ -19,5 +19,3 @@ SRC += cdcacm.c \
|
||||||
|
|
||||||
all: blackmagic.bin
|
all: blackmagic.bin
|
||||||
|
|
||||||
blackmagic.bin: blackmagic
|
|
||||||
$(OBJCOPY) -O binary $^ $@
|
|
||||||
|
|
|
@ -23,17 +23,9 @@ SRC += cdcacm.c \
|
||||||
|
|
||||||
all: blackmagic.bin blackmagic_dfu.bin blackmagic_dfu.hex
|
all: blackmagic.bin blackmagic_dfu.bin blackmagic_dfu.hex
|
||||||
|
|
||||||
blackmagic.bin: blackmagic
|
|
||||||
$(OBJCOPY) -O binary $^ $@
|
|
||||||
|
|
||||||
blackmagic_dfu: usbdfu.o dfucore.o dfu_f1.o
|
blackmagic_dfu: usbdfu.o dfucore.o dfu_f1.o
|
||||||
$(CC) $^ -o $@ $(LDFLAGS_BOOT)
|
$(CC) $^ -o $@ $(LDFLAGS_BOOT)
|
||||||
|
|
||||||
blackmagic_dfu.bin: blackmagic_dfu
|
|
||||||
$(OBJCOPY) -O binary $^ $@
|
|
||||||
|
|
||||||
blackmagic_dfu.hex: blackmagic_dfu
|
|
||||||
$(OBJCOPY) -O ihex $^ $@
|
|
||||||
|
|
||||||
host_clean:
|
host_clean:
|
||||||
-rm blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex
|
-rm blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex
|
||||||
|
|
|
@ -22,27 +22,12 @@ SRC += cdcacm.c \
|
||||||
|
|
||||||
all: blackmagic.bin blackmagic_dfu.bin blackmagic_dfu.hex dfu_upgrade.bin dfu_upgrade.hex
|
all: blackmagic.bin blackmagic_dfu.bin blackmagic_dfu.hex dfu_upgrade.bin dfu_upgrade.hex
|
||||||
|
|
||||||
blackmagic.bin: blackmagic
|
|
||||||
$(OBJCOPY) -O binary $^ $@
|
|
||||||
|
|
||||||
blackmagic_dfu: usbdfu.o dfucore.o dfu_f1.o
|
blackmagic_dfu: usbdfu.o dfucore.o dfu_f1.o
|
||||||
$(CC) $^ -o $@ $(LDFLAGS_BOOT)
|
$(CC) $^ -o $@ $(LDFLAGS_BOOT)
|
||||||
|
|
||||||
blackmagic_dfu.bin: blackmagic_dfu
|
|
||||||
$(OBJCOPY) -O binary $^ $@
|
|
||||||
|
|
||||||
blackmagic_dfu.hex: blackmagic_dfu
|
|
||||||
$(OBJCOPY) -O ihex $^ $@
|
|
||||||
|
|
||||||
dfu_upgrade: dfu_upgrade.o dfucore.o dfu_f1.o
|
dfu_upgrade: dfu_upgrade.o dfucore.o dfu_f1.o
|
||||||
$(CC) $^ -o $@ $(LDFLAGS)
|
$(CC) $^ -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
dfu_upgrade.bin: dfu_upgrade
|
|
||||||
$(OBJCOPY) -O binary $^ $@
|
|
||||||
|
|
||||||
dfu_upgrade.hex: dfu_upgrade
|
|
||||||
$(OBJCOPY) -O ihex $^ $@
|
|
||||||
|
|
||||||
host_clean:
|
host_clean:
|
||||||
-rm blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex dfu_upgrade dfu_upgrade.bin dfu_upgrade.hex
|
-rm blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex dfu_upgrade dfu_upgrade.bin dfu_upgrade.hex
|
||||||
|
|
||||||
|
|
|
@ -22,18 +22,9 @@ SRC += cdcacm.c \
|
||||||
|
|
||||||
all: blackmagic.bin blackmagic_dfu.bin blackmagic_dfu.hex
|
all: blackmagic.bin blackmagic_dfu.bin blackmagic_dfu.hex
|
||||||
|
|
||||||
blackmagic.bin: blackmagic
|
|
||||||
$(OBJCOPY) -O binary $^ $@
|
|
||||||
|
|
||||||
blackmagic_dfu: usbdfu.o dfucore.o dfu_f1.o
|
blackmagic_dfu: usbdfu.o dfucore.o dfu_f1.o
|
||||||
$(CC) $^ -o $@ $(LDFLAGS_BOOT)
|
$(CC) $^ -o $@ $(LDFLAGS_BOOT)
|
||||||
|
|
||||||
blackmagic_dfu.bin: blackmagic_dfu
|
|
||||||
$(OBJCOPY) -O binary $^ $@
|
|
||||||
|
|
||||||
blackmagic_dfu.hex: blackmagic_dfu
|
|
||||||
$(OBJCOPY) -O ihex $^ $@
|
|
||||||
|
|
||||||
host_clean:
|
host_clean:
|
||||||
-rm blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex
|
-rm blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue