mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
added check for systemlib python3 in makefile
This commit is contained in:
parent
e95f807251
commit
26e8a5a1e0
1 changed files with 22 additions and 1 deletions
|
@ -10,7 +10,7 @@ ROOT_DIR:=$(dir $(realpath $(lastword $(MAKEFILE_LIST))))
|
|||
include ../Makefile.defs
|
||||
|
||||
INSTALLBIN = proxmark3
|
||||
INSTALLSHARE = cmdscripts lualibs luascripts resources dictionaries
|
||||
INSTALLSHARE = cmdscripts lualibs luascripts pyscripts resources dictionaries
|
||||
|
||||
VPATH = ../common src
|
||||
vpath %.dic dictionaries
|
||||
|
@ -135,6 +135,18 @@ endif
|
|||
LDLIBS += $(LUALIB)
|
||||
INCLUDES += $(LUALIBINC)
|
||||
|
||||
## Python3
|
||||
#PYTHON_CONFIG := python3-config
|
||||
PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3 2>/dev/null)
|
||||
PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3 2>/dev/null)
|
||||
ifneq ($(PYTHONLDLIBS),)
|
||||
PYTHONLIB = $(PYTHONLDLIBS)
|
||||
PYTHONLIBINC = $(PYTHONINCLUDES)
|
||||
PYTHON_FOUND = 1
|
||||
endif
|
||||
LDLIBS += $(PYTHONLIB)
|
||||
INCLUDES += $(PYTHONLIBINC)
|
||||
|
||||
## mbed TLS
|
||||
# system library cannot be used because it is compiled by default without CMAC support
|
||||
LDLIBS +=$(MBEDTLSLIB)
|
||||
|
@ -256,6 +268,9 @@ endif
|
|||
LDLIBS += $(QTLDLIBS)
|
||||
CXXINCLUDES += $(QTINCLUDES)
|
||||
|
||||
## Python
|
||||
|
||||
|
||||
#######################################################################################################
|
||||
CFLAGS ?= $(DEFCFLAGS)
|
||||
# We cannot just use CFLAGS+=... because it has impact on sub-makes if CFLAGS is defined in env:
|
||||
|
@ -345,6 +360,12 @@ else
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(PYTHON_FOUND),1)
|
||||
$(info Python library: system library found)
|
||||
else
|
||||
$(info Python library: system library not found, disabled)
|
||||
endif
|
||||
|
||||
ifeq ($(SKIPWHEREAMISYSTEM),1)
|
||||
$(info Whereami library: local library forced)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue