summaryrefslogtreecommitdiff
path: root/Demos
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-04-06 20:50:35 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-04-06 20:50:35 +0200
commit8444288c5a53924ad7454f4461bbb3413aebf302 (patch)
tree220987fce586ba1da926ddbe4e29462858ff307c /Demos
parent1338dda1c63dfd605ef41620e8a7b99f7a864d08 (diff)
downloadcython-8444288c5a53924ad7454f4461bbb3413aebf302.tar.gz
Make embed test more debuggable by printing the path setup and the build output on failure.
Diffstat (limited to 'Demos')
-rw-r--r--Demos/embed/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Demos/embed/Makefile b/Demos/embed/Makefile
index e8d40b999..e6af8cae8 100644
--- a/Demos/embed/Makefile
+++ b/Demos/embed/Makefile
@@ -15,6 +15,23 @@ LINKFORSHARED := $(shell $(PYTHON) -c "import distutils.sysconfig; print(distuti
LIBS := $(shell $(PYTHON) -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBS'))")
SYSLIBS := $(shell $(PYTHON) -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('SYSLIBS'))")
+.PHONY: paths all clean test
+
+paths:
+ @echo "PYTHON=$(PYTHON)"
+ @echo "PYVERSION=$(PYVERSION)"
+ @echo "PYPREFIX=$(PYPREFIX)"
+ @echo "INCDIR=$(INCDIR)"
+ @echo "PLATINCDIR=$(PLATINCDIR)"
+ @echo "LIBDIR1=$(LIBDIR1)"
+ @echo "LIBDIR2=$(LIBDIR2)"
+ @echo "PYLIB=$(PYLIB)"
+ @echo "CC=$(CC)"
+ @echo "LINKCC=$(LINKCC)"
+ @echo "LINKFORSHARED=$(LINKFORSHARED)"
+ @echo "LIBS=$(LIBS)"
+ @echo "SYSLIBS=$(SYSLIBS)"
+
embedded: embedded.o
$(LINKCC) -o $@ $^ -L$(LIBDIR1) -L$(LIBDIR2) -l$(PYLIB) $(LIBS) $(SYSLIBS) $(LINKFORSHARED)