Debian Codegraph @

addons/Makefile

raw symbols SCIP
1 #
2 # Asterisk -- An open source telephony toolkit.
3 #
4 # Makefile for Add-on Modules
5 #
6 # Copyright (C) 2009, Digium, Inc.
7 #
8 # This program is free software, distributed under the terms of
9 # the GNU General Public License
10 #
11
12 -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
13
14 MENUSELECT_CATEGORY=ADDONS
15 MENUSELECT_DESCRIPTION=Add-ons (See README-addons.txt)
16
17 OOH323C:=ooCmdChannel.c ooLogChan.c ooUtils.c ooGkClient.c context.c \
18 ooDateTime.c decode.c dlist.c encode.c errmgmt.c \
19 memheap.c ootrace.c oochannels.c ooh245.c ooports.c \
20 ooq931.c ooCapability.c ooSocket.c perutil.c eventHandler.c \
21 ooCalls.c ooStackCmds.c ooh323.c ooh323ep.c printHandler.c \
22 rtctype.c ooTimer.c h323/H235-SECURITY-MESSAGESDec.c \
23 h323/H235-SECURITY-MESSAGESEnc.c h323/H323-MESSAGES.c h323/H323-MESSAGESDec.c \
24 h323/H323-MESSAGESEnc.c h323/MULTIMEDIA-SYSTEM-CONTROL.c \
25 h323/MULTIMEDIA-SYSTEM-CONTROLDec.c h323/MULTIMEDIA-SYSTEM-CONTROLEnc.c
26
27 H323SOURCE:=$(addprefix ooh323c/src/,$(OOH323C)) ooh323cDriver.c
28
29 H323CFLAGS:=-Iooh323c/src -Iooh323c/src/h323
30
31 ALL_C_MODS:=chan_mobile \
32 chan_ooh323 \
33 format_mp3 \
34 res_config_mysql
35
36 all: check_mp3 _all
37
38 check_mp3:
39 ifeq ($(filter format_mp3,$(MENUSELECT_ADDONS)),)
40 @if [ ! -f mp3/Makefile ] ; then \
41 echo ; \
42 echo "**************************************************************" ; \
43 echo "*** ***" ; \
44 echo "*** ---> IMPORTANT INFORMATION ABOUT format_mp3 <--- ***" ; \
45 echo "*** ***" ; \
46 echo "*** format_mp3 has been selected to be installed, but the ***" ; \
47 echo "*** MP3 decoder library has not yet been downloaded into ***" ; \
48 echo "*** the source tree. To do so, please run the following ***" ; \
49 echo "*** command: ***" ; \
50 echo "*** ***" ; \
51 echo "*** $$ contrib/scripts/get_mp3_source.sh ***" ; \
52 echo "*** ***" ; \
53 echo "**************************************************************" ; \
54 echo ; \
55 fi
56 endif
57
58 include $(ASTTOPDIR)/Makefile.moddir_rules
59
60 chan_mobile.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
61 chan_ooh323.so: _ASTCFLAGS+=$(H323CFLAGS)
62 $(call MOD_ADD_C,chan_ooh323,$(H323SOURCE))
63
64 ifneq ($(wildcard mp3/Makefile),)
65 # At the current time, the fate of mp3 is in flux so it didn't make sense to
66 # add configure/makeopts processing for array-bounds since this is the only
67 # source file that needs that warning suppressed.
68 mp3/layer3.o: _ASTCFLAGS+=-Wno-array-bounds
69 $(call MOD_ADD_C,format_mp3,mp3/common.c mp3/dct64_i386.c mp3/decode_ntom.c mp3/layer3.c mp3/tabinit.c mp3/interface.c)
70
71 .PHONY: check_mp3
72 else
73 .PHONY: check_mp3 format_mp3.o format_mp3.so
74 endif