1999-11-17 10:59:06 -08:00
|
|
|
#########################################################################
|
|
|
|
# #
|
2011-07-27 07:17:02 -07:00
|
|
|
# OCaml #
|
1999-11-17 10:59:06 -08:00
|
|
|
# #
|
|
|
|
# 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. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
# Makefile for the parser generator.
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include ../config/Makefile
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
OBJS= closure.$(O) error.$(O) lalr.$(O) lr0.$(O) main.$(O) \
|
|
|
|
mkpar.$(O) output.$(O) reader.$(O) \
|
|
|
|
skeleton.$(O) symtab.$(O) verbose.$(O) warshall.$(O)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
all: ocamlyacc.exe
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamlyacc.exe: $(OBJS)
|
2007-11-15 05:21:15 -08:00
|
|
|
$(MKEXE) -o ocamlyacc.exe $(OBJS) $(EXTRALIBS)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2007-02-07 06:49:42 -08:00
|
|
|
version.h : ../VERSION
|
2010-05-21 04:28:21 -07:00
|
|
|
echo "#define OCAML_VERSION \"`sed -e 1q ../VERSION`\"" >version.h
|
2005-02-02 07:51:24 -08:00
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
clean:
|
2005-02-02 07:51:24 -08:00
|
|
|
rm -f *.$(O) ocamlyacc.exe *~ version.h
|
2002-06-07 02:49:45 -07:00
|
|
|
|
|
|
|
.SUFFIXES: .c .$(O)
|
|
|
|
|
|
|
|
.c.$(O):
|
|
|
|
$(BYTECC) -DNDEBUG -DNO_UNIX $(BYTECCCOMPOPTS) -c $<
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
depend:
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
closure.$(O): defs.h
|
|
|
|
error.$(O): defs.h
|
|
|
|
lalr.$(O): defs.h
|
|
|
|
lr0.$(O): defs.h
|
2005-02-02 07:51:24 -08:00
|
|
|
main.$(O): defs.h version.h
|
2002-06-07 02:49:45 -07:00
|
|
|
mkpar.$(O): defs.h
|
|
|
|
output.$(O): defs.h
|
|
|
|
reader.$(O): defs.h
|
|
|
|
skeleton.$(O): defs.h
|
|
|
|
symtab.$(O): defs.h
|
|
|
|
verbose.$(O): defs.h
|
|
|
|
warshall.$(O): defs.h
|