2007-03-12 04:21:54 +00:00
|
|
|
# define these targets in your makefile if you wish
|
|
|
|
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
|
|
|
|
|
2007-03-12 05:17:17 +00:00
|
|
|
# and define these variables to impact your build
|
2007-03-17 05:49:57 +00:00
|
|
|
|
2008-05-02 23:40:37 +00:00
|
|
|
LOCAL_CFLAGS = @PYTHON_CFLAGS@
|
2008-05-16 21:38:00 +00:00
|
|
|
LOCAL_LDFLAGS= @PYTHON_LDFLAGS@
|
2007-03-12 04:21:54 +00:00
|
|
|
LOCAL_OBJS=freeswitch_python.o mod_python_wrap.o
|
2007-03-13 18:23:49 +00:00
|
|
|
include ../../../../build/modmake.rules
|
2007-03-12 04:21:54 +00:00
|
|
|
|
2008-05-16 21:38:00 +00:00
|
|
|
LINK=$(CXXLINK)
|
|
|
|
|
2006-09-10 23:20:44 +00:00
|
|
|
PYMOD=freeswitch
|
2009-02-16 20:42:51 +00:00
|
|
|
PYTHON_SITE_DIR=@PYTHON_SITE_DIR@
|
2007-03-12 04:21:54 +00:00
|
|
|
|
2006-09-20 21:59:50 +00:00
|
|
|
SWIGCFILE=../../../switch_swig.c
|
|
|
|
SWIGIFILE=../../../switch_swig.i
|
2006-09-10 23:20:44 +00:00
|
|
|
|
2008-07-11 19:42:52 +00:00
|
|
|
reswig: swigclean mod_python_wrap.cpp
|
2006-09-10 23:20:44 +00:00
|
|
|
|
2008-07-11 19:42:52 +00:00
|
|
|
swigclean: clean
|
|
|
|
rm -f mod_python_wrap.* freeswitch.py
|
2006-09-10 23:20:44 +00:00
|
|
|
|
2010-02-06 07:58:02 +00:00
|
|
|
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
|
2006-09-10 23:20:44 +00:00
|
|
|
|
2007-03-12 04:21:54 +00:00
|
|
|
local_install:
|
2008-05-02 23:40:37 +00:00
|
|
|
mkdir -m755 -p $(DESTDIR)$(PYTHON_SITE_DIR)
|
|
|
|
cp -f freeswitch.py $(DESTDIR)$(PYTHON_SITE_DIR)
|
2006-09-17 21:28:31 +00:00
|
|
|
|