forked from scionproto/scion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (30 loc) · 1004 Bytes
/
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
.PHONY: all clean go gohsr clibs libscion libfilter liblwip libtcpmw libssocket dispatcher libhsr install uninstall
SRC_DIRS = lib/libscion lib/libfilter endhost/ssp sub/lwip-contrib lib/tcp endhost
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
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 lib/libscion install
libfilter: libscion
$(MAKE) -C lib/libfilter install
liblwip: libscion
$(MAKE) -C sub/lwip-contrib install
libtcpmw: libscion liblwip
$(MAKE) -C lib/tcp install
libssocket: libscion
$(MAKE) -C endhost/ssp install
dispatcher: clibs
$(MAKE) -C endhost install
libhsr: libscion
$(MAKE) -C lib/libhsr doinstall
install: clibs dispatcher
uninstall:
$(foreach var,$(SRC_DIRS),$(MAKE) -C $(var) uninstall || exit 1;)