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
one too many levels of indirection (from ks@purdue)
[unix-history]
/
usr
/
src
/
lib
/
Makefile
diff --git
a/usr/src/lib/Makefile
b/usr/src/lib/Makefile
index
c207694
..
afbcd6c
100644
(file)
--- a/
usr/src/lib/Makefile
+++ b/
usr/src/lib/Makefile
@@
-1,12
+1,24
@@
-# @(#)Makefile 4.8 (Berkeley) %G%
+#
+# Copyright (c) 1983 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%
#
DESTDIR=
CFLAGS= -O
#
DESTDIR=
CFLAGS= -O
+TAGSFILE=tags
+
+# Subdirectories whose routines are included in the making of the
+# master tags file (/usr/lib/tags); the Fortran libraries should
+# be on this list, but we don't control them....
+#
+TAGSDIR=libcurses libdbm libln libm libmp libpc libtermlib
# Programs that live in subdirectories, and have makefiles of their own.
#
# Programs that live in subdirectories, and have makefiles of their own.
#
-SUBDIR= lib2648 libF77 libI77 libU77 lib
dbm libg libln libm libmp
\
- lib
nm libplot libtermlib lpr
sendmail
+SUBDIR= lib2648 libF77 libI77 libU77 lib
curses libdbm libg libln
\
+ lib
om libm libmp libpc libplot libtermlib liby lpr me
sendmail
# Shell scripts that need only be installed and are never removed.
#
# Shell scripts that need only be installed and are never removed.
#
@@
-15,7
+27,7
@@
SCRIPT= makewhatis
# C programs that live in the current directory and do not need
# explicit make lines.
#
# C programs that live in the current directory and do not need
# explicit make lines.
#
-STD=
atrun
getNAME makekey
+STD= getNAME makekey
# C programs that live in the current directory and need explicit make lines.
#
# C programs that live in the current directory and need explicit make lines.
#
@@
-30,20
+42,25
@@
${STD}:
cc ${CFLAGS} -o $@ $@.c
install:
cc ${CFLAGS} -o $@ $@.c
install:
- for i in ${SUBDIR}; do \
+
-
for i in ${SUBDIR}; do \
(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
- for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/usr/lib/$$i); done
- for i in ${STD} ${NSTD}; do (install $$i ${DESTDIR}/usr/lib/$$i); done
+
-
for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/usr/lib/$$i); done
+
-
for i in ${STD} ${NSTD}; do (install $$i ${DESTDIR}/usr/lib/$$i); done
install -c lib.b ${DESTDIR}/usr/lib/lib.b
install -c lib.b ${DESTDIR}/usr/lib/lib.b
+tags:
+ -for i in ${TAGSDIR}; do \
+ (cd $$i; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags); \
+ done
+
clean:
clean:
- rm -f a.out core *.s *.o
- for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
+ rm -f a.out core *.s *.o
tags
+
-
for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
rm -f ${STD} ${NSTD}
depend:
cat </dev/null >x.c
rm -f ${STD} ${NSTD}
depend:
cat </dev/null >x.c
- for i in ${STD} ${NSTD}; do \
+
-
for i in ${STD} ${NSTD}; do \
(echo $$i: $$i.c >>makedep; \
/bin/grep '^#[ ]*include' x.c $$i.c | sed \
-e '/\.\.\/h/d' \
(echo $$i: $$i.c >>makedep; \
/bin/grep '^#[ ]*include' x.c $$i.c | sed \
-e '/\.\.\/h/d' \
@@
-64,12
+81,6
@@
depend:
# DO NOT DELETE THIS LINE -- make depend uses it
# DO NOT DELETE THIS LINE -- make depend uses it
-atrun: atrun.c
-atrun: /usr/include/stdio.h
-atrun: /usr/include/sys/param.h
-atrun: /usr/include/sys/dir.h
-atrun: /usr/include/sys/time.h
-atrun: /usr/include/sys/stat.h
getNAME: getNAME.c
getNAME: /usr/include/stdio.h
makekey: makekey.c
getNAME: getNAME.c
getNAME: /usr/include/stdio.h
makekey: makekey.c