mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-14 19:24:10 +08:00
global makefile: cleanup targets
This commit is contained in:
parent
9f9ee2f1fd
commit
d447fb838f
1 changed files with 29 additions and 11 deletions
40
Makefile
40
Makefile
|
@ -56,22 +56,40 @@ recovery/%: FORCE
|
|||
$(MAKE) -C recovery $(patsubst recovery/%,%,$@)
|
||||
FORCE: # Dummy target to force remake in the subdirectories, even if files exist (this Makefile doesn't know about the prerequisites)
|
||||
|
||||
.PHONY: all clean help _test flash-bootrom flash-os flash-all style FORCE
|
||||
.PHONY: all clean help _test bootrom flash-bootrom os flash-os flash-all recovery client mfkey nounce2key style FORCE
|
||||
|
||||
help:
|
||||
@echo Multi-OS Makefile, you are running on $(DETECTED_OS)
|
||||
@echo Possible targets:
|
||||
@echo + all - Make bootrom, armsrc and the OS-specific host directory
|
||||
@echo + client - Make only the OS-specific host directory
|
||||
@echo + flash-bootrom - Make bootrom and flash it
|
||||
@echo + flash-os - Make armsrc and flash os \(includes fpga\)
|
||||
@echo + flash-all - Make bootrom and armsrc and flash bootrom and os image
|
||||
@echo + mfkey - Make tools/mfkey
|
||||
@echo + nounce2key - Make tools/nounce2key
|
||||
@echo + clean - Clean in bootrom, armsrc and the OS-specific host directory
|
||||
@echo "Multi-OS Makefile"
|
||||
@echo
|
||||
@echo "Possible targets:"
|
||||
@echo "+ all - Make all targets: bootrom, armsrc and OS-specific host tools"
|
||||
@echo "+ clean - Clean in all targets"
|
||||
@echo
|
||||
@echo "+ bootrom - Make bootrom"
|
||||
@echo "+ os - Make armsrc \(includes fpga\)"
|
||||
@echo "+ flash-bootrom - Make bootrom and flash it"
|
||||
@echo "+ flash-os - Make armsrc and flash os image \(includes fpga\)"
|
||||
@echo "+ flash-all - Make bootrom and armsrc and flash bootrom and os image"
|
||||
@echo "+ recovery - Make bootrom and armsrc images for JTAG flashing"
|
||||
@echo
|
||||
@echo "+ client - Make only the OS-specific host client"
|
||||
@echo "+ mfkey - Make tools/mfkey"
|
||||
@echo "+ nounce2key - Make tools/nounce2key"
|
||||
@echo
|
||||
@echo "Possible platforms: try \"make PLATFORM=\" for more info, default is PM3RDV4"
|
||||
|
||||
client: client/all
|
||||
|
||||
bootrom: bootrom/all
|
||||
|
||||
os: armsrc/all
|
||||
|
||||
recovery: recovery/all
|
||||
|
||||
mfkey: mfkey/all
|
||||
|
||||
nonce2key: nonce2key/all
|
||||
|
||||
flash-bootrom: bootrom/obj/bootrom.elf $(FLASH_TOOL)
|
||||
$(FLASH_TOOL) $(FLASH_PORT) -b $(subst /,$(PATHSEP),$<)
|
||||
|
||||
|
|
Loading…
Reference in a new issue