mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r262421 | qwell | 2010-05-11 14:55:42 -0500 (Tue, 11 May 2010) | 11 lines Use a less silly method for modifying a flex-generated file. The sed syntax that was used wasn't actually valid, causing some versions to choke. This is the method that is used in 1.6.x+ for similar changes. (closes issue #16696) Reported by: bklang Patches: 16696-sedfix.diff uploaded by qwell (license 4) Tested by: qwell ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@262422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			74 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| #
 | |
| # Asterisk -- A telephony toolkit for Linux.
 | |
| # 
 | |
| # Makefile for resource modules
 | |
| #
 | |
| # Copyright (C) 1999-2006, Digium, Inc.
 | |
| #
 | |
| # This program is free software, distributed under the terms of
 | |
| # the GNU General Public License
 | |
| #
 | |
| 
 | |
| -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
 | |
| 
 | |
| MODULE_PREFIX=res
 | |
| MENUSELECT_CATEGORY=RES
 | |
| MENUSELECT_DESCRIPTION=Resource Modules
 | |
| 
 | |
| all: _all
 | |
| 
 | |
| include $(ASTTOPDIR)/Makefile.moddir_rules
 | |
| 
 | |
| ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
 | |
|   # cygwin has some dependencies among res_ things.
 | |
|   # We use order-only dependencies, and then add the libraries as required.
 | |
|   res_features.so: | res_monitor.so
 | |
|   res_features.so_LIBS:= -lres_monitor.so
 | |
|   #
 | |
|   res_agi.so: | res_speech.so
 | |
|   res_agi.so_LIBS:= -lres_speech.so
 | |
| endif
 | |
| 
 | |
| res_config_ldap.o: _ASTCFLAGS+=-DLDAP_DEPRECATED
 | |
| 
 | |
| ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
 | |
| ael/ael_lex.o: _ASTCFLAGS+=-I. -Iael -Wno-unused
 | |
| 
 | |
| ael/ael.tab.o: ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h
 | |
| ael/ael.tab.o: _ASTCFLAGS+=-I. -Iael -DYYENABLE_NLS=0
 | |
| 
 | |
| $(if $(filter res_ais,$(EMBEDDED_MODS)),modules.link,res_ais.so): ais/clm.o ais/evt.o
 | |
| ais/clm.o ais/evt.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,res_ais)
 | |
| 
 | |
| $(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o
 | |
| snmp/agent.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,res_snmp)
 | |
| 
 | |
| $(if $(filter res_ael_share,$(EMBEDDED_MODS)),modules.link,res_ael_share.so): ael/ael_lex.o ael/ael.tab.o ael/pval.o
 | |
| ael/ael_lex.o ael/ael.tab.o ael/pval.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,res_ael_share)
 | |
| 
 | |
| ifneq ($(findstring REBUILD_PARSERS,$(MENUSELECT_CFLAGS)),)
 | |
| ael/ael_lex.c: ael/ael.flex
 | |
| else
 | |
| ael/ael_lex.c:
 | |
| endif
 | |
| 	$(ECHO_PREFIX) echo "   [FLEX] $< -> $@"
 | |
| 	$(CMD_PREFIX) (cd ael; $(FLEX) ael.flex)
 | |
| 	$(CMD_PREFIX) sed 's@#if __STDC_VERSION__ >= 199901L@#if !defined __STDC_VERSION__ || __STDC_VERSION__ >= 199901L@' $@ > $@.fix
 | |
| 	$(CMD_PREFIX) echo "#include \"asterisk.h\"" > $@
 | |
| 	$(CMD_PREFIX) echo >> $@
 | |
| 	$(CMD_PREFIX) cat $@.fix >> $@
 | |
| 	$(CMD_PREFIX) rm $@.fix
 | |
| 
 | |
| ifneq ($(findstring REBUILD_PARSERS,$(MENUSELECT_CFLAGS)),)
 | |
| ael/ael.tab.c ael/ael.tab.h: ael/ael.y
 | |
| else
 | |
| ael/ael.tab.c ael/ael.tab.h:
 | |
| endif
 | |
| 	$(ECHO_PREFIX) echo "   [BISON] $< -> $@"
 | |
| 	$(CMD_PREFIX) (cd ael; $(BISON) -v -d ael.y)
 | |
| 
 | |
| ael/pval.o: ael/pval.c
 | |
| 
 | |
| clean::
 | |
| 	rm -f snmp/*.o snmp/*.i ael/*.o ael/*.i ais/*.o ais/*.i
 |