apparently developers are still not aware that they should be use ast_copy_string...
[asterisk-bristuff.git] / res / Makefile
blobf2d50ebab4c6214c545420d3d92e0d4c3b7b557f
2 # Asterisk -- A telephony toolkit for Linux.
3 #
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 C_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.c,%,$(wildcard res_*.c)))
15 CC_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.cc,%,$(wildcard res_*.cc)))
17 LOADABLE_MODS:=$(C_MODS) $(CC_MODS)
19 ifneq ($(findstring res,$(MENUSELECT_EMBED)),)
20 EMBEDDED_MODS:=$(LOADABLE_MODS)
21 LOADABLE_MODS:=
22 endif
24 all: _all
26 include $(ASTTOPDIR)/Makefile.moddir_rules
28 $(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o
30 clean::
31 rm -f snmp/*.o