an attempt to simplify the module make files. More changes to come on the modules building soon

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4562 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-03-12 04:21:54 +00:00
parent 52b40252ef
commit 514bde18c7
45 changed files with 461 additions and 634 deletions

View File

@ -5,7 +5,7 @@ NAME=freeswitch
PREFIX=$(prefix) PREFIX=$(prefix)
AM_CFLAGS = $(SWITCH_AM_CFLAGS) AM_CFLAGS = $(SWITCH_AM_CFLAGS)
AM_CPPFLAGS = $(AM_CFLAGS) AM_CPPFLAGS = $(SWITCH_AM_CXXFLAGS)
AM_LDFLAGS = $(SWITCH_AM_LDFLAGS) AM_LDFLAGS = $(SWITCH_AM_LDFLAGS)
BASE = $(switch_srcdir) BASE = $(switch_srcdir)
OSARCH=$(shell uname -s) OSARCH=$(shell uname -s)

View File

@ -44,7 +44,7 @@ host_triplet = @host@
bin_PROGRAMS = freeswitch$(EXEEXT) bin_PROGRAMS = freeswitch$(EXEEXT)
DIST_COMMON = README $(am__configure_deps) $(library_include_HEADERS) \ DIST_COMMON = README $(am__configure_deps) $(library_include_HEADERS) \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(top_srcdir)/configure \ $(top_srcdir)/build/modmake.rules.in $(top_srcdir)/configure \
$(top_srcdir)/src/include/switch_am_config.h.in \ $(top_srcdir)/src/include/switch_am_config.h.in \
$(top_srcdir)/src/include/switch_private.h.in \ $(top_srcdir)/src/include/switch_private.h.in \
$(top_srcdir)/src/include/switch_version.h.in AUTHORS COPYING \ $(top_srcdir)/src/include/switch_version.h.in AUTHORS COPYING \
@ -70,7 +70,7 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
mkinstalldirs = $(install_sh) -d mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/src/include/switch_private.h CONFIG_HEADER = $(top_builddir)/src/include/switch_private.h
CONFIG_CLEAN_FILES = src/include/switch_am_config.h \ CONFIG_CLEAN_FILES = src/include/switch_am_config.h \
src/include/switch_version.h build/modmake.rules src/include/switch_version.h
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \ am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
@ -212,6 +212,7 @@ SHELL = @SHELL@
SOLINK = @SOLINK@ SOLINK = @SOLINK@
STRIP = @STRIP@ STRIP = @STRIP@
SWITCH_AM_CFLAGS = @SWITCH_AM_CFLAGS@ SWITCH_AM_CFLAGS = @SWITCH_AM_CFLAGS@
SWITCH_AM_CXXFLAGS = @SWITCH_AM_CXXFLAGS@
SWITCH_AM_LDFLAGS = @SWITCH_AM_LDFLAGS@ SWITCH_AM_LDFLAGS = @SWITCH_AM_LDFLAGS@
VERSION = @VERSION@ VERSION = @VERSION@
WANT_DEBUG_FALSE = @WANT_DEBUG_FALSE@ WANT_DEBUG_FALSE = @WANT_DEBUG_FALSE@
@ -279,7 +280,7 @@ AUTOMAKE_OPTS = gnu foreign
NAME = freeswitch NAME = freeswitch
PREFIX = $(prefix) PREFIX = $(prefix)
AM_CFLAGS = $(SWITCH_AM_CFLAGS) $(am__append_1) AM_CFLAGS = $(SWITCH_AM_CFLAGS) $(am__append_1)
AM_CPPFLAGS = $(AM_CFLAGS) AM_CPPFLAGS = $(SWITCH_AM_CXXFLAGS)
AM_LDFLAGS = $(SWITCH_AM_LDFLAGS) AM_LDFLAGS = $(SWITCH_AM_LDFLAGS)
BASE = $(switch_srcdir) BASE = $(switch_srcdir)
OSARCH = $(shell uname -s) OSARCH = $(shell uname -s)
@ -412,6 +413,8 @@ distclean-hdr:
-rm -f src/include/switch_private.h src/include/stamp-h1 -rm -f src/include/switch_private.h src/include/stamp-h1
src/include/switch_am_config.h: $(top_builddir)/config.status $(top_srcdir)/src/include/switch_am_config.h.in src/include/switch_am_config.h: $(top_builddir)/config.status $(top_srcdir)/src/include/switch_am_config.h.in
cd $(top_builddir) && $(SHELL) ./config.status $@ cd $(top_builddir) && $(SHELL) ./config.status $@
build/modmake.rules: $(top_builddir)/config.status $(top_srcdir)/build/modmake.rules.in
cd $(top_builddir) && $(SHELL) ./config.status $@
src/include/switch_version.h: $(top_builddir)/config.status $(top_srcdir)/src/include/switch_version.h.in src/include/switch_version.h: $(top_builddir)/config.status $(top_srcdir)/src/include/switch_version.h.in
cd $(top_builddir) && $(SHELL) ./config.status $@ cd $(top_builddir) && $(SHELL) ./config.status $@
install-libLTLIBRARIES: $(lib_LTLIBRARIES) install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@ -812,7 +815,7 @@ distclean-tags:
distdir: $(DISTFILES) distdir: $(DISTFILES)
$(am__remove_distdir) $(am__remove_distdir)
mkdir $(distdir) mkdir $(distdir)
$(mkdir_p) $(distdir)/build/config $(distdir)/libs/apr/build $(distdir)/src/include $(mkdir_p) $(distdir)/build $(distdir)/build/config $(distdir)/libs/apr/build $(distdir)/src/include
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \ list='$(DISTFILES)'; for file in $$list; do \

View File

@ -81,7 +81,7 @@ if [ -f ../$uncompressed.build.sh ] ; then
MAKE=$MAKE ../$uncompressed.build.sh $@ MAKE=$MAKE ../$uncompressed.build.sh $@
else else
$MAKE clean 2>&1 $MAKE clean 2>&1
CFLAGS="$MOD_CFLAGS" ; export CFLAGS; sh ./configure $@ CFLAGS="$MOD_CFLAGS" sh ./configure $@
if [ $? = 0 ] ; then if [ $? = 0 ] ; then
$MAKE $MAKE

View File

@ -2,18 +2,17 @@
switch_builddir=@switch_builddir@ switch_builddir=@switch_builddir@
switch_srcdir=@switch_srcdir@ switch_srcdir=@switch_srcdir@
BASE=$(switch_srcdir)
CC=@CC@ CC=@CC@
RM=@RM@ CXX=@CXX@
AWK=@AWK@ AWK=@AWK@
SHELL=@SHELL@ SHELL=@SHELL@
INSTALL=@INSTALL@ INSTALL=@INSTALL@
LIBTOOL=$(switch_builddir)/libtool LIBTOOL=$(switch_builddir)/libtool
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
CCLD = $(CC)
CXXLD = $(CXX)
CFLAGS=@SWITCH_AM_CFLAGS@ @CFLAGS@
CPPFLAGS=$(CFLAGS) @CPPFLAGS@
LDFLAGS=@SWITCH_AM_LDFLAGS@ @LDFLAGS@ LDFLAGS=@SWITCH_AM_LDFLAGS@ @LDFLAGS@
LIBS=$(switch_builddir)/libfreeswitch.la LIBS=$(switch_builddir)/libfreeswitch.la
DEFS=@DEFS@ DEFS=@DEFS@
@ -25,33 +24,67 @@ OSARCH=$(shell uname -s)
DYNAMIC_LIB_EXTEN = @DYNAMIC_LIB_EXTEN@ DYNAMIC_LIB_EXTEN = @DYNAMIC_LIB_EXTEN@
SOLINK = @SOLINK@ SOLINK = @SOLINK@
COMPILE = $(CC) $(MOD_CFLAGS) $(MOD_CPPFLAGS) $(MOD_INCLUDES) ALL_CFLAGS = $(LOCAL_CFLAGS) $(MOD_CFLAGS) @SWITCH_AM_CFLAGS@ @CFLAGS@ -D_GNU_SOURCE
LT_COMPILE = @lt_compile@ ALL_CXXFLAGS = $(LOCAL_CFLAGS) $(MOD_CFLAGS) @SWITCH_AM_CXXFLAGS@ @CXXFLAGS@ -D_GNU_SOURC
LINK = @link@ COMPILE = $(CC) $(ALL_CFLAGS) $(DEFS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(COMPILE)
LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(ALL_CFLAGS) $(LDFLAGS) -o $@
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN) CXXCOMPILE = $(CXX) $(ALL_CXXFLAGS) $(DEFS)
LTCXXCOMPILE = $(LIBTOOL) --mode=compile --tag=CXX $(CXXCOMPILE)
CXXLINK = $(LIBTOOL) --mode=link --tag=CXX $(CXXLD) $(ALL_CXXFLAGS) $(LDFLAGS) -o $@
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c CURDIR=$(shell pwd)
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o CSOURCEFILE=$(CURDIR)/$(MODNAME).c
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(OBJS) CXXSOURCEFILE=$(CURDIR)/$(MODNAME).cpp
LINK_TYPE=$(shell if test -f $(CSOURCEFILE); then echo "clink"; else echo "cxxlink"; fi;)
clean: all: depend $(MODNAME).$(DYNAMIC_LIB_EXTEN) local_all
depend: local_depend
clean: local_clean mod_clean
install: depend_install local_install mod_install
distclean: clean local_distclean
extraclean: distclean local_extraclean
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).o $(LOCAL_OBJS) depend $(LINK_TYPE)
clink: $(MODNAME).o $(LOCAL_OBJS)
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS)
cxxlink: $(MODNAME).o $(LOCAL_OBJS)
$(CXXLINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS)
mod_clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install: mod_install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod $(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
# define these in your makefile if you wish
local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
# #
# Implicit rules for creating outputs from input files # Implicit rules for creating outputs from input files
# #
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .c .lo .o .SUFFIXES: .c .lo .o .cpp
.c.o: .c.o:
$(COMPILE) -c $< $(COMPILE) -c -o $@ $<
.c.lo: .c.lo:
$(LT_COMPILE) $(LTCOMPILE) -c -o $@ $<
.cpp.o:
$(CXXCOMPILE) -c -o $@ $<
.cpp.lo:
$(LTCXXCOMPILE) -c -o $@ $<
.PHONY: all depend clean local_all local_depend \
install depend_install local_install mod_install \
clean local_clean mod_clean distclean \
local_distclean extraclean local_extraclean \
clink cxxlink

View File

@ -7,9 +7,6 @@ shift
mod=$1 mod=$1
shift shift
if [ -f $pwd/build/freeswitch.env ] ; then
. $pwd/build/freeswitch.env
fi
end=`echo $mod | sed "s/^.*\///g"` end=`echo $mod | sed "s/^.*\///g"`
if [ -z "$end" ] ; then if [ -z "$end" ] ; then
@ -17,8 +14,8 @@ if [ -z "$end" ] ; then
fi fi
if [ -f $mod/Makefile ] ; then if [ -f $mod/Makefile ] ; then
CFLAGS="$MOD_CFLAGS $CFLAGS " MODNAME=$end $make -C $mod $@ MOD_CFLAGS="$MOD_CFLAGS" MODNAME=$end BASE=$pwd $make -C $mod $@
else else
CFLAGS="$MOD_CFLAGS $CFLAGS" MODNAME=$end $make -f $pwd/generic_mod.mk -C $mod $@ MOD_CFLAGS="$MOD_CFLAGS" MODNAME=$end BASE=$pwd $make -f $pwd/generic_mod.mk -C $mod $@
fi fi

94
configure vendored
View File

@ -490,7 +490,7 @@ ac_subdirs_all="$ac_subdirs_all libs/sofia-sip"
ac_subdirs_all="$ac_subdirs_all libs/speex" ac_subdirs_all="$ac_subdirs_all libs/speex"
ac_subdirs_all="$ac_subdirs_all libs/xmlrpc-c" ac_subdirs_all="$ac_subdirs_all libs/xmlrpc-c"
ac_subdirs_all="$ac_subdirs_all libs/portaudio" ac_subdirs_all="$ac_subdirs_all libs/portaudio"
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar switch_srcdir switch_builddir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PRTDIAG WANT_DEBUG_TRUE WANT_DEBUG_FALSE SWITCH_AM_CFLAGS SWITCH_AM_LDFLAGS SOLINK DYNAMIC_LIB_EXTEN LIBOBJS voidp_size short_value int_value long_value int64_value size_t_value ssize_t_value int64_t_fmt uint64_t_fmt ssize_t_fmt size_t_fmt CRASHPROT_TRUE CRASHPROT_FALSE ISLINUX_TRUE ISLINUX_FALSE ISMAC_TRUE ISMAC_FALSE IS64BITLINUX_TRUE IS64BITLINUX_FALSE subdirs LTLIBOBJS' ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar switch_srcdir switch_builddir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PRTDIAG WANT_DEBUG_TRUE WANT_DEBUG_FALSE SWITCH_AM_CFLAGS SWITCH_AM_CXXFLAGS SWITCH_AM_LDFLAGS SOLINK DYNAMIC_LIB_EXTEN LIBOBJS voidp_size short_value int_value long_value int64_value size_t_value ssize_t_value int64_t_fmt uint64_t_fmt ssize_t_fmt size_t_fmt CRASHPROT_TRUE CRASHPROT_FALSE ISLINUX_TRUE ISLINUX_FALSE ISMAC_TRUE ISMAC_FALSE IS64BITLINUX_TRUE IS64BITLINUX_FALSE subdirs LTLIBOBJS'
ac_subst_files='' ac_subst_files=''
# Initialize some variables set by options. # Initialize some variables set by options.
@ -20028,7 +20028,8 @@ fi
# set defaults for use on all platforms # set defaults for use on all platforms
SWITCH_AM_CFLAGS="-I${switch_srcdir}/src/include -I${switch_srcdir} -I${prefix}/include" SWITCH_AM_CFLAGS="-I${switch_srcdir}/src/include -I${prefix}/include"
SWITCH_AM_CXXFLAGS="-I${switch_srcdir}/src/include -I${prefix}/include"
SWITCH_AM_LDFLAGS="-L${prefix}/lib -lm -L/usr/local/lib/db42 -L/usr/local/lib" SWITCH_AM_LDFLAGS="-L${prefix}/lib -lm -L/usr/local/lib/db42 -L/usr/local/lib"
#set SOLINK variable based on compiler and host #set SOLINK variable based on compiler and host
@ -20108,6 +20109,48 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
fi fi
if test "x$SWITCH_AM_CXXFLAGS" = "x"; then
test "x$silent" != "xyes" && echo " setting SWITCH_AM_CXXFLAGS to \"-KPIC\""
SWITCH_AM_CXXFLAGS="-KPIC"
else
apr_addto_bugger="-KPIC"
for i in $apr_addto_bugger; do
apr_addto_duplicate="0"
for j in $SWITCH_AM_CXXFLAGS; do
if test "x$i" = "x$j"; then
apr_addto_duplicate="1"
break
fi
done
if test $apr_addto_duplicate = "0"; then
test "x$silent" != "xyes" && echo " adding \"$i\" to SWITCH_AM_CXXFLAGS"
SWITCH_AM_CXXFLAGS="$SWITCH_AM_CXXFLAGS $i"
fi
done
fi
if test "x$SWITCH_AM_CXXFLAGS" = "x"; then
test "x$silent" != "xyes" && echo " setting SWITCH_AM_CXXFLAGS to \"-DPIC\""
SWITCH_AM_CXXFLAGS="-DPIC"
else
apr_addto_bugger="-DPIC"
for i in $apr_addto_bugger; do
apr_addto_duplicate="0"
for j in $SWITCH_AM_CXXFLAGS; do
if test "x$i" = "x$j"; then
apr_addto_duplicate="1"
break
fi
done
if test $apr_addto_duplicate = "0"; then
test "x$silent" != "xyes" && echo " adding \"$i\" to SWITCH_AM_CXXFLAGS"
SWITCH_AM_CXXFLAGS="$SWITCH_AM_CXXFLAGS $i"
fi
done
fi
if test "x$SWITCH_AM_LDFLAGS" = "x"; then if test "x$SWITCH_AM_LDFLAGS" = "x"; then
test "x$silent" != "xyes" && echo " setting SWITCH_AM_LDFLAGS to \"-R${prefix}/lib\"" test "x$silent" != "xyes" && echo " setting SWITCH_AM_LDFLAGS to \"-R${prefix}/lib\""
SWITCH_AM_LDFLAGS="-R${prefix}/lib" SWITCH_AM_LDFLAGS="-R${prefix}/lib"
@ -20150,6 +20193,27 @@ elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
done done
fi fi
if test "x$SWITCH_AM_CXXFLAGS" = "x"; then
test "x$silent" != "xyes" && echo " setting SWITCH_AM_CXXFLAGS to \"-fPIC\""
SWITCH_AM_CXXFLAGS="-fPIC"
else
apr_addto_bugger="-fPIC"
for i in $apr_addto_bugger; do
apr_addto_duplicate="0"
for j in $SWITCH_AM_CXXFLAGS; do
if test "x$i" = "x$j"; then
apr_addto_duplicate="1"
break
fi
done
if test $apr_addto_duplicate = "0"; then
test "x$silent" != "xyes" && echo " adding \"$i\" to SWITCH_AM_CXXFLAGS"
SWITCH_AM_CXXFLAGS="$SWITCH_AM_CXXFLAGS $i"
fi
done
fi
fi fi
# tweak platform specific flags # tweak platform specific flags
@ -20223,6 +20287,28 @@ case "$host" in
esac esac
if test "x$SWITCH_AM_CXXFLAGS" = "x-std=c99"; then
test "x$silent" != "xyes" && echo " nulling SWITCH_AM_CXXFLAGS"
SWITCH_AM_CXXFLAGS=""
else
apr_new_bugger=""
apr_removed=0
for i in $SWITCH_AM_CXXFLAGS; do
if test "x$i" != "x-std=c99"; then
apr_new_bugger="$apr_new_bugger $i"
else
apr_removed=1
fi
done
if test $apr_removed = "1"; then
test "x$silent" != "xyes" && echo " removed \"-std=c99\" from SWITCH_AM_CXXFLAGS"
SWITCH_AM_CXXFLAGS=$apr_new_bugger
fi
fi
@ -24990,7 +25076,7 @@ else
fi fi
ac_config_files="$ac_config_files Makefile src/include/switch_am_config.h" ac_config_files="$ac_config_files Makefile src/include/switch_am_config.h build/modmake.rules"
@ -25717,6 +25803,7 @@ do
# Handling of arguments. # Handling of arguments.
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"src/include/switch_am_config.h" ) CONFIG_FILES="$CONFIG_FILES src/include/switch_am_config.h" ;; "src/include/switch_am_config.h" ) CONFIG_FILES="$CONFIG_FILES src/include/switch_am_config.h" ;;
"build/modmake.rules" ) CONFIG_FILES="$CONFIG_FILES build/modmake.rules" ;;
"src/include/switch_version.h" ) CONFIG_FILES="$CONFIG_FILES src/include/switch_version.h" ;; "src/include/switch_version.h" ) CONFIG_FILES="$CONFIG_FILES src/include/switch_version.h" ;;
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
"src/include/switch_private.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/switch_private.h" ;; "src/include/switch_private.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/switch_private.h" ;;
@ -25876,6 +25963,7 @@ s,@PRTDIAG@,$PRTDIAG,;t t
s,@WANT_DEBUG_TRUE@,$WANT_DEBUG_TRUE,;t t s,@WANT_DEBUG_TRUE@,$WANT_DEBUG_TRUE,;t t
s,@WANT_DEBUG_FALSE@,$WANT_DEBUG_FALSE,;t t s,@WANT_DEBUG_FALSE@,$WANT_DEBUG_FALSE,;t t
s,@SWITCH_AM_CFLAGS@,$SWITCH_AM_CFLAGS,;t t s,@SWITCH_AM_CFLAGS@,$SWITCH_AM_CFLAGS,;t t
s,@SWITCH_AM_CXXFLAGS@,$SWITCH_AM_CXXFLAGS,;t t
s,@SWITCH_AM_LDFLAGS@,$SWITCH_AM_LDFLAGS,;t t s,@SWITCH_AM_LDFLAGS@,$SWITCH_AM_LDFLAGS,;t t
s,@SOLINK@,$SOLINK,;t t s,@SOLINK@,$SOLINK,;t t
s,@DYNAMIC_LIB_EXTEN@,$DYNAMIC_LIB_EXTEN,;t t s,@DYNAMIC_LIB_EXTEN@,$DYNAMIC_LIB_EXTEN,;t t

View File

@ -53,7 +53,8 @@ fi
AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"]) AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
# set defaults for use on all platforms # set defaults for use on all platforms
SWITCH_AM_CFLAGS="-I${switch_srcdir}/src/include -I${switch_srcdir} -I${prefix}/include" SWITCH_AM_CFLAGS="-I${switch_srcdir}/src/include -I${prefix}/include"
SWITCH_AM_CXXFLAGS="-I${switch_srcdir}/src/include -I${prefix}/include"
SWITCH_AM_LDFLAGS="-L${prefix}/lib -lm -L/usr/local/lib/db42 -L/usr/local/lib" SWITCH_AM_LDFLAGS="-L${prefix}/lib -lm -L/usr/local/lib/db42 -L/usr/local/lib"
#set SOLINK variable based on compiler and host #set SOLINK variable based on compiler and host
@ -90,9 +91,12 @@ esac
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
APR_ADDTO(SWITCH_AM_CFLAGS, -KPIC) APR_ADDTO(SWITCH_AM_CFLAGS, -KPIC)
APR_ADDTO(SWITCH_AM_CFLAGS, -DPIC) APR_ADDTO(SWITCH_AM_CFLAGS, -DPIC)
APR_ADDTO(SWITCH_AM_CXXFLAGS, -KPIC)
APR_ADDTO(SWITCH_AM_CXXFLAGS, -DPIC)
APR_ADDTO(SWITCH_AM_LDFLAGS, -R${prefix}/lib) APR_ADDTO(SWITCH_AM_LDFLAGS, -R${prefix}/lib)
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC) APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)
fi fi
# tweak platform specific flags # tweak platform specific flags
@ -106,7 +110,10 @@ case "$host" in
;; ;;
esac esac
APR_REMOVEFROM(SWITCH_AM_CXXFLAGS, -std=c99)
AC_SUBST(SWITCH_AM_CFLAGS) AC_SUBST(SWITCH_AM_CFLAGS)
AC_SUBST(SWITCH_AM_CXXFLAGS)
AC_SUBST(SWITCH_AM_LDFLAGS) AC_SUBST(SWITCH_AM_LDFLAGS)
AC_SUBST(SOLINK) AC_SUBST(SOLINK)
AC_SUBST(DYNAMIC_LIB_EXTEN) AC_SUBST(DYNAMIC_LIB_EXTEN)
@ -270,7 +277,8 @@ AC_ARG_ENABLE(crash-protection,
AM_CONDITIONAL([CRASHPROT],[test "x$enable_crash_prot" != "xno"]) AM_CONDITIONAL([CRASHPROT],[test "x$enable_crash_prot" != "xno"])
AC_CONFIG_FILES([Makefile AC_CONFIG_FILES([Makefile
src/include/switch_am_config.h]) src/include/switch_am_config.h
build/modmake.rules])
AM_CONDITIONAL(ISLINUX, [test `uname -s` = Linux]) AM_CONDITIONAL(ISLINUX, [test `uname -s` = Linux])
AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin]) AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin])

View File

@ -1,11 +1,9 @@
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN) # define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c # and define these variables to imapact your build
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o LOCAL_CFLAGS=
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) LOCAL_LDFLAGS=
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,20 +1,13 @@
CFLAGS += -I$(BASE)/libs/udns # define these targets in your makefile if you wish
LINKER=$(CC) # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/udns
LOCAL_LDFLAGS=
LOCAL_OBJS=$(BASE)/libs/udns/libudns.a
include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/udns && $(MAKE) staticlib cd $(BASE)/libs/udns && $(MAKE) staticlib
%.o: %.c
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS) $(BASE)/libs/udns/libudns.a
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,23 +1,15 @@
# 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
ifeq ($(OSARCH),Darwin) ifeq ($(OSARCH),Darwin)
CFLAGS += -I/Library/Frameworks/swift.framework/Versions/4/Headers LOCAL_CFLAGS += -I/Library/Frameworks/swift.framework/Versions/4/Headers
LDFLAGS += -framework swift LOCAL_LDFLAGS += -framework swift
else else
LDFLAGS += -L/opt/swift/lib -lswift -lceplex_us -lceplang_en -lm LOCAL_LDFLAGS += -L/opt/swift/lib -lswift -lceplex_us -lceplang_en -lm
CFLAGS += -I/opt/swift/include LOCAL_CFLAGS += -I/opt/swift/include
endif endif
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
LINKER=$(CC)
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,18 +1,10 @@
LDFLAGS += -L/opt/lumenvox/engine_7.0/lib -llv_lvspeechport # define these targets in your makefile if you wish
CFLAGS += -fpermissive -Wno-deprecated -Wno-conversion -fpermissive -Wno-unused -Wno-comment -Wno-sign-compare -Wno-conversion -Wno-reorder -I/opt/lumenvox/engine_7.0/include # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
LINKER=g++
CC=g++
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS= -fpermissive -Wno-deprecated -Wno-conversion -fpermissive -Wno-unused -Wno-comment -Wno-sign-compare \
-Wno-conversion -Wno-reorder -I/opt/lumenvox/eng\ine_7.0/include
LOCAL_LDFLAGS= -L/opt/lumenvox/engine_7.0/lib -llv_lvspeechport
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
depends:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).cpp
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).cpp -o $(MODNAME).o
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
install:
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod

View File

@ -1,24 +1,12 @@
ifeq ($(shell ls -d $(BASE)/libs/amr),$(BASE)/libs/amr) ifeq ($(shell ls -d $(BASE)/libs/amr),$(BASE)/libs/amr)
CFLAGS += -I$(PREFIX)/include/amr LOCAL_CFLAGS += -I$(PREFIX)/include/amr
LDFLAGS +=-lamr LOCAL_LDFLAGS +=-lamr
else else
CFLAGS += -DAMR_PASSTHROUGH LOCAL_CFLAGS += -DAMR_PASSTHROUGH
endif endif
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN) include $(BASE)/build/modmake.rules
depends:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,13 +1,10 @@
CFLAGS += -I$(BASE)/libs/codec/g7xx/src/include # define these targets in your makefile if you wish
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN) # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c # and define these variables to imapact your build
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o LOCAL_CFLAGS=-I$(BASE)/libs/codec/g7xx/src/include
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS) LOCAL_LDFLAGS=
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,16 +1,12 @@
CFLAGS +=-I$(BASE)/libs/codec/g7xx/src/include/ # define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/codec/g7xx/src/include/
LOCAL_LDFLAGS=$(BASE)/libs/codec/g7xx/libg7xx.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/codec/g7xx && $(MAKE) cd $(BASE)/libs/codec/g7xx && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/codec/g7xx/libg7xx.la
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,23 +1,7 @@
ifeq ($(shell ls -d $(BASE)/libs/libg723_1),$(BASE)/libs/libg723_1) ifeq ($(shell ls -d $(BASE)/libs/libg723_1),$(BASE)/libs/libg723_1)
LOCAL_CFLAGS += -I$(PREFIX)/include/g723
CFLAGS += -I$(PREFIX)/include/g723 LOCAL_LDFLAGS +=-lg723
LDFLAGS +=-lg723
else else
LOCAL_CFLAGS += -DG723_PASSTHROUGH
CFLAGS += -DG723_PASSTHROUGH
endif endif
include $(BASE)/build/modmake.rules
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,16 +1,12 @@
CFLAGS += -I$(BASE)/libs/codec/g726/src # define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/codec/g726/src
LOCAL_LDFLAGS=
LOCAL_OBJS=$(BASE)/libs/codec/g726/libg726.la
include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/codec/g726 && $(MAKE) cd $(BASE)/libs/codec/g726 && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c ../../../include/switch_bitpack.h
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/codec/g726/libg726.la
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,24 +1,8 @@
ifeq ($(shell ls -d $(BASE)/libs/libg729),$(BASE)/libs/libg729) ifeq ($(shell ls -d $(BASE)/libs/libg729),$(BASE)/libs/libg729)
LOCAL_CFLAGS += -I$(PREFIX)/include/libg729
CFLAGS += -I$(PREFIX)/include/libg729 LOCAL_LDFLAGS +=-lg729
LDFLAGS +=-lg729
else else
LOCAL_CFLAGS += -DG729_PASSTHROUGH
CFLAGS += -DG729_PASSTHROUGH
endif endif
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN) include $(BASE)/build/modmake.rules
depends:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,17 +1,11 @@
LDFLAGS += $(BASE)/libs/codec/gsm/libgsm.la # define these targets in your makefile if you wish
CFLAGS += -I$(BASE)/libs/codec/gsm/inc # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/codec/gsm/inc
LOCAL_LDFLAGS=$(BASE)/libs/codec/gsm/libgsm.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/codec/gsm && $(MAKE) cd $(BASE)/libs/codec/gsm && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,16 +1,11 @@
CFLAGS += -I$(BASE)/libs/codec/ilbc/src # define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/codec/ilbc/src
LOCAL_LDFLAGS=$(BASE)/libs/codec/ilbc/libilbc.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/codec/ilbc && $(MAKE) cd $(BASE)/libs/codec/ilbc && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/codec/ilbc/libilbc.la
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,16 +1,11 @@
CFLAGS+=-I$(BASE)/libs/codec/lpc10/src # define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/codec/lpc10/src
LOCAL_LDFLAGS=$(BASE)/libs/codec/lpc10/liblpc10.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/codec/lpc10 && $(MAKE) cd $(BASE)/libs/codec/lpc10 && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c ../../../include/switch_bitpack.h
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/codec/lpc10/liblpc10.la
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,15 +1,11 @@
CFLAGS+=-I$(BASE)/libs/speex/include # define these targets in your makefile if you wish
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
depends: # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/speex/include
LOCAL_LDFLAGS=$(BASE)/libs/speex/libspeex/libspeex.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
local_depend:
cd $(BASE)/libs/speex && $(MAKE) cd $(BASE)/libs/speex && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/speex/libspeex/libspeex.la
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,20 +1,11 @@
CFLAGS += -DWITH_OPENLDAP -DLDAP_DEPRECATED # define these targets in your makefile if you wish
LDFLAGS += -lldap_r -llber # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
LINKER=$(CC) # and define these variables to imapact your build
LOCAL_CFLAGS=-DWITH_OPENLDAP -DLDAP_DEPRECATED
LOCAL_LDFLAGS=-lldap_r -llber
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
local_depend:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends:
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install openldap-2.3.19.tgz --prefix=$(PREFIX) --disable-bdb --disable-hdb MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install openldap-2.3.19.tgz --prefix=$(PREFIX) --disable-bdb --disable-hdb
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,20 +1,17 @@
LDFLAGS += $(BASE)/libs/libdingaling/libdingaling.la # define these targets in your makefile if you wish
CFLAGS += -I$(BASE)/libs/libdingaling/src # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends: # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/libdingaling/src
LOCAL_LDFLAGS=$(BASE)/libs/libdingaling/libdingaling.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
local_depend:
cd $(BASE)/libs/iksemel && $(MAKE) cd $(BASE)/libs/iksemel && $(MAKE)
cd $(BASE)/libs/libdingaling && $(MAKE) cd $(BASE)/libs/libdingaling && $(MAKE)
depend_install:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
cd $(BASE)/libs/iksemel && $(MAKE) install cd $(BASE)/libs/iksemel && $(MAKE) install
cd $(BASE)/libs/libdingaling && $(MAKE) install cd $(BASE)/libs/libdingaling && $(MAKE) install
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,17 +1,12 @@
CFLAGS += -I$(BASE)/libs/iax/src # define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/iax/src
LOCAL_LDFLAGS=$(BASE)/libs/iax/src/libiax.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/iax && $(MAKE) cd $(BASE)/libs/iax && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS) $(BASE)/libs/iax/src/libiax.la
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,25 +1,18 @@
CFLAGS += -I. -I$(BASE)/libs/portaudio/include # define these targets in your makefile if you wish
MYOBJS = pablio.o pa_ringbuffer.o # 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. -I$(BASE)/libs/portaudio/include
LOCAL_LDFLAGS=$(BASE)/libs/portaudio/lib/libportaudio.la
ifeq ($(OSARCH),Darwin) ifeq ($(OSARCH),Darwin)
LDFLAGS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon LOCAL_LDFLAGS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
endif endif
LOCAL_OBJS=pablio.o pa_ringbuffer.o
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/portaudio && $(MAKE) cd $(BASE)/libs/portaudio && $(MAKE)
%.o: %.c pa_ringbuffer.o: pa_ringbuffer.c
$(CC) $(CFLAGS) -c -o $@ $< $(COMPILE) -D__EXTENSION__=1 -c -o $@ $<
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MYOBJS)
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MYOBJS) $(LDFLAGS) $(BASE)/libs/portaudio/lib/libportaudio.la
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -89,16 +89,17 @@
# define PaUtil_ReadMemoryBarrier() OSMemoryBarrier() # define PaUtil_ReadMemoryBarrier() OSMemoryBarrier()
# define PaUtil_WriteMemoryBarrier() OSMemoryBarrier() # define PaUtil_WriteMemoryBarrier() OSMemoryBarrier()
#elif defined(__GNUC__) #elif defined(__GNUC__)
/* GCC understands volatile asm and "memory" to mean it /* GCC understands volatile asm and "memory" to mean it
* should not reorder memory read/writes */ * should not reorder memory read/writes */
# if defined( __PPC__ ) # if defined( __PPC__ )
# define PaUtil_FullMemoryBarrier() asm volatile("sync":::"memory") # define PaUtil_FullMemoryBarrier() __asm__ volatile("sync":::"memory")
# define PaUtil_ReadMemoryBarrier() asm volatile("sync":::"memory") # define PaUtil_ReadMemoryBarrier() __asm__ volatile("sync":::"memory")
# define PaUtil_WriteMemoryBarrier() asm volatile("sync":::"memory") # define PaUtil_WriteMemoryBarrier() __asm__ volatile("sync":::"memory")
# elif defined( __i386__ ) || defined( __i486__ ) || defined( __i586__ ) || defined( __i686__ ) || defined(__x86_64__) # elif defined( __i386__ ) || defined( __i486__ ) || defined( __i586__ ) || defined( __i686__ ) || defined(__x86_64__)
# define PaUtil_FullMemoryBarrier() asm volatile("mfence":::"memory") # define PaUtil_FullMemoryBarrier() __asm__ volatile("mfence":::"memory")
# define PaUtil_ReadMemoryBarrier() asm volatile("lfence":::"memory") # define PaUtil_ReadMemoryBarrier() __asm__ volatile("lfence":::"memory")
# define PaUtil_WriteMemoryBarrier() asm volatile("sfence":::"memory") # define PaUtil_WriteMemoryBarrier() __asm__ volatile("sfence":::"memory")
# else # else
# define PaUtil_FullMemoryBarrier() # define PaUtil_FullMemoryBarrier()
# define PaUtil_ReadMemoryBarrier() # define PaUtil_ReadMemoryBarrier()

View File

@ -1,32 +1,22 @@
OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/)) OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
LINKER=$(CC)
CFLAGS += -I. -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/bnf -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/features LOCAL_CFLAGS = -I. -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/bnf -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/features
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/http -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/ipt LOCAL_CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/http -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/ipt
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/iptsec -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/msg LOCAL_CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/iptsec -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/msg
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nea -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nta LOCAL_CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nea -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nta
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nth -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nua LOCAL_CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nth -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nua
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/sdp -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/sip LOCAL_CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/sdp -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/sip
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/soa -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/sresolv LOCAL_CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/soa -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/sresolv
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/stun -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/su LOCAL_CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/stun -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/su
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/tport -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/url LOCAL_CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/tport -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/url
LOCAL_LDFLAGS=$(BASE)/libs/sofia-sip/libsofia-sip-ua/libsofia-sip-ua.la
ifeq ($(OS_ARCH),Darwin) ifeq ($(OS_ARCH),Darwin)
LDFLAGS +=-framework CoreFoundation -framework SystemConfiguration LOCAL_LDFLAGS +=-framework CoreFoundation -framework SystemConfiguration
endif endif
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends: include $(BASE)/build/modmake.rules
local_depend:
cd $(BASE)/libs/sofia-sip && $(MAKE) cd $(BASE)/libs/sofia-sip && $(MAKE)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS) $(BASE)/libs/sofia-sip/libsofia-sip-ua/libsofia-sip-ua.la
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,28 +1,12 @@
CFLAGS +=-I/usr/local/include -I/usr/src/libpri -I/usr/src/linux/include -I. -I/usr/include # define these targets in your makefile if you wish
CFLAGS +=-D__LINUX__ -D_REENTRANT -D_GNU_SOURCE -DAFT_A104 -DWANPIPE_TDM_API # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
LDFLAGS += -lsangoma
OBJS = ss7boost_client.o mod_wanpipe.o
ifeq ($(OSARCH),Darwin) # and define these variables to imapact your build
LINKER=g++ LOCAL_CFLAGS =-I/usr/local/include -I/usr/src/libpri -I/usr/src/linux/include -I. -I/usr/include
else LOCAL_CFLAGS +=-D__LINUX__ -D_REENTRANT -D_GNU_SOURCE -DAFT_A104 -DWANPIPE_TDM_API
LINKER=$(CC) LOCAL_LDFLAGS=-lsangoma
endif LOCAL_OBJS=ss7boost_client.o
include $(BASE)/build/modmake.rules
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) local_depend:
depends:
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libsangoma --prefix=$(PREFIX) --with-libpri=/usr/src/libpri MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libsangoma --prefix=$(PREFIX) --with-libpri=/usr/src/libpri
%.o: %.c
$(CC) $(CFLAGS) $(MOD_CFLAGS) -g -ggdb -Werror -fPIC -c $< -o $@
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(OBJS) $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(OBJS) $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,28 +1,18 @@
#CFLAGS += -DSWITCH_QUEUE_ENHANCED # define these targets in your makefile if you wish
#LDFLAGS += -lcurl # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
CPPCC = g++
OBJS=cdrcontainer.o basecdr.o baseregistry.o pddcdr.o csvcdr.o xmlcdr.o sqlitecdr.o # and define these variables to imapact your build
LOCAL_CFLAGS=
LOCAL_LDFLAGS=
LOCAL_OBJS=cdrcontainer.o basecdr.o baseregistry.o pddcdr.o csvcdr.o xmlcdr.o sqlitecdr.o
#LOCAL_CFLAGS += -DSWITCH_QUEUE_ENHANCED
#LOCAL_LDFLAGS += -lcurl
ifneq ($(shell which mysql_config),) ifneq ($(shell which mysql_config),)
CFLAGS += $(shell mysql_config --include) LOCAL_CFLAGS += $(shell mysql_config --include)
LDFLAGS += $(shell mysql_config --libs) LOCAL_LDFLAGS += $(shell mysql_config --libs)
OBJS += mysqlcdr.o LOCAL_OBJS += mysqlcdr.o
endif endif
all: depends $(OBJS) $(MODNAME).$(DYNAMIC_LIB_EXTEN) include $(BASE)/build/modmake.rules
depends:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(OBJS) $(MODNAME).cpp
$(CPPCC) $(CFLAGS) -c $(MODNAME).cpp -o $(MODNAME).o
$(LIBTOOL) --mode=link $(CPPCC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
%.o: %.cpp
$(CPPCC) -Wall -Werror -fPIC $(CFLAGS) -c -o $@ $<
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,17 +1,11 @@
CFLAGS += -I$(BASE)/libs/iksemel/include # define these targets in your makefile if you wish
LDFLAGS += $(BASE)/libs/iksemel/src/libiksemel.la # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/iksemel/include
LOCAL_LDFLAGS=$(BASE)/libs/iksemel/src/libiksemel.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/iksemel && $(MAKE) cd $(BASE)/libs/iksemel && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,19 +1,11 @@
LDFLAGS += -lhowl # define these targets in your makefile if you wish
CFLAGS += -I$(PREFIX)/include/howl # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
LINKER=$(CC)
# and define these variables to imapact your build
LOCAL_CFLAGS=-I$(PREFIX)/include/howl
LOCAL_LDFLAGS=-lhowl
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) local_depend:
depends:
$(BASE)/build/buildlib.sh $(BASE) install howl-1.0.0.tar.gz --prefix=$(PREFIX) $(BASE)/build/buildlib.sh $(BASE) install howl-1.0.0.tar.gz --prefix=$(PREFIX)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,19 +1,12 @@
LDFLAGS += -lshout -lmp3lame # define these targets in your makefile if you wish
MOD_CFLAGS += "-I${PREFIX}/include" # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
MOD_LDFLAGS += "-L${PREFIX}/lib"
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends: # and define these variables to imapact your build
LOCAL_CFLAGS=
LOCAL_LDFLAGS=-lshout -lmp3lame
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
local_depend:
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install lame-3.97.tar.gz --prefix=$(PREFIX) --disable-shared --with-pic MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install lame-3.97.tar.gz --prefix=$(PREFIX) --disable-shared --with-pic
MOD_CFLAGS="${MOD_CFLAGS}" MOD_LDFLAGS="${LD_CFLAGS}" MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libshout-2.2.2.tar.gz --disable-shared --with-pic --prefix=$(PREFIX) MOD_CFLAGS="${ALL_CFLAGS}" MOD_LDFLAGS="${LD_CFLAGS}" MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libshout-2.2.2.tar.gz --disable-shared --with-pic --prefix=$(PREFIX)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
install:
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod

View File

@ -1,19 +1,11 @@
CFLAGS += -I$(BASE)/libs/libsndfile/src # define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/libsndfile/src
LOCAL_LDFLAGS=$(BASE)/libs/libsndfile/src/libsndfile.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/libsndfile && $(MAKE) cd $(BASE)/libs/libsndfile && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS) $(BASE)/libs/libsndfile/src/libsndfile.la
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -3,26 +3,14 @@ TARBALL = mono-1.1.13.8.tar.gz
GLIB_TARBALL = glib-2.12.3.tar.gz GLIB_TARBALL = glib-2.12.3.tar.gz
GETTEXT_TARBALL = gettext-0.15.tar.gz GETTEXT_TARBALL = gettext-0.15.tar.gz
PKGCONFIG_TARBALL = pkg-config-0.21.tar.gz PKGCONFIG_TARBALL = pkg-config-0.21.tar.gz
CFLAGS += `$(PREFIX)/bin/pkg-config --cflags mono`
LDFLAGS += `$(PREFIX)/bin/pkg-config --libs mono`
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) LOCAL_CFLAGS=`$(PREFIX)/bin/pkg-config --cflags mono`
LOCAL_LDFLAGS=`$(PREFIX)/bin/pkg-config --libs mono`
include $(BASE)/build/modmake.rules
depends: local_depend:
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(GETTEXT_TARBALL) --prefix=$(PREFIX) --with-pic MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(GETTEXT_TARBALL) --prefix=$(PREFIX) --with-pic
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(PKGCONFIG_TARBALL) --prefix=$(PREFIX) --with-pic MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(PKGCONFIG_TARBALL) --prefix=$(PREFIX) --with-pic
export PKG_CONFIG=$(PREFIX)/bin/pkg-config; export MSGFMT=$(PREFIX)/bin/; MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(GLIB_TARBALL) --prefix=$(PREFIX) --with-pic export PKG_CONFIG=$(PREFIX)/bin/pkg-config; export MSGFMT=$(PREFIX)/bin/; MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(GLIB_TARBALL) --prefix=$(PREFIX) --with-pic
export PATH=$(PATH):$(PREFIX)/bin/; MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(TARBALL) --prefix=$(PREFIX) --with-pic --with-gc=boehm --with-preview=yes --without-sigaltstack export PATH=$(PATH):$(PREFIX)/bin/; MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(TARBALL) --prefix=$(PREFIX) --with-pic --with-gc=boehm --with-preview=yes --without-sigaltstack
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,50 +1,43 @@
# 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=-DMULTIPLICITY $(shell $(PERL) -MExtUtils::Embed -e ccopts) -DEMBED_PERL
LOCAL_LDFLAGS=$(shell $(PERL) -MExtUtils::Embed -e ldopts) $(shell $(PERL) -MConfig -e 'print $$Config{libs}')
LOCAL_OBJS=perlxsi.o
include $(BASE)/build/modmake.rules
PERL = $(shell which perl) PERL = $(shell which perl)
PERL_LIBDIR =-L$(shell perl -MConfig -e 'print $$Config{archlib}')/CORE PERL_LIBDIR =-L$(shell perl -MConfig -e 'print $$Config{archlib}')/CORE
PERL_LIBS =$(shell perl -MConfig -e 'print $$Config{libs}') PERL_LIBS =$(shell perl -MConfig -e 'print $$Config{libs}')
CFLAGS += -DMULTIPLICITY $(shell $(PERL) -MExtUtils::Embed -e ccopts)
CFLAGS += -DEMBED_PERL
LDFLAGS += $(shell $(PERL) -MExtUtils::Embed -e ldopts)
LDFLAGS += $(shell $(PERL) -MConfig -e 'print $$Config{libs}')
OBJS += perlxsi.o
SWIGCFILE=../../../switch_swig.c SWIGCFILE=../../../switch_swig.c
SWIGIFILE=../../../switch_swig.i SWIGIFILE=../../../switch_swig.i
local_all: fs_perl.$(DYNAMIC_LIB_EXTEN)
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) fs_perl.$(DYNAMIC_LIB_EXTEN)
.perlok: .perlok:
@(${PERL} -V | grep -i usemultiplicity=define >/dev/null && echo Phew, You have the right perl.) \ @(${PERL} -V | grep -i usemultiplicity=define >/dev/null && echo Phew, You have the right perl.) \
|| ((echo Sorry, you need to compile perl with threads and multiplicity.&& exit 1)) || ((echo Sorry, you need to compile perl with threads and multiplicity.&& exit 1))
@touch .perlok @touch .perlok
depends:
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
reswig: reswig:
rm switch_swig_wrap.c rm switch_swig_wrap.c
swig -o switch_swig_wrap.c -l$(SWIGIFILE) -ignoremissing -DMULTIPLICITY -perl5 -module fs_perl $(SWIGCFILE) swig -o switch_swig_wrap.c -l$(SWIGIFILE) -ignoremissing -DMULTIPLICITY -perl5 -module fs_perl $(SWIGCFILE)
switch_swig.o: $(SWIGCFILE) Makefile switch_swig.o: $(SWIGCFILE) Makefile
$(CC) -w $(CFLAGS) -c $< -o $@ $(CC) -w $(ALL_CFLAGS) -c $< -o $@
switch_swig_wrap.o: switch_swig_wrap.c switch_swig_wrap.o: switch_swig_wrap.c
$(CC) -w $(CFLAGS) -c $< -o $@ $(CC) -w $(ALL_CFLAGS) -c $< -o $@
fs_perl.$(DYNAMIC_LIB_EXTEN): $(MODNAME).$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o fs_perl.$(DYNAMIC_LIB_EXTEN): $(MODNAME).$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o
$(LINK) $(SOLINK) -o fs_perl.$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o $(LDFLAGS) $(LINK) $(SOLINK) -o fs_perl.$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o $(LDFLAGS)
local_clean:
rm -fr *~ .perlok
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MODNAME).o $(OBJS) depend_install:
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .perlok .libs
install:
mkdir -p $(PREFIX)/perl mkdir -p $(PREFIX)/perl
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
$(LTINSTALL) fs_perl.$(DYNAMIC_LIB_EXTEN) fs_perl.pm $(PREFIX)/perl $(LTINSTALL) fs_perl.$(DYNAMIC_LIB_EXTEN) fs_perl.pm $(PREFIX)/perl
if [ ! -f $(PREFIX)/perl/freeswitch.pm ] ; then $(LTINSTALL) freeswitch.pm $(PREFIX)/perl ; fi if [ ! -f $(PREFIX)/perl/freeswitch.pm ] ; then $(LTINSTALL) freeswitch.pm $(PREFIX)/perl ; fi

View File

@ -1,32 +1,22 @@
LCFLAGS=-fPIC # define these targets in your makefile if you wish
CFLAGS += -fPIC -I$(PREFIX)/include/python2.4/ # 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
PYMOD=freeswitch PYMOD=freeswitch
LDFLAGS=-lpython2.4 -Xlinker -export-dynamic -L$(PREFIX)/lib/python2.4/config/ -lutil -lstdc++
SWIGCFILE=../../../switch_swig.c SWIGCFILE=../../../switch_swig.c
SWIGIFILE=../../../switch_swig.i SWIGIFILE=../../../switch_swig.i
CPPCC = g++
OBJS=freeswitch_python.o mod_python_wrap.o
#all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PYMOD).$(DYNAMIC_LIB_EXTEN) local_depend:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(OBJS)
depends:
MAKE=$(MAKE) PY_CFLAGS=-fPIC $(BASE)/build/buildlib.sh $(BASE) install Python-2.4.3.tgz --prefix=$(PREFIX) --enable-threads MAKE=$(MAKE) PY_CFLAGS=-fPIC $(BASE)/build/buildlib.sh $(BASE) install Python-2.4.3.tgz --prefix=$(PREFIX) --enable-threads
%.o: %.cpp
$(CPPCC) $(CFLAGS) -c -o $@ $<
%.o: %.c
$(CC) $(LCFLAGS) $(CFLAGS) -c $< -o $@
mod_python.c:
$(CC) $(LCFLAGS) $(CFLAGS) -c mod_python.c -o mod_python.o
reswig: reswig:
# rm -f switch_swig_wrap.c config.m4 CREDITS *${PYMOD}*
# swig -o switch_swig_wrap.c -l$(SWIGIFILE) -ignoremissing -DMULTIPLICITY -python -module $(PYMOD) $(SWIGCFILE)
swig -python -shadow -c++ -o mod_python_wrap.cpp mod_python.i swig -python -shadow -c++ -o mod_python_wrap.cpp mod_python.i
# patch -p0 -i fix.diff
switch_swig_wrap.o: switch_swig_wrap.c Makefile switch_swig_wrap.o: switch_swig_wrap.c Makefile
$(CC) -w $(CFLAGS) -c $< -o $@ $(CC) -w $(CFLAGS) -c $< -o $@
@ -34,20 +24,6 @@ switch_swig_wrap.o: switch_swig_wrap.c Makefile
switch_swig.o: $(SWIGCFILE) Makefile switch_swig.o: $(SWIGCFILE) Makefile
$(CC) -w $(CFLAGS) -c $< -o $@ $(CC) -w $(CFLAGS) -c $< -o $@
local_install:
# $(PYMOD).$(DYNAMIC_LIB_EXTEN): $(MODNAME).$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o Makefile
# $(CC) $(SOLINK) -o py_$(PYMOD).$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o $(LDFLAGS)
# $(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MODNAME).o $(OBJS) switch_swig_wrap.o switch_swig.o Makefile
# $(CC) $(LCFLAGS) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o switch_swig_wrap.o switch_swig.o $(OBJS) $(LDFLAGS)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MODNAME).o $(OBJS) Makefile
$(CC) $(LCFLAGS) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
cp -f freeswitch.py $(PREFIX)/lib/python2.4/site-packages/ cp -f freeswitch.py $(PREFIX)/lib/python2.4/site-packages/

View File

@ -1,23 +1,17 @@
CFLAGS += -I$(BASE)/libs/curl/include
LDFLAGS += $(BASE)/libs/curl/lib/libcurl.la
include sm.mak include sm.mak
LOCAL_CFLAGS += -I$(BASE)/libs/curl/include
LOCAL_LDFLAGS += $(BASE)/libs/curl/lib/libcurl.la
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/curl && $(MAKE) cd $(BASE)/libs/curl && $(MAKE)
cd $(BASE)/libs/js/nsprpub && $(MAKE) cd $(BASE)/libs/js/nsprpub && $(MAKE)
cd $(BASE)/libs/js && $(MAKE) cd $(BASE)/libs/js && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MODNAME).h depend_install:
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
cd $(BASE)/libs/js/nsprpub && $(MAKE) install cd $(BASE)/libs/js/nsprpub && $(MAKE) install
cd $(BASE)/libs/js && $(MAKE) install cd $(BASE)/libs/js && $(MAKE) install
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS) $(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS)
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,2 +1,2 @@
CFLAGS += -I$(BASE)/libs/js/src -I$(BASE)/libs/js/nsprpub/dist/include/nspr -DXP_UNIX -I../mod_spidermonkey -DJS_THREADSAFE -DJS_HAS_FILE_OBJECT=1 LOCAL_CFLAGS = -I$(BASE)/libs/js/src -I$(BASE)/libs/js/nsprpub/dist/include/nspr -DXP_UNIX -I../mod_spidermonkey -DJS_THREADSAFE -DJS_HAS_FILE_OBJECT=1
LDFLAGS += -L$(BASE)/libs/js/nsprpub/pr/src -L$(BASE)/libs/js/nsprpub/dist/lib -lnspr4 $(BASE)/libs/js/libjs.la LOCAL_LDFLAGS = -L$(BASE)/libs/js/nsprpub/pr/src -L$(BASE)/libs/js/nsprpub/dist/lib -lnspr4 $(BASE)/libs/js/libjs.la

View File

@ -1,15 +1,2 @@
include ../mod_spidermonkey/sm.mak include ../mod_spidermonkey/sm.mak
include $(BASE)/build/modmake.rules
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,18 +1,13 @@
include ../mod_spidermonkey/sm.mak include ../mod_spidermonkey/sm.mak
# define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
LDFLAGS+=-letpan # and define these variables to imapact your build
#LOCAL_CFLAGS=
LOCAL_LDFLAGS+=-letpan
#LOCAL_OBJS=
include $(BASE)/build/modmake.rules
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) local_depend:
depends:
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libetpan --prefix=$(PREFIX) MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libetpan --prefix=$(PREFIX)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,17 +1,13 @@
include ../mod_spidermonkey/sm.mak include ../mod_spidermonkey/sm.mak
LDFLAGS+=-lodbc # define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
#LOCAL_CFLAGS=
LOCAL_LDFLAGS+=-lodbc
#LOCAL_OBJS=
include $(BASE)/build/modmake.rules
depends: local_depend:
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install unixODBC-2.2.12.tar.gz --prefix=$(PREFIX) --disable-gui --without-x --with-pic MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install unixODBC-2.2.12.tar.gz --prefix=$(PREFIX) --disable-gui --without-x --with-pic
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,15 +1,3 @@
include ../mod_spidermonkey/sm.mak include ../mod_spidermonkey/sm.mak
include $(BASE)/build/modmake.rules
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,17 +1,5 @@
include ../mod_spidermonkey/sm.mak include ../mod_spidermonkey/sm.mak
CFLAGS+=-I$(BASE)/libs/libteletone/src LOCAL_CFLAGS+=-I$(BASE)/libs/libteletone/src
LDFLAGS+=$(BASE)/libs/libteletone/libteletone.la LOCAL_LDFLAGS+=$(BASE)/libs/libteletone/libteletone.la
include $(BASE)/build/modmake.rules
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,19 +1,11 @@
CFLAGS += -I$(BASE)/libs/curl/include # define these targets in your makefile if you wish
LDFLAGS += $(BASE)/libs/curl/lib/libcurl.la # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) # and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/curl/include
LOCAL_LDFLAGS=$(BASE)/libs/curl/lib/libcurl.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
depends: local_depend:
cd $(BASE)/libs/curl && $(MAKE) cd $(BASE)/libs/curl && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod

View File

@ -1,23 +1,12 @@
#LDFLAGS += -lxmlrpc -lxmlrpc_abyss -lxmlrpc_server -lxmlrpc_server_abyss -lxmlrpc_xmlparse
LDFLAGS += $(BASE)/libs/xmlrpc-c/src/libxmlrpc.la $(BASE)/libs/xmlrpc-c/src/libxmlrpc_server.la
LDFLAGS += $(BASE)/libs/xmlrpc-c/src/libxmlrpc_server_abyss.la $(BASE)/libs/xmlrpc-c/lib/abyss/src/libxmlrpc_abyss.la
LDFLAGS += $(BASE)/libs/xmlrpc-c/lib/expat/xmlparse/libxmlrpc_xmlparse.la
CFLAGS += -I$(BASE)/libs/xmlrpc-c/include LOCAL_LDFLAGS = $(BASE)/libs/xmlrpc-c/src/libxmlrpc.la $(BASE)/libs/xmlrpc-c/src/libxmlrpc_server.la
LOCAL_LDFLAGS += $(BASE)/libs/xmlrpc-c/src/libxmlrpc_server_abyss.la $(BASE)/libs/xmlrpc-c/lib/abyss/src/libxmlrpc_abyss.la
LOCAL_LDFLAGS += $(BASE)/libs/xmlrpc-c/lib/expat/xmlparse/libxmlrpc_xmlparse.la
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) LOCAL_CFLAGS=-I$(BASE)/libs/xmlrpc-c/include
depends: include $(BASE)/build/modmake.rules
local_depend:
cd $(BASE)/libs/xmlrpc-c && $(MAKE) cd $(BASE)/libs/xmlrpc-c && $(MAKE)
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod