]> cvs.zerfleddert.de Git - proxmark3-svn/blob - Makefile
ADD: `analyse nuid` - generates NUID 4byte from a UID 7byte. Mifare Classic Ev1...
[proxmark3-svn] / Makefile
1 include common/Makefile.common
2
3 FLASH_PORT=/dev/ttyACM0
4
5 all clean: %: client/% bootrom/% armsrc/% recovery/%
6
7 bootrom/%: FORCE
8 $(MAKE) -C bootrom $(patsubst bootrom/%,%,$@)
9 armsrc/%: FORCE
10 $(MAKE) -C armsrc $(patsubst armsrc/%,%,$@)
11 client/%: FORCE
12 $(MAKE) -C client $(patsubst client/%,%,$@)
13 recovery/%: FORCE
14 $(MAKE) -C recovery $(patsubst recovery/%,%,$@)
15 FORCE: # Dummy target to force remake in the subdirectories, even if files exist (this Makefile doesn't know about the prerequisites)
16
17 .PHONY: all clean help _test flash-bootrom flash-os flash-all FORCE
18
19 help:
20 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)
21 @echo Possible targets:
22 @echo + all - Make bootrom, armsrc and the OS-specific host directory
23 @echo + client - Make only the OS-specific host directory
24 @echo + flash-bootrom - Make bootrom and flash it
25 @echo + flash-os - Make armsrc and flash os \(includes fpga\)
26 @echo + flash-all - Make bootrom and armsrc and flash bootrom and os image
27 @echo + clean - Clean in bootrom, armsrc and the OS-specific host directory
28
29 client: client/all
30
31 flash-bootrom: bootrom/obj/bootrom.elf $(FLASH_TOOL)
32 $(FLASH_TOOL) $(FLASH_PORT) -b $(subst /,$(PATHSEP),$<)
33
34 flash-os: armsrc/obj/fullimage.elf $(FLASH_TOOL)
35 $(FLASH_TOOL) $(FLASH_PORT) $(subst /,$(PATHSEP),$<)
36
37 flash-all: bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf $(FLASH_TOOL)
38 $(FLASH_TOOL) $(FLASH_PORT) -b $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))
39
40 newtarbin:
41 $(DELETE) proxmark3-$(platform)-bin.tar proxmark3-$(platform)-bin.tar.gz
42 @touch proxmark3-$(platform)-bin.tar
43
44 tarbin: newtarbin client/tarbin armsrc/tarbin bootrom/tarbin
45 $(GZIP) proxmark3-$(platform)-bin.tar
46
47 udev:
48 sudo cp -rf driver/77-mm-usb-device-blacklist.rules /etc/udev/rules.d/77-mm-usb-device-blacklist.rules
49 sudo udevadm control --reload-rules
50
51 # Dummy target to test for GNU make availability
52 _test:
Impressum, Datenschutz