mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-24 02:18:57 +00:00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16583 d0543943-73ff-0310-b7d9-9358b9ac24b2
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
# 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@
|
|
LOCAL_OBJS=freeswitch_python.o mod_python_wrap.o
|
|
include ../../../../build/modmake.rules
|
|
|
|
LINK=$(CXXLINK)
|
|
|
|
PYMOD=freeswitch
|
|
PYTHON_SITE_DIR=@PYTHON_SITE_DIR@
|
|
|
|
SWIGCFILE=../../../switch_swig.c
|
|
SWIGIFILE=../../../switch_swig.i
|
|
|
|
reswig: swigclean mod_python_wrap.cpp
|
|
|
|
swigclean: clean
|
|
rm -f mod_python_wrap.* freeswitch.py
|
|
|
|
mod_python_wrap.cpp: mod_python_extra.c hack.diff
|
|
which swig 2>&1 >>/dev/null && swig -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i
|
|
which swig 2>&1 >>/dev/null && echo "#include \"mod_python_extra.c\"" >> mod_python_wrap.cpp
|
|
which swig 2>&1 >>/dev/null && patch -s -p0 -i hack.diff
|
|
|
|
local_install:
|
|
mkdir -m755 -p $(DESTDIR)$(PYTHON_SITE_DIR)
|
|
cp -f freeswitch.py $(DESTDIR)$(PYTHON_SITE_DIR)
|
|
|