# Copyright (c) 1987 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.2 (Berkeley) %G%
CFLAGS
= -O
-DHERE
=TAHOE
-DTARGET
=TAHOE
-DFAMILY
=PCC
-DUCBVAXASM \
-DUCBPASS2
-I
$(INCLDIR
)/usr
/include -I..
/include
SRCS
= bb.c conv.c data.c equiv.c error.c exec.c expr.c fmt.c gram.c init.c \
intr.c io.c
lex.c main.c misc.c optcse.c optim.c optloop.c paramset.c \
proc.c put.c putpcc.c regalloc.c setfmt.c stab.c tahoe.c tahoex.c
OBJS
= bb.o conv.o data.o equiv.o error.o exec.o expr.o fmt.o gram.o init.o \
intr.o io.o
lex.o main.o misc.o optcse.o optim.o optloop.o paramset.o \
proc.o put.o putpcc.o regalloc.o setfmt.o stab.o tahoe.o tahoex.o
f77pass1
: ${OBJS} ${LIBC}
${CC} -o
$@
${CFLAGS} ${OBJS}
gram.c
: gram.head gram.dcl gram.expr gram.exec gram.io tokdefs.h
( sed
<tokdefs.h
"s/#define/%token/"; \
cat gram.head gram.dcl gram.expr gram.exec gram.io
) >gram.in
grep
-n .
<tokens | sed
"s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs.h
rm -f
${OBJS} core f77pass1 gram.c gram.in
rm -f
${MAN} tags .depend
install -s
-o bin
-g bin
-m
755 f77pass1
${DESTDIR}/usr
/libexec