bin_PROGRAMS = nfcapd nfdump nfreplay nfexpire nfanon EXTRA_PROGRAMS = nftest nfgen nfreader check_PROGRAMMS = test.sh TESTS = nftest test.sh if SFLOW bin_PROGRAMS += sfcapd endif if NFPROFILE bin_PROGRAMS += nfprofile endif if NFTRACK bin_PROGRAMS += nftrack endif if FT2NFDUMP bin_PROGRAMS += ft2nfdump endif BUILT_SOURCES = grammar.h AM_YFLAGS = -d AM_CPPFLAGS = $(DEPS_CFLAGS) LDADD = $(DEPS_LIBS) #Add extra debug info for gdb AM_CFLAGS = -ggdb common = nf_common.c nf_common.h util = util.c util.h filelzo = minilzo.c minilzo.h lzoconf.h lzodefs.h nffile.c nffile.h nfx.c nfx.h nfxstat.h nfxstat.c nflist = flist.c flist.h fts_compat.c fts_compat.h filter = grammar.y scanner.l nftree.c nftree.h ipconv.c ipconv.h rbtree.h nfprof = nfprof.c nfprof.h nfnet = nfnet.c nfnet.h anon = panonymizer.c panonymizer.h rijndael.c rijndael.h collector = collector.c collector.h nfv1 = netflow_v1.c netflow_v1.h nfv9 = netflow_v9.c netflow_v9.h pcaproc = pcaproc.c pcaproc.h flowtree.c flowtree.h ipfrag.c ipfrag.h content = content_dns.c content_dns.h netflow_pcap = netflow_pcap.c netflow_pcap.h ipfix = ipfix.c ipfix.h nfv5v7 = netflow_v5_v7.c netflow_v5_v7.h nfstatfile = nfstatfile.c nfstatfile.h nflowcache = nflowcache.c nflowcache.h bookkeeper = bookkeeper.c bookkeeper.h exporter = exporter.c exporter.h expire= expire.c expire.h launch = launch.c launch.h nfdump_SOURCES = nfdump.c nfdump.h nfstat.c nfstat.h nfexport.c nfexport.h \ $(common) $(nflowcache) $(util) $(filelzo) $(nflist) $(filter) $(nfprof) $(exporter) nfreplay_SOURCES = nfreplay.c \ $(common) $(util) $(filelzo) $(nflist) $(filter) $(nfprof) \ $(nfnet) $(collector) $(nfv1) $(nfv9) $(nfv5v7) $(ipfix) $(exporter) nfprofile_SOURCES = nfprofile.c profile.c profile.h \ $(common) $(util) $(filelzo) $(nflist) $(filter) $(nfstatfile) $(exporter) nfprofile_LDADD = -lrrd nftrack_SOURCES = ../extra/nftrack/nftrack.c \ ../extra/nftrack/nftrack_rrd.c ../extra/nftrack/nftrack_rrd.h \ ../extra/nftrack/nftrack_stat.c ../extra/nftrack/nftrack_stat.h \ $(common) $(util) $(filelzo) $(nflist) $(filter) nftrack_CFLAGS = -I ../extra/nftrack nftrack_LDADD = -lrrd nfcapd_SOURCES = nfcapd.c \ $(common) $(util) $(filelzo) $(nflist) $(nfstatfile) $(launch) \ $(nfnet) $(collector) $(nfv1) $(nfv5v7) $(nfv9) $(ipfix) $(bookkeeper) $(expire) nfpcapd_SOURCES = nfpcapd.c \ $(pcaproc) $(netflow_pcap) \ $(common) $(util) $(filelzo) $(nflist) $(nfstatfile) $(launch) \ $(nfnet) $(collector) $(bookkeeper) $(expire) $(content) if READPCAP nfcapd_CFLAGS = -DPCAP nfcapd_SOURCES += pcap_reader.c pcap_reader.h nfcapd_LDADD = -lpcap endif if BUILDNFPCAPD bin_PROGRAMS += nfpcapd nfpcapd_CFLAGS = -D_BSD_SOURCE nfpcapd_LDADD = -lpcap nfpcapd_LDFLAGS = -pthread endif sfcapd_SOURCES = sfcapd.c sflow.c sflow.h sflow_proto.h \ $(common) $(util) $(filelzo) $(nflist) $(nfstatfile) $(launch) \ $(nfnet) $(collector) $(bookkeeper) $(expire) if READPCAP sfcapd_CFLAGS = -DPCAP sfcapd_SOURCES += pcap_reader.c pcap_reader.h sfcapd_LDADD = -lpcap endif nfreader_SOURCES = nfreader.c \ $(util) $(filelzo) $(nflist) $(exporter) nfanon_SOURCES = nfanon.c \ $(util) $(filelzo) $(nflist) $(anon) nfgen_SOURCES = nfgen.c $(util) $(filelzo) $(nflist) nfexpire_SOURCES = nfexpire.c \ $(bookkeeper) $(expire) $(util) $(nfstatfile) nfexpire_LDADD = @FTS_OBJ@ nftest_SOURCES = nftest.c $(common) $(util) $(filter) $(filelzo) nftest_DEPENDENCIES = nfgen if FT2NFDUMP ft2nfdump_SOURCES = ft2nfdump.c $(common) $(filelzo) $(util) ft2nfdump_CFLAGS = @FT_INCLUDES@ ft2nfdump_LDADD = -lft -lz ft2nfdump_LDADD += @FT_LDFLAGS@ endif EXTRA_DIST = inline.c collector_inline.c nffile_inline.c nfdump_inline.c heapsort_inline.c applybits_inline.c test.sh nfdump.test.out parse_csv.pl CLEANFILES = lex.yy.c grammar.c grammar.h scanner.c scanner.h