mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-13 06:44:14 +00:00
move applications to use automake
This commit is contained in:
1 parent
07272e864e
commit
bcd9f49fbe
234 files changed
+1729
-2421
No files matched your search
+10
-12
@@ -1,14 +1,5 @@
|
||||
# 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
|
||||
|
||||
LOCAL_CFLAGS = @PYTHON_CFLAGS@
|
||||
LOCAL_LDFLAGS= @PYTHON_LDFLAGS@
|
||||
LOCAL_OBJS=freeswitch_python.o mod_python_wrap.o
|
||||
include ../../../../build/modmake.rules
|
||||
|
||||
LINK=$(CXXLINK)
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_python
|
||||
|
||||
PYMOD=freeswitch
|
||||
PYTHON_SITE_DIR=@PYTHON_SITE_DIR@
|
||||
@@ -16,6 +7,13 @@ PYTHON_SITE_DIR=@PYTHON_SITE_DIR@
|
||||
SWIGCFILE=../../../switch_swig.c
|
||||
SWIGIFILE=../../../switch_swig.i
|
||||
|
||||
mod_LTLIBRARIES = mod_python.la
|
||||
mod_python_la_SOURCES = mod_python.c freeswitch_python.cpp mod_python_wrap.cpp
|
||||
mod_python_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_python_la_CPPFLAGS = @PYTHON_CFLAGS@ -I$(switch_srcdir)/libs/stfu/ -I$(switch_srcdir)/libs/libteletone/src/
|
||||
mod_python_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_python_la_LDFLAGS = -avoid-version -module -no-undefined -shared @PYTHON_LDFLAGS@
|
||||
|
||||
reswig: swigclean mod_python_wrap.cpp
|
||||
|
||||
swigclean: clean
|
||||
@@ -26,7 +24,7 @@ mod_python_wrap.cpp: mod_python_extra.c hack.diff
|
||||
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
|
||||
|
||||
local_install:
|
||||
install:
|
||||
mkdir -m755 -p $(DESTDIR)$(PYTHON_SITE_DIR)
|
||||
cp -f freeswitch.py $(DESTDIR)$(PYTHON_SITE_DIR)
|
||||
|
||||
Reference in new issue
Block a user