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
25 opt: transcript.opt $(EXTRAS) .depend.opt
28 transcript: $(CMIS) $(CMOS) $(EXTRAS)
29 @echo " OCAMLC $(CMOS)"
30 $(H)$(OCAMLC) -o $@ $(CMOS)
32 transcript.opt: $(CMIS) $(CMXS) $(EXTRAS)
33 @echo " OCAMLOPT $(CMXS)"
34 $(H)$(OCAMLOPT) -o $@ $(CMXS)
37 $(H)rm -f *.cm[iox] *.a *.o *.output
38 $(H)rm -f transcript transcript.opt $(CLEAN)
40 .depend: $(MLIS) $(MLS) $(EXTRAS)
41 @echo " OCAMLDEP $(MLIS) $(MLS)"
42 $(H)$(OCAMLDEP) $(MLIS) $(MLS) > .depend
44 .depend.opt: $(MLIS) $(MLS) $(EXTRAS)
45 @echo " OCAMLDEP -native $(MLIS) $(MLS)"
46 $(H)$(OCAMLDEP) -native $(MLIS) $(MLS) > .depend.opt
48 test: transcript transcript.conf.xml $(PACKAGES:%=%.conf.xml)
49 @echo " TRANSCRIPT $(PACKAGES)"
52 test.opt: transcript.opt transcript.conf.xml $(PACKAGES:%=%.conf.xml)
53 @echo " TRANSCRIPT.OPT $(PACKAGES)"
58 @echo " TAR transcript"
59 $(H)cd .. && tar --exclude=transcript/.svn -czf transcript.tgz transcript
63 depend.opt: .depend.opt
65 %.cmi: %.mli $(EXTRAS)
68 %.cmo %.cmi: %.ml $(EXTRAS)
74 %.ml %.mli: %.mly $(EXTRAS)
76 $(H)$(OCAMLYACC) -v $<
81 include ../../../Makefile.defs
83 ifeq ($(MAKECMDGOALS), opt)
87 ifeq ($(MAKECMDGOALS), all)
91 ifeq ($(MAKECMDGOALS),)