forked from scionproto/scion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (32 loc) · 1.1 KB
/
Makefile
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
.PHONY: all clean go gohsr clibs libscion libfilter liblwip libtcpmw libssocket dispatcher libhsr uninstall tags
SRC_DIRS = c/lib/scion c/lib/filter c/ssp sub/lwip-contrib c/lib/tcp c/dispatcher
all: clibs dispatcher go
clean:
$(foreach var,$(SRC_DIRS),$(MAKE) -C $(var) clean || exit 1;)
if type -P go >/dev/null; then cd go && make clean; fi
rm -f tags
go: libscion
@# `make -C go` breaks if there are symlinks in $PWD
cd go && make
gohsr: libhsr
cd go && make hsr
# Order is important
clibs: libscion libfilter liblwip libtcpmw
libscion:
$(MAKE) -C c/lib/scion install
libfilter: libscion
$(MAKE) -C c/lib/filter install
liblwip: libscion
$(MAKE) -C sub/lwip-contrib install
libtcpmw: libscion liblwip
$(MAKE) -C c/lib/tcp install
libssocket: libscion
$(MAKE) -C c/ssp install
dispatcher: clibs
$(MAKE) -C c/dispatcher install
libhsr: libscion
$(MAKE) -C c/lib/hsr doinstall
uninstall:
$(foreach var,$(SRC_DIRS),$(MAKE) -C $(var) uninstall || exit 1;)
tags:
{ git ls-files; git submodule --quiet foreach 'git ls-files | sed "s|^|$$path/|"'; } | grep -v sub/web/ad_manager/static/js/ | ctags -L -