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
|
2008-05-02 23:40:37 +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
|
|
|
|
|
|
|
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:
|
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
|
|
|
|