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. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
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
|
|
|
|
1995-08-08 06:37:34 -07:00
|
|
|
CC=$(BYTECC)
|
|
|
|
CFLAGS=-O -DNDEBUG $(BYTECCCOMPOPTS)
|
1995-05-04 03:15:53 -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
|
|
|
|
|
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)
|
2013-02-24 19:01:26 -08:00
|
|
|
$(CC) $(CFLAGS) $(CCLINKFLAGS) -o ocamlyacc$(EXE) $(OBJS)
|
1995-05-04 03:15:53 -07: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
|
2004-11-26 17:04:19 -08:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
clean:
|
2004-11-26 17:04:19 -08:00
|
|
|
rm -f *.o ocamlyacc$(EXE) *~ version.h
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
depend:
|
|
|
|
|
|
|
|
closure.o: defs.h
|
|
|
|
error.o: defs.h
|
|
|
|
lalr.o: defs.h
|
|
|
|
lr0.o: defs.h
|
2004-11-26 17:04:19 -08:00
|
|
|
main.o: defs.h version.h
|
1995-05-04 03:15:53 -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
|