Makefile.am 1.65 KB
Newer Older
1
#
2
# Makefile.am for sofia-sip/libsofia-sip-ua-glib
3 4 5 6 7 8
#
# Copyright (C) 2006 Nokia Corporation
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
# Licensed under LGPL. See file COPYING.
#

9
AUTOMAKE_OPTIONS = foreign 1.7
10

11
SUBDIRS=su-glib nua-glib
12

13 14 15 16 17 18
GLIB_TARGETS=su-glib/libsu-glib.la

if HAVE_GOBJECT
GOBJECT_TARGETS=nua-glib/libnua-glib.la
endif

19 20 21 22
lib_LTLIBRARIES =
if HAVE_GLIB
lib_LTLIBRARIES += libsofia-sip-ua-glib.la
endif
23 24

libsofia_sip_ua_glib_la_SOURCES = 
25 26
libsofia_sip_ua_glib_la_LIBADD = $(GLIB_TARGETS) $(GOBJECT_TARGETS) \
	$(GOBJECT_LIBS) $(GLIB_LIBS)
27

28 29 30
# set the libtool version info version:revision:age for libsofia-sip-ua-glib
# - soname to 'libsofia-sip-ua-glib.so.(CUR-AGE)'
libsofia_sip_ua_glib_la_LDFLAGS = \
31
	-version-info $(LIBVER_SOFIA_SIP_UA_GLIB_CUR):$(LIBVER_SOFIA_SIP_UA_GLIB_REV):$(LIBVER_SOFIA_SIP_UA_GLIB_AGE)
32

33 34
DOXYGEN = doxygen

35 36 37 38
EXTRA_DIST = docs/Doxyfile.aliases \
	     docs/Doxyfile.conf \
	     docs/Doxyfile.version

39 40 41
built-sources: built-sources-recursive 
clean-built-sources: clean-built-sources-recursive

42 43 44 45 46 47 48
built-sources-recursive clean-built-sources-recursive:
	target=`echo $@ | sed s/-recursive//`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  echo "Making $@ in $$subdir"; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target) \
	done;

49
doxygen: built-sources
50
	@cd ${srcdir} ;\
51
	mkdir -p docs docs/html &&\
52 53 54 55 56 57 58
	for d in $(DIST_SUBDIRS) $(DIST_SUBDIRS); do \
	  test -r $$d/Doxyfile \
	  && pushd $$d > /dev/null \
	  && echo running ${DOXYGEN} in $$d \
          && ${DOXYGEN} \
          && popd > /dev/null ; \
	done
59
	cd ${srcdir}/docs/html && ../../${top_srcdir}/libsofia-sip-ua/docs/hide_emails.sh
60 61

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