[Freeswitch-svn] [commit] r4602 - in freeswitch/trunk: . libs/iksemel libs/libdingaling src/mod src/mod/applications/mod_enum src/mod/codecs/mod_amr src/mod/codecs/mod_g722 src/mod/codecs/mod_g723_1 src/mod/codecs/mod_g726 src/mod/codecs/mod_g729 src/mod/codecs/mod_gsm src/mod/codecs/mod_ilbc src/mod/codecs/mod_lpc10 src/mod/codecs/mod_speex src/mod/directories/mod_ldap src/mod/endpoints/mod_dingaling src/mod/endpoints/mod_iax src/mod/endpoints/mod_portaudio src/mod/endpoints/mod_sofia src/mod/event_handlers/mod_xmpp_event src/mod/formats/mod_sndfile src/mod/xml_int/mod_xml_rpc
Freeswitch SVN
mikej at freeswitch.org
Thu Mar 15 00:32:10 EDT 2007
Author: mikej
Date: Thu Mar 15 00:32:09 2007
New Revision: 4602
Added:
freeswitch/trunk/libs/iksemel/configure.gnu
Modified:
freeswitch/trunk/Makefile.am
freeswitch/trunk/Makefile.in
freeswitch/trunk/libs/libdingaling/Makefile.am
freeswitch/trunk/libs/libdingaling/Makefile.in
freeswitch/trunk/src/mod/Makefile.am
freeswitch/trunk/src/mod/Makefile.in
freeswitch/trunk/src/mod/applications/mod_enum/Makefile
freeswitch/trunk/src/mod/codecs/mod_amr/Makefile
freeswitch/trunk/src/mod/codecs/mod_g722/Makefile
freeswitch/trunk/src/mod/codecs/mod_g723_1/Makefile
freeswitch/trunk/src/mod/codecs/mod_g726/Makefile
freeswitch/trunk/src/mod/codecs/mod_g729/Makefile
freeswitch/trunk/src/mod/codecs/mod_gsm/Makefile
freeswitch/trunk/src/mod/codecs/mod_ilbc/Makefile
freeswitch/trunk/src/mod/codecs/mod_lpc10/Makefile
freeswitch/trunk/src/mod/codecs/mod_speex/Makefile
freeswitch/trunk/src/mod/directories/mod_ldap/Makefile
freeswitch/trunk/src/mod/endpoints/mod_dingaling/Makefile
freeswitch/trunk/src/mod/endpoints/mod_iax/Makefile
freeswitch/trunk/src/mod/endpoints/mod_portaudio/Makefile
freeswitch/trunk/src/mod/endpoints/mod_sofia/Makefile
freeswitch/trunk/src/mod/event_handlers/mod_xmpp_event/Makefile
freeswitch/trunk/src/mod/formats/mod_sndfile/Makefile
freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/Makefile
Log:
do a better job with dependency tracking so the the mods don't keep trying to build or install when they don't need to. This should start to help with the speed of the build.
Modified: freeswitch/trunk/Makefile.am
==============================================================================
--- freeswitch/trunk/Makefile.am (original)
+++ freeswitch/trunk/Makefile.am Thu Mar 15 00:32:09 2007
@@ -85,7 +85,7 @@
libfreeswitch_la_LIBADD = $(CORE_LIBS)
nodist_libfreeswitch_la_SOURCES = src/include/switch_version.h
-$(libfreeswitch_la_SOURCES): deps
+$(libfreeswitch_la_SOURCES): $(CORE_LIBS)
MOD_LINK = $(BASE)/libfreeswitch.la
@@ -144,29 +144,15 @@
yesdepends:
rm .nodepends
-sqlite:
+$(CORE_LIBS):
cd libs/sqlite && $(MAKE)
-
-apr:
cd libs/apr && $(MAKE)
-
-apr-util:
cd libs/apr-util && $(MAKE)
-
-pcre:
cd libs/pcre && $(MAKE)
-
-srtp:
cd libs/srtp && $(MAKE)
-
-resample:
cd libs/libresample && $(MAKE)
-
-teletone:
cd libs/libteletone && $(MAKE)
-deps: sqlite apr apr-util pcre srtp resample teletone
-
core: deps libfreeswitch.la
install_core: install-libLTLIBRARIES
Modified: freeswitch/trunk/Makefile.in
==============================================================================
--- freeswitch/trunk/Makefile.in (original)
+++ freeswitch/trunk/Makefile.in Thu Mar 15 00:32:09 2007
@@ -1085,7 +1085,7 @@
uninstall-libLTLIBRARIES uninstall-library_includeHEADERS
-$(libfreeswitch_la_SOURCES): deps
+$(libfreeswitch_la_SOURCES): $(CORE_LIBS)
install-data-local:
@echo Installing $(NAME)
@@ -1133,29 +1133,15 @@
yesdepends:
rm .nodepends
-sqlite:
+$(CORE_LIBS):
cd libs/sqlite && $(MAKE)
-
-apr:
cd libs/apr && $(MAKE)
-
-apr-util:
cd libs/apr-util && $(MAKE)
-
-pcre:
cd libs/pcre && $(MAKE)
-
-srtp:
cd libs/srtp && $(MAKE)
-
-resample:
cd libs/libresample && $(MAKE)
-
-teletone:
cd libs/libteletone && $(MAKE)
-deps: sqlite apr apr-util pcre srtp resample teletone
-
core: deps libfreeswitch.la
install_core: install-libLTLIBRARIES
Added: freeswitch/trunk/libs/iksemel/configure.gnu
==============================================================================
--- (empty file)
+++ freeswitch/trunk/libs/iksemel/configure.gnu Thu Mar 15 00:32:09 2007
@@ -0,0 +1,3 @@
+#! /bin/sh
+./configure "$@" --disable-shared --with-pic
+
Modified: freeswitch/trunk/libs/libdingaling/Makefile.am
==============================================================================
--- freeswitch/trunk/libs/libdingaling/Makefile.am (original)
+++ freeswitch/trunk/libs/libdingaling/Makefile.am Thu Mar 15 00:32:09 2007
@@ -16,12 +16,13 @@
AM_CFLAGS += $(shell $(APU_CONFIG) --includes)
AM_LDFLAGS += $(shell $(APU_CONFIG) --link-ld --libs )
AM_CFLAGS += -I../iksemel/include
-AM_LDFLAGS += ../iksemel/src/libiksemel.la
+
lib_LTLIBRARIES = libdingaling.la
libdingaling_la_SOURCES = src/libdingaling.c src/sha1.c
libdingaling_la_CFLAGS = $(AM_CFLAGS)
libdingaling_la_LDFLAGS =
+libdingaling_la_LIBADD = ../iksemel/src/libiksemel.la
library_includedir = $(prefix)/include
library_include_HEADERS = src/libdingaling.h
Modified: freeswitch/trunk/libs/libdingaling/Makefile.in
==============================================================================
--- freeswitch/trunk/libs/libdingaling/Makefile.in (original)
+++ freeswitch/trunk/libs/libdingaling/Makefile.in Thu Mar 15 00:32:09 2007
@@ -74,7 +74,7 @@
"$(DESTDIR)$(library_includedir)"
libLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(lib_LTLIBRARIES)
-libdingaling_la_LIBADD =
+libdingaling_la_DEPENDENCIES = ../iksemel/src/libiksemel.la
am_libdingaling_la_OBJECTS = libdingaling_la-libdingaling.lo \
libdingaling_la-sha1.lo
libdingaling_la_OBJECTS = $(am_libdingaling_la_OBJECTS)
@@ -227,14 +227,14 @@
-I../iksemel/include
AM_CPPFLAGS = $(AM_CFLAGS)
AM_LDFLAGS = $(new_AM_LDFLAGS) -L$(PREFIX)/lib $(shell $(APR_CONFIG) \
- --link-ld --libs ) $(shell $(APU_CONFIG) --link-ld --libs ) \
- ../iksemel/src/libiksemel.la
+ --link-ld --libs ) $(shell $(APU_CONFIG) --link-ld --libs )
APR_CONFIG = $(shell which ../apr/apr-1-config || which $(prefix)/bin/apr-1-config )
APU_CONFIG = $(shell which ../apr-util/apu-1-config || which $(prefix)/bin/apu-1-config)
lib_LTLIBRARIES = libdingaling.la
libdingaling_la_SOURCES = src/libdingaling.c src/sha1.c
libdingaling_la_CFLAGS = $(AM_CFLAGS)
libdingaling_la_LDFLAGS =
+libdingaling_la_LIBADD = ../iksemel/src/libiksemel.la
library_includedir = $(prefix)/include
library_include_HEADERS = src/libdingaling.h
all: all-recursive
Modified: freeswitch/trunk/src/mod/Makefile.am
==============================================================================
--- freeswitch/trunk/src/mod/Makefile.am (original)
+++ freeswitch/trunk/src/mod/Makefile.am Thu Mar 15 00:32:09 2007
@@ -13,8 +13,8 @@
echo making $$i ; \
moddir=$(MOD_DIR); \
if test -f $$moddir/Makefile ; then \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) ; else \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules ; \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) || exit 1; else \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules || exit 1; \
fi; \
done
@@ -23,8 +23,8 @@
echo making clean $$i ; \
moddir=$(MOD_DIR); \
if test -f $$moddir/Makefile ; then \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) clean ; else \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules clean ; \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) clean || exit 1; else \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules clean || exit 1; \
fi; \
done
@@ -34,8 +34,8 @@
echo making install $$i ; \
moddir=$(MOD_DIR); \
if test -f $$moddir/Makefile ; then \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) install ; else \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules install ; \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) install || exit 1; else \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules install || exit 1; \
fi; \
done
@echo done
@@ -46,8 +46,8 @@
echo making uninstall $$i ; \
moddir=$(MOD_DIR); \
if test -f $$moddir/Makefile ; then \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) uninstall ; else \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules uninstall ; \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) uninstall || exit 1; else \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules uninstall || exit 1; \
fi; \
done
@echo done
Modified: freeswitch/trunk/src/mod/Makefile.in
==============================================================================
--- freeswitch/trunk/src/mod/Makefile.in (original)
+++ freeswitch/trunk/src/mod/Makefile.in Thu Mar 15 00:32:09 2007
@@ -362,8 +362,8 @@
echo making $$i ; \
moddir=$(MOD_DIR); \
if test -f $$moddir/Makefile ; then \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) ; else \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules ; \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) || exit 1; else \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules || exit 1; \
fi; \
done
@@ -372,8 +372,8 @@
echo making clean $$i ; \
moddir=$(MOD_DIR); \
if test -f $$moddir/Makefile ; then \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) clean ; else \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules clean ; \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) clean || exit 1; else \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules clean || exit 1; \
fi; \
done
@@ -383,8 +383,8 @@
echo making install $$i ; \
moddir=$(MOD_DIR); \
if test -f $$moddir/Makefile ; then \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) install ; else \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules install ; \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) install || exit 1; else \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules install || exit 1; \
fi; \
done
@echo done
@@ -395,8 +395,8 @@
echo making uninstall $$i ; \
moddir=$(MOD_DIR); \
if test -f $$moddir/Makefile ; then \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) uninstall ; else \
- cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules uninstall ; \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) uninstall || exit 1; else \
+ cd $$moddir && MODNAME=$(MOD_NAME) BASE=$(switch_builddir) $(MAKE) -f $(switch_builddir)/build/modmake.rules uninstall || exit 1; \
fi; \
done
@echo done
Modified: freeswitch/trunk/src/mod/applications/mod_enum/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_enum/Makefile (original)
+++ freeswitch/trunk/src/mod/applications/mod_enum/Makefile Thu Mar 15 00:32:09 2007
@@ -1,14 +1,11 @@
-# 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
MODNAME=mod_enum
+BASE=../../../..
+UDNSA=$(BASE)/libs/udns/libudns.a
LOCAL_CFLAGS=-I$(BASE)/libs/udns
-LOCAL_LDFLAGS=
-LOCAL_OBJS=$(BASE)/libs/udns/libudns.a
-include ../../../../build/modmake.rules
+LOCAL_LIBADD=$(UDNSA)
+include $(BASE)/build/modmake.rules
-local_depend:
+$(UDNSA):
cd $(BASE)/libs/udns && $(MAKE) staticlib
Modified: freeswitch/trunk/src/mod/codecs/mod_amr/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_amr/Makefile (original)
+++ freeswitch/trunk/src/mod/codecs/mod_amr/Makefile Thu Mar 15 00:32:09 2007
@@ -1,13 +1,16 @@
MODNAME=mod_amr
-ifeq ($(shell ls -d $(BASE)/libs/amr),$(BASE)/libs/amr)
+BASE=../../../..
-LOCAL_CFLAGS += -I$(PREFIX)/include/amr
-LOCAL_LDFLAGS +=-lamr
+topdir=$(shell cd $(BASE) && pwd)
+ifeq ($(shell test -d $(topdir)/libs/amr && cd $(topdir)/libs/amr && pwd),$(topdir)/libs/amr)
+
+LOCAL_CFLAGS = -I$(PREFIX)/include/amr
+LOCAL_LDFLAGS =-lamr
else
-LOCAL_CFLAGS += -DAMR_PASSTHROUGH
+LOCAL_CFLAGS = -DAMR_PASSTHROUGH
endif
-include ../../../../build/modmake.rules
+include $(BASE)/build/modmake.rules
Modified: freeswitch/trunk/src/mod/codecs/mod_g722/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_g722/Makefile (original)
+++ freeswitch/trunk/src/mod/codecs/mod_g722/Makefile Thu Mar 15 00:32:09 2007
@@ -1,13 +1,10 @@
-# 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
MODNAME=mod_g722
+BASE=../../../..
+G7XXLA=$(BASE)/libs/codec/g7xx/libg7xx.la
LOCAL_CFLAGS=-I$(BASE)/libs/codec/g7xx/src/include/
-LOCAL_LDFLAGS=$(BASE)/libs/codec/g7xx/libg7xx.la
-LOCAL_OBJS=
-include ../../../../build/modmake.rules
+LOCAL_LIBADD=$(G7XXLA)
+include $(BASE)/build/modmake.rules
-local_depend:
+$(G7XXLA):
cd $(BASE)/libs/codec/g7xx && $(MAKE)
Modified: freeswitch/trunk/src/mod/codecs/mod_g723_1/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_g723_1/Makefile (original)
+++ freeswitch/trunk/src/mod/codecs/mod_g723_1/Makefile Thu Mar 15 00:32:09 2007
@@ -1,8 +1,10 @@
MODNAME=mod_g723_1
-ifeq ($(shell ls -d $(BASE)/libs/libg723_1),$(BASE)/libs/libg723_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)
LOCAL_CFLAGS += -I$(PREFIX)/include/g723
LOCAL_LDFLAGS +=-lg723
else
LOCAL_CFLAGS += -DG723_PASSTHROUGH
endif
-include ../../../../build/modmake.rules
+include $(BASE)/build/modmake.rules
Modified: freeswitch/trunk/src/mod/codecs/mod_g726/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_g726/Makefile (original)
+++ freeswitch/trunk/src/mod/codecs/mod_g726/Makefile Thu Mar 15 00:32:09 2007
@@ -1,13 +1,10 @@
-# 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
MODNAME=mod_g726
+BASE=../../../..
+G726LA=$(BASE)/libs/codec/g726/libg726.la
LOCAL_CFLAGS=-I$(BASE)/libs/codec/g726/src
-LOCAL_LDFLAGS=
-LOCAL_OBJS=$(BASE)/libs/codec/g726/libg726.la
-include ../../../../build/modmake.rules
+LOCAL_LIBADD=$(G726LA)
+include $(BASE)/build/modmake.rules
-local_depend:
+$(G726LA):
cd $(BASE)/libs/codec/g726 && $(MAKE)
Modified: freeswitch/trunk/src/mod/codecs/mod_g729/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_g729/Makefile (original)
+++ freeswitch/trunk/src/mod/codecs/mod_g729/Makefile Thu Mar 15 00:32:09 2007
@@ -1,9 +1,11 @@
MODNAME=mod_g729
-ifeq ($(shell ls -d $(BASE)/libs/libg729),$(BASE)/libs/libg729)
+BASE=../../../..
+topdir=$(shell cd $(BASE) && pwd)
+ifeq ($(shell test -d $(topdir)/libs/libg729 && cd $(topdir)/libs/libg729 && pwd),$(topdir)/libs/libg729)
LOCAL_CFLAGS += -I$(PREFIX)/include/libg729
LOCAL_LDFLAGS +=-lg729
else
LOCAL_CFLAGS += -DG729_PASSTHROUGH
endif
-include ../../../../build/modmake.rules
+include $(BASE)/build/modmake.rules
Modified: freeswitch/trunk/src/mod/codecs/mod_gsm/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_gsm/Makefile (original)
+++ freeswitch/trunk/src/mod/codecs/mod_gsm/Makefile Thu Mar 15 00:32:09 2007
@@ -1,12 +1,9 @@
-# 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
MODNAME=mod_gsm
+BASE=../../../..
+GSMLA=$(BASE)/libs/codec/gsm/libgsm.la
LOCAL_CFLAGS=-I$(BASE)/libs/codec/gsm/inc
-LOCAL_LDFLAGS=$(BASE)/libs/codec/gsm/libgsm.la
-LOCAL_OBJS=
-include ../../../../build/modmake.rules
+LOCAL_LIBADD=$(GSMLA)
+include $(BASE)/build/modmake.rules
-local_depend:
+$(GSMLA):
cd $(BASE)/libs/codec/gsm && $(MAKE)
Modified: freeswitch/trunk/src/mod/codecs/mod_ilbc/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_ilbc/Makefile (original)
+++ freeswitch/trunk/src/mod/codecs/mod_ilbc/Makefile Thu Mar 15 00:32:09 2007
@@ -1,12 +1,9 @@
-# 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
MODNAME=mod_ilbc
+BASE=../../../..
+ILBCLA=$(BASE)/libs/codec/ilbc/libilbc.la
LOCAL_CFLAGS=-I$(BASE)/libs/codec/ilbc/src
-LOCAL_LDFLAGS=$(BASE)/libs/codec/ilbc/libilbc.la
-LOCAL_OBJS=
-include ../../../../build/modmake.rules
+LOCAL_LIBADD=$(ILBCLA)
+include $(BASE)/build/modmake.rules
-local_depend:
+$(ILBCLA):
cd $(BASE)/libs/codec/ilbc && $(MAKE)
Modified: freeswitch/trunk/src/mod/codecs/mod_lpc10/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_lpc10/Makefile (original)
+++ freeswitch/trunk/src/mod/codecs/mod_lpc10/Makefile Thu Mar 15 00:32:09 2007
@@ -1,12 +1,9 @@
-# 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
MODNAME=mod_lpc10
+BASE=../../../..
+LPC10LA=$(BASE)/libs/codec/lpc10/liblpc10.la
LOCAL_CFLAGS=-I$(BASE)/libs/codec/lpc10/src
-LOCAL_LDFLAGS=$(BASE)/libs/codec/lpc10/liblpc10.la
-LOCAL_OBJS=
-include ../../../../build/modmake.rules
+LOCAL_LIBADD=$(LPC10LA)
+include $(BASE)/build/modmake.rules
-local_depend:
+$(LPC10LA):
cd $(BASE)/libs/codec/lpc10 && $(MAKE)
Modified: freeswitch/trunk/src/mod/codecs/mod_speex/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_speex/Makefile (original)
+++ freeswitch/trunk/src/mod/codecs/mod_speex/Makefile Thu Mar 15 00:32:09 2007
@@ -3,10 +3,17 @@
# and define these variables to impact your build
MODNAME=mod_speex
+
+BASE=../../../..
+
+SPEEXLA=$(BASE)/libs/speex/libspeex/libspeex.la
+
LOCAL_CFLAGS=-I$(BASE)/libs/speex/include
-LOCAL_LDFLAGS=$(BASE)/libs/speex/libspeex/libspeex.la
+LOCAL_LDFLAGS=$(SPEEXLA)
LOCAL_OBJS=
-include ../../../../build/modmake.rules
+include $(BASE)/build/modmake.rules
+
+local_depend: $(SPEEXLA)
-local_depend:
+$(SPEEXLA): $(BASE)/libs/speex/stamp-h1
cd $(BASE)/libs/speex && $(MAKE)
Modified: freeswitch/trunk/src/mod/directories/mod_ldap/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/directories/mod_ldap/Makefile (original)
+++ freeswitch/trunk/src/mod/directories/mod_ldap/Makefile Thu Mar 15 00:32:09 2007
@@ -19,5 +19,5 @@
$(GETLIB) $(LDAP).tgz
cd $(LDAP_DIR) && ./configure $(DEFAULT_ARGS) --disable-bdb --disable-hdb
-$(LDAPLA) $(LIBLBERLA): $(LDAP_DIR)/Makefile
+$(LDAPLA) $(LIBLBERLA): $(LDAP_DIR)/Makefile $(LDAP_DIR)/stamp-h
cd $(LDAP_DIR) && $(MAKE)
Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/Makefile (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/Makefile Thu Mar 15 00:32:09 2007
@@ -3,16 +3,28 @@
# and define these variables to impact your build
MODNAME=mod_dingaling
+BASE=../../../..
+
+IKSEMELLA=$(BASE)/libs/iksemel/src/libiksemel.la
+DINGLA=$(BASE)/libs/libdingaling/libdingaling.la
+
LOCAL_CFLAGS=-I$(BASE)/libs/libdingaling/src
-LOCAL_LDFLAGS=$(BASE)/libs/libdingaling/libdingaling.la
+LOCAL_LDFLAGS=
LOCAL_OBJS=
-include ../../../../build/modmake.rules
+LOCAL_LIBADD=$(DINGLA)
+
+include $(BASE)/build/modmake.rules
-local_depend:
+INST_DINGLA=$(PREFIX)/lib/libdingaling.la
+
+$(IKSEMELLA):
cd $(BASE)/libs/iksemel && $(MAKE)
+
+$(DINGLA): $(IKSEMELLA)
cd $(BASE)/libs/libdingaling && $(MAKE)
-depend_install:
- cd $(BASE)/libs/iksemel && $(MAKE) install
+depend_install: $(INST_DINGLA)
+
+$(INST_DINGLA): $(DINGLA)
cd $(BASE)/libs/libdingaling && $(MAKE) install
Modified: freeswitch/trunk/src/mod/endpoints/mod_iax/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_iax/Makefile (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_iax/Makefile Thu Mar 15 00:32:09 2007
@@ -3,11 +3,13 @@
# 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
-LOCAL_LDFLAGS=$(BASE)/libs/iax/src/libiax.la
-LOCAL_OBJS=
-include ../../../../build/modmake.rules
+LOCAL_LDFLAGS=
+LOCAL_LIBADD=$(IAXLA)
+include $(BASE)/build/modmake.rules
-local_depend:
+$(IAXLA):
cd $(BASE)/libs/iax && $(MAKE)
Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_portaudio/Makefile (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/Makefile Thu Mar 15 00:32:09 2007
@@ -1,19 +1,20 @@
-# define these targets in your makefile if you wish
-# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
BASE=../../../..
OSARCH=$(shell uname -s)
-# and define these variables to impact your build
MODNAME=mod_portaudio
+BASE=../../../..
+
+PALA=$(BASE)/libs/portaudio/lib/libportaudio.la
LOCAL_CFLAGS=-I. -I$(BASE)/libs/portaudio/include
-LOCAL_LDFLAGS=$(BASE)/libs/portaudio/lib/libportaudio.la
+LOCAL_LDFLAGS=
ifeq ($(OSARCH),Darwin)
LOCAL_LDFLAGS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
endif
+LOCAL_LIBADD=$(PALA)
LOCAL_OBJS=pablio.o pa_ringbuffer.o
-include ../../../../build/modmake.rules
+include $(BASE)/build/modmake.rules
-local_depend:
+$(PALA):
cd $(BASE)/libs/portaudio && $(MAKE)
pa_ringbuffer.o: pa_ringbuffer.c
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/Makefile (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/Makefile Thu Mar 15 00:32:09 2007
@@ -1,4 +1,7 @@
MODNAME=mod_sofia
+
+BASE=../../../..
+
OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
LOCAL_CFLAGS = -I. -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/bnf -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/features
@@ -11,7 +14,9 @@
LOCAL_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/tport -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/url
-LOCAL_LDFLAGS=$(BASE)/libs/sofia-sip/libsofia-sip-ua/libsofia-sip-ua.la
+SOFIALA=$(BASE)/libs/sofia-sip/libsofia-sip-ua/libsofia-sip-ua.la
+
+LOCAL_LDFLAGS=$(SOFIALA)
ifeq ($(OS_ARCH),Darwin)
LOCAL_LDFLAGS +=-framework CoreFoundation -framework SystemConfiguration
@@ -19,5 +24,7 @@
include ../../../../build/modmake.rules
-local_depend:
+local_depend: $(SOFIALA)
+
+$(SOFIALA):
cd $(BASE)/libs/sofia-sip && $(MAKE)
Modified: freeswitch/trunk/src/mod/event_handlers/mod_xmpp_event/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_xmpp_event/Makefile (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_xmpp_event/Makefile Thu Mar 15 00:32:09 2007
@@ -3,10 +3,16 @@
# and define these variables to impact your build
MODNAME=mod_xmpp_event
+BASE=../../../..
+
+IKSEMELLA=$(BASE)/libs/iksemel/src/libiksemel.la
+
LOCAL_CFLAGS=-I$(BASE)/libs/iksemel/include
-LOCAL_LDFLAGS=$(BASE)/libs/iksemel/src/libiksemel.la
+LOCAL_LDFLAGS=$(IKSEMELA)
LOCAL_OBJS=
-include ../../../../build/modmake.rules
+include $(BASE)/build/modmake.rules
+
+local_depend: $(IKSEMELLA)
-local_depend:
+$(IKSEMELLA):
cd $(BASE)/libs/iksemel && $(MAKE)
Modified: freeswitch/trunk/src/mod/formats/mod_sndfile/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_sndfile/Makefile (original)
+++ freeswitch/trunk/src/mod/formats/mod_sndfile/Makefile Thu Mar 15 00:32:09 2007
@@ -2,11 +2,19 @@
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
# and define these variables to impact your build
-MONAME=mod_sndfile
+MODNAME=mod_sndfile
+
+BASE=../../../..
+
+SNDFILELA=$(BASE)/libs/libsndfile/src/libsndfile.la
+
LOCAL_CFLAGS=-I$(BASE)/libs/libsndfile/src
-LOCAL_LDFLAGS=$(BASE)/libs/libsndfile/src/libsndfile.la
+LOCAL_LDFLAGS=$(SNDFILELA)
LOCAL_OBJS=
-include ../../../../build/modmake.rules
-local_depend:
+include $(BASE)/build/modmake.rules
+
+local_depend: $(SNDFILELA)
+
+$(SNDFILELA):
cd $(BASE)/libs/libsndfile && $(MAKE)
Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/Makefile (original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/Makefile Thu Mar 15 00:32:09 2007
@@ -1,12 +1,17 @@
MODNAME=mod_xml_rpc
-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
+BASE=../../../..
+XMLRPCLAS = $(BASE)/libs/xmlrpc-c/src/libxmlrpc.la $(BASE)/libs/xmlrpc-c/src/libxmlrpc_server.la
+XMLRPCLAS += $(BASE)/libs/xmlrpc-c/src/libxmlrpc_server_abyss.la $(BASE)/libs/xmlrpc-c/lib/abyss/src/libxmlrpc_abyss.la
+XMLRPCLAS += $(BASE)/libs/xmlrpc-c/lib/expat/xmlparse/libxmlrpc_xmlparse.la
+
+LOCAL_LDFLAGS = $(XMLRPCLAS)
LOCAL_CFLAGS=-I$(BASE)/libs/xmlrpc-c/include
include ../../../../build/modmake.rules
-local_depend:
+local_depend: $(XMLRPCLAS)
+
+$(XMLRPCLAS):
cd $(BASE)/libs/xmlrpc-c && $(MAKE)
More information about the Freeswitch-svn
mailing list