Files
asterisk/res/Makefile
T

54 lines
1.6 KiB
Makefile
Raw Normal View History

2001-12-25 21:12:07 +00:00
#
# Asterisk -- A telephony toolkit for Linux.
#
# Makefile for resource modules
2001-12-25 21:12:07 +00:00
#
# Copyright (C) 1999-2006, Digium, Inc.
2001-12-25 21:12:07 +00:00
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
2007-12-17 07:25:35 +00:00
MODULE_PREFIX=res
MENUSELECT_CATEGORY=RES
MENUSELECT_DESCRIPTION=Resource Modules
2006-02-11 16:44:15 +00:00
all: _all
include $(ASTTOPDIR)/Makefile.moddir_rules
2001-12-25 21:12:07 +00:00
2007-11-20 16:12:10 +00:00
ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
2007-12-04 11:50:05 +00:00
# cygwin has some dependencies among res_ things.
# We use order-only dependencies, and then add the libraries as required.
2007-11-20 16:12:10 +00:00
res_features.so: | res_monitor.so
res_features.so_LIBS:= -lres_monitor.so
2007-12-04 11:50:05 +00:00
#
res_agi.so: | res_speech.so
res_agi.so_LIBS:= -lres_speech.so
2007-11-20 16:12:10 +00:00
endif
ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
2008-03-11 11:36:51 +00:00
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
2006-09-29 22:48:43 +00:00
$(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o
$(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.c:
(cd ael; flex ael.flex; sed -i -e "/begin standard C headers/i#include \"asterisk.h\"" ael_lex.c)
2008-01-10 21:46:56 +00:00
(cd ael; sed 's@#if __STDC_VERSION__ >= 199901L@#if !defined __STDC_VERSION__ || __STDC_VERSION__ >= 199901L@' ael_lex.c > zz; mv zz ael_lex.c)
ael/ael.tab.c ael/ael.tab.h:
(cd ael; bison -v -d ael.y)
ael/pval.o: ael/pval.c
clean::
2006-06-23 01:54:07 +00:00
rm -f snmp/*.o
rm -f ael/*.o