![kpfleming](/assets/img/avatar_default.png)
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r44055 | kpfleming | 2006-09-29 17:47:40 -0500 (Fri, 29 Sep 2006) | 2 lines fix a few build system bugs, and convert Makefiles to be compatible with GNU make 3.80 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44056 f38db490-d61c-443f-a65b-d21fe96a405b
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
#
|
|
# Asterisk -- A telephony toolkit for Linux.
|
|
#
|
|
# Makefile for codec modules
|
|
#
|
|
# Copyright (C) 1999-2006, Digium, Inc.
|
|
#
|
|
# Mark Spencer <markster@digium.com>
|
|
#
|
|
# This program is free software, distributed under the terms of
|
|
# the GNU General Public License
|
|
#
|
|
|
|
-include ../menuselect.makeopts ../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
|
|
|
|
LIBILBC:=ilbc/libilbc.a
|
|
LIBLPC10:=lpc10/liblpc10.a
|
|
|
|
all: _all
|
|
|
|
include $(ASTTOPDIR)/Makefile.moddir_rules
|
|
|
|
ifneq ($(GSM_INTERNAL),)
|
|
GSM_INCLUDE:=-Igsm/inc
|
|
$(if $(filter codec_gsm,$(EMBEDDED_MODS)),modules.link,codec_gsm.so): gsm/lib/libgsm.a
|
|
endif
|
|
|
|
clean::
|
|
$(MAKE) -C gsm clean
|
|
$(MAKE) -C lpc10 clean
|
|
$(MAKE) -C ilbc clean
|
|
|
|
gsm/lib/libgsm.a:
|
|
@mkdir -p gsm/lib
|
|
@$(MAKE) -C gsm lib/libgsm.a
|
|
|
|
$(LIBLPC10):
|
|
@$(MAKE) -C lpc10 all
|
|
|
|
$(if $(filter codec_lpc10,$(EMBEDDED_MODS)),modules.link,codec_lpc10.so): $(LIBLPC10)
|
|
|
|
$(LIBILBC):
|
|
@$(MAKE) -C ilbc all
|
|
|
|
$(if $(filter codec_ilbc,$(EMBEDDED_MODS)),modules.link,codec_ilbc.so): $(LIBILBC)
|