summaryrefslogtreecommitdiff
path: root/ocaml-binary-annot/lex/Makefile.nt
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml-binary-annot/lex/Makefile.nt')
-rw-r--r--ocaml-binary-annot/lex/Makefile.nt75
1 files changed, 75 insertions, 0 deletions
diff --git a/ocaml-binary-annot/lex/Makefile.nt b/ocaml-binary-annot/lex/Makefile.nt
new file mode 100644
index 0000000000..cb1ef94a5d
--- /dev/null
+++ b/ocaml-binary-annot/lex/Makefile.nt
@@ -0,0 +1,75 @@
+#########################################################################
+# #
+# Objective Caml #
+# #
+# Xavier Leroy, projet Cristal, INRIA Rocquencourt #
+# #
+# Copyright 1999 Institut National de Recherche en Informatique et #
+# en Automatique. All rights reserved. This file is distributed #
+# under the terms of the Q Public License version 1.0. #
+# #
+#########################################################################
+
+# $Id$
+
+# The lexer generator
+
+include ../config/Makefile
+
+CAMLC=../boot/ocamlrun ../boot/ocamlc -I ../boot
+CAMLOPT=../boot/ocamlrun ../ocamlopt -I ../stdlib
+COMPFLAGS=-warn-error A
+LINKFLAGS=
+CAMLYACC=../boot/ocamlyacc
+YACCFLAGS=-v
+CAMLLEX=../boot/ocamlrun ../boot/ocamllex
+CAMLDEP=../boot/ocamlrun ../tools/ocamldep
+DEPFLAGS=
+
+OBJS=cset.cmo syntax.cmo parser.cmo lexer.cmo table.cmo lexgen.cmo compact.cmo common.cmo output.cmo outputbis.cmo main.cmo
+
+all: ocamllex syntax.cmo
+allopt: ocamllex.opt
+
+ocamllex: $(OBJS)
+ $(CAMLC) $(LINKFLAGS) -o ocamllex $(OBJS)
+
+ocamllex.opt: $(OBJS:.cmo=.cmx)
+ $(CAMLOPT) -o ocamllex.opt $(OBJS:.cmo=.cmx)
+
+clean::
+ rm -f ocamllex ocamllex.opt
+ rm -f *.cmo *.cmi *.cmx *.$(O)
+
+parser.ml parser.mli: parser.mly
+ $(CAMLYACC) $(YACCFLAGS) parser.mly
+
+clean::
+ rm -f parser.ml parser.mli
+
+beforedepend:: parser.ml parser.mli
+
+lexer.ml: lexer.mll
+ $(CAMLLEX) lexer.mll
+
+clean::
+ rm -f lexer.ml
+
+beforedepend:: lexer.ml
+
+.SUFFIXES:
+.SUFFIXES: .ml .cmo .mli .cmi .cmx
+
+.ml.cmo:
+ $(CAMLC) -c $(COMPFLAGS) $<
+
+.mli.cmi:
+ $(CAMLC) -c $(COMPFLAGS) $<
+
+.ml.cmx:
+ $(CAMLOPT) -c $(COMPFLAGS) $<
+
+depend: beforedepend
+ $(CAMLDEP) *.mli *.ml > .depend
+
+include .depend