mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 11:43:14 +08:00
simplify makefile
This commit is contained in:
parent
1cddc6919a
commit
3bf26f2808
3 changed files with 16 additions and 46 deletions
26
Makefile
26
Makefile
|
@ -23,32 +23,10 @@ else
|
||||||
PATHSEP=\\#
|
PATHSEP=\\#
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM),)
|
-include Makefile.platform
|
||||||
-include Makefile.platform
|
-include .Makefile.options.cache
|
||||||
-include .Makefile.options.cache
|
|
||||||
ifeq ($(PLATFORM),)
|
|
||||||
PLATFORM=PM3RDV4
|
|
||||||
else
|
|
||||||
${info using saved PLATFORM: '$(PLATFORM)'}
|
|
||||||
endif
|
|
||||||
ifneq ($(PLATFORM_EXTRAS),)
|
|
||||||
${info using saved PLATFORM_EXTRAS: '$(PLATFORM_EXTRAS)'}
|
|
||||||
endif
|
|
||||||
ifneq ($(STANDALONE),)
|
|
||||||
${info using saved STANDALONE: '$(STANDALONE)'}
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
include common/Makefile.hal
|
include common/Makefile.hal
|
||||||
|
|
||||||
$(info ===================================================================)
|
|
||||||
$(info Platform name: $(PLTNAME))
|
|
||||||
$(info PLATFORM: $(PLATFORM))
|
|
||||||
$(info PLATFORM_EXTRAS: $(PLATFORM_EXTRAS))
|
|
||||||
$(info Included options: $(PLATFORM_DEFS_INFO))
|
|
||||||
$(info Standalone mode: $(PLATFORM_DEFS_INFO_STANDALONE))
|
|
||||||
$(info ===================================================================)
|
|
||||||
|
|
||||||
all clean: %: client/% bootrom/% armsrc/% recovery/% mfkey/% nonce2key/%
|
all clean: %: client/% bootrom/% armsrc/% recovery/% mfkey/% nonce2key/%
|
||||||
|
|
||||||
mfkey/%: FORCE
|
mfkey/%: FORCE
|
||||||
|
|
|
@ -12,30 +12,11 @@ APP_INCLUDES = apps.h
|
||||||
ifeq ($(PLTNAME),)
|
ifeq ($(PLTNAME),)
|
||||||
-include ../Makefile.platform
|
-include ../Makefile.platform
|
||||||
-include ../.Makefile.options.cache
|
-include ../.Makefile.options.cache
|
||||||
ifeq ($(PLATFORM),)
|
|
||||||
PLATFORM=PM3RDV4
|
|
||||||
else
|
|
||||||
${info using saved PLATFORM: '$(PLATFORM)'}
|
|
||||||
endif
|
|
||||||
ifneq ($(PLATFORM_EXTRAS),)
|
|
||||||
${info using saved PLATFORM_EXTRAS: '$(PLATFORM_EXTRAS)'}
|
|
||||||
endif
|
|
||||||
ifneq ($(STANDALONE),)
|
|
||||||
${info using saved STANDALONE: '$(STANDALONE)'}
|
|
||||||
endif
|
|
||||||
include ../common/Makefile.hal
|
include ../common/Makefile.hal
|
||||||
$(info ===================================================================)
|
|
||||||
$(info Platform name: $(PLTNAME))
|
|
||||||
$(info PLATFORM: $(PLATFORM))
|
|
||||||
$(info PLATFORM_EXTRAS: $(PLATFORM_EXTRAS))
|
|
||||||
$(info Included options: $(PLATFORM_DEFS_INFO))
|
|
||||||
$(info Standalone mode: $(PLATFORM_DEFS_INFO_STANDALONE))
|
|
||||||
$(info ===================================================================)
|
|
||||||
|
|
||||||
# detect if there were changes in the platform definitions, requiring a clean
|
# detect if there were changes in the platform definitions, requiring a clean
|
||||||
ifeq ($(PLATFORM_CHANGED), true)
|
ifeq ($(PLATFORM_CHANGED), true)
|
||||||
$(error platform definitions have been changed, please "make clean" at the root of the project)
|
$(error platform definitions have been changed, please "make clean" at the root of the project)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#remove one of the following defines and comment out the relevant line
|
#remove one of the following defines and comment out the relevant line
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# Default platform if no platform specified
|
||||||
|
PLATFORM?=PM3RDV4
|
||||||
|
|
||||||
define KNOWN_DEFINITIONS
|
define KNOWN_DEFINITIONS
|
||||||
|
|
||||||
Known definitions:
|
Known definitions:
|
||||||
|
@ -172,3 +175,11 @@ else ifneq ($(PLATFORM_EXTRAS), $(CACHED_PLATFORM_EXTRAS))
|
||||||
else ifneq ($(PLATFORM_DEFS), $(CACHED_PLATFORM_DEFS))
|
else ifneq ($(PLATFORM_DEFS), $(CACHED_PLATFORM_DEFS))
|
||||||
PLATFORM_CHANGED=true
|
PLATFORM_CHANGED=true
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
$(info ===================================================================)
|
||||||
|
$(info Platform name: $(PLTNAME))
|
||||||
|
$(info PLATFORM: $(PLATFORM))
|
||||||
|
$(info PLATFORM_EXTRAS: $(PLATFORM_EXTRAS))
|
||||||
|
$(info Included options: $(PLATFORM_DEFS_INFO))
|
||||||
|
$(info Standalone mode: $(PLATFORM_DEFS_INFO_STANDALONE))
|
||||||
|
$(info ===================================================================)
|
||||||
|
|
Loading…
Reference in a new issue