2
0

Makefile.am 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. #
  2. # Makefile.am for sip module
  3. #
  4. # ----------------------------------------------------------------------
  5. # Header paths
  6. AM_CPPFLAGS = -I$(srcdir)/../bnf -I../bnf \
  7. -I$(srcdir)/../ipt -I../ipt \
  8. -I$(srcdir)/../msg -I../msg \
  9. -I$(srcdir)/../url -I../url \
  10. -I$(srcdir)/../su -I../su
  11. # ----------------------------------------------------------------------
  12. # Build targets
  13. noinst_LTLIBRARIES = libsip.la
  14. check_PROGRAMS = torture_sip \
  15. test_sip_msg validator test_date
  16. # ----------------------------------------------------------------------
  17. # Rules for building the targets
  18. GENERATED_H = sofia-sip/sip_hclasses.h \
  19. sofia-sip/sip_protos.h sofia-sip/sip_tag.h \
  20. sofia-sip/sip_extra.h
  21. H_IN = sofia-sip/sip_hclasses.h.in \
  22. sofia-sip/sip_protos.h.in sofia-sip/sip_tag.h.in \
  23. sofia-sip/sip_extra.h.in
  24. PUBLIC_H = sofia-sip/sip.h sofia-sip/sip_util.h \
  25. sofia-sip/sip_header.h sofia-sip/sip_parser.h \
  26. sofia-sip/sip_tag_class.h sofia-sip/sip_status.h
  27. GENERATED_C = sip_tag.c sip_parser_table.c
  28. BUILT_SOURCES = $(GENERATED_H) $(GENERATED_C) sip_tag_ref.c
  29. nobase_include_sofia_HEADERS = $(GENERATED_H) $(PUBLIC_H) $(H_IN)
  30. libsip_la_SOURCES = $(INTERNAL_H) \
  31. sip_parser.c sip_header.c sip_util.c sip_pref_util.c \
  32. sip_basic.c sip_extra.c sip_feature.c sip_mime.c \
  33. sip_security.c sip_event.c sip_prack.c \
  34. sip_refer.c sip_session.c \
  35. sip_caller_prefs.c sip_reason.c \
  36. sip_status.c sip_time.c \
  37. sip_tag_class.c sip_inlined.c \
  38. $(BUILT_SOURCES)
  39. COVERAGE_INPUT = $(libsip_la_SOURCES) $(include_sofia_HEADERS)
  40. LDADD = libsip.la \
  41. ../msg/libmsg.la \
  42. ../bnf/libbnf.la \
  43. ../url/liburl.la \
  44. ../ipt/libipt.la \
  45. ../su/libsu.la
  46. torture_sip_LDFLAGS = -static
  47. test_sip_msg_LDFLAGS = -static
  48. test_date_LDFLAGS = -static
  49. # ----------------------------------------------------------------------
  50. # Install and distribution rules
  51. # note: srcdir needs to be specified, otherwise
  52. # breaks make distcheck target
  53. EXTRA_DIST = sip.docs sip_parser.docs sip.doxyaliases \
  54. ADD-A-HEADER GRAMMAR sip_bad_mask \
  55. sip_parser_table.c.in sip_tag.c.in \
  56. sip_extra_headers.txt \
  57. images/sip-parser.eps images/sip-parser.gif \
  58. images/sip-parser2.eps images/sip-parser2.gif \
  59. images/sip-parser3.eps images/sip-parser3.gif \
  60. images/sip-parser4.eps images/sip-parser4.gif \
  61. tests/own0.txt tests/own1.txt tests/own2.txt tests/own3.txt \
  62. tests/own4.txt tests/own5.txt tests/own6.txt tests/own8.txt \
  63. tests/test1.txt tests/test-ack-1.txt tests/test2.txt tests/test3.txt \
  64. tests/test4.txt tests/test5.txt tests/test6.txt tests/test7.txt \
  65. tests/test8.txt tests/test9.txt tests/test10.txt tests/test10b.txt \
  66. tests/test10c.txt tests/test11.txt tests/test12.txt tests/test13.txt \
  67. tests/test14-req.txt tests/test14.txt tests/test15.txt \
  68. tests/test16.txt tests/test17.txt tests/test18.txt tests/test19.txt \
  69. tests/test1a.txt tests/test20.txt tests/test21.txt tests/test22.txt \
  70. tests/test23.txt tests/test24.txt tests/test25.txt tests/test26.txt \
  71. tests/test27.txt tests/test28.txt tests/test29.txt tests/test30.txt \
  72. tests/test31.txt tests/test32.txt tests/test33.txt tests/test34.txt \
  73. tests/test35.txt tests/test36.txt tests/test37.txt tests/test38.txt \
  74. tests/test39.txt tests/test40.txt tests/test41.txt tests/test42.txt
  75. # ----------------------------------------------------------------------
  76. # Tests
  77. TESTS = torture_sip run_test_sip_msg run_test_date
  78. dist_noinst_SCRIPTS = run_test_sip_msg run_test_date
  79. # ----------------------------------------------------------------------
  80. # Sofia specific rules
  81. include $(top_srcdir)/rules/sofia.am
  82. MSG_PARSER_AWK = $(srcdir)/../msg/msg_parser.awk
  83. AWK_SIP_AWK = LC_ALL=C $(AWK) -f $(MSG_PARSER_AWK) module=sip
  84. SS_SIP_H = ${srcdir}/sofia-sip/sip.h
  85. EXTRA = ${srcdir}/sip_extra_headers.txt
  86. ${GENERATED_H} ${GENERATED_C}: ${SS_SIP_H} ${MSG_PARSER_AWK}
  87. sofia-sip/sip_hclasses.h: ${srcdir}/sofia-sip/sip_hclasses.h.in
  88. @-mkdir sofia-sip 2>/dev/null || true
  89. ${AWK_SIP_AWK} PR=$@ TEMPLATE=${srcdir}/sofia-sip/sip_hclasses.h.in \
  90. ${SS_SIP_H}
  91. sofia-sip/sip_protos.h: ${srcdir}/sofia-sip/sip_protos.h.in
  92. @-mkdir sofia-sip 2>/dev/null || true
  93. ${AWK_SIP_AWK} PR=$@ TEMPLATE=${srcdir}/sofia-sip/sip_protos.h.in \
  94. ${SS_SIP_H}
  95. sofia-sip/sip_tag.h: ${srcdir}/sofia-sip/sip_tag.h.in
  96. @-mkdir sofia-sip 2>/dev/null || true
  97. ${AWK_SIP_AWK} PR=$@ TEMPLATE=${srcdir}/sofia-sip/sip_tag.h.in \
  98. ${SS_SIP_H}
  99. sip_tag.c: ${srcdir}/sip_tag.c.in ${EXTRA}
  100. ${AWK_SIP_AWK} PR=$@ TEMPLATE=${srcdir}/sip_tag.c.in \
  101. ${SS_SIP_H} ${EXTRA}
  102. # Note: sip_bad_mask is used by nta to weed out bad messages
  103. sip_parser_table.c: ${srcdir}/sip_parser_table.c.in ${EXTRA} sip_bad_mask
  104. ${AWK_SIP_AWK} PT=$@ TEMPLATE=${srcdir}/sip_parser_table.c.in \
  105. FLAGFILE=${srcdir}/sip_bad_mask \
  106. MC_HASH_SIZE=127 MC_SHORT_SIZE=26 \
  107. ${SS_SIP_H} ${EXTRA}
  108. sofia-sip/sip_extra.h: ${srcdir}/sofia-sip/sip_extra.h.in ${EXTRA}
  109. @-mkdir -p sofia-sip 2>/dev/null
  110. ${AWK_SIP_AWK} PR=$@ NO_FIRST=1 NO_LAST=1 \
  111. PACKAGE_NAME="${PACKAGE_NAME}" \
  112. PACKAGE_VERSION="${PACKAGE_VERSION}" \
  113. TEMPLATE1=${srcdir}/sofia-sip/sip_hclasses.h.in \
  114. TEMPLATE2=${srcdir}/sofia-sip/sip_protos.h.in \
  115. TEMPLATE3=${srcdir}/sofia-sip/sip_tag.h.in \
  116. TEMPLATE=${srcdir}/sofia-sip/sip_extra.h.in ${EXTRA}