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
manual page distributed with 4.2BSD
[unix-history]
/
usr
/
src
/
bin
/
Makefile
diff --git
a/usr/src/bin/Makefile
b/usr/src/bin/Makefile
index
7b88fc2
..
d08b397
100644
(file)
--- a/
usr/src/bin/Makefile
+++ b/
usr/src/bin/Makefile
@@
-1,4
+1,9
@@
-# Makefile 4.16 83/08/14
+#
+# 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
#
DESTDIR=
CFLAGS= -O
@@
-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
@@
-47,8
+56,12
@@
install:
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 ${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 ${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
@@
-256,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
@@
-324,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