mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Add Makefile.defs with common defs
This commit is contained in:
parent
d772c6169a
commit
3245260c00
5 changed files with 72 additions and 90 deletions
|
@ -1,36 +1,19 @@
|
|||
# Hide full compilation line:
|
||||
ifneq ($(V),1)
|
||||
Q?=@
|
||||
# This Makefile might have been called from various subdirs, trying to find our Makefile.defs
|
||||
ifeq ($(DEFSBEENHERE),)
|
||||
-include Makefile.defs
|
||||
endif
|
||||
ifeq ($(DEFSBEENHERE),)
|
||||
-include ../Makefile.defs
|
||||
endif
|
||||
ifeq ($(DEFSBEENHERE),)
|
||||
-include ../../Makefile.defs
|
||||
endif
|
||||
ifeq ($(DEFSBEENHERE),)
|
||||
$(error Can't find Makefile.defs)
|
||||
endif
|
||||
# To see full command lines, use make V=1
|
||||
|
||||
INSTALLBINRELPATH = /bin/
|
||||
INSTALLTOOLSRELPATH = /share/proxmark3/tools/
|
||||
|
||||
CC = gcc
|
||||
LD = gcc
|
||||
RM = rm -f
|
||||
MV = mv
|
||||
CP = cp -a
|
||||
MKDIR = mkdir -p
|
||||
TOUCH = touch
|
||||
FALSE = false
|
||||
|
||||
CFLAGS ?= -Wall -Werror -O3
|
||||
CFLAGS += $(MYDEFS) $(MYCFLAGS) $(MYINCLUDES)
|
||||
PREFIX ?= /usr/local
|
||||
|
||||
platform = $(shell uname)
|
||||
|
||||
ifeq ($(platform),Darwin)
|
||||
AR= /usr/bin/ar rcs
|
||||
RANLIB= /usr/bin/ranlib
|
||||
else
|
||||
AR= ar rcs
|
||||
RANLIB= ranlib
|
||||
endif
|
||||
RM= rm -f
|
||||
RMDIR= rm -rf
|
||||
|
||||
vpath %.c $(MYSRCPATHS)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue