Makefile.am 3.07 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
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 14 15 16 17 18 19 20 21 22 23 24 25
# in the build
OPT_LIBADD =
OPT_SUBDIRS_STUN =
OPT_SUBDIRS_NTH =
if HAVE_STUN
OPT_LIBADD += stun/libstun.la 
OPT_SUBDIRS_STUN += stun
endif
if HAVE_NTH
OPT_LIBADD += nth/libnth.la http/libhttp.la
OPT_SUBDIRS_NTH += nth http
endif

Pekka Pessi's avatar
Pekka Pessi committed
26
# note: order does matter in the subdir list
27 28
SUBDIRS = su features bnf sresolv sdp url msg sip $(OPT_SUBDIRS_STUN) ipt soa \
	  tport nta nea iptsec $(OPT_SUBDIRS_NTH) nua
29
DIST_SUBDIRS = $(SUBDIRS) docs
30

Pekka Pessi's avatar
Pekka Pessi committed
31
DOXYGEN = doxygen
Pekka Pessi's avatar
Pekka Pessi committed
32 33 34 35

lib_LTLIBRARIES = libsofia-sip-ua.la

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

53 54 55
# 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 = \
56
	-version-info $(LIBVER_SOFIA_SIP_UA_CUR):$(LIBVER_SOFIA_SIP_UA_REV):$(LIBVER_SOFIA_SIP_UA_AGE)
Pekka Pessi's avatar
Pekka Pessi committed
57

Pekka Pessi's avatar
Pekka Pessi committed
58
PHONY = doxygen built-sources
59

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

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

101
if HAVE_LCOV
Pekka Pessi's avatar
Pekka Pessi committed
102
include $(top_srcdir)/rules/lcov.am
103 104 105
endif

.PHONY: $(PHONY)