diff --git a/build/modmake.rules.in b/build/modmake.rules.in index 1d68c39ef6..b61420ad6f 100644 --- a/build/modmake.rules.in +++ b/build/modmake.rules.in @@ -21,21 +21,18 @@ LIBCURL_CPPFLAGS=@LIBCURL_CPPFLAGS@ CURL_DIR=$(switch_srcdir)/libs/curl CURLLA=$(CURL_DIR)/lib/libcurl.la -OUR_CFLAGS=$(shell test -z "$(WANT_CURL)" || echo $(LIBCURL_CPPFLAGS)) -OUR_LDFLAGS=$(shell test -z "$(WANT_CURL)" || echo $(LIBCURL)) -OUR_DEPS=$(shell test -z "$(WANT_CURL)" || if test ! -z "$(LIBCURL_DEPS)"; then echo $(CURLLA); fi) - -LDFLAGS=@SWITCH_AM_LDFLAGS@ @LDFLAGS@ $(OUR_LDFLAGS) LIBS=$(switch_builddir)/libfreeswitch.la DEFS=@DEFS@ PREFIX = @prefix@ DYLD_LIBRARY_PATH=$(PREFIX)/lib:$DYLD_LIBRARY_PATH LD_LIBRARY_PATH=$(PREFIX)/lib:$LD_LIBRARY_PATH -OSARCH=$(shell uname -s) +OSARCH=`uname -s` DYNAMIC_LIB_EXTEN = @DYNAMIC_LIB_EXTEN@ SOLINK = @SOLINK@ +LDFLAGS=@SWITCH_AM_LDFLAGS@ @LDFLAGS@ $(OUR_LDFLAGS) + ALL_CFLAGS = $(LOCAL_CFLAGS) $(MOD_CFLAGS) @SWITCH_AM_CFLAGS@ @CFLAGS@ -D_GNU_SOURCE $(OUR_CFLAGS) ALL_CXXFLAGS = $(LOCAL_CFLAGS) $(MOD_CFLAGS) @SWITCH_AM_CXXFLAGS@ @CXXFLAGS@ -D_GNU_SOURC $(OUR_CFLAGS) @@ -47,24 +44,64 @@ CXXCOMPILE = $(CXX) $(ALL_CXXFLAGS) $(DEFS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile --tag=CXX $(CXXCOMPILE) CXXLINK = $(LIBTOOL) --mode=link --tag=CXX $(CXXLD) $(ALL_CXXFLAGS) $(LDFLAGS) -o $@ -CURDIR=$(shell pwd) -CSOURCEFILE=$(CURDIR)/$(MODNAME).c -CXXSOURCEFILE=$(CURDIR)/$(MODNAME).cpp -SOURCEFILE=$(shell if test -f $(CSOURCEFILE); then echo $(CSOURCEFILE); else echo $(CXXSOURCEFILE); fi;) +CSOURCEFILE=$(MODNAME).c +CXXSOURCEFILE=$(MODNAME).cpp -all: local_depend local_all $(MODNAME).$(DYNAMIC_LIB_EXTEN) Makefile -depend: local_depend -clean: local_clean mod_clean -install: all depend_install local_install mod_install -uninstall: local_uninstall mod_uninstall -distclean: clean local_distclean -extraclean: distclean local_extraclean +RECURSE_MODNAME=`pwd | sed -e 's|^.*/||'` +RECURSE_SOURCEFILE=`if test -f $$modname.cpp; then echo $$modname.cpp; else echo $$modname.c; fi` +RECURSE_OUR_DEPS=`test -z "$(WANT_CURL)" || if test ! -z "$(LIBCURL_DEPS)"; then echo $(CURLLA); fi` +RECURSE_OUR_CFLAGS=`test -z "$(WANT_CURL)" || echo $(LIBCURL_CPPFLAGS)` +RECURSE_OUR_LDFLAGS=`test -z "$(WANT_CURL)" || echo $(LIBCURL)` +RECURSE_CHECKS=if test -z "$(MODNAME)" || test -z "$(SOURCEFILE)" || test -z "$(OUR_DEPS)" ; \ + then modname=$(RECURSE_MODNAME) ; \ + sourcefile=$(RECURSE_SOURCEFILE) ; \ + ourdefs=$(RECURSE_OUR_DEPS) ; \ + ourcflags=$(RECURSE_OUR_CFLAGS) ; \ + ourldflags=$(RECURSE_OUR_LDFLAGS) ; + +all: Makefile + @$(RECURSE_CHECKS) \ + $(MAKE) MODNAME=$$modname SOURCEFILE=$$sourcefile OUR_DEPS=$$ourdefs OUR_CFLAGS=$$ourcflags OUR_LDFLAGS=$$our_ldflags all-modules || exit 1;\ + fi +depend: Makefile + @$(RECURSE_CHECKS) \ + $(MAKE) MODNAME=$$modname SOURCEFILE=$$sourcefile OUR_DEPS=$$ourdefs OUR_CFLAGS=$$ourcflags OUR_LDFLAGS=$$our_ldflags depend-modules || exit 1;\ + fi +clean: Makefile + @$(RECURSE_CHECKS) \ + $(MAKE) MODNAME=$$modname SOURCEFILE=$$sourcefile OUR_DEPS=$$ourdefs OUR_CFLAGS=$$ourcflags OUR_LDFLAGS=$$our_ldflags clean-modules || exit 1;\ + fi +install: Makefile + @$(RECURSE_CHECKS) \ + $(MAKE) MODNAME=$$modname SOURCEFILE=$$sourcefile OUR_DEPS=$$ourdefs OUR_CFLAGS=$$ourcflags OUR_LDFLAGS=$$our_ldflags install-modules || exit 1;\ + fi +uninstall: Makefile + @$(RECURSE_CHECKS) \ + $(MAKE) MODNAME=$$modname SOURCEFILE=$$sourcefile OUR_DEPS=$$ourdefs OUR_CFLAGS=$$ourcflags OUR_LDFLAGS=$$our_ldflags uninstall-modules || exit 1;\ + fi +distclean: Makefile + @$(RECURSE_CHECKS) \ + $(MAKE) MODNAME=$$modname SOURCEFILE=$$sourcefile OUR_DEPS=$$ourdefs OUR_CFLAGS=$$ourcflags OUR_LDFLAGS=$$our_ldflags distclean-modules || exit 1;\ + fi +extraclean: Makefile + @$(RECURSE_CHECKS) \ + $(MAKE) MODNAME=$$modname SOURCEFILE=$$sourcefile OUR_DEPS=$$ourdefs OUR_CFLAGS=$$ourcflags OUR_LDFLAGS=$$our_ldflags extraclean-modules || exit 1;\ + fi + + +all-modules: local_depend local_all $(MODNAME).$(DYNAMIC_LIB_EXTEN) Makefile +depend-modules: local_depend +clean-modules: local_clean mod_clean +install-modules: all depend_install local_install mod_install +uninstall-modules: local_uninstall mod_uninstall +distclean-modules: clean local_distclean +extraclean-modules: distclean local_extraclean Makefile: - if test ! -f $@; then \ - echo MODNAME=$(MODNAME) > Makefile ; \ + @if test ! -f $@; then \ if ! pwd | grep $(switch_srcdir)/src/mod ; then rulesdir=$(switch_srcdir) ; else rulesdir=../../../.. ; fi ; \ - echo include $$rulesdir/build/modmake.rules >> Makefile ; \ + echo BASE=$$rulesdir > Makefile ; \ + echo "include $(BASE)/build/modmake.rules" >> Makefile ; \ fi ; $(CURLLA): @@ -171,7 +208,8 @@ $(switch_srcdir)/src/include/switch_log.h: $(switch_srcdir)/src/include/switch_xml.h: -.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 + +.PHONY: all clean depend install distclean extraclean \ + all-modules clean-modules depend-modules install-modules distclean-modules extraclean-modules \ + local_all local_clean local_depend local_install local_distclean local_extraclean \ + mod_clean mod_install mod_uninstall depend_install diff --git a/src/mod/applications/mod_enum/Makefile b/src/mod/applications/mod_enum/Makefile index cc145874c9..060c5e7fda 100644 --- a/src/mod/applications/mod_enum/Makefile +++ b/src/mod/applications/mod_enum/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_enum + BASE=../../../.. UDNSA=$(BASE)/libs/udns/libudns.a LOCAL_CFLAGS=-I$(BASE)/libs/udns diff --git a/src/mod/asr_tts/mod_cepstral/Makefile b/src/mod/asr_tts/mod_cepstral/Makefile index e5ff260078..c96e2b3996 100644 --- a/src/mod/asr_tts/mod_cepstral/Makefile +++ b/src/mod/asr_tts/mod_cepstral/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: OSARCH=$(shell uname -s) # and define these variables to impact your build -MODNAME=mod_cepstral + ifeq ($(OSARCH),Darwin) LOCAL_LDFLAGS += -framework swift diff --git a/src/mod/asr_tts/mod_lumenvox/Makefile b/src/mod/asr_tts/mod_lumenvox/Makefile index 75bea42da1..7d933bf15a 100644 --- a/src/mod/asr_tts/mod_lumenvox/Makefile +++ b/src/mod/asr_tts/mod_lumenvox/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_lumenvox + 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 diff --git a/src/mod/codecs/mod_amr/Makefile b/src/mod/codecs/mod_amr/Makefile index bbdc825752..30d1c53337 100644 --- a/src/mod/codecs/mod_amr/Makefile +++ b/src/mod/codecs/mod_amr/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_amr + BASE=../../../.. topdir=$(shell cd $(BASE) && pwd) diff --git a/src/mod/codecs/mod_g711/Makefile b/src/mod/codecs/mod_g711/Makefile index 3d182e6c9c..beb0e8db72 100644 --- a/src/mod/codecs/mod_g711/Makefile +++ b/src/mod/codecs/mod_g711/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_g711 + LOCAL_CFLAGS=-I$(BASE)/libs/codec/g7xx/src/include LOCAL_LDFLAGS= LOCAL_OBJS= diff --git a/src/mod/codecs/mod_g722/Makefile b/src/mod/codecs/mod_g722/Makefile index 60aca28462..28c7ded049 100644 --- a/src/mod/codecs/mod_g722/Makefile +++ b/src/mod/codecs/mod_g722/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_g722 + BASE=../../../.. G7XXLA=$(BASE)/libs/codec/g7xx/libg7xx.la LOCAL_CFLAGS=-I$(BASE)/libs/codec/g7xx/src/include/ diff --git a/src/mod/codecs/mod_g723_1/Makefile b/src/mod/codecs/mod_g723_1/Makefile index bf699a3fd9..241ebe5c97 100644 --- a/src/mod/codecs/mod_g723_1/Makefile +++ b/src/mod/codecs/mod_g723_1/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_g723_1 + BASE=../../../.. topdir=$(shell cd $(BASE) && pwd) ifeq ($(shell test -d $(topdir)/libs/libg723_1 && cd $(topdir)/libs/libg723_1 && pwd),$(topdir)/libs/libg723_1) diff --git a/src/mod/codecs/mod_g726/Makefile b/src/mod/codecs/mod_g726/Makefile index 8224780902..0c1b49e6d0 100644 --- a/src/mod/codecs/mod_g726/Makefile +++ b/src/mod/codecs/mod_g726/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_g726 + BASE=../../../.. G726LA=$(BASE)/libs/codec/g726/libg726.la LOCAL_CFLAGS=-I$(BASE)/libs/codec/g726/src diff --git a/src/mod/codecs/mod_g729/Makefile b/src/mod/codecs/mod_g729/Makefile index 9000b2a29e..aa98f19779 100644 --- a/src/mod/codecs/mod_g729/Makefile +++ b/src/mod/codecs/mod_g729/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_g729 + BASE=../../../.. topdir=$(shell cd $(BASE) && pwd) ifeq ($(shell test -d $(topdir)/libs/libg729 && cd $(topdir)/libs/libg729 && pwd),$(topdir)/libs/libg729) diff --git a/src/mod/codecs/mod_gsm/Makefile b/src/mod/codecs/mod_gsm/Makefile index 0ee7c15fac..6e3649b64c 100644 --- a/src/mod/codecs/mod_gsm/Makefile +++ b/src/mod/codecs/mod_gsm/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_gsm + BASE=../../../.. GSMLA=$(BASE)/libs/codec/gsm/libgsm.la LOCAL_CFLAGS=-I$(BASE)/libs/codec/gsm/inc diff --git a/src/mod/codecs/mod_ilbc/Makefile b/src/mod/codecs/mod_ilbc/Makefile index 39a9b0a93a..34aa9b4da3 100644 --- a/src/mod/codecs/mod_ilbc/Makefile +++ b/src/mod/codecs/mod_ilbc/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_ilbc + BASE=../../../.. ILBCLA=$(BASE)/libs/codec/ilbc/libilbc.la LOCAL_CFLAGS=-I$(BASE)/libs/codec/ilbc/src diff --git a/src/mod/codecs/mod_lpc10/Makefile b/src/mod/codecs/mod_lpc10/Makefile index f5e969293a..985a328449 100644 --- a/src/mod/codecs/mod_lpc10/Makefile +++ b/src/mod/codecs/mod_lpc10/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_lpc10 + BASE=../../../.. LPC10LA=$(BASE)/libs/codec/lpc10/liblpc10.la LOCAL_CFLAGS=-I$(BASE)/libs/codec/lpc10/src diff --git a/src/mod/codecs/mod_speex/Makefile b/src/mod/codecs/mod_speex/Makefile index f5f2fe0dbc..2a95459a5f 100644 --- a/src/mod/codecs/mod_speex/Makefile +++ b/src/mod/codecs/mod_speex/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_speex + BASE=../../../.. diff --git a/src/mod/directories/mod_ldap/Makefile b/src/mod/directories/mod_ldap/Makefile index 0e5a32344c..647ad49ade 100644 --- a/src/mod/directories/mod_ldap/Makefile +++ b/src/mod/directories/mod_ldap/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_ldap + switch_srcdir=../../../.. LDAP=openldap-2.3.19 diff --git a/src/mod/endpoints/mod_dingaling/Makefile b/src/mod/endpoints/mod_dingaling/Makefile index f8eaa5f0b2..7ed422b5a5 100644 --- a/src/mod/endpoints/mod_dingaling/Makefile +++ b/src/mod/endpoints/mod_dingaling/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_dingaling + BASE=../../../.. IKSEMELLA=$(BASE)/libs/iksemel/src/libiksemel.la diff --git a/src/mod/endpoints/mod_iax/Makefile b/src/mod/endpoints/mod_iax/Makefile index 528edfe875..33a8050c70 100644 --- a/src/mod/endpoints/mod_iax/Makefile +++ b/src/mod/endpoints/mod_iax/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_iax + BASE=../../../.. IAXLA=$(BASE)/libs/iax/src/libiax.la LOCAL_CFLAGS=-I$(BASE)/libs/iax/src diff --git a/src/mod/endpoints/mod_portaudio/Makefile b/src/mod/endpoints/mod_portaudio/Makefile index eb7d36df23..305fbf16bc 100644 --- a/src/mod/endpoints/mod_portaudio/Makefile +++ b/src/mod/endpoints/mod_portaudio/Makefile @@ -1,6 +1,6 @@ BASE=../../../.. OSARCH=$(shell uname -s) -MODNAME=mod_portaudio + BASE=../../../.. PALA=$(BASE)/libs/portaudio/lib/libportaudio.la diff --git a/src/mod/endpoints/mod_sofia/Makefile b/src/mod/endpoints/mod_sofia/Makefile index e1287495be..d6437c7465 100644 --- a/src/mod/endpoints/mod_sofia/Makefile +++ b/src/mod/endpoints/mod_sofia/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_sofia + BASE=../../../.. diff --git a/src/mod/endpoints/mod_wanpipe/Makefile b/src/mod/endpoints/mod_wanpipe/Makefile index 1ad0ea879c..04f810a5a9 100644 --- a/src/mod/endpoints/mod_wanpipe/Makefile +++ b/src/mod/endpoints/mod_wanpipe/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_wanpipe + LOCAL_CFLAGS =-I/usr/local/include -I/usr/src/libpri -I/usr/src/linux/include -I. -I/usr/include LOCAL_CFLAGS +=-D__LINUX__ -D_REENTRANT -D_GNU_SOURCE -DAFT_A104 -DWANPIPE_TDM_API -I$(switch_srcdir)/libs/libteletone/src LOCAL_LDFLAGS=-lsangoma $(BASE)/libs/libteletone/libteletone.la diff --git a/src/mod/event_handlers/mod_cdr/Makefile b/src/mod/event_handlers/mod_cdr/Makefile index 944a4650f4..6de5933e2e 100644 --- a/src/mod/event_handlers/mod_cdr/Makefile +++ b/src/mod/event_handlers/mod_cdr/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_cdr + LOCAL_CFLAGS= LOCAL_LDFLAGS= LOCAL_OBJS=cdrcontainer.o basecdr.o baseregistry.o pddcdr.o csvcdr.o xmlcdr.o sqlitecdr.o diff --git a/src/mod/event_handlers/mod_xmpp_event/Makefile b/src/mod/event_handlers/mod_xmpp_event/Makefile index ff2e378efb..d6e0ce8fe9 100644 --- a/src/mod/event_handlers/mod_xmpp_event/Makefile +++ b/src/mod/event_handlers/mod_xmpp_event/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_xmpp_event + BASE=../../../.. IKSEMELLA=$(BASE)/libs/iksemel/src/libiksemel.la diff --git a/src/mod/event_handlers/mod_zeroconf/Makefile b/src/mod/event_handlers/mod_zeroconf/Makefile index 0a7680c970..514494217b 100644 --- a/src/mod/event_handlers/mod_zeroconf/Makefile +++ b/src/mod/event_handlers/mod_zeroconf/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_zeroconf + switch_srcdir=../../../.. HOWL=howl-1.0.0 diff --git a/src/mod/formats/mod_shout/Makefile b/src/mod/formats/mod_shout/Makefile index 3926de1657..5fcc549f23 100644 --- a/src/mod/formats/mod_shout/Makefile +++ b/src/mod/formats/mod_shout/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_shout + LAME=lame-3.97 SHOUT=libshout-2.2.2 switch_srcdir=../../../.. diff --git a/src/mod/formats/mod_sndfile/Makefile b/src/mod/formats/mod_sndfile/Makefile index 6166f4de7e..dd3ab82658 100644 --- a/src/mod/formats/mod_sndfile/Makefile +++ b/src/mod/formats/mod_sndfile/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_sndfile + BASE=../../../.. diff --git a/src/mod/languages/mod_mono/Makefile b/src/mod/languages/mod_mono/Makefile index a333e0f259..a01808e142 100644 --- a/src/mod/languages/mod_mono/Makefile +++ b/src/mod/languages/mod_mono/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_mono + VERSION = mono-1.1.13.8 TARBALL = mono-1.1.13.8.tar.gz GLIB_TARBALL = glib-2.12.3.tar.gz diff --git a/src/mod/languages/mod_perl/Makefile b/src/mod/languages/mod_perl/Makefile index 2b08ca2910..c989324ab0 100644 --- a/src/mod/languages/mod_perl/Makefile +++ b/src/mod/languages/mod_perl/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_perl + 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 diff --git a/src/mod/languages/mod_python/Makefile b/src/mod/languages/mod_python/Makefile index 3ef92765e0..da4031ea66 100644 --- a/src/mod/languages/mod_python/Makefile +++ b/src/mod/languages/mod_python/Makefile @@ -2,7 +2,7 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_python + 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 diff --git a/src/mod/languages/mod_spidermonkey/Makefile b/src/mod/languages/mod_spidermonkey/Makefile index f0f295c058..0489478ff1 100644 --- a/src/mod/languages/mod_spidermonkey/Makefile +++ b/src/mod/languages/mod_spidermonkey/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_spidermonkey + WANT_CURL=yes LOCAL_CFLAGS= diff --git a/src/mod/languages/mod_spidermonkey_core_db/Makefile b/src/mod/languages/mod_spidermonkey_core_db/Makefile index 0c3c4df326..2734c2113b 100644 --- a/src/mod/languages/mod_spidermonkey_core_db/Makefile +++ b/src/mod/languages/mod_spidermonkey_core_db/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_spidermonkey_core_db + switch_srcdir=../../../.. LOCAL_CFLAGS= LOCAL_LDFLAGS= diff --git a/src/mod/languages/mod_spidermonkey_etpan/Makefile b/src/mod/languages/mod_spidermonkey_etpan/Makefile index ca767e88b8..35c68c8359 100644 --- a/src/mod/languages/mod_spidermonkey_etpan/Makefile +++ b/src/mod/languages/mod_spidermonkey_etpan/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_spidermonkey_etpan + switch_srcdir=../../../.. diff --git a/src/mod/languages/mod_spidermonkey_odbc/Makefile b/src/mod/languages/mod_spidermonkey_odbc/Makefile index f228911e1b..ac00c93426 100644 --- a/src/mod/languages/mod_spidermonkey_odbc/Makefile +++ b/src/mod/languages/mod_spidermonkey_odbc/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_spidermonkey_odbc + switch_srcdir=../../../.. ODBC=unixODBC-2.2.12 diff --git a/src/mod/languages/mod_spidermonkey_skel/Makefile b/src/mod/languages/mod_spidermonkey_skel/Makefile index c1083d199d..2734c2113b 100644 --- a/src/mod/languages/mod_spidermonkey_skel/Makefile +++ b/src/mod/languages/mod_spidermonkey_skel/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_spidermonkey_skel + switch_srcdir=../../../.. LOCAL_CFLAGS= LOCAL_LDFLAGS= diff --git a/src/mod/languages/mod_spidermonkey_teletone/Makefile b/src/mod/languages/mod_spidermonkey_teletone/Makefile index bf7b763d3a..0524e79da1 100644 --- a/src/mod/languages/mod_spidermonkey_teletone/Makefile +++ b/src/mod/languages/mod_spidermonkey_teletone/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_spidermonkey_teletone + switch_srcdir=../../../.. LOCAL_CFLAGS=-I$(switch_srcdir)/libs/libteletone/src LOCAL_LDFLAGS= diff --git a/src/mod/xml_int/mod_xml_curl/Makefile b/src/mod/xml_int/mod_xml_curl/Makefile index 2244e8c0c3..cb9eba2527 100644 --- a/src/mod/xml_int/mod_xml_curl/Makefile +++ b/src/mod/xml_int/mod_xml_curl/Makefile @@ -2,6 +2,6 @@ # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean: # and define these variables to impact your build -MODNAME=mod_xml_curl + WANT_CURL=yes include ../../../../build/modmake.rules diff --git a/src/mod/xml_int/mod_xml_rpc/Makefile b/src/mod/xml_int/mod_xml_rpc/Makefile index 93d59bc222..97522cad20 100644 --- a/src/mod/xml_int/mod_xml_rpc/Makefile +++ b/src/mod/xml_int/mod_xml_rpc/Makefile @@ -1,4 +1,4 @@ -MODNAME=mod_xml_rpc + BASE=../../../.. XMLRPCLAS = $(BASE)/libs/xmlrpc-c/src/libxmlrpc.la $(BASE)/libs/xmlrpc-c/src/libxmlrpc_server.la