# Copyright (c) 1980 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.4 (Berkeley) %G%
SCCSID
= "@(#)Makefile 5.4 (Berkeley) %G%"
CFLAGS
= -O
-I.
-I
${SRCDIR} -w
-DRMOTHERS
# Files which are specific to PXP
LOCOBJ
= Version.o call.o case.o const.o cset.o error.o fdec.o func.o \
lab.o lval.o main.o pmon.o pp.o proc.o rec.o rval.o stat.o \
type.o var.o y.tab.o yycomm.o yyerror.o \
yymain.o yyput.o rmothers.o
# Files which are shared with pi and pc0
SRCOBJ
= TRdata.o hash.o nl.o string.o subr.o tree.o treen.o yycopy.o \
yycosts.o yyget.o yyid.o yylex.o yypanic.o yyparse.o yyprint.o \
yyrecover.o yyseman.o yytree.o
SRCSRC
= TRdata.c hash.c nl.c string.c subr.c tree.c treen.c yycopy.c \
yycosts.c yyget.c yyid.c yylex.c yypanic.c yyparse.c yyprint.c \
yyrecover.c yyseman.c yytree.c
a.out
: ${LOCOBJ} ${SRCOBJ}
${CC} ${CFLAGS} ${LOCOBJ} ${SRCOBJ}
y.tab.h y.tab.c
: ${SRCDIR}/pas.y
${EYACC} ${SRCDIR}/pas.y
>/dev
/null
${ED} - y.tab.c
< ${SRCDIR}/gram
version
: version.c Version.o
cc -o version version.c Version.o
opcode.h
: ${SRCDIR}/OPnames.h
${SRCDIR}/opc.c
cc ${SRCDIR}/opc.c
-o opc
-rm -f a.out core errs version
*.bak
-rm -f
*.o x
* y.tab.c y.tab.h opcode.h
install -s a.out
${DESTDIR}/usr
/bin
/pxp
# cp a.outNOID /usr/bin/pxp34
@pr
0.h main.c
${SRCDIR}/pas.y
# @pr putn.s treen.s yycopy.s
ls
*.c | sed
's;^\([a-zA-Z0-9.]*\)\.c;\1.o: &;' > .depend
cd
${SRCDIR}; ls
${SRCSRC} | sed \
-e
's;^\([a-zA-Z0-9.]*\)\.c;\1.o: ${SRCDIR}/&;' \
grep
'^#[ ]*include' *.h
${SRCDIR}/*.h | sed \
-e
's;\(.*\):[^"]*"\([^"]*\)".*;\1: \2;' >>.depend
cd
${SRCDIR}; grep
'^#[ ]*include' ${SRCSRC} | sed \
-e
's;:[^"]*"\([^"]*\)".*;: ${SRCDIR}/\1;' \
-e
's;^\([a-zA-Z0-9.]*\)\.c;\1.o;' \
-e
's;: ${SRCDIR}/0.h;: 0.h;' \
-e
's;: ${SRCDIR}/whoami.h;: whoami.h;' \
-e
's;: ${SRCDIR}/opcode.h;: opcode.h;' >>${BINDIR}/.depend
grep
'^#[ ]*include' *.c | sed \
-e
's;:[^"]*"\([^"]*\)".*;: ${SRCDIR}/\1;' \
-e
's;^\([a-zA-Z0-9.]*\)\.c;\1.o;' \
-e
's;: ${SRCDIR}/0.h;: 0.h;' \
-e
's;: ${SRCDIR}/whoami.h;: whoami.h;' \
-e
's;: ${SRCDIR}/opcode.h;: opcode.h;' >>.depend