2001-12-25 21:12:07 +00:00
|
|
|
#
|
|
|
|
# Asterisk -- A telephony toolkit for Linux.
|
|
|
|
#
|
2005-06-20 17:26:08 +00:00
|
|
|
# Makefile for resource modules
|
2001-12-25 21:12:07 +00:00
|
|
|
#
|
2006-06-24 19:43:31 +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
|
|
|
|
#
|
|
|
|
|
2007-12-09 21:29:37 +00:00
|
|
|
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
|
2006-06-07 16:03:31 +00:00
|
|
|
|
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
|
|
|
|
2006-06-24 19:43:31 +00:00
|
|
|
all: _all
|
2006-04-24 17:11:45 +00:00
|
|
|
|
2006-07-06 21:04:28 +00:00
|
|
|
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
|
|
|
|
|
2007-08-15 19:21:27 +00:00
|
|
|
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
|
2007-08-15 19:21:27 +00:00
|
|
|
|
|
|
|
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
|
2006-07-01 15:13:56 +00:00
|
|
|
|
2007-08-15 19:21:27 +00:00
|
|
|
$(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)
|
2007-08-15 19:21:27 +00:00
|
|
|
|
|
|
|
ael/ael.tab.c ael/ael.tab.h:
|
|
|
|
(cd ael; bison -v -d ael.y)
|
|
|
|
|
|
|
|
ael/pval.o: ael/pval.c
|
|
|
|
|
2006-06-24 19:43:31 +00:00
|
|
|
clean::
|
2006-06-23 01:54:07 +00:00
|
|
|
rm -f snmp/*.o
|
2007-10-01 15:06:14 +00:00
|
|
|
rm -f ael/*.o
|