]> git.zerfleddert.de Git - proxmark3-svn/blame - Makefile
adapted hf iclass list to new trace format
[proxmark3-svn] / Makefile
CommitLineData
db335b3d 1include common/Makefile.common
2
bd846386 3GZIP=gzip
03f29e03 4FLASH_PORT=/dev/ttyACM0
bd846386 5
a79e330d 6all clean: %: bootrom/% armsrc/% client/% recovery/%
db335b3d 7
64b81198 8bootrom/%: FORCE
9 $(MAKE) -C bootrom $(patsubst bootrom/%,%,$@)
10armsrc/%: FORCE
11 $(MAKE) -C armsrc $(patsubst armsrc/%,%,$@)
d5be6f7c 12client/%: FORCE
13 $(MAKE) -C client $(patsubst client/%,%,$@)
a79e330d 14recovery/%: FORCE
15 $(MAKE) -C recovery $(patsubst recovery/%,%,$@)
64b81198 16FORCE: # Dummy target to force remake in the subdirectories, even if files exist (this Makefile doesn't know about the prerequisites)
17
18
c2686a49 19.PHONY: all clean help _test flash-bootrom flash-os flash-fpga flash-both flash-all FORCE
db335b3d 20help:
21 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)
22 @echo Possible targets:
64b81198 23 @echo + all - Make bootrom, armsrc and the OS-specific host directory
33bf54cf 24 @echo + client - Make only the OS-specific host directory
64b81198 25 @echo + flash-bootrom - Make bootrom and flash it
26 @echo + flash-os - Make armsrc and flash os
c2686a49 27 @echo + flash-fpga - Make armsrc and flash fpga
64b81198 28 @echo + flash-both - Make armsrc and flash os and fpga image
29 @echo + flash-all - Make bootrom and armsrc and flash bootrom, os and fpga image
30 @echo + clean - Clean in bootrom, armsrc and the OS-specific host directory
31
33bf54cf 32client: client/all
33
70b1a685 34flash-bootrom: bootrom/obj/bootrom.elf $(FLASH_TOOL)
03f29e03 35 $(FLASH_TOOL) $(FLASH_PORT) -b $(subst /,$(PATHSEP),$<)
64b81198 36
70b1a685 37flash-os: armsrc/obj/osimage.elf $(FLASH_TOOL)
03f29e03 38 $(FLASH_TOOL) $(FLASH_PORT) $(subst /,$(PATHSEP),$<)
c2686a49 39
40flash-fpga: armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
03f29e03 41 $(FLASH_TOOL) $(FLASH_PORT) $(subst /,$(PATHSEP),$<)
64b81198 42
70b1a685 43flash-both: armsrc/obj/osimage.elf armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
03f29e03 44 $(FLASH_TOOL) $(FLASH_PORT) $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))
64b81198 45
70b1a685 46flash-all: bootrom/obj/bootrom.elf armsrc/obj/osimage.elf armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
03f29e03 47 $(FLASH_TOOL) $(FLASH_PORT) -b $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))
52b3d184 48
bd846386 49newtarbin:
50 $(DELETE) proxmark3-$(platform)-bin.tar proxmark3-$(platform)-bin.tar.gz
51 @touch proxmark3-$(platform)-bin.tar
52
53tarbin: newtarbin client/tarbin armsrc/tarbin bootrom/tarbin
54 $(GZIP) proxmark3-$(platform)-bin.tar
55
52b3d184 56# Dummy target to test for GNU make availability
57_test:
Impressum, Datenschutz