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:
|
|
|
|
|
|
|
|
# and define these variables to imapact your build
|
|
|
|
LOCAL_CFLAGS=-I$(PREFIX)/include/python2.4/
|
|
|
|
LOCAL_LDFLAGS=-lpython2.4 -L$(PREFIX)/lib/python2.4/config/ -lutil -lstdc++
|
|
|
|
LOCAL_OBJS=freeswitch_python.o mod_python_wrap.o
|
|
|
|
include $(BASE)/build/modmake.rules
|
|
|
|
|
2006-09-10 23:20:44 +00:00
|
|
|
PYMOD=freeswitch
|
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
|
|
|
|
2007-03-12 04:21:54 +00:00
|
|
|
local_depend:
|
2006-09-20 21:59:50 +00:00
|
|
|
MAKE=$(MAKE) PY_CFLAGS=-fPIC $(BASE)/build/buildlib.sh $(BASE) install Python-2.4.3.tgz --prefix=$(PREFIX) --enable-threads
|
2006-09-17 21:28:31 +00:00
|
|
|
|
2006-09-10 23:20:44 +00:00
|
|
|
reswig:
|
2006-12-21 17:11:43 +00:00
|
|
|
swig -python -shadow -c++ -o mod_python_wrap.cpp mod_python.i
|
2006-09-10 23:20:44 +00:00
|
|
|
|
|
|
|
switch_swig_wrap.o: switch_swig_wrap.c Makefile
|
|
|
|
$(CC) -w $(CFLAGS) -c $< -o $@
|
|
|
|
|
2006-09-20 21:59:50 +00:00
|
|
|
switch_swig.o: $(SWIGCFILE) Makefile
|
2006-09-10 23:20:44 +00:00
|
|
|
$(CC) -w $(CFLAGS) -c $< -o $@
|
|
|
|
|
2007-03-12 04:21:54 +00:00
|
|
|
local_install:
|
2006-12-21 17:11:43 +00:00
|
|
|
cp -f freeswitch.py $(PREFIX)/lib/python2.4/site-packages/
|
2006-09-17 21:28:31 +00:00
|
|
|
|