Makefile.am 2.8 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 12
# ref: http://www.gnu.org/software/automake/manual/automake.html

AUTOMAKE_OPTIONS = foreign

# note: order does matter in the subdir list
13 14
SUBDIRS = su features bnf sresolv sdp url msg sip stun ipt soa \
	  tport http nta nea iptsec nth nua
15
DIST_SUBDIRS = $(SUBDIRS) docs
16

Pekka Pessi's avatar
Pekka Pessi committed
17
DOXYGEN = doxygen
Pekka Pessi's avatar
Pekka Pessi committed
18 19 20 21

lib_LTLIBRARIES = libsofia-sip-ua.la

libsofia_sip_ua_la_SOURCES = 
22
libsofia_sip_ua_la_LIBADD = 	bnf/libbnf.la \
Pekka Pessi's avatar
Pekka Pessi committed
23
				features/libfeatures.la \
24 25 26 27 28 29 30 31 32 33 34 35 36
				ipt/libipt.la \
				iptsec/libiptsec.la \
				msg/libmsg.la \
				nea/libnea.la \
				nta/libnta.la \
				nth/libnth.la \
				nua/libnua.la \
				http/libhttp.la \
				sdp/libsdp.la \
				sip/libsip.la \
				soa/libsoa.la \
				sresolv/libsresolv.la \
				su/libsu.la \
37
				stun/libstun.la \
38
				tport/libtport.la \
39
				url/liburl.la
40

41 42 43
# 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 = \
44
	-version-info $(LIBVER_SOFIA_SIP_UA_CUR):$(LIBVER_SOFIA_SIP_UA_REV):$(LIBVER_SOFIA_SIP_UA_AGE)
45

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

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

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