Makefile.am 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. #
  2. # Makefile.am for sofia-sip/libsofia-sip-ua
  3. #
  4. # Copyright (C) 2005,2006 Nokia Corporation
  5. # Contact: Pekka Pessi <pekka.pessi@nokia.com>
  6. # Licensed under LGPL. See file COPYING.
  7. #
  8. # ref: http://www.gnu.org/software/automake/manual/automake.html
  9. AUTOMAKE_OPTIONS = foreign
  10. # select which optional sofia-sip modules have been enabled
  11. # in the build
  12. OPT_LIBADD =
  13. OPT_SUBDIRS_STUN =
  14. OPT_SUBDIRS_HTTP =
  15. OPT_SUBDIRS_NTH =
  16. if HAVE_STUN
  17. OPT_LIBADD += stun/libstun.la
  18. OPT_SUBDIRS_STUN += stun
  19. endif
  20. if HAVE_NTH
  21. OPT_LIBADD += http/libhttp.la nth/libnth.la
  22. OPT_SUBDIRS_HTTP += http
  23. OPT_SUBDIRS_NTH += nth
  24. endif
  25. # note: order does matter in the subdir list
  26. SUBDIRS = su features bnf sresolv ipt sdp url msg sip $(OPT_SUBDIRS_HTTP) \
  27. $(OPT_SUBDIRS_STUN) soa tport nta $(OPT_SUBDIRS_NTH) \
  28. nea iptsec nua
  29. DIST_SUBDIRS = su features bnf sresolv ipt sdp url msg sip http \
  30. stun soa tport nta nth \
  31. nea iptsec nua docs
  32. DOXYGEN = doxygen
  33. lib_LTLIBRARIES = libsofia-sip-ua.la
  34. libsofia_sip_ua_la_SOURCES =
  35. libsofia_sip_ua_la_LIBADD = bnf/libbnf.la \
  36. features/libfeatures.la \
  37. ipt/libipt.la \
  38. iptsec/libiptsec.la \
  39. msg/libmsg.la \
  40. nea/libnea.la \
  41. nta/libnta.la \
  42. nua/libnua.la \
  43. sdp/libsdp.la \
  44. sip/libsip.la \
  45. soa/libsoa.la \
  46. sresolv/libsresolv.la \
  47. su/libsu.la \
  48. tport/libtport.la \
  49. url/liburl.la \
  50. $(OPT_LIBADD)
  51. # set the libtool version info version:revision:age for libsofia-sip-ua
  52. # - soname to 'libsofia-sip-ua.so.(CUR-AGE)'
  53. libsofia_sip_ua_la_LDFLAGS = \
  54. -version-info $(LIBVER_SOFIA_SIP_UA_CUR):$(LIBVER_SOFIA_SIP_UA_REV):$(LIBVER_SOFIA_SIP_UA_AGE)
  55. if HAVE_ZLIB
  56. libsofia_sip_ua_la_LDFLAGS += -lz
  57. endif
  58. PHONY = doxygen built-sources
  59. include $(top_srcdir)/rules/recursive.am
  60. checklib: checklib-recursive $(lib_LTLIBRARIES)
  61. doxygen: built-sources
  62. @echo Generating empty doxytags
  63. mkdir -p docs/html ; \
  64. for d in $(DIST_SUBDIRS); do \
  65. test -r $$d/Doxyfile || continue ; \
  66. if ! test -r docs/$$d.doxytags ; then \
  67. echo '<?xml version="1.0"?><tagfile/>' > docs/$$d.doxytags ; \
  68. else \
  69. sed '2,10s!<name>index</name>!<name>'$$d'_index</name>!' \
  70. docs/$$d.doxytags > docs/$$d.doxytags.tmp && \
  71. mv -f docs/$$d.doxytags.tmp docs/$$d.doxytags ; \
  72. fi ; \
  73. done
  74. for d in $(DIST_SUBDIRS); do \
  75. ( test -r $$d/Doxyfile && \
  76. cd $$d > /dev/null && \
  77. echo running ${DOXYGEN} first time in $$d && \
  78. ${DOXYGEN} 2>&1 ) | \
  79. egrep -v -i -e 'Warning: (unsupported (xml/)?html tag|unable to resolve reference|explicit link.*could not be resolved)' ; \
  80. test -r docs/$$d.doxytags && \
  81. sed '2,10s!<name>index</name>!<name>'$$d'_index</name>!' \
  82. docs/$$d.doxytags > docs/$$d.doxytags.tmp && \
  83. mv -f docs/$$d.doxytags.tmp docs/$$d.doxytags ; \
  84. done
  85. for d in $(DIST_SUBDIRS); do \
  86. ( test -r $$d/Doxyfile && \
  87. cd $$d > /dev/null \
  88. echo running ${DOXYGEN} second time in $$d && \
  89. ${DOXYGEN} 2>&1 ) | \
  90. egrep -v -i -e 'Warning: Unsupported (xml/)?html tag' ; \
  91. test -r docs/$$d.doxytags && \
  92. sed '2,10s!<name>index</name>!<name>'$$d'_index</name>!' \
  93. docs/$$d.doxytags > docs/$$d.doxytags.tmp && \
  94. mv -f docs/$$d.doxytags.tmp docs/$$d.doxytags ; \
  95. done
  96. ${top_srcdir}/scripts/hide_emails.sh docs/html
  97. if HAVE_LCOV
  98. include $(top_srcdir)/rules/lcov.am
  99. endif
  100. include $(top_srcdir)/rules/silent.am
  101. .PHONY: $(PHONY)