Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: b1c2162c55
Fetching contributors…

Cannot retrieve contributors at this time

80 lines (61 sloc) 1.708 kB
OCPBUILD ?= ./_obuild/unixrun ./boot/ocp-build.boot
WGET ?= wget
TARGET = ocp-get ocp-get-server
.PHONY: all
all: ./_obuild/unixrun compile clone link
@
scan: ./_obuild/unixrun
$(OCPBUILD) -scan
sanitize: ./_obuild/unixrun
$(OCPBUILD) -sanitize
byte: ./_obuild/unixrun
$(OCPBUILD) -byte
opt: ./_obuild/unixrun
$(OCPBUILD) -asm
./_obuild/unixrun:
mkdir -p ./_obuild
ocamlc -o ./_obuild/unixrun -make-runtime unix.cma
link: ocp-get ocp-get-server
@
ocp-get:
ln -s _obuild/ocp-get/ocp-get.asm ocp-get
ocp-get-server:
ln -s _obuild/ocp-get-server/ocp-get-server.asm ocp-get-server
compile: ./_obuild/unixrun clone
$(OCPBUILD) -init -scan -sanitize $(TARGET)
clone: cudf extlib ocaml-re ocamlgraph dose
cudf:
$(WGET) http://www.ocamlpro.com/pub/cudf.tar.bz2
tar xfvj cudf.tar.bz2
extlib:
$(WGET) http://ocaml-extlib.googlecode.com/files/extlib-1.5.2.tar.gz
tar xfvz extlib-1.5.2.tar.gz
mv extlib-1.5.2 extlib
dose:
$(WGET) http://www.ocamlpro.com/pub/dose.tar.bz2
tar xvfj dose.tar.bz2
# ocaml-pcre:
# $(WGET) http://hg.ocaml.info/release/pcre-ocaml/archive/release-6.2.5.tar.gz
# tar xfvz release-6.2.5.tar.gz
# mv pcre-ocaml-release-6.2.5 ocaml-pcre
ocamlgraph:
$(WGET) http://ocamlgraph.lri.fr/download/ocamlgraph-1.8.1.tar.gz
tar xvfz ocamlgraph-1.8.1.tar.gz
mv ocamlgraph-1.8.1 ocamlgraph
clean:
rm -rf _obuild
rm -rf src/*.annot bat/*.annot
rm -f ocp-get ocp-get-server
rm -f ocp-build.*
ocaml-re:
$(WGET) http://www.ocamlpro.com/pub/ocaml-re.tar.bz2
tar xvfj ocaml-re.tar.bz2
distclean:
rm -f *.tar.gz *.tar.bz2
rm -rf dose cudf extlib ocaml-re ocamlgraph
rm -rf _obuild
.PHONY: tests
tests:
make -C tests
tests-runserver:
make -C tests runserver
Jump to Line
Something went wrong with that request. Please try again.