mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	This new macro allows a single line to add all additional sources to a module. This helps prevent modules from missing steps, and makes future changes easier since they can be made in a single place. ASTERISK-24960 #close Reported by: Corey Farrell Change-Id: I38f12d8b72c5e7bb37a879b2fb51761a2855eb4b
		
			
				
	
	
		
			68 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| #
 | |
| # Asterisk -- An open source telephony toolkit.
 | |
| #
 | |
| # Makefile for Add-on Modules
 | |
| #
 | |
| # Copyright (C) 2009, Digium, Inc.
 | |
| #
 | |
| # This program is free software, distributed under the terms of
 | |
| # the GNU General Public License
 | |
| #
 | |
| 
 | |
| -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
 | |
| 
 | |
| MENUSELECT_CATEGORY=ADDONS
 | |
| MENUSELECT_DESCRIPTION=Add-ons (See README-addons.txt)
 | |
| 
 | |
| OOH323C:=ooCmdChannel.c ooLogChan.c ooUtils.c ooGkClient.c context.c \
 | |
| 	ooDateTime.c decode.c dlist.c encode.c errmgmt.c \
 | |
| 	memheap.c ootrace.c oochannels.c ooh245.c ooports.c \
 | |
| 	ooq931.c ooCapability.c ooSocket.c perutil.c eventHandler.c \
 | |
| 	ooCalls.c ooStackCmds.c ooh323.c ooh323ep.c printHandler.c \
 | |
| 	rtctype.c ooTimer.c h323/H235-SECURITY-MESSAGESDec.c \
 | |
| 	h323/H235-SECURITY-MESSAGESEnc.c h323/H323-MESSAGES.c h323/H323-MESSAGESDec.c \
 | |
| 	h323/H323-MESSAGESEnc.c h323/MULTIMEDIA-SYSTEM-CONTROL.c \
 | |
| 	h323/MULTIMEDIA-SYSTEM-CONTROLDec.c h323/MULTIMEDIA-SYSTEM-CONTROLEnc.c
 | |
| 
 | |
| H323SOURCE:=$(addprefix ooh323c/src/,$(OOH323C)) ooh323cDriver.c
 | |
| 
 | |
| H323CFLAGS:=-Iooh323c/src -Iooh323c/src/h323
 | |
| 
 | |
| ALL_C_MODS:=app_mysql \
 | |
|             cdr_mysql \
 | |
|             chan_mobile \
 | |
|             chan_ooh323 \
 | |
|             format_mp3 \
 | |
|             res_config_mysql
 | |
| 
 | |
| all: check_mp3 _all
 | |
| 
 | |
| check_mp3:
 | |
| ifeq ($(filter format_mp3,$(MENUSELECT_ADDONS)),)
 | |
| 	@if [ ! -f mp3/Makefile ] ; then \
 | |
| 		echo ; \
 | |
| 		echo "**************************************************************" ; \
 | |
| 		echo "***                                                        ***" ; \
 | |
| 		echo "***   --->  READ THIS OR YOUR BUILD WILL FAIL  <---        ***" ; \
 | |
| 		echo "***                                                        ***" ; \
 | |
| 		echo "*** format_mp3 has been selected to be installed, but the  ***" ; \
 | |
| 		echo "*** mp3 decoder library has not yet been downloaded into   ***" ; \
 | |
| 		echo "*** the source tree.  To do so, please run the following   ***" ; \
 | |
| 		echo "*** command:                                               ***" ; \
 | |
| 		echo "***                                                        ***" ; \
 | |
| 		echo "***          $$ contrib/scripts/get_mp3_source.sh           ***" ; \
 | |
| 		echo "***                                                        ***" ; \
 | |
| 		echo "**************************************************************" ; \
 | |
| 		echo ; \
 | |
| 	fi
 | |
| endif
 | |
| 
 | |
| include $(ASTTOPDIR)/Makefile.moddir_rules
 | |
| 
 | |
| $(if $(filter chan_ooh323,$(EMBEDDED_MODS)),modules.link,chan_ooh323.so): _ASTCFLAGS+=$(H323CFLAGS)
 | |
| $(call MOD_ADD_C,chan_ooh323,$(H323SOURCE))
 | |
| 
 | |
| $(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)
 | |
| 
 | |
| .PHONY: check_mp3
 |