1999-11-17 10:59:06 -08:00
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# 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$
|
|
|
|
|
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)
|
1996-04-30 07:53:58 -07:00
|
|
|
$(CC) $(CFLAGS) $(CCLINKFLAGS) -o ocamlyacc $(OBJS)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2007-02-07 06:49:42 -08:00
|
|
|
version.h : ../VERSION
|
|
|
|
echo "#define OCAML_VERSION \"`head -1 ../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
|