diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2011-06-19 17:25:59 +0200 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2011-06-19 17:25:59 +0200 |
| commit | 4f62d5ce18765a5f7376a508a45bdb021e5ca5b8 (patch) | |
| tree | 49e8d4c2ac262f760f75422012b477a49a2b0511 /src/Makefile | |
| parent | 338891c519fba83ccd6c61492082abfa2bb1cf22 (diff) | |
| download | icfp2011-4f62d5ce18765a5f7376a508a45bdb021e5ca5b8.tar.gz | |
Organise the directory so that it is compliant with the submission rules
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 32 |
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) + |
