Debian Codegraph @

codecs/Makefile

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 #
2 # Asterisk -- An open source telephony toolkit.
3 #
4 # Makefile for codec modules
5 #
6 # Copyright (C) 1999-2006, Digium, Inc.
7 #
8 # Mark Spencer <[email protected]>
9 #
10 # This program is free software, distributed under the terms of
11 # the GNU General Public License
12 #
13
14 -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
15
16 MODULE_PREFIX=codec
17 MENUSELECT_CATEGORY=CODECS
18 MENUSELECT_DESCRIPTION=Codec Translators
19
20 SUB_GSM := gsm
21
22 SUB_ILBC := ilbc
23 LIBILBC := $(SUB_ILBC)/libilbc.a
24
25 SUB_LPC10 := lpc10
26 LIBLPC10 := $(SUB_LPC10)/liblpc10.a
27
28 SUB_DIRS := \
29 $(SUB_GSM) \
30 $(SUB_LPC10) \
31
32 all: _all
33
34 include $(ASTTOPDIR)/Makefile.moddir_rules
35
36
37 ifneq ($(GSM_INTERNAL),no)
38 GSM_INCLUDE := -I$(SUB_GSM)/inc
39
40 codec_gsm.so: $(SUB_GSM)/lib/libgsm.a
41 endif
42
43 # Don't run the implicit rules for this target.
44 $(SUB_GSM)/lib/libgsm.a: $(SUB_GSM) ;
45
46 $(SUB_GSM):
47 @mkdir -p $(SUB_GSM)/lib
48 @$(MAKE) -C $(SUB_GSM) lib/libgsm.a
49
50
51 clean::
52 for dir in $(SUB_DIRS); do \
53 $(MAKE) -C $$dir clean; \
54 done
55
56 .PHONY: $(SUB_DIRS)
57
58
59 codec_lpc10.so: $(LIBLPC10)
60
61 # Don't run the implicit rules for this target.
62 $(LIBLPC10): $(SUB_LPC10) ;
63
64 $(SUB_LPC10):
65 @$(MAKE) -C $(SUB_LPC10) all
66
67
68 ifneq ($(ILBC_INTERNAL),no)
69 codec_ilbc.so: $(LIBILBC)
70 else
71 ILBC_INCLUDE += -DILBC_WEBRTC
72 endif
73
74 # Don't run the implicit rules for this target.
75 $(LIBILBC): $(SUB_ILBC) ;
76
77 $(SUB_ILBC):
78 @$(MAKE) -C $(SUB_ILBC) all _ASTCFLAGS="$(filter-out -Wmissing-prototypes -Wmissing-declarations -Wshadow,$(_ASTCFLAGS)) $(AST_NO_STRICT_OVERFLOW)"
79
80
81
82 $(call MOD_ADD_C,codec_g722,g722/g722_encode.c g722/g722_decode.c)
83
84
85 ifeq ($(BUILD_CPU),x86_64)
86 SPEEX_RESAMPLE_CFLAGS:=-fPIC
87 else
88 SPEEX_RESAMPLE_CFLAGS:=
89 endif
90
91 $(call MOD_ADD_C,codec_resample,speex/resample.c)
92 codec_resample.o: _ASTCFLAGS+=-DOUTSIDE_SPEEX
93 speex/resample.o: _ASTCFLAGS+=$(SPEEX_RESAMPLE_CFLAGS) -DOUTSIDE_SPEEX -DEXPORT=