Automatically enter bootrom when OS image doesn't appear to be proper
[proxmark3-svn] / Makefile
CommitLineData
db335b3d 1include common/Makefile.common
2
d5be6f7c 3all clean: %: bootrom/% armsrc/% client/%
db335b3d 4
64b81198 5bootrom/%: FORCE
6 $(MAKE) -C bootrom $(patsubst bootrom/%,%,$@)
7armsrc/%: FORCE
8 $(MAKE) -C armsrc $(patsubst armsrc/%,%,$@)
d5be6f7c 9client/%: FORCE
10 $(MAKE) -C client $(patsubst client/%,%,$@)
64b81198 11FORCE: # Dummy target to force remake in the subdirectories, even if files exist (this Makefile doesn't know about the prerequisites)
12
13
14.PHONY: all clean help _test flash-bootrom flash-os flash-both flash-all FORCE
db335b3d 15help:
16 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)
17 @echo Possible targets:
64b81198 18 @echo + all - Make bootrom, armsrc and the OS-specific host directory
19 @echo + flash-bootrom - Make bootrom and flash it
20 @echo + flash-os - Make armsrc and flash os
21 @echo + flash-both - Make armsrc and flash os and fpga image
22 @echo + flash-all - Make bootrom and armsrc and flash bootrom, os and fpga image
23 @echo + clean - Clean in bootrom, armsrc and the OS-specific host directory
24
25flash-bootrom: bootrom/obj/bootrom.s19 $(FLASH_TOOL)
26 $(FLASH_TOOL) bootrom $(subst /,$(PATHSEP),$<)
27
28flash-os: armsrc/obj/osimage.s19 $(FLASH_TOOL)
29 $(FLASH_TOOL) os $(subst /,$(PATHSEP),$<)
30
31flash-both: armsrc/obj/osimage.s19 armsrc/obj/fpgaimage.s19 $(FLASH_TOOL)
32 $(FLASH_TOOL) os,fpga $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))
33
34flash-all: bootrom/obj/bootrom.s19 armsrc/obj/osimage.s19 armsrc/obj/fpgaimage.s19 $(FLASH_TOOL)
35 $(FLASH_TOOL) bootrom,os,fpga $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))
52b3d184 36
37# Dummy target to test for GNU make availability
38_test:
Impressum, Datenschutz