Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (34 sloc) 1.041 kB
.PHONY: all clean distclean setup build doc install test
all: build
NAME=openflow
J=4
LWT ?= $(shell if ocamlfind query lwt.ssl >/dev/null 2>&1; then echo --enable-lwt; fi)
MIRAGE ?= $(shell if ocamlfind query mirage-net >/dev/null 2>&1; then echo --enable-mirage; fi)
ifeq ($(MIRAGE_OS),xen)
XEN ?= --enable-xen
endif
-include Makefile.config
clean: setup.data
./setup.bin -clean $(OFLAGS)
rm -f setup.data setup.log setup.bin
distclean: setup.data
./setup.bin -distclean $(OFLAGS)
rm -f setup.data setup.log setup.bin
setup: setup.data
build: setup.data $(wildcard lib/*.ml)
./setup.bin -build -j $(J) $(OFLAGS)
doc: setup.data setup.bin
./setup.bin -doc -j $(J) $(OFLAGS)
install:
ocamlfind remove $(NAME)
./setup.bin -install $(OFLAGS)
test: build
./setup.bin -test
##
setup.bin: setup.ml
ocamlopt.opt -o $@ $< || ocamlopt -o $@ $< || ocamlc -o $@ $<
rm -f setup.cmx setup.cmi setup.o setup.cmo
setup.ml: _oasis
oasis setup
setup.data: setup.bin
./setup.bin -configure $(LWT) $(MIRAGE) $(XEN) --enable-tests
Jump to Line
Something went wrong with that request. Please try again.