Skip to content

Commit

Permalink
Clean Makefile and add target to generate all the binaries needed for…
Browse files Browse the repository at this point in the history
… a release
  • Loading branch information
Jean THOMAS committed Jan 21, 2020
1 parent d8e34a4 commit ab7a508
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SUPPORTED_PLATFORMS = baite bluepill olimexstm32h103 stlinkv2 stlinkv2white
PLATFORM ?= bluepill

OBJS := src/dirtyjtag.o src/jtag.o src/usb.o src/delay.o src/cmd.o
Expand Down Expand Up @@ -42,7 +43,9 @@ all: dirtyjtag

clean: dirtyjtag-clean ucmx-clean

dirtyjtag: ucmx src/dirtyjtag.$(PLATFORM).elf src/dirtyjtag.$(PLATFORM).bin
dirtyjtag: src/dirtyjtag.$(PLATFORM).elf src/dirtyjtag.$(PLATFORM).bin

dirtyjtag-release: $(patsubst %, src/dirtyjtag.%.bin, $(SUPPORTED_PLATFORMS))

dirtyjtag-clean:
$(Q)$(RM) src/*.d src/*.o src/*.map src/*.bin src/*.elf *.bin *.elf
Expand All @@ -63,4 +66,4 @@ ucmx-clean:
%.o: %.c | ucmx
$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(ARCH_FLAGS) -o $@ -c $<

.PHONY: clean dirtyjtag dirtyjtag-clean ucmx ucmx-clean
.PHONY: clean dirtyjtag dirtyjtag-release dirtyjtag-clean ucmx ucmx-clean

0 comments on commit ab7a508

Please sign in to comment.