Makefile.am 3.07 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 13 14 15 16 17 18 19 20 21 22 23 24 25
# select whicn optional sofia-sip modules have been enabled
# 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 = 
36
libsofia_sip_ua_la_LIBADD = 	bnf/libbnf.la \
Pekka Pessi's avatar
Pekka Pessi committed
37
				features/libfeatures.la \
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)
57

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

60
doxygen: built-sources
61
	@echo Generating empty doxytags
Pekka Pessi's avatar
Pekka Pessi committed
62
	cd ${srcdir}; \
63
	mkdir -p docs/html ; \
Pekka Pessi's avatar
Pekka Pessi committed
64 65
	for d in $(DIST_SUBDIRS); do \
	  test -r $$d/Doxyfile || continue ; \
66 67
	  if ! test -r docs/$$d.doxytags ; then \
	    echo '<?xml version="1.0"?><tagfile/>' > docs/$$d.doxytags ; \
68 69 70 71
	  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 ; \
72
          fi ; \
Pekka Pessi's avatar
Pekka Pessi committed
73 74
	done
	@cd ${srcdir} ;\
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|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 90
	done 
	@cd ${srcdir} ;\
	for d in $(DIST_SUBDIRS); do \
	  test -r $$d/Doxyfile \
	  && pushd $$d > /dev/null \
91
	  && echo running ${DOXYGEN} second time in $$d \
92 93
          && ${DOXYGEN} 2>&1 \
	   | egrep -v -i -e 'Warning: Unsupported (xml/)?html tag' \
94 95 96 97 98
          ; 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 ; \
99
	done 
Pekka Pessi's avatar
Pekka Pessi committed
100 101 102
	cd ${srcdir}/docs/html && ../hide_emails.sh

.PHONY: built-sources built-sources-am empty-doxytags doxygen