Commit 9e6246b4 authored by Jaromil's avatar Jaromil
Browse files

fix python builds and upgrade targets to python 3

parent 5c8ee61e
......@@ -134,14 +134,14 @@ linux-lib: cflags += -shared -DLIBRARY
make -C src linux-lib
linux-python: apply-patches lua53 milagro lpeglabel
swig -python ${pwd}/build/swig.i
swig -python -py3 ${pwd}/build/swig.i
${gcc} ${cflags} -c ${pwd}/build/swig_wrap.c \
-o src/zen_python.o
-o src/zen_python.o
CC=${gcc} LD=${ld} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src python
osx-python: apply-patches lua53 milagro lpeglabel
swig -python ${pwd}/build/swig.i
swig -python -py3 ${pwd}/build/swig.i
${gcc} ${cflags} -c ${pwd}/build/swig_wrap.c \
-o src/zen_python.o
CC=${gcc} LD=${ld} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
......@@ -170,13 +170,6 @@ osx: apply-patches lua53 milagro lpeglabel
CC=${gcc} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src osx
osx-python: osx
swig -python ${pwd}/build/swig.i
${gcc} ${cflags} -c ${pwd}/build/swig_wrap.c \
-o src/zen_python.o $(shell pkg-config python --cflags)
CC=${gcc} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src python
# ------------------
# ios build recepies
include ${pwd}/build/ios.mk
......
......@@ -70,8 +70,8 @@ system := Darwin
endif
ifneq (,$(findstring python,$(MAKECMDGOALS)))
cflags += $(shell pkg-config python --cflags)
ldflags += $(shell pkg-config python --libs)
cflags += $(shell pkg-config python3 --cflags)
ldflags += $(shell pkg-config python3 --libs)
endif
ifneq (,$(findstring javascript,$(MAKECMDGOALS)))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment