diff --git a/Makefile b/Makefile index a4ae9e3..55f9145 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ 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 +CXXFLAGS += -Wall -g $(PYTHON_INCLUDES) -fPIC -std=c++11 LDFLAGS += -lnfc OBJECTS = nfc_smartcard.o nfc_smartcard_wrap.o SWIG_GENERATED = nfc_smartcard_wrap.cxx nfc_smartcard.py @@ -19,7 +19,7 @@ nfc_smartcard_wrap.o: nfc_smartcard_wrap.cxx g++ -c $(CXXFLAGS) $< nfc_smartcard_wrap.cxx: nfc_smartcard.i nfc_smartcard.h - swig -python -c++ $< + swig3.0 -python -c++ $< clean: rm -f $(OBJECTS) $(PY_MODULE) $(SWIG_GENERATED) *.pyc