1 #########################################################################
5 # Xavier Leroy, projet Cristal, INRIA Rocquencourt #
7 # Copyright 1999 Institut National de Recherche en Informatique et #
8 # en Automatique. All rights reserved. This file is distributed #
9 # under the terms of the Q Public License version 1.0. #
11 #########################################################################
13 # $Id: Makefile 6708 2004-11-29 14:49:24Z doligez $
16 CAMLC=../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot
17 CAMLOPT=../boot/ocamlrun ../ocamlopt -nostdlib -I ../stdlib
18 COMPFLAGS=-warn-error A
19 CAMLYACC=../boot/ocamlyacc
21 CAMLLEX=../boot/ocamlrun ../boot/ocamllex
22 CAMLDEP=../boot/ocamlrun ../tools/ocamldep
25 OBJS=cset.cmo syntax.cmo parser.cmo lexer.cmo table.cmo lexgen.cmo compact.cmo common.cmo output.cmo outputbis.cmo main.cmo
31 $(CAMLC) $(LINKFLAGS) -o ocamllex $(OBJS)
33 ocamllex.opt: $(OBJS:.cmo=.cmx)
34 $(CAMLOPT) -o ocamllex.opt $(OBJS:.cmo=.cmx)
37 rm -f ocamllex ocamllex.opt
38 rm -f *.cmo *.cmi *.cmx *.o *~
40 parser.ml parser.mli: parser.mly
41 $(CAMLYACC) $(YACCFLAGS) parser.mly
44 rm -f parser.ml parser.mli parser.output
46 beforedepend:: parser.ml parser.mli
54 beforedepend:: lexer.ml
57 .SUFFIXES: .ml .cmo .mli .cmi .cmx
60 $(CAMLC) -c $(COMPFLAGS) $<
63 $(CAMLC) -c $(COMPFLAGS) $<
66 $(CAMLOPT) -c $(COMPFLAGS) $<
69 $(CAMLDEP) *.mli *.ml > .depend