mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-07 16:48:15 +08:00
chg, python3-embed checks (@doegox)
This commit is contained in:
parent
feafa62ded
commit
9edb30f166
1 changed files with 8 additions and 1 deletions
|
@ -136,13 +136,20 @@ LDLIBS += $(LUALIB)
|
||||||
INCLUDES += $(LUALIBINC)
|
INCLUDES += $(LUALIBINC)
|
||||||
|
|
||||||
## Python3
|
## Python3
|
||||||
#PYTHON_CONFIG := python3-config
|
|
||||||
PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3 2>/dev/null)
|
PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3 2>/dev/null)
|
||||||
PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3 2>/dev/null)
|
PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3 2>/dev/null)
|
||||||
ifneq ($(PYTHONLDLIBS),)
|
ifneq ($(PYTHONLDLIBS),)
|
||||||
PYTHONLIB = $(PYTHONLDLIBS)
|
PYTHONLIB = $(PYTHONLDLIBS)
|
||||||
PYTHONLIBINC = $(PYTHONINCLUDES)
|
PYTHONLIBINC = $(PYTHONINCLUDES)
|
||||||
PYTHON_FOUND = 1
|
PYTHON_FOUND = 1
|
||||||
|
else
|
||||||
|
PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3-embed 2>/dev/null)
|
||||||
|
PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3-embed 2>/dev/null)
|
||||||
|
ifneq ($(PYTHONLDLIBS),)
|
||||||
|
PYTHONLIB = $(PYTHONLDLIBS)
|
||||||
|
PYTHONLIBINC = $(PYTHONINCLUDES)
|
||||||
|
PYTHON_FOUND = 1
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
LDLIBS += $(PYTHONLIB)
|
LDLIBS += $(PYTHONLIB)
|
||||||
INCLUDES += $(PYTHONLIBINC)
|
INCLUDES += $(PYTHONLIBINC)
|
||||||
|
|
Loading…
Reference in a new issue