Native Windows builds
All except hydrabus and launchpad-icdi building in PowerShell.
This commit is contained in:
parent
302ff20a6d
commit
2108bb7137
17
src/Makefile
17
src/Makefile
|
@ -86,8 +86,12 @@ blackmagic: include/version.h $(OBJ)
|
||||||
|
|
||||||
clean: host_clean
|
clean: host_clean
|
||||||
$(Q)echo " CLEAN"
|
$(Q)echo " CLEAN"
|
||||||
-$(Q)$(RM) -f *.o *.d *~ blackmagic $(HOSTFILES)
|
ifeq ($(OS), Windows_NT)
|
||||||
-$(Q)$(RM) -f platforms/*/*.o platforms/*/*.d mapfile include/version.h
|
-$(Q)$(shell del *.o, *.d, blackmagic*, $(HOSTFILES))
|
||||||
|
else
|
||||||
|
-$(Q)$(RM) *.o *.d *~ blackmagic $(HOSTFILES)
|
||||||
|
-$(Q)$(RM) platforms/*/*.o platforms/*/*.d mapfile include/version.h
|
||||||
|
endif
|
||||||
|
|
||||||
all_platforms:
|
all_platforms:
|
||||||
$(Q)set -e ;\
|
$(Q)set -e ;\
|
||||||
|
@ -112,7 +116,10 @@ all_platforms:
|
||||||
command.c: include/version.h
|
command.c: include/version.h
|
||||||
|
|
||||||
include/version.h: FORCE
|
include/version.h: FORCE
|
||||||
$(Q)echo " GIT include/version.h"
|
$(Q)echo " GIT include/version.h"
|
||||||
$(Q)echo "#define FIRMWARE_VERSION \"`git describe --always --dirty`\"" > $@
|
ifeq ($(OS), Windows_NT)
|
||||||
|
$(Q)echo #define FIRMWARE_VERSION "$(shell git describe --always --dirty)" > $@
|
||||||
|
else
|
||||||
|
$(Q)echo "#define FIRMWARE_VERSION \"$(shell git describe --always --dirty)\"" > $@
|
||||||
|
endif
|
||||||
-include *.d
|
-include *.d
|
||||||
|
|
|
@ -34,5 +34,8 @@ blackmagic_dfu: usbdfu.o dfucore.o dfu_f1.o
|
||||||
$(Q)$(CC) $^ -o $@ $(LDFLAGS_BOOT)
|
$(Q)$(CC) $^ -o $@ $(LDFLAGS_BOOT)
|
||||||
|
|
||||||
host_clean:
|
host_clean:
|
||||||
-$(Q)$(RM) -f blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex
|
ifeq ($(OS), Windows_NT)
|
||||||
|
-$(Q)$(shell del blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex)
|
||||||
|
else
|
||||||
|
-$(Q)$(RM) blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue