]> cvs.zerfleddert.de Git - proxmark3-svn/blame_incremental - Makefile
Makefile: add explicit target to compile client only
[proxmark3-svn] / Makefile
... / ...
CommitLineData
1include common/Makefile.common
2
3all clean: %: bootrom/% armsrc/% client/%
4
5bootrom/%: FORCE
6 $(MAKE) -C bootrom $(patsubst bootrom/%,%,$@)
7armsrc/%: FORCE
8 $(MAKE) -C armsrc $(patsubst armsrc/%,%,$@)
9client/%: FORCE
10 $(MAKE) -C client $(patsubst client/%,%,$@)
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-fpga flash-both flash-all FORCE
15help:
16 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)
17 @echo Possible targets:
18 @echo + all - Make bootrom, armsrc and the OS-specific host directory
19 @echo + client - Make only the OS-specific host directory
20 @echo + flash-bootrom - Make bootrom and flash it
21 @echo + flash-os - Make armsrc and flash os
22 @echo + flash-fpga - Make armsrc and flash fpga
23 @echo + flash-both - Make armsrc and flash os and fpga image
24 @echo + flash-all - Make bootrom and armsrc and flash bootrom, os and fpga image
25 @echo + clean - Clean in bootrom, armsrc and the OS-specific host directory
26
27client: client/all
28
29flash-bootrom: bootrom/obj/bootrom.elf $(FLASH_TOOL)
30 $(FLASH_TOOL) -b $(subst /,$(PATHSEP),$<)
31
32flash-os: armsrc/obj/osimage.elf $(FLASH_TOOL)
33 $(FLASH_TOOL) $(subst /,$(PATHSEP),$<)
34
35flash-fpga: armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
36 $(FLASH_TOOL) $(subst /,$(PATHSEP),$<)
37
38flash-both: armsrc/obj/osimage.elf armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
39 $(FLASH_TOOL) $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))
40
41flash-all: bootrom/obj/bootrom.elf armsrc/obj/osimage.elf armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
42 $(FLASH_TOOL) -b $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))
43
44# Dummy target to test for GNU make availability
45_test:
Impressum, Datenschutz