aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 98262dee4040978e7360bd7b486af747f529e8ac (plain)
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
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 ltg 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)