projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add copyright
[unix-history]
/
usr
/
src
/
bin
/
Makefile
diff --git
a/usr/src/bin/Makefile
b/usr/src/bin/Makefile
index
844be08
..
d08b397
100644
(file)
--- a/
usr/src/bin/Makefile
+++ b/
usr/src/bin/Makefile
@@
-1,11
+1,16
@@
-# @(#)Makefile 4.13 (Berkeley) %G%
+#
+# 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.1 (Berkeley) %G%
#
DESTDIR=
CFLAGS= -O
# Programs that live in subdirectories, and have makefiles of their own.
#
#
DESTDIR=
CFLAGS= -O
# Programs that live in subdirectories, and have makefiles of their own.
#
-SUBDIR= adb as awk csh diff make sed sh
spell
tp
+SUBDIR= adb as awk csh diff make sed sh tp
# Shell scripts that need only be installed and are never removed.
#
# Shell scripts that need only be installed and are never removed.
#
@@
-19,13
+24,17
@@
STD= ar cat cc chgrp chmod cmp date dd df du echo ed expr \
nm od pagesize passwd pr pwd rm rmail rmdir size strip stty su sync \
tar tee test time wall who write
nm od pagesize passwd pr pwd rm rmail rmdir size strip stty su sync \
tar tee test time wall who write
+# C programs that live in the current directory and need explicit make lines.
+#
+NSTD= ps
+
# Programs that must run setuid to root
#
SETUID= chgrp df login mail passwd su
# Programs that must run setuid to root
#
SETUID= chgrp df login mail passwd su
-#
C programs that live in the current directory and need explicit make lines
.
+#
Programs that must run set-group-id kmem
.
#
#
-
NSTD
= ps
+
KMEM
= ps
all: ${SUBDIR} ${STD} ${NSTD} cp mv
all: ${SUBDIR} ${STD} ${NSTD} cp mv
@@
-37,19
+46,22
@@
${STD} mv cp:
# take care with cp and mv, install uses them
install:
# take care with cp and mv, install uses them
install:
- install cp ${DESTDIR}/bin/newcp; \
- mv ${DESTDIR}/bin/newcp ${DESTDIR}/bin/cp; \
- strip ${DESTDIR}/bin/cp
+ install -s cp ${DESTDIR}/bin/newcp; \
+ mv ${DESTDIR}/bin/newcp ${DESTDIR}/bin/cp;
rm -f ${DESTDIR}/bin/mv; cp mv ${DESTDIR}/bin/mv; rm -f mv; \
strip ${DESTDIR}/bin/mv
for i in ${SUBDIR}; do \
(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/bin/$$i); done
rm -f ${DESTDIR}/bin/mv; cp mv ${DESTDIR}/bin/mv; rm -f mv; \
strip ${DESTDIR}/bin/mv
for i in ${SUBDIR}; do \
(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/bin/$$i); done
- for i in ${STD} ${NSTD}; do (install $$i ${DESTDIR}/bin/$$i); done
+ for i in ${STD} ${NSTD}; do (install
-s
$$i ${DESTDIR}/bin/$$i); done
for i in ${SETUID}; do (chown root ${DESTDIR}/bin/$$i; \
chmod 4755 ${DESTDIR}/bin/$$i); done
for i in ${SETUID}; do (chown root ${DESTDIR}/bin/$$i; \
chmod 4755 ${DESTDIR}/bin/$$i); done
+ for i in ${KMEM}; do (chgrp kmem ${DESTDIR}/bin/$$i; \
+ chmod 2755 ${DESTDIR}/bin/$$i); done
rm -f ${DESTDIR}/bin/[; ln ${DESTDIR}/bin/test ${DESTDIR}/bin/[
rm -f ${DESTDIR}/bin/e; ln ${DESTDIR}/bin/ed ${DESTDIR}/bin/e
rm -f ${DESTDIR}/bin/[; ln ${DESTDIR}/bin/test ${DESTDIR}/bin/[
rm -f ${DESTDIR}/bin/e; ln ${DESTDIR}/bin/ed ${DESTDIR}/bin/e
+ rm -f ${DESTDIR}/bin/chfn; ln ${DESTDIR}/bin/passwd ${DESTDIR}/bin/chfn
+ rm -f ${DESTDIR}/bin/chsh; ln ${DESTDIR}/bin/passwd ${DESTDIR}/bin/chsh
clean:
rm -f a.out core *.s *.o errs
clean:
rm -f a.out core *.s *.o errs
@@
-210,8
+222,6
@@
mt: /usr/include/vaxmba/htreg.h
mt: /usr/include/vaxuba/utreg.h
mt: /usr/include/vaxuba/tmreg.h
mt: /usr/include/vaxuba/tsreg.h
mt: /usr/include/vaxuba/utreg.h
mt: /usr/include/vaxuba/tmreg.h
mt: /usr/include/vaxuba/tsreg.h
-mt: /usr/include/sundev/tmreg.h
-mt: /usr/include/sundev/arreg.h
nice: nice.c
nice: /usr/include/stdio.h
nice: /usr/include/sys/time.h
nice: nice.c
nice: /usr/include/stdio.h
nice: /usr/include/sys/time.h
@@
-259,6
+269,8
@@
size: /usr/include/a.out.h
strip: strip.c
strip: /usr/include/a.out.h
strip: /usr/include/signal.h
strip: strip.c
strip: /usr/include/a.out.h
strip: /usr/include/signal.h
+strip: /usr/include/stdio.h
+strip: /usr/include/sys/file.h
stty: stty.c
stty: /usr/include/stdio.h
stty: /usr/include/sgtty.h
stty: stty.c
stty: /usr/include/stdio.h
stty: /usr/include/sgtty.h
@@
-327,3
+339,6
@@
ps: /usr/include/sys/text.h
ps: /usr/include/sys/stat.h
ps: /usr/include/sys/mbuf.h
ps: /usr/include/math.h
ps: /usr/include/sys/stat.h
ps: /usr/include/sys/mbuf.h
ps: /usr/include/math.h
+# DEPENDENCIES MUST END AT END OF FILE
+# IF YOU PUT STUFF HERE IT WILL GO AWAY
+# see make depend above