From d71bb9cbae9bbc2ffb4b2d0b8cbb36a4c448860d Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Tue, 9 May 1989 22:56:25 -0800 Subject: [PATCH] file reorg SCCS-vsn: usr.bin/pascal/pdx/Makefile 1.21 SCCS-vsn: usr.bin/pascal/px/Makefile 5.7 --- usr/src/usr.bin/pascal/pdx/Makefile | 7 ++-- usr/src/usr.bin/pascal/px/Makefile | 54 ++++++----------------------- 2 files changed, 13 insertions(+), 48 deletions(-) diff --git a/usr/src/usr.bin/pascal/pdx/Makefile b/usr/src/usr.bin/pascal/pdx/Makefile index ad3687c5b3..5398e2f3a4 100644 --- a/usr/src/usr.bin/pascal/pdx/Makefile +++ b/usr/src/usr.bin/pascal/pdx/Makefile @@ -2,7 +2,7 @@ # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # -# @(#)Makefile 1.20 (Berkeley) %G% +# @(#)Makefile 1.21 (Berkeley) %G% # # make file for pdx # @@ -25,10 +25,9 @@ # DESTDIR = -HOME = /usr/src/ucb/pdx LIB = library.o cerror.o SRCDIR = ../src/ -INSTALL = ${DESTDIR}/usr/ucb/pdx +INSTALL = ${DESTDIR}/usr/bin/pdx RM = /bin/rm -f CFLAGS = -I.. -I../${SRCDIR} -DOBJ -DADDR32 -O @@ -183,7 +182,7 @@ ${OBJECT}readobj.o ${OBJECT}readsym.o: ${SRCDIR}objfmt.h install: a.out install -s a.out ${INSTALL} -clean: +cleandir clean: ${RM} a.out *.o */*.o depend: diff --git a/usr/src/usr.bin/pascal/px/Makefile b/usr/src/usr.bin/pascal/px/Makefile index 9cecffb67d..9451958a2a 100644 --- a/usr/src/usr.bin/pascal/px/Makefile +++ b/usr/src/usr.bin/pascal/px/Makefile @@ -3,15 +3,15 @@ # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # -# @(#)Makefile 5.6 (Berkeley) %G% +# @(#)Makefile 5.7 (Berkeley) %G% # -SCCSID = "@(#)Makefile 5.6 %G%" +SCCSID = "@(#)Makefile 5.7 %G%" DESTDIR = -BINDIR = /usr/ucb +BINDIR = /usr/bin LIBDIR = /usr/lib SRCDIR = ../src -LIBPCDIR = ../../../usr.lib/libpc +LIBPCDIR = ../../../lib/libpc CC = cc CFLAGS = -O ${INCLUDES} INCLUDES = -I${SRCDIR} -I${LIBPCDIR} @@ -31,7 +31,7 @@ PXUTL = version.c .c.o: ${CC} ${CFLAGS} -c $*.c -px: Version.c ${PXOBJ} +all px: Version.c ${PXOBJ} ${CC} ${CFLAGS} -o px Version.c ${PXOBJ} -lpc -lm lint: Version.c ${PXSRC} @@ -48,13 +48,13 @@ h02opcs.h: ${SRCDIR}/OPnames.h opc.c ${RM} opc install: px - install -s px ${DESTDIR}/usr/ucb/px + install -s px ${DESTDIR}/usr/bin/px sources: ${PXHDR} ${PXSRC} ${PXUTL} ${PSHDR}: ln -s ${SRCDIR}/$@ $@ -clean: +cleandir clean: ${RM} *.o *.s px version opc* pic* ${RM} h02opcs.h errs lpr core tmp @@ -70,46 +70,12 @@ grind: sources ${RM} index pic lst depend: sources - ls *.c | sed 's;^\(.*\)\.c;\1.o: \1.c;' >makedep + ls *.c | sed 's;^\(.*\)\.c;\1.o: \1.c;' >.depend grep '^#[ ]*include' *.c | sed \ -e '/<.*>/d' \ -e 's;:[^"]*"\([^"]*\)".*;: \1;' \ -e 's/\.c/\.o/' \ -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 'w' >>eddep - cp Makefile Makefile.bak - ed - Makefile < eddep - rm eddep makedep - 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 -Version.o: Version.c -int.o: int.c -interp.o: interp.c -opc.o: opc.c -utilities.o: utilities.c -version.o: version.c -int.o: whoami.h -int.o: vars.h -int.o: ../../../usr.lib/libpc/libpc.h -int.o: ../src/objfmt.h -interp.o: whoami.h -interp.o: vars.h -interp.o: ../src/objfmt.h -interp.o: h02opcs.h -interp.o: machdep.h -interp.o: ../../../usr.lib/libpc/libpc.h -opc.o: ../src/OPnames.h -utilities.o: whoami.h -utilities.o: vars.h -utilities.o: ../src/objfmt.h -# DEPENDENCIES MUST END AT END OF FILE -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above + -e 's;: OPnames.h;: ${SRCDIR}/OPnames.h;' >>.depend + -- 2.20.1