forked from CESNET/ipfixprobe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
164 lines (145 loc) · 3.55 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
if HAVE_NDP
SUBDIRS=nfbCInterface
else
SUBDIRS=
endif
SUBDIRS+=. tests init
bin_PROGRAMS=ipfixprobe
DISTCHECK_CONFIGURE_FLAGS="--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)"
if HAVE_NDP
ipfixprobe_LDFLAGS=-lpthread -lnuma -lnfb -lndpRI -L${srcdir}/nfbCInterface/
else
ipfixprobe_LDFLAGS=-lpthread
endif
ipfixprobe_CXXFLAGS=-std=gnu++11 -Wno-write-strings -I./nfbCInterface/include/
ipfixprobe_src=main.cpp \
ipfixprobe.h \
stacktrace.cpp \
stacktrace.h \
packet.h \
packetreceiver.h \
flowexporter.h \
flowifc.h \
flowcache.h \
pcapreader.cpp \
pcapreader.h \
ndp.cpp \
ndp.h \
parser.cpp \
parser.h \
headers.h \
nhtflowcache.cpp \
nhtflowcache.h \
stats.cpp \
stats.h \
ring.c \
ring.h \
flowcacheplugin.h \
httpplugin.cpp \
httpplugin.h \
rtspplugin.cpp \
rtspplugin.h \
sipplugin.cpp \
sipplugin.h \
tlsplugin.cpp \
tlsplugin.h \
smtpplugin.cpp \
smtpplugin.h \
dnsplugin.cpp \
dnsplugin.h \
passivednsplugin.cpp \
passivednsplugin.h \
ntpplugin.cpp \
ntpplugin.h \
ipaddr.h \
ipfixexporter.cpp \
ipfix-elements.h \
ipfixexporter.h \
xxhash.c \
xxhash.h \
dns.h \
conversion.h \
conversion.cpp \
pstatsplugin.h \
pstatsplugin.cpp \
ovpnplugin.h \
ovpnplugin.cpp \
byte-utils.h \
ssdpplugin.h \
ssdpplugin.cpp \
dnssdplugin.h \
dnssdplugin.cpp \
md5.h \
md5.cpp \
idpcontentplugin.h \
idpcontentplugin.cpp \
netbiosplugin.h \
netbiosplugin.cpp \
bstatsplugin.h \
bstatsplugin.cpp \
phistsplugin.cpp \
phistsplugin.h \
ipfix-basiclist.cpp \
ipfix-basiclist.h \
basicplusplugin.h \
basicplusplugin.cpp \
wgplugin.h \
wgplugin.cpp
if WITH_NEMEA
ipfixprobe_SOURCES=$(ipfixprobe_src) \
fields.c \
fields.h \
unirecexporter.h \
unirecexporter.cpp
else
ipfixprobe_SOURCES=$(ipfixprobe_src)
endif
pkgdocdir=${docdir}/ipfixprobe
pkgdoc_DATA=README.md
EXTRA_DIST=README.md \
traffic-samples/README.md \
traffic-samples/mixed-sample.pcap \
traffic-samples/dns-sample.pcap \
traffic-samples/dnssd-sample.pcap \
traffic-samples/http-sample.pcap \
traffic-samples/rtsp-sample.pcap \
traffic-samples/tls-sample.pcap \
traffic-samples/ntp-sample.pcap \
traffic-samples/sip-sample.pcap \
traffic-samples/ssdp-sample.pcap \
traffic-samples/netbios-sample.pcap \
traffic-samples/smtp-sample.pcap \
traffic-samples/ovpn-sample.pcap \
traffic-samples/idpcontent-sample.pcap \
traffic-samples/bstats-sample.pcap \
traffic-samples/wg-sample.pcap
bashcompl_DATA=ipfixprobe.bash
RPMDIR = RPMBUILD
if MAKE_RPMS
RPMFILENAME=$(PACKAGE_NAME)-$(VERSION)
.PHONY: srpm
srpm:
rm -rf "$(RPMDIR)/SOURCES/$(RPMFILENAME)"
mkdir -p $(RPMDIR)/BUILD/ $(RPMDIR)/SRPMS/ $(RPMDIR)/RPMS/ $(RPMDIR)/SOURCES
make ${AM_MAKEFLAGS} distdir='$(RPMDIR)/SOURCES/$(RPMFILENAME)' distdir
( cd "$(RPMDIR)/SOURCES/"; tar -z -c -f $(RPMFILENAME)-$(RELEASE).tar.gz $(RPMFILENAME); rm -rf $(RPMFILENAME); )
$(RPMBUILD) -bs $(PACKAGE_NAME).spec --define "_topdir `pwd`/$(RPMDIR)";
.PHONY: rpm
rpm: srpm
$(RPMBUILD) --define "_topdir `pwd`/$(RPMDIR)" --rebuild $(RPMDIR)/SRPMS/$(RPMFILENAME)-$(RELEASE).src.rpm --with unwind;
.PHONY: rpm-nemea
rpm-nemea: srpm
$(RPMBUILD) --define "_topdir `pwd`/$(RPMDIR)" --rebuild $(RPMDIR)/SRPMS/$(RPMFILENAME)-$(RELEASE).src.rpm --with nemea --with unwind;
.PHONY: rpm-ndp
rpm-ndp: srpm
$(RPMBUILD) --define "_topdir `pwd`/$(RPMDIR)" --rebuild $(RPMDIR)/SRPMS/$(RPMFILENAME)-$(RELEASE).src.rpm --with ndp --with unwind;
else
endif
rpm-clean:
rm -rf $(RPMDIR)
if WITH_NEMEA
include ./aminclude.am
else
fields.h fields.c:
touch $@
endif