X-Git-Url: http://git.hcoop.net/bpt/coccinelle.git/blobdiff_plain/17ba07880e1838028b4516ba7a2db2147b3aa1c9..feec80c30d140c69f5d894bd09b6071247d0fbaa:/menhirlib/Makefile diff --git a/menhirlib/Makefile b/menhirlib/Makefile deleted file mode 100644 index fdf2583..0000000 --- a/menhirlib/Makefile +++ /dev/null @@ -1,91 +0,0 @@ - --include ../Makefile.config - -############################################################################## -# Variables -############################################################################## -TARGET=menhirLib - -SRC= infiniteArray.ml packedIntArray.ml rowDisplacement.ml engineTypes.ml \ - engine.ml tableFormat.ml tableInterpreter.ml convert.ml - -LIBS= -INCLUDES= - -# copy what the menhir authors do -EXTRAOPT=-for-pack MenhirLib - -############################################################################## -# Generic variables -############################################################################## -OCAMLCFLAGS ?=-g -dtypes -OPTFLAGS= - -OCAMLC=ocamlc$(OPTBIN) $(OCAMLCFLAGS) $(INCLUDES) -OCAMLOPT= ocamlopt$(OPTBIN) $(OPTFLAGS) $(EXTRAOPT) $(INCLUDES) -OCAMLOPT2=ocamlopt$(OPTBIN) $(OPTFLAGS) $(INCLUDES) -OCAMLLEX=ocamllex$(OPTBIN) -OCAMLYACC=ocamlyacc -v -OCAMLDEP=ocamldep$(OPTBIN) $(INCLUDES) -OCAMLMKTOP=ocamlmktop -g -custom $(INCLUDES) - -OBJS= $(SRC:.ml=.cmo) -OPTOBJS= $(SRC:.ml=.cmx) - - -############################################################################## -# Top rules -############################################################################## -all: $(TARGET).cma menhirLib.cmo -all.opt: $(TARGET).cmxa menhirLib.cmx -opt: all.opt - -$(TARGET).cma: $(OBJS) $(LIBS) - $(OCAMLC) -a -o $@ $(OBJS) - -$(TARGET).cmxa: $(OPTOBJS) $(LIBS:.cma=.cmxa) - $(OCAMLOPT) -a -o $@ $(OPTOBJS) - -# I thought at first that only one file menhirLib.ml -# was needed but in fact it's a wierd cos menhirLib.cmo results from multi -# files. They used the -pack ocamlc option, and for strange reason -# decided to produce a .cma instead of a classical .cma. -# So I put all the necesseray files in this directory. - -# copy what the menhir authors do in their own makefile -menhirLib.cmo: $(OBJS) - $(OCAMLC) -pack -o menhirLib.cmo $^ - -menhirLib.cmx: $(OPTOBJS) - $(OCAMLOPT2) -pack -o menhirLib.cmx $^ - -############################################################################## -# Generic rules -############################################################################## -.SUFFIXES: .ml .mli .cmo .cmi .cmx - -.ml.cmo: - $(OCAMLC) -c $< -.mli.cmi: - $(OCAMLC) -c $< -.ml.cmx: - $(OCAMLOPT) -c $< - -.ml.mldepend: - $(OCAMLC) -i $< - -clean:: - rm -f *.cm[ioxa] *.o *.a *.cmxa *.annot - -clean:: - rm -f *~ .*~ gmon.out #*# - -beforedepend:: - -depend:: beforedepend - $(OCAMLDEP) *.mli *.ml > .depend - -distclean:: - rm -f .depend - --include .depend