Do a better job at tracking dependencies into the libs, so libs are re-built when they need to.

Eliminate some more gmakeisms in the modules makefiles




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4629 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2007-03-17 08:40:10 +00:00
parent 70a70aa922
commit 940bf73b72
30 changed files with 147 additions and 204 deletions

View File

@@ -1,16 +1,6 @@
BASE=../../../..
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
endif
LOCAL_INSERT_CFLAGS=if test -d $(BASE)/libs/amr; then echo "-I$(PREFIX)/include/amr" ; else echo "-DAMR_PASSTHROUGH" ; fi ;
LOCAL_INSERT_LDFLAGS=test ! -d $(BASE)/libs/amp || echo "-lamr"
include $(BASE)/build/modmake.rules

View File

@@ -1,11 +1,5 @@
# define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
# and define these variables to impact your build
BASE=../../../..
LOCAL_CFLAGS=-I$(BASE)/libs/codec/g7xx/src/include
LOCAL_LDFLAGS=
LOCAL_OBJS=
include ../../../../build/modmake.rules
include $(BASE)/build/modmake.rules

View File

@@ -1,10 +1,10 @@
BASE=../../../..
G7XXLA=$(BASE)/libs/codec/g7xx/libg7xx.la
LOCAL_CFLAGS=-I$(BASE)/libs/codec/g7xx/src/include/
G7XX_DIR=$(BASE)/libs/codec/g7xx
G7XXLA=$(G7XX_DIR)/libg7xx.la
LOCAL_CFLAGS=-I$(G7XX_DIR)/src/include/
LOCAL_LIBADD=$(G7XXLA)
include $(BASE)/build/modmake.rules
$(G7XXLA):
cd $(BASE)/libs/codec/g7xx && $(MAKE)
$(G7XXLA): $(G7XX_DIR) $(G7XX_DIR)/.update
cd $(G7XX_DIR) && $(MAKE)
$(TOUCH_TARGET)

View File

@@ -1,10 +1,6 @@
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
LOCAL_INSERT_CFLAGS=if test -d $(BASE)/libs/libg723_1; then echo "-I$(PREFIX)/include/g723" ; else echo "-DG723_PASSTHROUGH" ; fi ;
LOCAL_INSERT_LDFLAGS=test ! -d $(BASE)/libs/libg723_1 || echo "-lg723"
include $(BASE)/build/modmake.rules

View File

@@ -1,10 +1,10 @@
BASE=../../../..
G726LA=$(BASE)/libs/codec/g726/libg726.la
LOCAL_CFLAGS=-I$(BASE)/libs/codec/g726/src
G726_DIR=$(BASE)/libs/codec/g726
G726LA=$(G726_DIR)/libg726.la
LOCAL_CFLAGS=-I$(G726_DIR)/src
LOCAL_LIBADD=$(G726LA)
include $(BASE)/build/modmake.rules
$(G726LA):
cd $(BASE)/libs/codec/g726 && $(MAKE)
$(G726LA): $(G726_DIR) $(G726_DIR)/.update
cd $(G726_DIR) && $(MAKE)
$(TOUCH_TARGET)

View File

@@ -1,11 +1,4 @@
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
LOCAL_INSERT_CFLAGS=if test -d $(BASE)/libs/libg729; then echo "-I$(PREFIX)/include/libg729" ; else echo "-DG729_PASSTHROUGH" ; fi ;
LOCAL_INSERT_LDFLAGS=test ! -d $(BASE)/libs/libg729 || echo "-lg729"
include $(BASE)/build/modmake.rules

View File

@@ -1,9 +1,10 @@
BASE=../../../..
GSMLA=$(BASE)/libs/codec/gsm/libgsm.la
LOCAL_CFLAGS=-I$(BASE)/libs/codec/gsm/inc
GSM_DIR=$(BASE)/libs/codec/gsm
GSMLA=$(GSM_DIR)/libgsm.la
LOCAL_CFLAGS=-I$(GSM_DIR)/inc
LOCAL_LIBADD=$(GSMLA)
include $(BASE)/build/modmake.rules
$(GSMLA):
cd $(BASE)/libs/codec/gsm && $(MAKE)
$(GSMLA): $(GSM_DIR) $(GSM_DIR)/.update
cd $(GSM_DIR) && $(MAKE)
$(TOUCH_TARGET)

View File

@@ -1,9 +1,10 @@
BASE=../../../..
ILBCLA=$(BASE)/libs/codec/ilbc/libilbc.la
LOCAL_CFLAGS=-I$(BASE)/libs/codec/ilbc/src
ILBC_DIR=$(BASE)/libs/codec/ilbc
ILBCLA=$(ILBC_DIR)/libilbc.la
LOCAL_CFLAGS=-I$(ILBC_DIR)/src
LOCAL_LIBADD=$(ILBCLA)
include $(BASE)/build/modmake.rules
$(ILBCLA):
cd $(BASE)/libs/codec/ilbc && $(MAKE)
$(ILBCLA): $(ILBC_DIR) $(ILBC_DIR)/.update
cd $(ILBC_DIR) && $(MAKE)
$(TOUCH_TARGET)

View File

@@ -1,9 +1,9 @@
BASE=../../../..
LPC10LA=$(BASE)/libs/codec/lpc10/liblpc10.la
LOCAL_CFLAGS=-I$(BASE)/libs/codec/lpc10/src
LPC10_DIR=$(BASE)/libs/codec/lpc10
LPC10LA=$(LPC10_DIR)/liblpc10.la
LOCAL_CFLAGS=-I$(LPC10_DIR)/src
LOCAL_LIBADD=$(LPC10LA)
include $(BASE)/build/modmake.rules
$(LPC10LA):
cd $(BASE)/libs/codec/lpc10 && $(MAKE)
$(LPC10LA): $(LPC10_DIR) $(LPC10_DIR)/.update
cd $(LPC10_DIR) && $(MAKE)

View File

@@ -1,19 +1,12 @@
# 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
BASE=../../../..
SPEEXLA=$(BASE)/libs/speex/libspeex/libspeex.la
SPEEX_DIR=$(BASE)/libs/speex
SPEEXLA=$(SPEEX_DIR)/libspeex/libspeex.la
LOCAL_CFLAGS=-I$(BASE)/libs/speex/include
LOCAL_LDFLAGS=$(SPEEXLA)
LOCAL_OBJS=
LOCAL_CFLAGS=-I$(SPEEX_DIR)/include
LOCAL_LIBADD=$(SPEEXLA)
include $(BASE)/build/modmake.rules
local_depend: $(SPEEXLA)
$(SPEEXLA): $(BASE)/libs/speex/stamp-h1
cd $(BASE)/libs/speex && $(MAKE)
$(SPEEXLA): $(SPEEX_DIR) $(SPEEX_DIR)/.update
cd $(SPEEX_DIR) && $(MAKE)
$(TOUCH_TARGET)