Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (28 sloc) 0.718 kb
5e8cd1c @djs55 Add simple Makefile
authored
1 .PHONY: all clean install build
2 all: build doc
3
6cc120d @djs55 Correct typo in Makefile
authored
4 NAME=shared-memory-ring
5e8cd1c @djs55 Add simple Makefile
authored
5 J=4
6
7 export OCAMLRUNPARAM=b
8
9 TESTS ?= --enable-tests
b5cf452 @djs55 Regenerate OASIS
authored
10 ifeq "$(MIRAGE_OS)" "xen"
5e8cd1c @djs55 Add simple Makefile
authored
11 TESTS := --disable-tests
12 endif
13
14
15 setup.bin: setup.ml
16 @ocamlopt.opt -o $@ $< || ocamlopt -o $@ $< || ocamlc -o $@ $<
17 @rm -f setup.cmx setup.cmi setup.o setup.cmo
18
19 setup.data: setup.bin
20 @./setup.bin -configure $(TESTS)
21
22 build: setup.data setup.bin
23 @./setup.bin -build -j $(J)
24
25 doc: setup.data setup.bin
26 @./setup.bin -doc -j $(J)
27
28 install: setup.bin
29 @./setup.bin -install
30
31 test: setup.bin build
32 @./setup.bin -test
33
34 reinstall: setup.bin
35 @ocamlfind remove $(NAME) || true
36 @./setup.bin -reinstall
37
38 clean:
39 @ocamlbuild -clean
40 @rm -f setup.data setup.log setup.bin
Something went wrong with that request. Please try again.