File: Makefile

package info (click to toggle)
asterisk 1%3A11.13.1~dfsg-2%2Bdeb8u5
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 48,196 kB
  • sloc: ansic: 550,573; sh: 12,057; cpp: 5,944; makefile: 3,079; perl: 3,076; yacc: 2,156; xml: 675; sql: 406; python: 381; tcl: 113; php: 62
file content (61 lines) | stat: -rw-r--r-- 1,935 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# Asterisk -- A telephony toolkit for Linux.
# 
# Makefile for PBX applications
#
# Copyright (C) 1999-2006, Digium, Inc.
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#

-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps

MODULE_PREFIX=app
MENUSELECT_CATEGORY=APPS
MENUSELECT_DESCRIPTION=Applications

MODS_C_ADDITIONAL=app_voicemail_imapstorage app_voicemail_odbcstorage

MENUSELECT_OPTS_app_directory:=$(MENUSELECT_OPTS_app_voicemail)
ifneq ($(findstring ODBC_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
  MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_ODBC_STORAGE)
endif
ifneq ($(findstring IMAP_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
  MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_IMAP_STORAGE)
endif

all: _all

add_depends_cmd = sed -i -e '/^\/\*\*\* MODULEINFO/a\\t<depend>$(1)<\/depend>'
app_voicemail_imapstorage.c: app_voicemail.c
	cp $< $@
	$(call add_depends_cmd,imap_tk) $@
	$(call add_depends_cmd,openssl) $@
	cp app_voicemail.exports.in app_voicemail_imapstorage.exports.in
app_voicemail_odbcstorage.c: app_voicemail.c
	cp $< $@
	$(call add_depends_cmd,unixodbc) $@
	$(call add_depends_cmd,ltdl) $@
	cp app_voicemail.exports.in app_voicemail_odbcstorage.exports.in

dist-clean::
	rm -f app_voicemail_*.c
	rm -f app_voicemail_*.exports.in

app_voicemail_imapstorage.o: _ASTCFLAGS+=-DIMAP_STORAGE
app_voicemail_odbcstorage.o: _ASTCFLAGS+=-DODBC_STORAGE

include $(ASTTOPDIR)/Makefile.moddir_rules

clean::
	rm -f confbridge/*.o confbridge/*.i

$(if $(filter app_confbridge,$(EMBEDDED_MODS)),modules.link,app_confbridge.so): $(subst .c,.o,$(wildcard confbridge/*.c))
$(subst .c,.o,$(wildcard confbridge/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,app_confbridge)

ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
  LIBS+= -lres_features.so -lres_ael_share.so -lres_monitor.so -lres_speech.so
  LIBS+= -lres_smdi.so
endif