diff options
Diffstat (limited to 'Make.config')
-rw-r--r-- | Make.config | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Make.config b/Make.config index 4e06fc7..db65ba0 100644 --- a/Make.config +++ b/Make.config @@ -24,6 +24,10 @@ UPSTARTDEST = $(DESTDIR)/etc/init INIT_SYSTEM = systemd INIT_AFTER = mysql.service +# set the python intepreter + +PYTHON ?= python + # ------------------ # don't touch below @@ -69,7 +73,17 @@ ifdef SYSD_NOTIFY endif ifdef USELIBXML - DEFINES += $(shell xml2-config --cflags) $(shell xslt-config --cflags) $(shell python-config --includes) + DEFINES += $(shell xml2-config --cflags) $(shell xslt-config --cflags) +endif + +ifdef USEPYTHON + DEFINES += $(shell $(PYTHON)-config --includes) + ifeq ($(shell $(PYTHON) -c 'from __future__ import print_function; import sys; sys.exit(0) if sys.version_info[:2] < (3,8) else print(1)'), 1) + BASELIBS += $(shell $(PYTHON)-config --libs --embed) + else + BASELIBS += $(shell $(PYTHON)-config --libs) + endif + CFLAGS += $(shell $(PYTHON)-config --includes) endif ifdef SYSD_NOTIFY |