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