Makefile.am 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #
  2. # Makefile.am @template@ for su module
  3. #
  4. # Copyright (C) 2006 Nokia Corporation
  5. # Contact: Pekka Pessi <pekka.pessi@nokia.com>
  6. # Licensed under LGPL. See file COPYING.
  7. #
  8. # ----------------------------------------------------------------------
  9. # Headers
  10. # ----------------------------------------------------------------------
  11. # Build targets
  12. noinst_LTLIBRARIES = libsu.la
  13. bin_PROGRAMS = addrinfo localinfo
  14. check_PROGRAMS = torture_su torture_su_port \
  15. torture_su_alloc torture_su_time torture_su_tag \
  16. test_htable test_htable2 torture_rbtree torture_heap \
  17. test_memmem torture_su_bm \
  18. torture_su_root torture_su_timer \
  19. test_su su_proxy test_poll $(OSXPROGS)
  20. # ----------------------------------------------------------------------
  21. # Tests
  22. TESTS = torture_su torture_su_port \
  23. torture_su_alloc torture_su_time torture_su_tag \
  24. test_htable test_htable2 torture_rbtree torture_heap \
  25. test_memmem torture_su_bm \
  26. torture_su_root torture_su_timer \
  27. run_addrinfo run_localinfo run_test_su \
  28. $(OSXTESTS)
  29. # ----------------------------------------------------------------------
  30. # Rules for building the targets
  31. BUILT_SOURCES = su_tag_ref.c
  32. nobase_include_sofia_HEADERS = \
  33. sofia-sip/su_types.h sofia-sip/su.h \
  34. sofia-sip/su_errno.h sofia-sip/su_addrinfo.h \
  35. sofia-sip/su_localinfo.h sofia-sip/su_wait.h \
  36. sofia-sip/su_alloc.h sofia-sip/su_alloc_stat.h \
  37. sofia-sip/su_strlst.h sofia-sip/su_vector.h \
  38. sofia-sip/su_time.h sofia-sip/su_tag.h \
  39. sofia-sip/su_tag_class.h sofia-sip/su_tagarg.h \
  40. sofia-sip/su_tag_io.h sofia-sip/su_tag_inline.h \
  41. sofia-sip/htable.h sofia-sip/htable2.h \
  42. sofia-sip/rbtree.h sofia-sip/heap.h \
  43. sofia-sip/su_debug.h sofia-sip/su_log.h \
  44. sofia-sip/su_config.h sofia-sip/su_md5.h \
  45. sofia-sip/su_uniqueid.h sofia-sip/su_bm.h \
  46. sofia-sip/tstdef.h sofia-sip/su_os_nw.h \
  47. sofia-sip/su_string.h sofia-sip/string0.h \
  48. $(OSXHEADERS)
  49. nobase_nodist_include_sofia_HEADERS = sofia-sip/su_configure.h
  50. libsu_la_SOURCES = \
  51. su.c su_errno.c su_addrinfo.c \
  52. su_alloc.c su_alloc_lock.c su_strdup.c su_sprintf.c \
  53. su_strlst.c su_vector.c \
  54. su_time.c su_time0.c \
  55. su_wait.c su_root.c su_timer.c \
  56. su_port.c su_port.h \
  57. su_base_port.c su_pthread_port.c su_socket_port.c \
  58. su_poll_port.c su_epoll_port.c su_select_port.c su_kqueue_port.c \
  59. su_devpoll_port.c \
  60. su_localinfo.c \
  61. su_os_nw.c \
  62. su_taglist.c su_tag.c su_tag_io.c \
  63. su_log.c su_global_log.c su_default_log.c su_module_debug.h \
  64. su_md5.c su_uniqueid.c su_bm.c smoothsort.c su_string.c string0.c \
  65. $(OSXSOURCES)
  66. EXTRA_libsu_la_SOURCES = \
  67. memmem.c strtoull.c \
  68. memspn.c memcspn.c memccpy.c \
  69. inet_ntop.c inet_pton.c poll.c getopt.c \
  70. su_tag_ref.c
  71. # Automake 1.9 complains about missing CXX
  72. EXTRA_DIST = su_win32_port.c \
  73. su_open_c_localinfo.cpp
  74. libsu_la_LIBADD = $(REPLACE_LIBADD)
  75. libsu_la_DEPENDENCIES = $(REPLACE_LIBADD)
  76. COVERAGE_INPUT = $(libsu_la_SOURCES) $(include_sofia_HEADERS)
  77. LDADD = libsu.la
  78. # ----------------------------------------------------------------------
  79. # Install and distribution rules
  80. EXTRA_DIST += su.docs \
  81. run_addrinfo run_localinfo run_test_su
  82. dist_pkgdata_SCRIPTS = tag_dll.awk
  83. sofia-sip/su_configure.h: sofia-sip/su_configure.h.in
  84. # ----------------------------------------------------------------------
  85. # Automake options
  86. AUTOMAKE_OPTIONS = foreign
  87. # ----------------------------------------------------------------------
  88. # Sofia specific rules
  89. include $(top_srcdir)/rules/sofia.am
  90. # ----------------------------------------------------------------------
  91. # OS X stuff
  92. if COREFOUNDATION
  93. OSXSOURCES = su_osx_runloop.c
  94. OSXHEADERS = sofia-sip/su_osx_runloop.h
  95. OSXPROGS = torture_su_root_osx test_su_osx
  96. OSXTESTS = torture_su_root_osx run_test_su_osx
  97. endif
  98. EXTRA_DIST += su_osx_runloop.c sofia-sip/su_osx_runloop.h