Native Windows builds

All except hydrabus and launchpad-icdi building in PowerShell.
This commit is contained in:
Sid Price 2019-03-27 16:09:32 -06:00
parent 302ff20a6d
commit 2108bb7137
2 changed files with 17 additions and 7 deletions

View File

@ -86,8 +86,12 @@ blackmagic: include/version.h $(OBJ)
clean: host_clean
$(Q)echo " CLEAN"
-$(Q)$(RM) -f *.o *.d *~ blackmagic $(HOSTFILES)
-$(Q)$(RM) -f platforms/*/*.o platforms/*/*.d mapfile include/version.h
ifeq ($(OS), Windows_NT)
-$(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:
$(Q)set -e ;\
@ -113,6 +117,9 @@ command.c: include/version.h
include/version.h: FORCE
$(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

View File

@ -34,5 +34,8 @@ blackmagic_dfu: usbdfu.o dfucore.o dfu_f1.o
$(Q)$(CC) $^ -o $@ $(LDFLAGS_BOOT)
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