3 REQUIRES = unix str helm-grafite_parser
5 MLS = types.ml v8Parser.ml v8Lexer.ml grafite.ml engine.ml top.ml
6 MLIS = v8Parser.mli grafite.mli engine.mli
7 CLEAN = v8Parser.ml v8Parser.mli v8Lexer.ml
11 CMOS = $(MLS:%.ml=%.cmo)
12 CMXS = $(MLS:%.ml=%.cmx)
13 CMIS = $(MLIS:%.mli=%.cmi)
16 OCAMLC = $(OCAMLFIND) ocamlc -thread -package "$(REQUIRES)" -linkpkg
17 OCAMLOPT = $(OCAMLFIND) ocamlopt -thread -package "$(REQUIRES)" -linkpkg
18 OCAMLDEP = $(OCAMLFIND) ocamldep
22 all: transcript .depend
24 opt: transcript.opt $(EXTRAS) .depend
27 transcript: $(CMIS) $(CMOS) $(EXTRAS)
28 @echo " OCAMLC $(CMOS)"
29 $(H)$(OCAMLC) -o $@ $(CMOS)
31 transcript.opt: $(CMIS) $(CMXS) $(EXTRAS)
32 @echo " OCAMLOPT $(CMXS)"
33 $(H)$(OCAMLOPT) -o $@ $(CMXS)
36 $(H)rm -f *.cm[iox] *.a *.o *.output
37 $(H)rm -f transcript transcript.opt $(CLEAN)
39 .depend: $(MLIS) $(MLS) $(EXTRAS)
40 @echo " OCAMLDEP $(MLIS) $(MLS)"
41 $(H)$(OCAMLDEP) $(MLIS) $(MLS) > .depend
43 test: transcript transcript.conf.xml $(PACKAGES:%=%.conf.xml)
44 @echo " TRANSCRIPT $(PACKAGES)"
47 test.opt: transcript.opt transcript.conf.xml $(PACKAGES:%=%.conf.xml)
48 @echo " TRANSCRIPT.OPT $(PACKAGES)"
53 @echo " TAR transcript"
54 $(H)cd .. && tar --exclude=transcript/.svn -czf transcript.tgz transcript
58 %.cmi: %.mli $(EXTRAS)
61 %.cmo %.cmi: %.ml $(EXTRAS)
67 %.ml %.mli: %.mly $(EXTRAS)
69 $(H)$(OCAMLYACC) -v $<
74 include ../../../Makefile.defs
76 ifeq ($(MAKECMDGOALS), all)
80 ifeq ($(MAKECMDGOALS),)