mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r49457 | kpfleming | 2007-01-04 12:05:47 -0600 (Thu, 04 Jan 2007) | 2 lines make building of codec_gsm against the system GSM library actually work ........ r49460 | kpfleming | 2007-01-04 12:16:40 -0600 (Thu, 04 Jan 2007) | 2 lines don't define this type either if LOW_MEMORY is enabled ........ r49461 | kpfleming | 2007-01-04 12:17:01 -0600 (Thu, 04 Jan 2007) | 2 lines don't do frame header caching in the core if LOW_MEMORY is defined ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			63 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.4 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
 | |
| LIBG722:=g722/libg722.a
 | |
| 
 | |
| all: _all
 | |
| 
 | |
| include $(ASTTOPDIR)/Makefile.moddir_rules
 | |
| 
 | |
| ifneq ($(GSM_INTERNAL),no)
 | |
| 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
 | |
| 	$(MAKE) -C g722 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)
 | |
| 
 | |
| $(LIBG722):
 | |
| 	@$(MAKE) -C g722 all
 | |
| 
 | |
| $(if $(filter codec_g722,$(EMBEDDED_MODS)),modules.link,codec_g722.so): $(LIBG722)
 |