-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
89 lines (61 loc) · 1.75 KB
/
Makefile.am
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
ACLOCAL_AMFLAGS = -I m4
# FIXME: These should be enabled once the code is safe for them. That requires
# some fairly big refactoring though, which can wait.
# AM_CFLAGS += -Wshadow -Wstrict-aliasing=2
AM_CFLAGS = -I. -I$(includedir)/janus/plugins -I$(includedir)/janus
EXTRA_DIST = $(NULL)
CLEANFILES = $(NULL)
confdir = $(sysconfdir)/janus
conf_DATA = $(NULL)
plugindir = $(libdir)/janus/plugins
plugin_LTLIBRARIES = $(NULL)
SUBDIRS = html
dist_html_DATA = README.md
%.sample: %.sample.in
$(MKDIR_P) $(@D)
$(AM_V_GEN) sed -e "\
s|[@]confdir[@]|$(confdir)|;\
s|[@]certdir[@]|$(certdir)|;\
s|[@]plugindir[@]|$(plugindir)|;\
s|[@]transportdir[@]|$(transportdir)|;\
s|[@]eventdir[@]|$(eventdir)|;\
s|[@]recordingsdir[@]|$(recordingsdir)|;\
s|[@]demosdir[@]|$(demosdir)|;\
s|[@]streamdir[@]|$(streamdir)|; \
s|[@]luadir[@]|$(luadir)|; \
s|[@]duktapedir[@]|$(duktapedir)|" \
$< > $@ || rm $@
.PHONY: FORCE
FORCE:
##
# core libraries
##
##
# Plugins
##
plugins_cflags = \
$(AM_CFLAGS) \
$(PLUGINS_CFLAGS) \
$(NULL)
plugins_libadd = \
$(PLUGINS_LIBS) \
$(NULL)
if ENABLE_PLUGIN_CLOUDROOM
plugin_LTLIBRARIES += plugins/libjanus_cloudroom.la
plugins_libjanus_cloudroom_la_SOURCES = plugins/janus_cloudroom.c
plugins_libjanus_cloudroom_la_CFLAGS = $(plugins_cflags)
plugins_libjanus_cloudroom_la_LDFLAGS = $(plugins_ldflags)
plugins_libjanus_cloudroom_la_LIBADD = $(plugins_libadd)
conf_DATA += conf/janus.plugin.cloudroom.jcfg.sample
EXTRA_DIST += conf/janus.plugin.cloudroom.jcfg.sample
endif
##
# Configuration
##
configs:
$(MKDIR_P) $(DESTDIR)$(confdir)
$(foreach config,$(conf_DATA),cp "$(CURDIR)/$(config)" "$(DESTDIR)$(confdir)/$(notdir $(basename $(config) .sample))";)
##
# Extra cleanup
##
clean-local: