aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2011-06-19 17:25:59 +0200
committerThibaut Horel <thibaut.horel@gmail.com>2011-06-19 17:25:59 +0200
commit4f62d5ce18765a5f7376a508a45bdb021e5ca5b8 (patch)
tree49e8d4c2ac262f760f75422012b477a49a2b0511 /src/Makefile
parent338891c519fba83ccd6c61492082abfa2bb1cf22 (diff)
downloadicfp2011-4f62d5ce18765a5f7376a508a45bdb021e5ca5b8.tar.gz
Organise the directory so that it is compliant with the submission rules
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..da9657a
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,32 @@
+OCAMLC=ocamlc.opt
+OCAMLOPT=ocamlopt.opt
+OCAMLDEP=ocamldep.opt
+INCLUDES=
+OCAMLFLAGS=$(INCLUDES)
+SRCS=game.ml ltg.ml
+BUILDDIR=
+DEPEND=.depend
+
+all: ltg.opt
+
+ltg.opt: ltg.cmx
+ $(OCAMLOPT) $(OCAMLFLAGS) -o ../run game.cmx ltg.cmx
+
+clean:
+ rm -f *.cm? *.cmx? *.o *~
+ rm -f .depend
+
+depend: $(SRCS)
+ $(OCAMLDEP) $(SRCS) > $(DEPEND)
+
+.SUFFIXES: .mli .ml .cmo .cmi .cmx
+
+%.cmo : %.ml
+ $(OCAMLC) -c $(OCAMLFLAGS) $<
+%.cmi : %.mli
+ $(OCAMLC) -c $(OCAMLFLAGS) $<
+%.cmx : %.ml
+ $(OCAMLOPT) -c $(OCAMLFLAGS) $<
+
+-include $(DEPEND)
+