mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-06 04:11:52 +00:00
57c150379e
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6393 d0543943-73ff-0310-b7d9-9358b9ac24b2
34 lines
1.1 KiB
Makefile
34 lines
1.1 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
|
|
|
|
PYVER="Python-2.5.1"
|
|
|
|
LOCAL_CFLAGS =-I$(BASE)/libs/$(PYVER)/ -I$(BASE)/libs/$(PYVER)/Include/
|
|
LOCAL_LDFLAGS=-L$(BASE)/libs/$(PYVER)/ -lpython2.5 -lutil -lstdc++
|
|
LOCAL_OBJS=freeswitch_python.o mod_python_wrap.o
|
|
include ../../../../build/modmake.rules
|
|
|
|
PYMOD=freeswitch
|
|
|
|
SWIGCFILE=../../../switch_swig.c
|
|
SWIGIFILE=../../../switch_swig.i
|
|
|
|
local_depend:
|
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) $(PYVER).tgz --prefix=$(PREFIX) --enable-threads CFLAGSFORSHARED="-fPIC"
|
|
|
|
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:
|
|
$(MAKE) -C $(BASE)/libs/$(PYVER)/ DESTDIR=$(DESTDIR) install
|
|
cp -f freeswitch.py $(DESTDIR)$(PREFIX)/lib/python2.5/site-packages/
|
|
|