Makefile.am 3.27 KB
Newer Older
1 2 3 4 5 6 7
#
# 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.
#
Pekka Pessi's avatar
Pekka Pessi committed
8 9 10 11
# ref: http://www.gnu.org/software/automake/manual/automake.html

AUTOMAKE_OPTIONS = foreign

12
# select which optional sofia-sip modules have been enabled
13
# in the build
14
OPT_LIBADD = $(openssl_LIBS)
15
OPT_SUBDIRS_STUN =
16
OPT_SUBDIRS_HTTP =
17 18
OPT_SUBDIRS_NTH =
if HAVE_STUN
19
OPT_LIBADD += stun/libstun.la
20 21 22
OPT_SUBDIRS_STUN += stun
endif
if HAVE_NTH
23
OPT_LIBADD += http/libhttp.la nth/libnth.la
24
OPT_SUBDIRS_HTTP += http
25
OPT_SUBDIRS_NTH += nth
26 27
endif

Pekka Pessi's avatar
Pekka Pessi committed
28
# note: order does matter in the subdir list
29 30 31 32 33 34
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
35

Pekka Pessi's avatar
Pekka Pessi committed
36
DOXYGEN = doxygen
Pekka Pessi's avatar
Pekka Pessi committed
37 38 39

lib_LTLIBRARIES = libsofia-sip-ua.la

40
libsofia_sip_ua_la_SOURCES =
41
libsofia_sip_ua_la_LIBADD = 	bnf/libbnf.la \
Pekka Pessi's avatar
Pekka Pessi committed
42
				features/libfeatures.la \
43 44 45 46 47 48 49 50 51 52 53 54
				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 \
55 56
				url/liburl.la \
				$(OPT_LIBADD)
57

58 59 60
# 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 = \
61
	-version-info $(LIBVER_SOFIA_SIP_UA_CUR):$(LIBVER_SOFIA_SIP_UA_REV):$(LIBVER_SOFIA_SIP_UA_AGE)
62

Pekka Pessi's avatar
Pekka Pessi committed
63
PHONY = doxygen built-sources
64

65
include $(top_srcdir)/rules/recursive.am
Pekka Pessi's avatar
Pekka Pessi committed
66

67 68
checklib: checklib-recursive $(lib_LTLIBRARIES)

69
doxygen: built-sources
70
	@echo Generating empty doxytags
71
	@mkdir -p docs/html ; \
Pekka Pessi's avatar
Pekka Pessi committed
72 73
	for d in $(DIST_SUBDIRS); do \
	  test -r $$d/Doxyfile || continue ; \
74 75
	  if ! test -r docs/$$d.doxytags ; then \
	    echo '<?xml version="1.0"?><tagfile/>' > docs/$$d.doxytags ; \
76 77 78 79
	  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 ; \
80
          fi ; \
Pekka Pessi's avatar
Pekka Pessi committed
81
	done
82
	@for d in $(DIST_SUBDIRS); do \
83 84 85 86 87 88
	  ( test -r $$d/Doxyfile && \
	  cd $$d > /dev/null && \
	  echo running ${DOXYGEN} first time in $$d && \
          ${DOXYGEN} 2>&1 ) | \
	  egrep -v -i -e 'Warning: (unsupported (xml/)?html tag|unable to resolve reference|explicit link.*could not be resolved)' ; \
          test -r docs/$$d.doxytags && \
89 90 91
	  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 ; \
92
	done
93
	@for d in $(DIST_SUBDIRS); do \
94
	  ( test -r $$d/Doxyfile && \
95
	    cd $$d > /dev/null && \
96 97 98
	    echo running ${DOXYGEN} second time in $$d && \
            ${DOXYGEN} 2>&1 ) | \
	    egrep -v -i -e 'Warning: Unsupported (xml/)?html tag' ; \
99 100 101 102
	  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 ; \
103
	done
104
	${top_srcdir}/scripts/hide_emails.sh docs/html
Pekka Pessi's avatar
Pekka Pessi committed
105

106
if HAVE_LCOV
Pekka Pessi's avatar
Pekka Pessi committed
107
include $(top_srcdir)/rules/lcov.am
108 109
endif

110 111
include $(top_srcdir)/rules/silent.am

112
.PHONY: $(PHONY)