mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-07 16:14:01 +02:00
Guess default python-config binary
This commit is contained in:
parent
84f812b116
commit
c297246545
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -1,4 +1,6 @@
|
|||
PYTHON_INCLUDES := $(shell python2.7-config --includes)
|
||||
DEFAULT_PYTHON_VERSION := $(shell python2 -c 'import platform; print "%s.%s" % platform.python_version_tuple()[:2]')
|
||||
PYTHON_CONFIG := python$(DEFAULT_PYTHON_VERSION)-config
|
||||
PYTHON_INCLUDES := $(shell $(PYTHON_CONFIG) --includes)
|
||||
CXXFLAGS += -Wall -g $(PYTHON_INCLUDES) -fPIC
|
||||
LDFLAGS += -lnfc
|
||||
OBJECTS = brmdoor_nfc.o brmdoor_nfc_wrap.o
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue