| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps |
| 13 |
|
| 14 |
MODULE_PREFIX=res |
| 15 |
MENUSELECT_CATEGORY=RES |
| 16 |
MENUSELECT_DESCRIPTION=Resource Modules |
| 17 |
|
| 18 |
all: _all |
| 19 |
|
| 20 |
include $(ASTTOPDIR)/Makefile.moddir_rules |
| 21 |
|
| 22 |
ifneq ($(findstring $(OSARCH), mingw32 cygwin ),) |
| 23 |
|
| 24 |
|
| 25 |
res_agi.so: | res_speech.so |
| 26 |
res_agi.so_LIBS:= -lres_speech.so |
| 27 |
endif |
| 28 |
|
| 29 |
res_config_ldap.o: _ASTCFLAGS+=-DLDAP_DEPRECATED |
| 30 |
|
| 31 |
ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h |
| 32 |
ael/ael_lex.o: _ASTCFLAGS+=-I. -Iael -Wno-unused $(AST_NO_FORMAT_TRUNCATION) |
| 33 |
|
| 34 |
ael/ael.tab.o: ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h |
| 35 |
ael/ael.tab.o: _ASTCFLAGS+=-I. -Iael -Wno-unused -DYYENABLE_NLS=0 |
| 36 |
|
| 37 |
ifneq ($(findstring REBUILD_PARSERS,$(MENUSELECT_CFLAGS)),) |
| 38 |
ael/ael_lex.c: ael/ael.flex |
| 39 |
else |
| 40 |
ael/ael_lex.c: |
| 41 |
endif |
| 42 |
$(ECHO_PREFIX) echo " [FLEX] $< -> $@" |
| 43 |
$(CMD_PREFIX) echo " |
| 44 |
$(CMD_PREFIX) echo " |
| 45 |
$(CMD_PREFIX) echo >> $@ |
| 46 |
$(CMD_PREFIX) $(FLEX) -t ael/ael.flex >> $@ |
| 47 |
|
| 48 |
ifneq ($(findstring REBUILD_PARSERS,$(MENUSELECT_CFLAGS)),) |
| 49 |
ael/ael.tab.c ael/ael.tab.h: ael/ael.y |
| 50 |
else |
| 51 |
ael/ael.tab.c ael/ael.tab.h: |
| 52 |
endif |
| 53 |
$(ECHO_PREFIX) echo " [BISON] $< -> $@" |
| 54 |
$(CMD_PREFIX) (cd ael; $(BISON) -v -d ael.y) |
| 55 |
|
| 56 |
ael/pval.o: ael/pval.c |
| 57 |
ael/pval.o: _ASTCFLAGS+=-Wno-unused |
| 58 |
|
| 59 |
$(call MOD_ADD_C,res_ael_share,ael/ael_lex.c ael/ael.tab.c ael/pval.c) |
| 60 |
$(call MOD_ADD_C,res_stasis,$(wildcard stasis/*.c)) |
| 61 |
$(call MOD_ADD_C,res_snmp,snmp/agent.c) |
| 62 |
$(call MOD_ADD_C,res_parking,$(wildcard parking/*.c)) |
| 63 |
$(call MOD_ADD_C,res_pjsip,$(wildcard res_pjsip/*.c)) |
| 64 |
$(call MOD_ADD_C,res_pjsip_session,$(wildcard res_pjsip_session/*.c)) |
| 65 |
$(call MOD_ADD_C,res_prometheus,$(wildcard prometheus/*.c)) |
| 66 |
$(call MOD_ADD_C,res_ari,ari/cli.c ari/config.c ari/ari_websockets.c ari/ari_websocket_requests.c) |
| 67 |
$(call MOD_ADD_C,res_ari_model,ari/ari_model_validators.c) |
| 68 |
$(call MOD_ADD_C,res_stasis_recording,stasis_recording/stored.c) |
| 69 |
$(call MOD_ADD_C,res_stir_shaken,$(wildcard res_stir_shaken/*.c)) |
| 70 |
$(call MOD_ADD_C,res_aeap,$(wildcard res_aeap/*.c)) |
| 71 |
$(call MOD_ADD_C,res_geolocation,$(wildcard res_geolocation/*.c)) |
| 72 |
$(call MOD_ADD_C,res_cdrel_custom,$(wildcard cdrel_custom/*.c)) |
| 73 |
|
| 74 |
|
| 75 |
res_geolocation.so: res_geolocation/pidf_lo_test.o res_geolocation/pidf_to_eprofile.o res_geolocation/eprofile_to_pidf.o |
| 76 |
|
| 77 |
res_parking.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) |
| 78 |
snmp/agent.o: _ASTCFLAGS+=-fPIC |
| 79 |
res_snmp.o: _ASTCFLAGS+=-fPIC |
| 80 |
|
| 81 |
MODULE_EXCLUDE=ENABLE_SRTP_AES_192 ENABLE_SRTP_AES_256 ENABLE_SRTP_AES_GCM |
| 82 |
|
| 83 |
ifeq ($(findstring ENABLE_SRTP_AES_192,$(MENUSELECT_RES)),) |
| 84 |
res_srtp.o: _ASTCFLAGS+=-DENABLE_SRTP_AES_192 |
| 85 |
endif |
| 86 |
|
| 87 |
ifeq ($(findstring ENABLE_SRTP_AES_256,$(MENUSELECT_RES)),) |
| 88 |
res_srtp.o: _ASTCFLAGS+=-DENABLE_SRTP_AES_256 |
| 89 |
endif |
| 90 |
|
| 91 |
ifeq ($(findstring ENABLE_SRTP_AES_GCM,$(MENUSELECT_RES)),) |
| 92 |
res_srtp.o: _ASTCFLAGS+=-DENABLE_SRTP_AES_GCM |
| 93 |
endif |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
include ari.make |
| 98 |
|