In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
[asterisk-bristuff.git] / cdr / Makefile
blobeefeb4e4681c6d831faeb25f709ecfee203add74
2 # Asterisk -- A telephony toolkit for Linux.
3 #
4 # Makefile for CDR backends
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=CDR
15 MENUSELECT_DESCRIPTION=Call Detail Recording
17 ALL_C_MODS:=$(patsubst %.c,%,$(wildcard cdr_*.c))
18 ALL_CC_MODS:=$(patsubst %.cc,%,$(wildcard cdr_*.cc))
20 C_MODS:=$(filter-out $(MENUSELECT_APPS),$(ALL_C_MODS))
21 CC_MODS:=$(filter-out $(MENUSELECT_APPS),$(ALL_CC_MODS))
23 LOADABLE_MODS:=$(C_MODS) $(CC_MODS)
25 ifneq ($(findstring cdr,$(MENUSELECT_EMBED)),)
26 EMBEDDED_MODS:=$(LOADABLE_MODS)
27 LOADABLE_MODS:=
28 endif
30 all: _all
32 include $(ASTTOPDIR)/Makefile.moddir_rules