-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathMakefile.am
62 lines (52 loc) · 2.16 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
## Process this file with automake to produce Makefile.in
# avoid warnings about this packet not being in GNU style:
AUTOMAKE_OPTIONS = foreign subdir-objects
ACLOCAL_AMFLAGS = -I m4
# makes it easier to debug integration tests:
BASH_DEBUG_OPT = -x
bin_PROGRAMS = large_pcap_analyzer
large_pcap_analyzer_SOURCES = \
src/filter.cpp \
src/hash_algo.cpp \
src/large-pcap-analyzer.cpp \
src/parse.cpp \
src/pcap_helpers.cpp \
src/printf_helpers.cpp \
src/process_file.cpp \
src/timestamp_pkt_processor.cpp \
src/trafficstats_pkt_processor.cpp
large_pcap_analyzer_HDRS = \
src/config.h \
src/filter.h \
src/hash_algo.h \
src/large-pcap-analyzer.h \
src/packet.h \
src/parse.h \
src/pcap_helpers.h \
src/printf_helpers.h \
src/process_file.h \
src/processor.h \
src/timestamp_pkt_processor.h \
src/trafficstats_pkt_processor.h
check: $(bin_PROGRAMS)
cd test-pcaps && chmod a+x ./run_tests.sh && bash $(BASH_DEBUG_OPT) run_tests.sh
# "test" or "tests" are just synonyms of "check"
test: check
tests: check
distclean:
rm -f Makefile config.log config.status src/.dirstamp src/config.h src/stamp-h1
rm -rf autom4te.cache snap/.snapcraft src/.deps
# Note that currently there is no enforcement (for build to be successful) of the code formatting but
# the project adheres to the formatting defined in the .clang-format file
reformat:
for s in $(large_pcap_analyzer_SOURCES) $(large_pcap_analyzer_HDRS); do \
clang-format -i $$s ; \
done
# this is the MANUAL way to upload a new SNAP but it will be uploaded only for amd64 architecture!
release_new_version:
snap remove large-pcap-analyzer # in case it was already installed
snapcraft # this will rebuild the snap using snap/snapcraft.yaml
snap install large-pcap-analyzer_*_amd64.snap --devmode # test new snap installation
snap list # confirm new version is now installed
snapcraft login # this is interactive and will ask email & password
snapcraft push --release=stable large-pcap-analyzer_*_amd64.snap # release upstream