Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

first versions of makefiles

  • Loading branch information...
commit 7cf3820471869d19d63c1d133923ef1c05fd2d2b 1 parent 710dfc1
Ilmari Heikkinen authored
Showing with 42 additions and 0 deletions.
  1. +32 −0 OMakefile
  2. +10 −0 OMakeroot
View
32 OMakefile
@@ -0,0 +1,32 @@
+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
+
+section
+ OCAMLPACKS[] = pcre unix netstring
+
+.DEFAULT: src/prelude.cmxa
View
10 OMakeroot
@@ -0,0 +1,10 @@
+open build/C
+open build/OCaml
+open build/LaTeX
+
+# The command-line variables are defined *after* the
+# standard configuration has been loaded.
+DefineCommandVars()
+
+# Include the OMakefile in this directory.
+.SUBDIRS: .
Please sign in to comment.
Something went wrong with that request. Please try again.