-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile.am
101 lines (87 loc) · 1.92 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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS= \
aggregator \
anonymizer \
backscatter \
biflow_aggregator \
debug_sender \
device_classifier \
email_reporter \
flow_age_stats \
flowcounter \
flow_meter \
ipv6stats \
json_dump \
json_replay \
link_traffic \
logger \
logreplay \
merger \
mux \
demux \
natpair \
prefix_tags \
proto_traffic \
pdns_exporter \
report2idea \
resolver \
sni_dataset_saver \
topn \
traffic_repeater \
unirec2json \
endiverter \
googletest_example
EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL NEWS README.md nfreader \
debian/README.Debian \
debian/changelog \
debian/compat \
debian/control \
debian/copyright \
debian/nemea-modules-dev.install \
debian/nemea-modules.install \
debian/patches \
debian/rules \
debian/source \
debian/watch
if HAVE_LIBNF
SUBDIRS += nfreader
SUBDIRS += nfwriter
endif
if HAVE_LIBLUA
SUBDIRS += luamodule
endif
if HAVE_BISON
SUBDIRS += unirecfilter
if HAVE_OPENSSL
SUBDIRS += scalar-aggregator
endif
endif
if HAVE_LIBCURL
SUBDIRS += bloom_history
endif
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;
else
endif
rpm-clean:
rm -rf $(RPMDIR)
if MAKE_DEB
.PHONY: deb
deb:
make distdir && cd nemea-modules-@VERSION@ && debuild -i -us -uc -b
else
endif
deb-clean:
rm -rf nemea-modules_*.build* nemea-modules_*.changes nemea-modules*.deb nemea-modules_*.orig.tar.gz nemea-modules-*.tar.gz nemea-modules-@VERSION@
clean-local: rpm-clean deb-clean