diff --git a/Demos/embed/Makefile b/Demos/embed/Makefile index 4162d2cb84e595505cc5408feeaa4e9c224323fd..c8aeca3cf1d26ee105861c4789e49c277252c8b8 100644 --- a/Demos/embed/Makefile +++ b/Demos/embed/Makefile @@ -3,6 +3,7 @@ PYTHON=python PYVERSION=$(shell $(PYTHON) -c "import sys; print(sys.version[:3])") INCDIR=$(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_python_inc())") +PLATINCDIR=$(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_python_inc(plat_specific=True))") LIBDIR1=$(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_config_var('LIBDIR'))") LIBDIR2=$(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_config_var('LIBPL'))") PYLIB=$(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_config_var('LIBRARY')[3:-2])") @@ -17,7 +18,7 @@ embedded: embedded.o $(LINKCC) -o $@ $^ -L$(LIBDIR1) -L$(LIBDIR2) -l$(PYLIB) $(LIBS) $(SYSLIBS) $(LINKFORSHARED) embedded.o: embedded.c - $(CC) -c $^ -I$(INCDIR) + $(CC) -c $^ -I$(INCDIR) -I$(PLATINCDIR) CYTHON=../../cython.py embedded.c: embedded.pyx