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
|
|
|
|
2007-05-08 15:44:44 +00:00
|
|
|
LOCAL_CFLAGS=-I$(PREFIX)/include/python2.5/
|
|
|
|
LOCAL_LDFLAGS=-lpython2.5 -L$(PREFIX)/lib/python2.5/config/ -lutil -lstdc++
|
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
|
|
|
|
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:
|
2007-05-08 15:44:44 +00:00
|
|
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install Python-2.5.1.tgz --prefix=$(PREFIX) --enable-threads CFLAGSFORSHARED="-fPIC"
|
2006-09-17 21:28:31 +00:00
|
|
|
|
2006-09-10 23:20:44 +00:00
|
|
|
reswig:
|
2007-06-01 18:50:34 +00:00
|
|
|
swig -python -shadow -c++ -I../../../../src/include -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:
|
2007-11-24 00:59:04 +00:00
|
|
|
cp -f freeswitch.py $(DESTDIR)$(PREFIX)/lib/python2.5/site-packages/
|
2006-09-17 21:28:31 +00:00
|
|
|
|