2006-12-21 01:30:28 -05:00
|
|
|
#
|
|
|
|
# Makefile.am for sofia-sip/libsofia-sip-ua
|
|
|
|
#
|
|
|
|
# Copyright (C) 2005,2006 Nokia Corporation
|
|
|
|
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
|
|
|
|
# Licensed under LGPL. See file COPYING.
|
|
|
|
#
|
|
|
|
# ref: http://www.gnu.org/software/automake/manual/automake.html
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
|
2007-05-08 15:14:10 -04:00
|
|
|
# select which optional sofia-sip modules have been enabled
|
2007-04-14 22:03:41 -04:00
|
|
|
# in the build
|
|
|
|
OPT_LIBADD =
|
|
|
|
OPT_SUBDIRS_STUN =
|
2007-11-12 11:04:47 -05:00
|
|
|
OPT_SUBDIRS_HTTP =
|
2007-04-14 22:03:41 -04:00
|
|
|
OPT_SUBDIRS_NTH =
|
|
|
|
if HAVE_STUN
|
|
|
|
OPT_LIBADD += stun/libstun.la
|
|
|
|
OPT_SUBDIRS_STUN += stun
|
|
|
|
endif
|
|
|
|
if HAVE_NTH
|
2007-11-12 11:04:47 -05:00
|
|
|
OPT_LIBADD += http/libhttp.la nth/libnth.la
|
|
|
|
OPT_SUBDIRS_HTTP += http
|
|
|
|
OPT_SUBDIRS_NTH += nth
|
2007-04-14 22:03:41 -04:00
|
|
|
endif
|
|
|
|
|
2006-12-21 01:30:28 -05:00
|
|
|
# note: order does matter in the subdir list
|
2007-11-12 11:04:47 -05:00
|
|
|
SUBDIRS = su features bnf sresolv ipt sdp url msg sip $(OPT_SUBDIRS_HTTP) \
|
|
|
|
$(OPT_SUBDIRS_STUN) soa tport nta $(OPT_SUBDIRS_NTH) \
|
|
|
|
nea iptsec nua
|
|
|
|
DIST_SUBDIRS = su features bnf sresolv ipt sdp url msg sip http \
|
|
|
|
stun soa tport nta nth \
|
|
|
|
nea iptsec nua docs
|
2006-12-21 01:30:28 -05:00
|
|
|
|
|
|
|
DOXYGEN = doxygen
|
|
|
|
|
2007-05-10 17:42:16 -04:00
|
|
|
noinst_LTLIBRARIES = libsofia-sip-ua.la
|
2006-12-21 01:30:28 -05:00
|
|
|
|
|
|
|
libsofia_sip_ua_la_SOURCES =
|
|
|
|
libsofia_sip_ua_la_LIBADD = bnf/libbnf.la \
|
|
|
|
features/libfeatures.la \
|
|
|
|
ipt/libipt.la \
|
|
|
|
iptsec/libiptsec.la \
|
|
|
|
msg/libmsg.la \
|
|
|
|
nea/libnea.la \
|
|
|
|
nta/libnta.la \
|
|
|
|
nua/libnua.la \
|
|
|
|
sdp/libsdp.la \
|
|
|
|
sip/libsip.la \
|
|
|
|
soa/libsoa.la \
|
|
|
|
sresolv/libsresolv.la \
|
|
|
|
su/libsu.la \
|
|
|
|
tport/libtport.la \
|
2007-04-14 22:03:41 -04:00
|
|
|
url/liburl.la \
|
|
|
|
$(OPT_LIBADD)
|
|
|
|
|
2006-12-21 01:30:28 -05:00
|
|
|
# set the libtool version info version:revision:age for libsofia-sip-ua
|
|
|
|
# - soname to 'libsofia-sip-ua.so.(CUR-AGE)'
|
|
|
|
libsofia_sip_ua_la_LDFLAGS = \
|
|
|
|
-version-info $(LIBVER_SOFIA_SIP_UA_CUR):$(LIBVER_SOFIA_SIP_UA_REV):$(LIBVER_SOFIA_SIP_UA_AGE)
|
|
|
|
|
2007-05-08 15:14:10 -04:00
|
|
|
PHONY = doxygen built-sources
|
|
|
|
|
2007-04-14 22:03:41 -04:00
|
|
|
include $(top_srcdir)/rules/recursive.am
|
2006-12-21 01:30:28 -05:00
|
|
|
|
|
|
|
doxygen: built-sources
|
|
|
|
@echo Generating empty doxytags
|
|
|
|
mkdir -p docs/html ; \
|
|
|
|
for d in $(DIST_SUBDIRS); do \
|
|
|
|
test -r $$d/Doxyfile || continue ; \
|
|
|
|
if ! test -r docs/$$d.doxytags ; then \
|
|
|
|
echo '<?xml version="1.0"?><tagfile/>' > docs/$$d.doxytags ; \
|
|
|
|
else \
|
|
|
|
sed '2,10s!<name>index</name>!<name>'$$d'_index</name>!' \
|
|
|
|
docs/$$d.doxytags > docs/$$d.doxytags.tmp && \
|
|
|
|
mv -f docs/$$d.doxytags.tmp docs/$$d.doxytags ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
for d in $(DIST_SUBDIRS); do \
|
|
|
|
test -r $$d/Doxyfile \
|
|
|
|
&& pushd $$d > /dev/null \
|
|
|
|
&& echo running ${DOXYGEN} first time in $$d \
|
|
|
|
&& ${DOXYGEN} 2>&1 \
|
2007-04-19 18:28:01 -04:00
|
|
|
| egrep -v -i -e 'Warning: (unsupported (xml/)?html tag|unable to resolve reference|explicit link.*could not be resolved)' \
|
2006-12-21 01:30:28 -05:00
|
|
|
; popd > /dev/null ; \
|
|
|
|
test -r docs/$$d.doxytags && \
|
|
|
|
sed '2,10s!<name>index</name>!<name>'$$d'_index</name>!' \
|
|
|
|
docs/$$d.doxytags > docs/$$d.doxytags.tmp && \
|
|
|
|
mv -f docs/$$d.doxytags.tmp docs/$$d.doxytags ; \
|
|
|
|
done
|
|
|
|
for d in $(DIST_SUBDIRS); do \
|
|
|
|
test -r $$d/Doxyfile \
|
|
|
|
&& pushd $$d > /dev/null \
|
2007-01-02 10:11:55 -05:00
|
|
|
&& echo running ${DOXYGEN} second time in $$d \
|
2006-12-21 01:30:28 -05:00
|
|
|
&& ${DOXYGEN} 2>&1 \
|
|
|
|
| egrep -v -i -e 'Warning: Unsupported (xml/)?html tag' \
|
|
|
|
; popd > /dev/null ; \
|
|
|
|
test -r docs/$$d.doxytags && \
|
|
|
|
sed '2,10s!<name>index</name>!<name>'$$d'_index</name>!' \
|
|
|
|
docs/$$d.doxytags > docs/$$d.doxytags.tmp && \
|
|
|
|
mv -f docs/$$d.doxytags.tmp docs/$$d.doxytags ; \
|
|
|
|
done
|
2007-04-19 18:28:01 -04:00
|
|
|
${srcdir}/docs/hide_emails.sh docs/html
|
2006-12-21 01:30:28 -05:00
|
|
|
|
2007-05-08 15:14:10 -04:00
|
|
|
if HAVE_LCOV
|
|
|
|
include $(top_srcdir)/rules/lcov.am
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: $(PHONY)
|