# 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.2 (Berkeley) 9/7/85
SCCSID
= "@(#)Makefile 5.2 9/7/85"
LIBPCDIR
= /usr
/src
/usr.lib
/libpc
CFLAGS
= -O
-I
${SRCDIR} -I
${LIBPCDIR}
PXSRC
= int.c interp.c utilities.c
PXOBJ
= int.o interp.o utilities.o
PXUTL
= interp.sed
clean.sed version.c
${CC} ${CFLAGS} -o px Version.c
${PXOBJ} -lpc
-lm
${CC} ${CFLAGS} -o version version.c
interp.o interp.s
: interp.c interp.sed
${CC} -S
-I
${SRCDIR} -I
${LIBPCDIR} interp.c
sed
-f interp.sed
<interp.s
>tmp
/usr
/lib
/pc2
<interp.s
>tmp
h02opcs.h
: ${SRCDIR}/OPnames.h opc.c
${CC} ${CFLAGS} opc.c
-o opc
install -s px
${DESTDIR}/usr
/ucb
/px
sources
: ${PXHDR} ${PXSRC} ${PXUTL}
${RM} *.o
*.s px version opc
* pic
*
${RM} h02opcs.h errs lpr core tmp
sed
-f
clean.sed
<interp.s
${BINDIR}/ctags
-v
*.h
*.c
*.s |
sort -f
>index
${BINDIR}/vgrind
-t
-x index
>lpr
${CC} ${CFLAGS} -o pic pic.c
${BINDIR}/vgrind
-t
-n READ_ME Makefile lst
>>lpr
${BINDIR}/vgrind
-t
${PXSRC} >>lpr
ls
*.c | sed
's;^\(.*\)\.c;\1.o: \1.c;' >makedep
/bin
/grep
'^#[ ]*include' *.c | sed \
-e
's;:[^"]*"\([^"]*\)".*;: \1;' \
-e
's;: libpc.h;: ${LIBPCDIR}/libpc.h;' \
-e
's;: objfmt.h;: ${SRCDIR}/objfmt.h;' \
-e
's;: OPnames.h;: ${SRCDIR}/OPnames.h;' >>makedep
echo
'/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
echo
'$$r makedep' >>eddep
echo
'# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo
'# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo
'# see make depend above' >> Makefile
# DO NOT DELETE THIS LINE -- make depend uses it
# DEPENDENCIES MUST END AT END OF FILE
int.o
: /usr
/src
/usr.lib
/libpc
/libpc.h
interp.o
: ..
/src
/objfmt.h
interp.o
: /usr
/src
/usr.lib
/libpc
/libpc.h
utilities.o
: ..
/src
/objfmt.h
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY