aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 96ae2e1f2e03e4f132a45bd38c68c1fc45d67973 (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=cards.ml ltg.ml
BUILDDIR=
DEPEND=.depend

all: ltg.opt

ltg.opt: ltg.cmx cards.cmx
	$(OCAMLOPT) $(OCAMLFLAGS) -o ltg cards.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)