1# RCSIDENT("$SiLK: Makefile.am c2b77910e602 2018-01-05 15:56:30Z mthomas $"); 2 3# Installed Targets 4 5bin_PROGRAMS = rwstats rwuniq 6 7EXTRA_DIST = rwstats.pod rwuniq.pod 8if HAVE_POD2MAN 9man1_MANS = rwstats.1 rwuniq.1 10endif 11 12 13# Build Rules 14 15AM_CPPFLAGS = $(SK_SRC_INCLUDES) $(PYTHON_CPPFLAGS) $(SK_CPPFLAGS) 16AM_CFLAGS = $(WARN_CFLAGS) $(SK_CFLAGS) 17AM_LDFLAGS = $(SK_LDFLAGS) $(STATIC_APPLICATIONS) 18if HAVE_PYTHON 19silkpython = ../pysilk/libsilkpython.la 20endif 21LDADD = $(silkpython) ../libsilk/libsilk.la $(PYTHON_LDFLAGS_EMBEDDED) 22 23STATSUNIQ = rwstats.h rwstatssetup.c skunique.c skunique.h 24 25rwstats_SOURCES = $(STATSUNIQ) rwstats.c \ 26 interval.h intervalstats.c rwstatslegacy.c rwstatsproto.c 27 28rwuniq_SOURCES = $(STATSUNIQ) rwuniq.c 29 30 31# Global Rules 32include $(top_srcdir)/build.mk 33include $(top_srcdir)/lib-deps.mk 34 35 36# Tests 37 38if RUN_EXTRA_CHECKS 39more_data = $(SILK_TESTSIPS004) 40endif 41 42# Required files; variables defined in ../../build.mk 43check_DATA = $(SILK_TESTSDIR) $(SILK_TESTDATA) $(more_data) 44 45EXTRA_DIST += $(TESTS) 46 47TESTS = \ 48 tests/rwstats-help.pl \ 49 tests/rwstats-legacy-help.pl \ 50 tests/rwstats-version.pl \ 51 tests/rwstats-lone-command.pl \ 52 tests/rwstats-no-switches.pl \ 53 tests/rwstats-no-files.pl \ 54 tests/rwstats-null-input.pl \ 55 tests/rwstats-sip-top-flo-p4.pl \ 56 tests/rwstats-dip-top-flo-p4.pl \ 57 tests/rwstats-sip-top-byt-c100.pl \ 58 tests/rwstats-dip-top-pkt-t25000.pl \ 59 tests/rwstats-sdip-top-byt-c2.pl \ 60 tests/rwstats-sip24-top-pkt-p2.pl \ 61 tests/rwstats-sip24-top-pkt-p1.pl \ 62 tests/rwstats-dip16-bot-byt-c10.pl \ 63 tests/rwstats-sip-top-flo-p4-v6.pl \ 64 tests/rwstats-dip-top-pkt-t25000-v6.pl \ 65 tests/rwstats-sdip-top-byt-c2-v6.pl \ 66 tests/rwstats-sport-top-flo-p5.pl \ 67 tests/rwstats-dport-top-flo-t8000.pl \ 68 tests/rwstats-sdport-top-flo-c5.pl \ 69 tests/rwstats-sport-sip-pkt-byt-c10.pl \ 70 tests/rwstats-proto-top-pkt-c15.pl \ 71 tests/rwstats-proto-bot-pkt-c15.pl \ 72 tests/rwstats-sport-sip-dist-t5000.pl \ 73 tests/rwstats-dport-dip-dist-t5000.pl \ 74 tests/rwstats-proto-sdip-dist-c5.pl \ 75 tests/rwstats-proto-sdip-dist-c5-v6.pl \ 76 tests/rwstats-bin-time-stime.pl \ 77 tests/rwstats-bin-time-etime.pl \ 78 tests/rwstats-bin-time-stime-etime.pl \ 79 tests/rwstats-bin-time-stime-etime-dur.pl \ 80 tests/rwstats-integer-ips.pl \ 81 tests/rwstats-no-titles.pl \ 82 tests/rwstats-no-columns.pl \ 83 tests/rwstats-column-sep.pl \ 84 tests/rwstats-delimited.pl \ 85 tests/rwstats-proto-stats.pl \ 86 tests/rwstats-overall-stats.pl \ 87 tests/rwstats-empty-input.pl \ 88 tests/rwstats-empty-input-presorted.pl \ 89 tests/rwstats-empty-input-presorted-xargs.pl \ 90 tests/rwstats-many-presorted.pl \ 91 tests/rwstats-multiple-inputs.pl \ 92 tests/rwstats-multiple-inputs-v6.pl \ 93 tests/rwstats-multiple-inputs-v4v6.pl \ 94 tests/rwstats-copy-input.pl \ 95 tests/rwstats-stdin.pl \ 96 tests/rwstats-icmp-top-byt-p5.pl \ 97 tests/rwstats-dport-icmp-top-p16.pl \ 98 tests/rwstats-icmp-dport-top-p16.pl \ 99 tests/rwstats-sport-bot-flo-c4.pl \ 100 tests/rwstats-dport-bot-byt-c4.pl \ 101 tests/rwstats-multi-inputs-3-5.pl \ 102 tests/rwstats-multi-inputs-3-5-pre.pl \ 103 tests/rwstats-country-code-sip.pl \ 104 tests/rwstats-country-code-dip.pl \ 105 tests/rwstats-country-code-sip-v6.pl \ 106 tests/rwstats-country-code-dip-v6.pl \ 107 tests/rwstats-address-types-sip.pl \ 108 tests/rwstats-address-types-dip.pl \ 109 tests/rwstats-pmap-proto-port.pl \ 110 tests/rwstats-pmap-src-service-host.pl \ 111 tests/rwstats-pmap-dst-servhost.pl \ 112 tests/rwstats-pmap-multiple.pl \ 113 tests/rwstats-pmap-src-service-host-v6.pl \ 114 tests/rwstats-pmap-dst-servhost-v6.pl \ 115 tests/rwstats-pmap-multiple-v6.pl \ 116 tests/rwstats-int-ext-fields-ext.pl \ 117 tests/rwstats-int-ext-fields-int-v6.pl \ 118 tests/rwstats-flowrate-payload.pl \ 119 tests/rwstats-skplugin-test.pl \ 120 tests/rwstats-pysilk-key.pl \ 121 tests/rwstats-pysilk-value.pl \ 122 tests/rwstats-pysilk-key-value.pl \ 123 tests/rwstats-pysilk-simple-agg.pl \ 124 tests/rwuniq-help.pl \ 125 tests/rwuniq-version.pl \ 126 tests/rwuniq-lone-command.pl \ 127 tests/rwuniq-no-switches.pl \ 128 tests/rwuniq-null-input.pl \ 129 tests/rwuniq-no-files.pl \ 130 tests/rwuniq-ports-proto-unix-sort.pl \ 131 tests/rwuniq-ports-proto-sorted.pl \ 132 tests/rwuniq-ports-proto-sorted-v6.pl \ 133 tests/rwuniq-ports-proto-presorted.pl \ 134 tests/rwuniq-ports-proto-multi-pre.pl \ 135 tests/rwuniq-sip-bytes.pl \ 136 tests/rwuniq-dip-bytes.pl \ 137 tests/rwuniq-dip-packets.pl \ 138 tests/rwuniq-sip-bytes-v6.pl \ 139 tests/rwuniq-dip-packets-v6.pl \ 140 tests/rwuniq-dport-all.pl \ 141 tests/rwuniq-stime-packets-flows.pl \ 142 tests/rwuniq-bin-time-stime.pl \ 143 tests/rwuniq-bin-time-etime.pl \ 144 tests/rwuniq-bin-time-stime-etime.pl \ 145 tests/rwuniq-bin-time-stime-etime-dur.pl \ 146 tests/rwuniq-bin-time-stime-dur.pl \ 147 tests/rwuniq-elapsed-bytes.pl \ 148 tests/rwuniq-etime.pl \ 149 tests/rwuniq-stime-proto-sorted.pl \ 150 tests/rwuniq-collection-point.pl \ 151 tests/rwuniq-proto.pl \ 152 tests/rwuniq-sport-mn-rec.pl \ 153 tests/rwuniq-sport-mn-pkt.pl \ 154 tests/rwuniq-sport-mn-byt.pl \ 155 tests/rwuniq-sport-mx-rec.pl \ 156 tests/rwuniq-sport-mx-pkt.pl \ 157 tests/rwuniq-sport-mx-byt.pl \ 158 tests/rwuniq-sport-count-sip.pl \ 159 tests/rwuniq-sport-count-sip-v6.pl \ 160 tests/rwuniq-sport-count-sip-dip.pl \ 161 tests/rwuniq-sport-count-sip-pre.pl \ 162 tests/rwuniq-sport-count-sip-dip-pre.pl \ 163 tests/rwuniq-sport-count-sip-dip-v6.pl \ 164 tests/rwuniq-sport-count2-sip-dip-v6.pl \ 165 tests/rwuniq-sport-count-sip-pre-v6.pl \ 166 tests/rwuniq-no-title.pl \ 167 tests/rwuniq-no-column.pl \ 168 tests/rwuniq-delimited.pl \ 169 tests/rwuniq-legacytime-0.pl \ 170 tests/rwuniq-legacytime-1.pl \ 171 tests/rwuniq-empty-input.pl \ 172 tests/rwuniq-empty-input-presorted.pl \ 173 tests/rwuniq-empty-input-presorted-xargs.pl \ 174 tests/rwuniq-many-presorted.pl \ 175 tests/rwuniq-multiple-inputs.pl \ 176 tests/rwuniq-copy-input.pl \ 177 tests/rwuniq-stdin.pl \ 178 tests/rwuniq-icmpTypeCode.pl \ 179 tests/rwuniq-dport-icmp.pl \ 180 tests/rwuniq-icmp-dport.pl \ 181 tests/rwuniq-country-code-sip.pl \ 182 tests/rwuniq-country-code-dip.pl \ 183 tests/rwuniq-country-code-sip-v6.pl \ 184 tests/rwuniq-country-code-dip-v6.pl \ 185 tests/rwuniq-address-types-sip.pl \ 186 tests/rwuniq-address-types-dip.pl \ 187 tests/rwuniq-address-stype-proto-sorted.pl \ 188 tests/rwuniq-pmap-proto-port.pl \ 189 tests/rwuniq-pmap-src-service-host.pl \ 190 tests/rwuniq-pmap-dst-servhost.pl \ 191 tests/rwuniq-pmap-multiple.pl \ 192 tests/rwuniq-pmap-src-service-host-v6.pl \ 193 tests/rwuniq-pmap-dst-servhost-v6.pl \ 194 tests/rwuniq-pmap-multiple-v6.pl \ 195 tests/rwuniq-int-ext-fields-ext.pl \ 196 tests/rwuniq-int-ext-fields-int-v6.pl \ 197 tests/rwuniq-flowrate-payload.pl \ 198 tests/rwuniq-skplugin-test.pl \ 199 tests/rwuniq-pysilk-key.pl \ 200 tests/rwuniq-pysilk-value.pl \ 201 tests/rwuniq-pysilk-key-value.pl \ 202 tests/rwuniq-pysilk-simple-agg.pl 203 204EXTRA_TESTS = \ 205 tests/rwstats-dist-sip-random.pl \ 206 tests/rwstats-dist-sip-presort.pl \ 207 tests/rwstats-flowrate-pps.pl \ 208 tests/rwstats-flowrate-bps.pl \ 209 tests/rwuniq-many-dist-random.pl \ 210 tests/rwuniq-many-dist-presort.pl \ 211 tests/rwuniq-flowrate-pps.pl \ 212 tests/rwuniq-flowrate-bps.pl 213EXTRA_DIST += $(EXTRA_TESTS) 214 215if RUN_EXTRA_CHECKS 216TESTS += $(EXTRA_TESTS) 217endif 218