1999-12-05 01:40:43 +00:00
|
|
|
#
|
|
|
|
# Asterisk -- A telephony toolkit for Linux.
|
|
|
|
#
|
2005-06-20 17:26:08 +00:00
|
|
|
# Makefile for codec modules
|
1999-12-05 01:40:43 +00:00
|
|
|
#
|
2006-02-11 17:41:36 +00:00
|
|
|
# Copyright (C) 1999-2006, Digium, Inc.
|
1999-12-05 01:40:43 +00:00
|
|
|
#
|
2005-06-20 17:26:08 +00:00
|
|
|
# Mark Spencer <markster@digium.com>
|
1999-12-05 01:40:43 +00:00
|
|
|
#
|
|
|
|
# This program is free software, distributed under the terms of
|
|
|
|
# the GNU General Public License
|
|
|
|
#
|
|
|
|
|
2007-12-09 21:29:37 +00:00
|
|
|
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
|
2006-06-07 16:03:31 +00:00
|
|
|
|
2007-12-17 07:25:35 +00:00
|
|
|
MODULE_PREFIX=codec
|
|
|
|
MENUSELECT_CATEGORY=CODECS
|
|
|
|
MENUSELECT_DESCRIPTION=Codec Translators
|
2005-08-30 02:54:02 +00:00
|
|
|
|
2006-06-29 07:50:01 +00:00
|
|
|
LIBILBC:=ilbc/libilbc.a
|
2006-06-24 23:12:22 +00:00
|
|
|
LIBLPC10:=lpc10/liblpc10.a
|
2005-08-30 02:54:02 +00:00
|
|
|
|
2006-06-24 23:12:22 +00:00
|
|
|
all: _all
|
2006-06-05 20:46:27 +00:00
|
|
|
|
2006-08-21 02:11:39 +00:00
|
|
|
include $(ASTTOPDIR)/Makefile.moddir_rules
|
1999-12-05 01:40:43 +00:00
|
|
|
|
2007-01-04 18:19:55 +00:00
|
|
|
ifneq ($(GSM_INTERNAL),no)
|
2006-08-21 02:11:39 +00:00
|
|
|
GSM_INCLUDE:=-Igsm/inc
|
2006-09-29 22:48:43 +00:00
|
|
|
$(if $(filter codec_gsm,$(EMBEDDED_MODS)),modules.link,codec_gsm.so): gsm/lib/libgsm.a
|
2006-06-24 23:12:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
clean::
|
2003-04-23 16:23:12 +00:00
|
|
|
$(MAKE) -C gsm clean
|
|
|
|
$(MAKE) -C lpc10 clean
|
|
|
|
$(MAKE) -C ilbc clean
|
2009-05-15 17:37:12 +00:00
|
|
|
rm -f g722/*.[oa]
|
1999-12-05 01:40:43 +00:00
|
|
|
|
2006-04-24 17:11:45 +00:00
|
|
|
gsm/lib/libgsm.a:
|
2006-07-06 23:18:45 +00:00
|
|
|
@mkdir -p gsm/lib
|
2006-09-29 18:54:21 +00:00
|
|
|
@$(MAKE) -C gsm lib/libgsm.a
|
1999-12-05 01:40:43 +00:00
|
|
|
|
2000-01-05 17:22:42 +00:00
|
|
|
$(LIBLPC10):
|
2006-09-29 18:54:21 +00:00
|
|
|
@$(MAKE) -C lpc10 all
|
2000-01-05 17:22:42 +00:00
|
|
|
|
2006-09-29 22:48:43 +00:00
|
|
|
$(if $(filter codec_lpc10,$(EMBEDDED_MODS)),modules.link,codec_lpc10.so): $(LIBLPC10)
|
2006-06-24 23:12:22 +00:00
|
|
|
|
2003-04-15 04:36:52 +00:00
|
|
|
$(LIBILBC):
|
2009-07-21 13:28:04 +00:00
|
|
|
@$(MAKE) -C ilbc all _ASTCFLAGS="$(filter-out -Wmissing-prototypes -Wmissing-declarations -Wshadow,$(_ASTCFLAGS)) $(AST_NO_STRICT_OVERFLOW)"
|
2003-04-15 04:36:52 +00:00
|
|
|
|
2006-09-29 22:48:43 +00:00
|
|
|
$(if $(filter codec_ilbc,$(EMBEDDED_MODS)),modules.link,codec_ilbc.so): $(LIBILBC)
|
2006-12-21 00:08:21 +00:00
|
|
|
|
2009-05-15 17:37:12 +00:00
|
|
|
$(if $(filter codec_g722,$(EMBEDDED_MODS)),modules.link,codec_g722.so): g722/g722_encode.o g722/g722_decode.o
|
2010-03-23 14:22:27 +00:00
|
|
|
g722/g722_encode.o g722/g722_decode.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,codec_g722)
|