Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 38 lines (28 sloc) 0.811 kb
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
all: build

LWT ?= $(shell if ocamlfind query lwt.unix >/dev/null 2>&1; then echo --enable-lwt; else echo --disable-lwt; fi)
ASYNC ?= $(shell if ocamlfind query async >/dev/null 2>&1; then echo --enable-async; else echo --disable-async; fi)
UNIX = --enable-unix
ifeq ($(MIRAGE_OS),xen)
UNIX= --disable-unix
endif

NAME=cstruct
J=4

setup.ml: _oasis
oasis setup

setup.data: setup.ml
ocaml setup.ml -configure $(LWT) $(UNIX) $(ASYNC) --enable-tests

build: setup.data setup.ml
ocaml setup.ml -build -j $(J)

doc: setup.data setup.ml
ocaml setup.ml -doc -j $(J)

install: setup.data setup.ml
ocaml setup.ml -install

test: setup.ml build
./test.sh
ocaml setup.ml -test

reinstall: setup.ml
ocamlfind remove $(NAME) || true
ocaml setup.ml -reinstall

clean:
ocamlbuild -clean
rm -f setup.data setup.log
Something went wrong with that request. Please try again.