Files
asterisk/res/Makefile
T

38 lines
866 B
Makefile
Raw Normal View History

2001-12-25 21:12:07 +00:00
#
# Asterisk -- A telephony toolkit for Linux.
#
# Makefile for resource modules
2001-12-25 21:12:07 +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
#
-include ../menuselect.makeopts ../menuselect.makedeps
MENUSELECT_CATEGORY=RES
MENUSELECT_DESCRIPTION=Resource Modules
ALL_C_MODS:=$(patsubst %.c,%,$(wildcard res_*.c))
ALL_CC_MODS:=$(patsubst %.cc,%,$(wildcard res_*.cc))
2007-12-17 07:21:08 +00:00
C_MODS:=$(filter-out $(MENUSELECT_RES),$(ALL_C_MODS))
CC_MODS:=$(filter-out $(MENUSELECT_RES),$(ALL_CC_MODS))
LOADABLE_MODS:=$(C_MODS) $(CC_MODS)
ifneq ($(findstring res,$(MENUSELECT_EMBED)),)
EMBEDDED_MODS:=$(LOADABLE_MODS)
LOADABLE_MODS:=
endif
2006-02-11 16:44:15 +00:00
all: _all
include $(ASTTOPDIR)/Makefile.moddir_rules
2001-12-25 21:12:07 +00:00
$(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o
clean::
2006-06-23 01:54:07 +00:00
rm -f snmp/*.o