-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
64 lines (45 loc) · 1.41 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
SHELL := /bin/bash
# Define a BACKEND variable usable in sub-Makefiles
BACKEND := $(shell opam list --installed --short mirage-xen)
ifeq ($(strip $(BACKEND)),mirage-xen)
BACKEND := --xen
else
BACKEND := --unix
endif
.PHONY: all
all: client server
@
server:
cd src/server; mirari configure $(BACKEND)
cd src/server; mirari build $(BACKEND)
mkdir -p ./bin/xen
find src/server ! -type l -name *.xen | xargs -i -n 1 cp {} ./bin/xen/iperfServer.xen
#sudo cp ./bin/xen/iperfServer.xen /boot/guest/
client:
cd src/client; mirari configure $(BACKEND)
cd src/client; mirari build $(BACKEND)
mkdir -p ./bin/xen
find src/client ! -type l -name *.xen | xargs -i -n 1 cp {} ./bin/xen/iperfClient.xen
#sudo cp ./bin/xen/iperfClient.xen /boot/guest/
clean:
cd ./src/client; mirari configure $(BACKEND); mirari clean
cd ./src/server; mirari configure $(BACKEND); mirari clean
rm -f ./bin/xen/*.xen
install:
cd bin; ./installMirageVM.sh all install
installClient:
cd bin; ./installMirageVM.sh client install
installServer:
cd bin; ./installMirageVM.sh server install
cinstall:
cd bin; ./installMirageVM.sh all cinstall
cinstallClient:
cd bin; ./installMirageVM.sh client cinstall
cinstallServer:
cd bin; ./installMirageVM.sh server cinstall
uninstall:
cd bin; ./installMirageVM.sh all uninstall
uninstallClient:
cd bin; ./installMirageVM.sh client uninstall
uninstallServer:
cd bin; ./installMirageVM.sh server uninstall