kig / preludeml

OCaml stdlib replacement with a Haskellish flavour

This URL has Read+Write access

Ilmari Heikkinen (author)
Mon Feb 16 15:01:15 -0800 2009
commit  f2203f4f461af89ba7fee25f90e93f04ad8440d4
tree    2a0c53f671ab5e871452137f194dca7f84f165da
parent  85aa9166718aecfd9fafaa5839ebe00e71abc82f
preludeml / OMakefile
100644 33 lines (23 sloc) 0.744 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
NATIVE_ENABLED = true
 
USE_OCAMLFIND = true
 
.PHONY: clean
clean:
rm -f *.cmi *.cmo *.cmx *.cmxa *.cma *.annot *.s *.o *.opt \
*.run *.a *.inc
 
%.sig: %.ml %.cmo
$(OCAMLFIND) $(OCAMLC) -package $(concat \,, $(OCAMLPACKS)) \
$(mapprefix -I, $(OCAMLINCLUDES)) \
$(OCAMLFLAGS) $(OCAMLCFLAGS) -i $< > $@
 
if $(not $(defined-env TEST))
    OCAMLFLAGS = -g
    OCAMLCFLAGS += -dtypes
    OCAML_BYTE_LINK_FLAGS = -g
 
if $(not $(OCAMLFIND_EXISTS))
   eprintln(This project requires ocamlfind, but is was not found.)
   eprintln(You need to install ocamlfind and run "omake --configure".)
   exit 1
 
OCAMLCFLAGS += -dtypes
 
.SUBDIRS: src test examples
 
section
OCAMLPACKS[] = pcre unix netstring bigarray
 
.DEFAULT: src/prelude.cmxa