2001-12-25 21:12:07 +00:00
|
|
|
#
|
2012-10-14 21:44:27 +00:00
|
|
|
# Asterisk -- An open source telephony toolkit.
|
2017-12-22 14:23:22 +00:00
|
|
|
#
|
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.
|
|
|
|
res_agi.so: | res_speech.so
|
|
|
|
res_agi.so_LIBS:= -lres_speech.so
|
2007-11-20 16:12:10 +00:00
|
|
|
endif
|
|
|
|
|
2009-07-21 13:28:04 +00:00
|
|
|
res_config_ldap.o: _ASTCFLAGS+=-DLDAP_DEPRECATED
|
2008-11-28 14:20:11 +00:00
|
|
|
|
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
|
2018-05-07 02:17:34 +00:00
|
|
|
ael/ael_lex.o: _ASTCFLAGS+=-I. -Iael -Wno-unused $(AST_NO_FORMAT_TRUNCATION)
|
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
|
2009-07-21 13:28:04 +00:00
|
|
|
ael/ael.tab.o: _ASTCFLAGS+=-I. -Iael -DYYENABLE_NLS=0
|
2007-08-15 19:21:27 +00:00
|
|
|
|
2010-01-25 21:51:41 +00:00
|
|
|
ifneq ($(findstring REBUILD_PARSERS,$(MENUSELECT_CFLAGS)),)
|
2010-01-22 21:45:18 +00:00
|
|
|
ael/ael_lex.c: ael/ael.flex
|
2010-01-24 06:40:31 +00:00
|
|
|
else
|
|
|
|
ael/ael_lex.c:
|
|
|
|
endif
|
2010-01-22 21:45:18 +00:00
|
|
|
$(ECHO_PREFIX) echo " [FLEX] $< -> $@"
|
2018-04-18 20:40:56 +00:00
|
|
|
$(CMD_PREFIX) echo "#define ASTMM_LIBC ASTMM_REDIRECT" > $@
|
|
|
|
$(CMD_PREFIX) echo "#include \"asterisk.h\"" >> $@
|
2010-05-11 19:57:24 +00:00
|
|
|
$(CMD_PREFIX) echo >> $@
|
2023-03-21 13:24:59 +00:00
|
|
|
$(CMD_PREFIX) $(FLEX) -t ael/ael.flex >> $@
|
2007-08-15 19:21:27 +00:00
|
|
|
|
2010-01-25 21:51:41 +00:00
|
|
|
ifneq ($(findstring REBUILD_PARSERS,$(MENUSELECT_CFLAGS)),)
|
2010-01-22 21:45:18 +00:00
|
|
|
ael/ael.tab.c ael/ael.tab.h: ael/ael.y
|
2010-01-24 06:40:31 +00:00
|
|
|
else
|
|
|
|
ael/ael.tab.c ael/ael.tab.h:
|
|
|
|
endif
|
2010-01-22 21:45:18 +00:00
|
|
|
$(ECHO_PREFIX) echo " [BISON] $< -> $@"
|
2010-01-25 05:45:00 +00:00
|
|
|
$(CMD_PREFIX) (cd ael; $(BISON) -v -d ael.y)
|
2007-08-15 19:21:27 +00:00
|
|
|
|
|
|
|
ael/pval.o: ael/pval.c
|
|
|
|
|
2015-04-13 10:28:32 +00:00
|
|
|
$(call MOD_ADD_C,res_ael_share,ael/ael_lex.c ael/ael.tab.c ael/pval.c)
|
|
|
|
$(call MOD_ADD_C,res_stasis,$(wildcard stasis/*.c))
|
|
|
|
$(call MOD_ADD_C,res_snmp,snmp/agent.c)
|
|
|
|
$(call MOD_ADD_C,res_parking,$(wildcard parking/*.c))
|
|
|
|
$(call MOD_ADD_C,res_pjsip,$(wildcard res_pjsip/*.c))
|
2020-02-24 18:47:46 +00:00
|
|
|
$(call MOD_ADD_C,res_pjsip_session,$(wildcard res_pjsip_session/*.c))
|
2024-04-23 07:46:10 +00:00
|
|
|
$(call MOD_ADD_C,res_pjsip_outbound_registration,$(wildcard res_pjsip_outbound_registration/*.c))
|
2019-05-03 00:45:27 +00:00
|
|
|
$(call MOD_ADD_C,res_prometheus,$(wildcard prometheus/*.c))
|
2015-04-13 10:28:32 +00:00
|
|
|
$(call MOD_ADD_C,res_ari,ari/cli.c ari/config.c ari/ari_websockets.c)
|
|
|
|
$(call MOD_ADD_C,res_ari_model,ari/ari_model_validators.c)
|
|
|
|
$(call MOD_ADD_C,res_stasis_recording,stasis_recording/stored.c)
|
2020-03-23 20:00:09 +00:00
|
|
|
$(call MOD_ADD_C,res_stir_shaken,$(wildcard res_stir_shaken/*.c))
|
2021-06-18 17:54:10 +00:00
|
|
|
$(call MOD_ADD_C,res_aeap,$(wildcard res_aeap/*.c))
|
2022-02-15 13:29:50 +00:00
|
|
|
$(call MOD_ADD_C,res_geolocation,$(wildcard res_geolocation/*.c))
|
|
|
|
|
|
|
|
# These are the xml and xslt files to be embedded
|
|
|
|
res_geolocation.so: res_geolocation/pidf_lo_test.o res_geolocation/pidf_to_eprofile.o res_geolocation/eprofile_to_pidf.o
|
2013-08-30 13:28:50 +00:00
|
|
|
|
2018-05-07 02:17:34 +00:00
|
|
|
res_parking.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
|
2021-09-08 14:36:40 +00:00
|
|
|
snmp/agent.o: _ASTCFLAGS+=-fPIC
|
|
|
|
res_snmp.o: _ASTCFLAGS+=-fPIC
|
2018-05-07 02:17:34 +00:00
|
|
|
|
2013-07-27 23:11:02 +00:00
|
|
|
# Dependencies for res_ari_*.so are generated, so they're in this file
|
|
|
|
include ari.make
|
2022-02-15 13:29:50 +00:00
|
|
|
|