Makefile.am 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. # $Id: Makefile.am 1632 2007-02-03 18:46:16Z aturner $
  2. if COMPILE_FRAGROUTE
  3. LIBFRAGROUTE = ./fragroute/libfragroute.a @LDNETLIB@
  4. FRAGROUTE_DIR = fragroute
  5. else
  6. LIBFRAGROUTE =
  7. FRAGROUTE_DIR =
  8. endif
  9. SUBDIRS = common tcpedit $(FRAGROUTE_DIR)
  10. if SYSTEM_STRLCPY
  11. LIBSTRL =
  12. else
  13. LIBSTRL = ../lib/libstrl.a
  14. endif
  15. BUILT_SOURCES =
  16. manpages: tcpprep.1 tcprewrite.1 tcpreplay.1 tcpbridge.1 tcpreplay-edit.1 tcpliveplay.1 tcpcapinfo.1
  17. autoopts: tcpreplay_opts.c tcprewrite_opts.c tcpbridge_opts.c tcpliveplay_opts.c tcpcapinfo_opts.c \
  18. manpages tcpreplay_edit_opts.c
  19. # Get AutoOpts search path
  20. opts_list=-L tcpedit
  21. tcpprep.1: tcpprep_opts.def
  22. @AUTOGEN@ -T agman-cmd.tpl $(opts_list) $<
  23. tcprewrite.1: tcprewrite_opts.def tcpedit/tcpedit_opts.def
  24. @AUTOGEN@ -T agman-cmd.tpl $(opts_list) $<
  25. tcpreplay-edit.1: tcpreplay_opts.def
  26. @AUTOGEN@ -T agman-cmd.tpl $(opts_list) -DTCPREPLAY_EDIT -DTCPREPLAY_EDIT_MAN $<
  27. tcpreplay.1: tcpreplay_opts.def
  28. @AUTOGEN@ -T agman-cmd.tpl $(opts_list) $<
  29. tcpbridge.1: tcpbridge_opts.def
  30. @AUTOGEN@ -T agman-cmd.tpl $(opts_list) $<
  31. tcpliveplay.1: tcpliveplay_opts.def
  32. @AUTOGEN@ -T agman-cmd.tpl $(opts_list) $<
  33. tcpcapinfo.1: tcpcapinfo_opts.def
  34. @AUTOGEN@ -T agman-cmd.tpl $(opts_list) $<
  35. man_MANS = tcpreplay.1 tcpprep.1 tcprewrite.1 tcpreplay-edit.1 tcpcapinfo.1
  36. EXTRA_DIST = tcpreplay.1 tcpprep.1 tcprewrite.1 tcpbridge.1 tcpreplay-edit.1 \
  37. tcpliveplay.1 tcpcapinfo.1
  38. bin_PROGRAMS = tcpreplay tcpprep tcprewrite tcpreplay-edit tcpcapinfo
  39. if COMPILE_TCPBRIDGE
  40. bin_PROGRAMS += tcpbridge
  41. man_MANS += tcpbridge.1
  42. endif
  43. if COMPILE_TCPLIVEPLAY
  44. bin_PROGRAMS += tcpliveplay
  45. man_MANS += tcpliveplay.1
  46. endif
  47. tcpreplay_edit_CFLAGS = $(LIBOPTS_CFLAGS) -I$(srcdir)/.. -I$(srcdir)/tcpedit $(LNAV_CFLAGS) @LDNETINC@ -DTCPREPLAY -DTCPREPLAY_EDIT -DHAVE_CACHEFILE_SUPPORT
  48. tcpreplay_edit_LDADD = ./tcpedit/libtcpedit.a ./common/libcommon.a $(LIBSTRL) @LPCAPLIB@ @LDNETLIB@ $(LIBOPTS_LDADD)
  49. tcpreplay_edit_SOURCES = tcpreplay_edit_opts.c send_packets.c signal_handler.c tcpreplay.c tcpreplay_api.c sleep.c replay.c
  50. tcpreplay_edit_OBJECTS: tcpreplay_opts.h
  51. tcpreplay_edit_opts.h: tcpreplay_edit_opts.c
  52. BUILT_SOURCES += tcpreplay_edit_opts.h
  53. tcpreplay_edit_opts.c: tcpreplay_opts.def
  54. @AUTOGEN@ $(opts_list) @NETMAPFLAGS@ -DTCPREPLAY_EDIT -b tcpreplay_edit_opts $<
  55. tcpreplay_CFLAGS = $(LIBOPTS_CFLAGS) -I$(srcdir)/.. $(LNAV_CFLAGS) @LDNETINC@ -DTCPREPLAY
  56. tcpreplay_SOURCES = tcpreplay_opts.c send_packets.c signal_handler.c tcpreplay.c tcpreplay_api.c sleep.c replay.c
  57. tcpreplay_LDADD = ./common/libcommon.a $(LIBSTRL) @LPCAPLIB@ @LDNETLIB@ $(LIBOPTS_LDADD)
  58. tcpreplay_OBJECTS: tcpreplay_opts.h
  59. tcpreplay_opts.h: tcpreplay_opts.c
  60. BUILT_SOURCES += tcpreplay_opts.h
  61. tcpreplay_opts.c: tcpreplay_opts.def
  62. @AUTOGEN@ $(opts_list) @NETMAPFLAGS@ $<
  63. if ENABLE_OSX_FRAMEWORKS
  64. tcpreplay_LDFLAGS = -framework CoreServices -framework Carbon
  65. tcpreplay_edit_LDFLAGS = -framework CoreServices -framework Carbon
  66. endif
  67. tcpliveplay_CFLAGS = $(LIBOPTS_CFLAGS) -I$(srcdir)/.. $(LNAV_CFLAGS) -DTCPREPLAY -DTCPLIVEPLAY
  68. tcpliveplay_SOURCES = tcpliveplay_opts.c tcpliveplay.c
  69. tcpliveplay_LDADD = ./common/libcommon.a $(LIBSTRL) @LPCAPLIB@ @LDNETLIB@ $(LIBOPTS_LDADD)
  70. tcpliveplay_OBJECTS: tcpliveplay_opts.h
  71. tcpliveplay_opts.h: tcpliveplay_opts.c
  72. BUILT_SOURCES += tcpliveplay_opts.h
  73. tcpliveplay_opts.c: tcpliveplay_opts.def
  74. @AUTOGEN@ $(opts_list) $<
  75. tcprewrite_CFLAGS = $(LIBOPTS_CFLAGS) -I$(srcdir)/.. -I$(srcdir)/tcpedit @LDNETINC@ $(LNAV_CFLAGS) -DTCPREWRITE -DHAVE_CACHEFILE_SUPPORT
  76. tcprewrite_LDADD = ./tcpedit/libtcpedit.a ./common/libcommon.a \
  77. $(LIBSTRL) @LPCAPLIB@ $(LIBOPTS_LDADD) @DMALLOC_LIB@ \
  78. $(LIBFRAGROUTE)
  79. tcprewrite_SOURCES = tcprewrite_opts.c tcprewrite.c
  80. tcprewrite_OBJECTS: tcprewrite_opts.h
  81. tcprewrite_opts.h: tcprewrite_opts.c
  82. BUILT_SOURCES += tcprewrite_opts.h
  83. tcprewrite_opts.c: tcprewrite_opts.def tcpedit/tcpedit_opts.def
  84. @AUTOGEN@ $(opts_list) $<
  85. tcpcapinfo_CFLAGS = $(LIBOPTS_CFLAGS) -I$(srcdir)/.. $(LNAV_CFLAGS) @LDNETINC@ -DTCPCAPINFO
  86. tcpcapinfo_LDADD = ./common/libcommon.a \
  87. $(LIBSTRL) @LPCAPLIB@ $(LIBOPTS_LDADD) @DMALLOC_LIB@
  88. tcpcapinfo_SOURCES = tcpcapinfo_opts.c tcpcapinfo.c
  89. tcpcapinfo_OBJECTS: tcpcapinfo_opts.h
  90. tcpcapinfo_opts.h: tcpcapinfo_opts.c
  91. BUILT_SOURCES += tcpcapinfo_opts.h
  92. tcpcapinfo_opts.c: tcpcapinfo_opts.def
  93. @AUTOGEN@ $(opts_list) $<
  94. tcpprep_CFLAGS = $(LIBOPTS_CFLAGS) -I$(srcdir)/.. $(LNAV_CFLAGS) @LDNETINC@ -DTCPPREP
  95. tcpprep_LDADD = ./common/libcommon.a \
  96. $(LIBSTRL) @LPCAPLIB@ $(LIBOPTS_LDADD) @DMALLOC_LIB@
  97. tcpprep_SOURCES = tcpprep_opts.c tcpprep.c tree.c tcpprep_api.c
  98. tcpprep_OBJECTS: tcpprep_opts.h
  99. tcpprep_opts.h: tcpprep_opts.c
  100. BUILT_SOURCES += tcpprep_opts.h
  101. tcpprep_opts.c: tcpprep_opts.def
  102. @AUTOGEN@ $<
  103. tcpbridge_CFLAGS = $(LIBOPTS_CFLAGS) -I$(srcdir)/.. -I$(srcdir)/tcpedit $(LNAV_CFLAGS) @LDNETINC@ -DTCPBRIDGE
  104. tcpbridge_LDADD = ./tcpedit/libtcpedit.a ./common/libcommon.a \
  105. $(LIBSTRL) @LPCAPLIB@ @LDNETLIB@ $(LIBOPTS_LDADD) @DMALLOC_LIB@
  106. if ENABLE_OSX_FRAMEWORKS
  107. tcpbridge_LDFLAGS = -framework CoreServices -framework Carbon
  108. endif
  109. tcpbridge_SOURCES = tcpbridge_opts.c tcpbridge.c bridge.c
  110. tcpbridge_OBJECTS: tcpbridge_opts.h
  111. tcpbridge_opts.h: tcpbridge_opts.c
  112. BUILT_SOURCES += tcpbridge_opts.h
  113. tcpbridge_opts.c: tcpbridge_opts.def tcpedit/tcpedit_opts.def
  114. @AUTOGEN@ $(opts_list) $<
  115. noinst_HEADERS = tcpreplay.h tcpprep.h bridge.h defines.h tree.h tcpliveplay.h \
  116. send_packets.h signal_handler.h common.h tcpreplay_opts.h tcpliveplay_opts.h \
  117. tcpreplay_edit_opts.h tcprewrite.h tcprewrite_opts.h tcpprep_opts.h \
  118. tcpprep_opts.def tcprewrite_opts.def tcpreplay_opts.def tcpliveplay_opts.def \
  119. tcpbridge_opts.def tcpbridge.h tcpbridge_opts.h tcpr.h sleep.h tcpcapinfo_opts.h \
  120. tcpcapinfo_opts.def replay.h tcpreplay_api.h tcpprep_api.h timestamp_trace.h \
  121. msvc_inttypes.h msvc_stdint.h
  122. MOSTLYCLEANFILES = *~ *.o
  123. MAINTAINERCLEANFILES = Makefile.in tcpreplay_opts.h tcpreplay_opts.c tcpliveplay_opts.c \
  124. tcprewrite_opts.c tcprewrite_opts.h tcpprep_opts.c tcpliveplay_opts.h tcpcapinfo_opts.h \
  125. tcpcapinfo_opts.c tcpprep_opts.h tcpprep.1 tcpreplay.1 tcprewrite.1 tcpliveplay.1 tcpcapinfo.1 \
  126. tcpbridge.1 tcpbridge_opts.h tcpbridge_opts.c \
  127. tcpreplay_edit_opts.c tcpreplay_edit_opts.h \
  128. tcpreplay-edit.1