1991-01-10 11:19:59 +00:00
|
|
|
EMHOME = ../..
|
|
|
|
|
|
|
|
DEST = $(EMHOME)/bin
|
|
|
|
MAN = $(EMHOME)/man
|
|
|
|
|
|
|
|
HDRS = defs.h
|
|
|
|
|
|
|
|
CFLAGS = -O -Dvoid=int
|
|
|
|
|
|
|
|
LDFLAGS =
|
|
|
|
|
|
|
|
LIBS =
|
|
|
|
|
|
|
|
LINKER = cc
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
PRINT = pr -f -l88
|
|
|
|
|
|
|
|
PROGRAM = yacc
|
|
|
|
|
|
|
|
SRCS = closure.c \
|
|
|
|
error.c \
|
|
|
|
lalr.c \
|
|
|
|
lr0.c \
|
|
|
|
main.c \
|
|
|
|
mkpar.c \
|
|
|
|
output.c \
|
|
|
|
reader.c \
|
|
|
|
skeleton.c \
|
|
|
|
symtab.c \
|
|
|
|
verbose.c \
|
|
|
|
warshall.c
|
|
|
|
|
|
|
|
all: $(PROGRAM)
|
|
|
|
|
|
|
|
$(PROGRAM): $(OBJS) $(LIBS)
|
|
|
|
@echo -n "Loading $(PROGRAM) ... "
|
|
|
|
@$(LINKER) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS)
|
|
|
|
@echo "done"
|
|
|
|
|
1991-01-22 10:58:49 +00:00
|
|
|
clean:; @rm -f $(OBJS) $(PROGRAM)
|
1991-01-10 11:19:59 +00:00
|
|
|
|
|
|
|
index:; @ctags -wx $(HDRS) $(SRCS)
|
|
|
|
|
|
|
|
install: $(PROGRAM)
|
|
|
|
@echo Installing $(PROGRAM) in $(DEST)
|
|
|
|
cp $(PROGRAM) $(DEST)/$(PROGRAM)
|
|
|
|
cp manpage $(MAN)/yacc.1
|
|
|
|
|
|
|
|
listing:; @$(PRINT) Makefile $(HDRS) $(SRCS) | lpr
|
|
|
|
|
|
|
|
lint:; @lint $(SRCS)
|
|
|
|
|
|
|
|
program: $(PROGRAM)
|
|
|
|
|
|
|
|
tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
|
|
|
|
|
|
|
|
###
|
|
|
|
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
|