# 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.6 (Berkeley) %G%
SCCSID
= "@(#)Makefile 5.6 %G%"
LIBPCDIR
= ..
/..
/..
/usr.lib
/libpc
INCLUDES
= -I
${SRCDIR} -I
${LIBPCDIR}
PXSRC
= int.c interp.c utilities.c
PXOBJ
= int.o interp.o utilities.o
${CC} ${CFLAGS} -o px Version.c
${PXOBJ} -lpc
-lm
lint
${LINTFLAGS} ${INCLUDES} Version.c
${PXSRC} -lpc
-lm
${CC} ${CFLAGS} -o version version.c
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
${BINDIR}/ctags
-v
*.h
*.c |
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
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.lib
/libpc
/libpc.h
interp.o
: ..
/src
/objfmt.h
interp.o
: ..
/..
/..
/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