forked from krissg/junkie
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
61 lines (49 loc) · 1.25 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
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
dist_doc_DATA = README.md NEWS COPYING LICENSE.AGPL LICENSE.BSD LICENSE.LGPL LICENSE.OpenSSL KNOWN_ISSUES USAGE
SUBDIRS = \
include \
src \
config \
plugins/dumper \
plugins/writer \
plugins/rater \
plugins/arpgraph \
plugins/os-detect \
plugins/packetogram \
plugins/duplicogram \
plugins/nettop \
plugins/delayogram \
plugins/sslogram \
guile \
tests \
doc \
examples
.PHONY: cscope doc clear module-deps
EXTRA_DIST = .tarball-version
.tarball-version:
echo "$(VERSION)" > $@
cscope:
cd $(top_srcdir) && cscope -Rb $(filter -I%, $(CPPFLAGS))
distclean-local:
rm -f cscope.out .tarball-version module-deps.dot
clear:
find $(top_srcdir) -type f -\( -name '*.c' -o -name '*.h' -o -name '*.scm' -\) | xargs sed -i -e 's/[ \t]\+$$//'
doc: Doxyfile
doxygen $<
$(MAKE) -C doc $@
module-deps.dot:
@(echo "digraph deps {" ;\
find $(top_srcdir)/src -type f -name '*.c' |\
while read f ; do cat $$f |\
sed -ne 's|^[ \t]*\(\<.*\)_init();.*$$|\1|pg' |\
while read g ; do \
ff=$$(basename $$f .c) ;\
echo "$$ff -> $$g" ;\
done ;\
done ;\
echo "}") > $@
module-deps: module-deps.dot
@$(top_srcdir)/find_cycles
setcap:
setcap cap_net_raw,cap_net_admin=eip $(bindir)/junkie