From 95e5af3588aee52498c5cd994fa9f1edd6d859b2 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Mon, 26 Feb 2007 17:55:36 +0000 Subject: [PATCH] C_FLAGS used in audio modules C_/CXX_FLAGS can be passed to make git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@241 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- Makefile.defs | 4 ++-- core/plug-in/Makefile.audio_module | 2 +- core/plug-in/ilbc/Makefile | 5 +++-- core/plug-in/ilbc/iLBC_rfc3951/Makefile | 4 ++++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile.defs b/Makefile.defs index 13ee8931..8509e207 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -32,7 +32,7 @@ endif GPP ?= g++ GCC ?= gcc -CXX_FLAGS = -Wall -Wno-reorder -fPIC -g \ +CXX_FLAGS ?= -Wall -Wno-reorder -fPIC -g \ -O2 \ -D_DEBUG \ -D_THREAD_SAFE -D_REENTRANT \ @@ -40,7 +40,7 @@ CXX_FLAGS = -Wall -Wno-reorder -fPIC -g \ -DOS='"$(OS)"' \ # -DSUPPORT_IPV6 -C_FLAGS = -Wall -fPIC -g \ +C_FLAGS ?= -Wall -fPIC -g \ -O2 \ -D_DEBUG \ -D_THREAD_SAFE -D_REENTRANT \ diff --git a/core/plug-in/Makefile.audio_module b/core/plug-in/Makefile.audio_module index 39e7dfaf..4cddfd98 100644 --- a/core/plug-in/Makefile.audio_module +++ b/core/plug-in/Makefile.audio_module @@ -2,7 +2,7 @@ COREPATH ?=../.. include $(COREPATH)/../Makefile.defs ldflags = -shared $(module_ldflags) -cflags = -fPIC -I $(COREPATH) -I $(COREPATH)/amci -Wall $(module_cflags) +cflags = $(C_FLAGS) -I $(COREPATH) -I $(COREPATH)/amci -Wall $(module_cflags) audio_mod_dir = $(COREPATH)/lib diff --git a/core/plug-in/ilbc/Makefile b/core/plug-in/ilbc/Makefile index 4492f46f..46a1977f 100644 --- a/core/plug-in/ilbc/Makefile +++ b/core/plug-in/ilbc/Makefile @@ -35,8 +35,9 @@ extra_clean = clean_ilbclib include ../Makefile.audio_module -$(ILBC_DIR)/libilbc.a:: - -@cd $(ILBC_DIR); $(MAKE) all +$(ILBC_DIR)/libilbc.a: +# -@cd $(ILBC_DIR); $(MAKE) all + $(MAKE) -C $(ILBC_DIR) libilbc.a .PHONY: clean_ilbclib clean_ilbclib: diff --git a/core/plug-in/ilbc/iLBC_rfc3951/Makefile b/core/plug-in/ilbc/iLBC_rfc3951/Makefile index f00d59fa..818d640a 100644 --- a/core/plug-in/ilbc/iLBC_rfc3951/Makefile +++ b/core/plug-in/ilbc/iLBC_rfc3951/Makefile @@ -1,3 +1,5 @@ +COREPATH ?=../../.. +include $(COREPATH)/../Makefile.defs lib_name = libilbc.a @@ -6,6 +8,8 @@ hrds = $(wildcard *.h) objs = $(srcs:.c=.o) depends = $(srcs:.c=.d) +cflags ?= $(C_FLAGS) + AR = ar RANLIB = ranlib