Try to use python provided by the system instead of a bundled version, adds --with-python and --with-python-config to configure

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8258 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Stefan Knoblich
2008-05-02 23:40:37 +00:00
parent 3f32bd323e
commit e8c88aa124
2 changed files with 113 additions and 9 deletions
+29
View File
@@ -0,0 +1,29 @@
# define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
# and define these variables to impact your build
LOCAL_CFLAGS = @PYTHON_CFLAGS@
LOCAL_LDFLAGS= @PYTHON_LDFLAGS@ -lstdc++
LOCAL_OBJS=freeswitch_python.o mod_python_wrap.o
include ../../../../build/modmake.rules
PYMOD=freeswitch
PYTHON_SITE_DIR=@PYTHON_SITE_DIR@
SWIGCFILE=../../../switch_swig.c
SWIGIFILE=../../../switch_swig.i
reswig:
swig -python -shadow -c++ -I../../../../src/include -o mod_python_wrap.cpp mod_python.i
switch_swig_wrap.o: switch_swig_wrap.c Makefile
$(CC) -w $(CFLAGS) -c $< -o $@
switch_swig.o: $(SWIGCFILE) Makefile
$(CC) -w $(CFLAGS) -c $< -o $@
local_install:
mkdir -m755 -p $(DESTDIR)$(PYTHON_SITE_DIR)
cp -f freeswitch.py $(DESTDIR)$(PYTHON_SITE_DIR)