summaryrefslogtreecommitdiff
path: root/codecs/Makefile
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-12-10 03:50:38 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-12-10 03:50:38 +0000
commit5490889153baa8b756b4ff172ff57efb1e41d6a0 (patch)
tree954493fb03243d28b94bb410a7a10144d245bfe0 /codecs/Makefile
parent1e1a9e30d8358f2ad8e2bc8c92bd314717190da8 (diff)
Put into Makefile.moddir_rules the common instructions used to
generate loadable and embedded module lists. Individual Makefiles now are a lot simpler, possibly as simple as this: -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps MODULE_PREFIX=cdr_ all: _all include $(ASTTOPDIR)/Makefile.moddir_rules and also more flexible because in a single directory we can combine various types of modules (app_, cdr_, func_, ... ) by simply listing them in the MODULE_PREFIX variable. The individual Makefiles can also create list of modules to be excluded by listing them in the variablel MODULE_EXCLUDE (see an example in channels/Makefile). With this change it becomes trivial to integrate a directory with locally created/modified sources into the main build. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs/Makefile')
-rw-r--r--codecs/Makefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/codecs/Makefile b/codecs/Makefile
index d4402d3c3..99a3b4edd 100644
--- a/codecs/Makefile
+++ b/codecs/Makefile
@@ -13,15 +13,7 @@
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
-C_MODS:=$(filter-out $(MENUSELECT_CODECS),$(patsubst %.c,%,$(wildcard codec_*.c)))
-CC_MODS:=$(filter-out $(MENUSELECT_CODECS),$(patsubst %.cc,%,$(wildcard codec_*.cc)))
-
-LOADABLE_MODS:=$(C_MODS) $(CC_MODS)
-
-ifneq ($(findstring codecs,$(MENUSELECT_EMBED)),)
- EMBEDDED_MODS:=$(LOADABLE_MODS)
- LOADABLE_MODS:=
-endif
+MODULE_PREFIX=codec_
LIBILBC:=ilbc/libilbc.a
LIBLPC10:=lpc10/liblpc10.a