2016-02-18 07:11:59 -08:00
|
|
|
#**************************************************************************
|
|
|
|
#* *
|
|
|
|
#* OCaml *
|
|
|
|
#* *
|
|
|
|
#* 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 GNU Lesser General Public License version 2.1, with the *
|
|
|
|
#* special exception on linking described in the file LICENSE. *
|
|
|
|
#* *
|
|
|
|
#**************************************************************************
|
1999-11-17 10:59:06 -08:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
# Makefile for the parser generator.
|
|
|
|
|
1996-02-13 08:29:09 -08:00
|
|
|
include ../config/Makefile
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2016-03-12 21:23:27 -08: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)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2000-08-10 02:58:08 -07:00
|
|
|
all: ocamlyacc$(EXE)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2000-08-10 02:58:08 -07:00
|
|
|
ocamlyacc$(EXE): $(OBJS)
|
2016-03-12 21:23:27 -08:00
|
|
|
$(MKEXE) -o ocamlyacc$(EXE) $(OBJS) $(EXTRALIBS)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2007-02-07 06:49:42 -08:00
|
|
|
version.h : ../VERSION
|
2017-03-19 05:47:07 -07:00
|
|
|
echo "#define OCAML_VERSION \"`sed -e 1q $^ | tr -d '\r'`\"" > $@
|
2004-11-26 17:04:19 -08:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
clean:
|
2016-03-12 21:23:27 -08:00
|
|
|
rm -f *.$(O) ocamlyacc$(EXE) *~ version.h
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
depend:
|
|
|
|
|
2016-03-12 21:23:27 -08:00
|
|
|
closure.$(O): defs.h
|
|
|
|
error.$(O): defs.h
|
|
|
|
lalr.$(O): defs.h
|
|
|
|
lr0.$(O): defs.h
|
|
|
|
main.$(O): defs.h version.h
|
|
|
|
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
|
2016-08-26 00:05:57 -07:00
|
|
|
|
|
|
|
# The following rule is similar to make's default one, except that it
|
|
|
|
# also works for .obj files.
|
|
|
|
|
|
|
|
%.$(O): %.c
|
2017-03-28 08:04:35 -07:00
|
|
|
$(CC) -c $(CFLAGS) $(CPPFLAGS) -I../byterun $(OUTPUTOBJ)$@ $<
|