-
Notifications
You must be signed in to change notification settings - Fork 43
/
Makefile.in
167 lines (144 loc) · 4.62 KB
/
Makefile.in
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
#
# Makefile
#
# Make file for H323plus library
#
# Copyright (c) 1998-2000 Equivalence Pty. Ltd.
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.0 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
# the License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is Open H323 library.
#
# The Initial Developer of the Original Code is Equivalence Pty. Ltd.
#
# Contributor(s): ______________________________________.
#
# $Id$
#
PREFIX=@INSTALLPREFIX@
exec_prefix = $(PREFIX)
LIBDIR=@LIBDIR@
export OPENH323DIR=@OPENH323DIR@
INSTALL=@INSTALL@
export HAS_PTLIB_LIB_MAK=@HAS_PTLIB_LIB_MAK@
###### new ptlib
ifndef HAS_PTLIB_LIB_MAK
export PT_LIBDIR=@PT_LIBDIR@
export PW_LIBDIR=@PT_LIBDIR@
export target_os=@target_os@
export target_cpu=@target_cpu@
export PTLIB_CXXFLAGS=@PTLIB_CXXFLAGS@
export OSTYPE=@target_os@
export PLATFORM_TYPE=@target_cpu@
endif
default :: optshared
all :: bothdepend both
include $(OPENH323DIR)/openh323u.mak
# export NOAUDIOCODECS=true
# export NOVIDEO=true
SUBDIRS := samples/simple
ifneq (,$(wildcard dump323))
SUBDIRS += dump323
endif
ifneq (,$(wildcard openam))
SUBDIRS += openam
endif
ifneq (,$(wildcard pstngw))
SUBDIRS += pstngw
endif
ifneq (,$(wildcard openphone))
ifneq (,$(wildcard $(PTLIBDIR)/src/pwlib))
SUBDIRS += openphone
endif
endif
PREFIX=@INSTALLPREFIX@/
exec_prefix = ${PREFIX}
LIBDIR=@LIBDIR@
ifndef PREFIX
PREFIX=/usr/local
endif
update:
cvs update
$(MAKE) all
# standard build command
$(subst tagbuild,,$(STANDARD_TARGETS)) ::
$(MAKE) -C src $@
notrace::
$(MAKE) NOTRACE=1
docs:
doxygen h323plus_cfg.dxy
install: opt
echo "*** 'make install' is usually a bad idea, use 'make optnoshared' and point OPENH323DIR to your source dir ***"
mkdir -p $(DESTDIR)$(LIBDIR)
rm -f $(DESTDIR)$(LIBDIR)/libh323_*_r.so*
$(INSTALL) -m 444 lib/$(OH323_FILE).@MAJOR_VERSION@.@MINOR_VERSION@.@BUILD_NUMBER@ $(DESTDIR)$(LIBDIR)
(cd $(DESTDIR)$(LIBDIR) ; \
rm -f $(OH323_FILE).@MAJOR_VERSION@.@MINOR_VERSION@ ; \
ln -sf $(OH323_FILE).@MAJOR_VERSION@.@MINOR_VERSION@.@BUILD_NUMBER@ $(OH323_FILE).@MAJOR_VERSION@.@MINOR_VERSION@ \
)
(cd $(DESTDIR)$(LIBDIR) ; \
rm -f $(OH323_FILE).@MAJOR_VERSION@ ; \
ln -sf $(OH323_FILE).@MAJOR_VERSION@.@MINOR_VERSION@.@BUILD_NUMBER@ $(OH323_FILE).@MAJOR_VERSION@ \
)
(cd $(DESTDIR)$(LIBDIR) ; \
rm -f $(OH323_FILE) ; \
ln -sf $(OH323_FILE).@MAJOR_VERSION@.@MINOR_VERSION@.@BUILD_NUMBER@ $(OH323_FILE) \
)
(cd $(DESTDIR)$(LIBDIR); \
rm -f libopenh323.$(SHAREDLIBEXT) ; \
ln -sf $(OH323_FILE) libopenh323.$(SHAREDLIBEXT) \
)
( for dir in $(DESTDIR)$(LIBDIR) \
$(DESTDIR)$(PREFIX)/include/openh323 \
$(DESTDIR)$(PREFIX)/include/openh323/codec \
$(DESTDIR)$(PREFIX)/include/openh323/h224 \
$(DESTDIR)$(PREFIX)/include/openh323/h230 \
$(DESTDIR)$(PREFIX)/include/openh323/h235 \
$(DESTDIR)$(PREFIX)/include/openh323/h341 \
$(DESTDIR)$(PREFIX)/include/openh323/h350 \
$(DESTDIR)$(PREFIX)/include/openh323/h450 \
$(DESTDIR)$(PREFIX)/include/openh323/h460 \
$(DESTDIR)$(PREFIX)/share/openh323 ;\
do mkdir -p $$dir ; chmod 755 $$dir ; \
done)
( for fn in include/*.h ; do \
$(INSTALL) -m 444 $$fn $(DESTDIR)$(PREFIX)/include/openh323 ; \
done)
( for fn in include/codec/*.h ; do \
$(INSTALL) -m 444 $$fn $(DESTDIR)$(PREFIX)/include/openh323/codec ; \
done)
( for fn in include/h224/*.h ; do \
$(INSTALL) -m 444 $$fn $(DESTDIR)$(PREFIX)/include/openh323/h224 ; \
done)
( for fn in include/h230/*.h ; do \
$(INSTALL) -m 444 $$fn $(DESTDIR)$(PREFIX)/include/openh323/h230 ; \
done)
( for fn in include/h235/*.h ; do \
$(INSTALL) -m 444 $$fn $(DESTDIR)$(PREFIX)/include/openh323/h235 ; \
done)
( for fn in include/h341/*.h ; do \
$(INSTALL) -m 444 $$fn $(DESTDIR)$(PREFIX)/include/openh323/h341 ; \
done)
( for fn in include/h350/*.h ; do \
$(INSTALL) -m 444 $$fn $(DESTDIR)$(PREFIX)/include/openh323/h350 ; \
done)
( for fn in include/h450/*.h ; do \
$(INSTALL) -m 444 $$fn $(DESTDIR)$(PREFIX)/include/openh323/h450 ; \
done)
( for fn in include/h460/*.h ; do \
$(INSTALL) -m 444 $$fn $(DESTDIR)$(PREFIX)/include/openh323/h460 ; \
done)
$(INSTALL) -m 444 openh323u.mak $(DESTDIR)$(PREFIX)/share/openh323
uninstall:
rm -rf $(DESTDIR)$(PREFIX)/include/openh323 \
$(PREFIX)/share/openh323
rm -f $(DESTDIR)$(LIBDIR)/$(OH323_FILE) \
$(DESTDIR)$(LIBDIR)/libopenh323.so