merge new_loader_completion branch, including (at least):
[asterisk/asterisk.git] / formats / Makefile
1 #
2 # Asterisk -- A telephony toolkit for Linux.
3
4 # Makefile for file format modules
5 #
6 # Copyright (C) 1999-2006, Digium, Inc.
7 #
8 # This program is free software, distributed under the terms of
9 # the GNU General Public License
10 #
11
12 ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
13   include ../menuselect.makeopts
14   include ../menuselect.makedeps
15 endif
16
17 C_MODS:=$(filter-out $(MENUSELECT_FORMATS),$(patsubst %.c,%,$(wildcard format_*.c)))
18 CC_MODS:=$(filter-out $(MENUSELECT_FORMATS),$(patsubst %.cc,%,$(wildcard format_*.cc)))
19
20 LOADABLE_MODS:=$(C_MODS) $(CC_MODS)
21
22 ifneq ($(findstring formats,$(MENUSELECT_EMBED)),)
23   EMBEDDED_MODS:=$(LOADABLE_MODS)
24   LOADABLE_MODS:=
25 endif
26
27 all: _all
28
29 include $(ASTTOPDIR)/Makefile.moddir_rules