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
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
all: ocamlyacc
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamlyacc: $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(CCLINKFLAGS) -o ocamlyacc $(OBJS)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
clean:
|
1996-04-30 07:53:58 -07:00
|
|
|
rm -f *.o ocamlyacc *~
|
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
|
|
|
|
main.o: defs.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
|