2 # Asterisk -- A telephony toolkit for Linux.
4 # Makefile for resource modules
6 # Copyright (C) 1999-2006, Digium, Inc.
8 # This program is free software, distributed under the terms of
9 # the GNU General Public License
12 -include ..
/menuselect.makeopts ..
/menuselect.makedeps
14 MENUSELECT_CATEGORY
=RES
15 MENUSELECT_DESCRIPTION
=Resource Modules
17 ALL_C_MODS
:=$(patsubst %.c
,%,$(wildcard res_
*.c
))
18 ALL_CC_MODS
:=$(patsubst %.
cc,%,$(wildcard res_
*.
cc))
20 C_MODS
:=$(filter-out $(MENUSELECT_RES
),$(ALL_C_MODS
))
21 CC_MODS
:=$(filter-out $(MENUSELECT_RES
),$(ALL_CC_MODS
))
23 LOADABLE_MODS
:=$(C_MODS
) $(CC_MODS
)
25 ifneq ($(findstring res
,$(MENUSELECT_EMBED
)),)
26 EMBEDDED_MODS
:=$(LOADABLE_MODS
)
32 include $(ASTTOPDIR
)/Makefile.moddir_rules
34 snmp
/agent.o
: ASTCFLAGS
+=$(MENUSELECT_OPTS_res_snmp
:%=-D
%) $(foreach dep
,$(MENUSELECT_DEPENDS_res_snmp
),$(value
$(dep
)_INCLUDE
))
36 $(if
$(filter res_snmp
,$(EMBEDDED_MODS
)),modules.link
,res_snmp.so
): snmp
/agent.o