Makefile.am 3.21 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 14 15
# in the build
OPT_LIBADD =
OPT_SUBDIRS_STUN =
16
OPT_SUBDIRS_HTTP =
17 18 19 20 21 22
OPT_SUBDIRS_NTH =
if HAVE_STUN
OPT_LIBADD += stun/libstun.la 
OPT_SUBDIRS_STUN += stun
endif
if HAVE_NTH
23 24 25
OPT_LIBADD += http/libhttp.la nth/libnth.la 
OPT_SUBDIRS_HTTP += http
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 40

lib_LTLIBRARIES = libsofia-sip-ua.la

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

.PHONY: $(PHONY)