forked from xapi-project/xenvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (38 loc) · 1.04 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
.PHONY: all clean install build
all: build doc
export OCAMLRUNPARAM=b
NAME=xenvmidl
BINDIR?=/sbin
setup.bin: setup.ml
@ocamlopt.opt -o $@ $< || ocamlopt -o $@ $< || ocamlc -o $@ $<
@rm -f setup.cmx setup.cmi setup.o setup.cmo
setup.data: setup.bin
@./setup.bin -configure --enable-tests
build: setup.data setup.bin
@./setup.bin -build
doc: setup.data setup.bin
@./setup.bin -doc
setup.ml: _oasis
@oasis setup
install: setup.bin
install -m 0755 xenvmd.native ${BINDIR}/xenvmd
install -m 0755 xenvm.native ${BINDIR}/xenvm
install -m 0755 local_allocator.native ${BINDIR}/xenvm-local-allocator
uninstall:
@ocamlfind remove $(NAME) || true
test: setup.bin build
@./setup.bin -test
bench: setup.bin build
@TEST_BENCHMARK=yes ./setup.bin -test
%.png: %.gp
@GNUTERM=png gnuplot $< > $@
reinstall: setup.bin
@ocamlfind remove $(NAME) || true
@./setup.bin -reinstall
release:
# Remove our dependencies on bisect
sed -i -r s'/, bisect//g' _oasis
sed -i -r s'/\"bisect\"//g' opam
clean:
@ocamlbuild -clean
@rm -f setup.data setup.log setup.bin