forked from muggot/openmcu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
136 lines (127 loc) · 3.87 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
## Process this file with automake to produce Makefile.in
####################################################################################################
all:
if COMPILE_PTLIB
($(MAKE) $(MAKEFLAGS) @PTLIB_BUILDOPTS@ -C @PTLIBDIR@) || exit $$?
($(MAKE) $(MAKEFLAGS) @H323PLUS_BUILDOPTS@ -C @H323PLUSDIR@) || exit $$?
endif
if COMPILE_LIBYUV
cd @LIBYUV_DIR@ && \
( for file in source/*.cc; do \
echo $$file ; $(CC) -fPIC -c -fno-stack-protector -Iinclude $$file -o $$file.o ; \
done \
) \
&& \
gcc -shared -Wl,-soname,libyuv.so -o libyuv.so source/*.o -lstdc++
endif
if COMPILE_LIBSRTP
($(MAKE) $(MAKEFLAGS) -C @LIBSRTP_DIR@) || exit $$?
endif
if COMPILE_LIBZRTP
($(MAKE) $(MAKEFLAGS) -C @LIBZRTP_DIR@) || exit $$?
endif
if COMPILE_SOFIASIP
($(MAKE) $(MAKEFLAGS) @SOFIASIP_BUILDOPTS@ -C @LIBSOFIA_DIR@) || exit $$?
endif
if COMPILE_LIBSPEEX
($(MAKE) $(MAKEFLAGS) -C @LIBSPEEX_DIR@) || exit $$?
endif
if COMPILE_LIBOPUS
($(MAKE) $(MAKEFLAGS) -C @LIBOPUS_DIR@) || exit $$?
endif
if COMPILE_LIBG7221
($(MAKE) $(MAKEFLAGS) -C @LIBG7221_DIR@) || exit $$?
endif
($(MAKE) $(MAKEFLAGS) @MCU_BUILDOPTS@ -C @MCUDIR@) || exit $$?
( for dir in @PLUGIN_DIRS@; \
do ($(MAKE) $(MAKEFLAGS) -C $$dir) || exit $$?; \
done )
####################################################################################################
install:
($(MAKE) install -C @MCUDIR@) || exit $$?
( for dir in @PLUGIN_DIRS@; \
do ($(MAKE) install -C $$dir) || exit $$?; \
done )
if COMPILE_PTLIB
if COMPILE_PTLIB_NO_STATIC
install -m 644 @PTLIB_BUILDDIR@/@PTLIB_SO_FILE@ $(DESTDIR)@MCU_LIB_DIR@
install -m 644 @H323PLUS_BUILDDIR@/@H323PLUS_SO_FILE@ $(DESTDIR)@MCU_LIB_DIR@
endif
endif
if COMPILE_SOFIASIP
cp -P @LIBSOFIA_DIR@/libsofia-sip-ua/.libs/libsofia-sip-ua.so* $(DESTDIR)@MCU_LIB_DIR@
endif
if COMPILE_LIBYUV
cp -P @LIBYUV_DIR@/libyuv.so* $(DESTDIR)@MCU_LIB_DIR@
endif
if COMPILE_LIBOPUS
cp -P @LIBOPUS_DIR@/.libs/libopus.so* $(DESTDIR)@MCU_LIB_DIR@
endif
if COMPILE_LIBSPEEX
cp -P @LIBSPEEX_DIR@/libspeex/.libs/libspeex.so* $(DESTDIR)@MCU_LIB_DIR@
endif
if COMPILE_LIBSRTP
cp -P @LIBSRTP_DIR@/libsrtp.so* $(DESTDIR)@MCU_LIB_DIR@
endif
if COMPILE_LIBZRTP
cp -P @LIBZRTP_DIR@/.libs/libzrtp.so* $(DESTDIR)@MCU_LIB_DIR@
endif
####################################################################################################
uninstall:
($(MAKE) uninstall -C @MCUDIR@) || exit $$?
( for dir in @PLUGIN_DIRS@; \
do ($(MAKE) uninstall -C $$dir) || exit $$?; \
done )
if COMPILE_PTLIB
if COMPILE_PTLIB_NO_STATIC
rm -f $(DESTDIR)@MCU_LIB_DIR@/@PTLIB_SO_FILE@
rm -f $(DESTDIR)@MCU_LIB_DIR@/@H323PLUS_SO_FILE@
endif
endif
if COMPILE_SOFIASIP
rm -f $(DESTDIR)@MCU_LIB_DIR@/libsofia-sip-ua.so*
endif
if COMPILE_LIBYUV
rm -f $(DESTDIR)@MCU_LIB_DIR@/libyuv.so*
endif
if COMPILE_LIBOPUS
rm -f $(DESTDIR)@MCU_LIB_DIR@/libopus.so*
endif
if COMPILE_LIBSPEEX
rm -f $(DESTDIR)@MCU_LIB_DIR@/libspeex.so*
endif
if COMPILE_LIBSRTP
rm -f $(DESTDIR)@MCU_LIB_DIR@/libsrtp.so*
endif
if COMPILE_LIBZRTP
rm -f $(DESTDIR)@MCU_LIB_DIR@/libzrtp.so*
endif
####################################################################################################
clean:
if COMPILE_LIBSRTP
($(MAKE) clean -C @LIBSRTP_DIR@) || exit $$?
endif
if COMPILE_LIBZRTP
($(MAKE) clean -C @LIBZRTP_DIR@) || exit $$?
endif
if COMPILE_SOFIASIP
($(MAKE) clean -C @LIBSOFIA_DIR@) || exit $$?
endif
if COMPILE_LIBOPUS
($(MAKE) clean -C @LIBOPUS_DIR@) || exit $$?
endif
if COMPILE_LIBSPEEX
($(MAKE) clean -C @LIBSPEEX_DIR@) || exit $$?
endif
if COMPILE_LIBG7221
($(MAKE) clean -C @LIBG7221_DIR@) || exit $$?
endif
if COMPILE_PTLIB
($(MAKE) clean -C @PTLIBDIR@) || exit $$?
($(MAKE) clean -C @H323PLUSDIR@) || exit $$?
endif
($(MAKE) clean -C @MCUDIR@) || exit $$?
( for dir in @PLUGIN_DIRS@; \
do ($(MAKE) clean -C $$dir) || exit $$?; \
done )
####################################################################################################