X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/37b8e2b1e13c5393c4311d2e1f70f0ea268554b4..1feb56b591745135bf61b082c09ecb081c4068ae:/usr/src/lib/Makefile diff --git a/usr/src/lib/Makefile b/usr/src/lib/Makefile index 6c18618649..0b1c075e28 100644 --- a/usr/src/lib/Makefile +++ b/usr/src/lib/Makefile @@ -1,79 +1,36 @@ # -# Copyright (c) 1987 Regents of the University of California. -# All rights reserved. The Berkeley software License Agreement -# specifies the terms and conditions for redistribution. +# Copyright (c) 1989 The Regents of the University of California. +# All rights reserved. # -# @(#)Makefile 5.12 (Berkeley) %G% +# Redistribution and use in source and binary forms are permitted +# provided that the above copyright notice and this paragraph are +# duplicated in all such forms and that any documentation, +# advertising materials, and other materials related to such +# distribution and use acknowledge that the software was developed +# by the University of California, Berkeley. The name of the +# University may not be used to endorse or promote products derived +# from this software without specific prior written permission. +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. # -DESTDIR= -CFLAGS= -O -LIBC= /lib/libc.a -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. -# -SUBDIR= learn lib2648 libF77 libI77 libU77 libcurses libdbm libg libln \ - libom libm libmp libpc libplot libtermlib liby lpr me sendmail - -# C source that lives in the current directory +# @(#)Makefile 5.17 (Berkeley) %G% # -SRCS= getNAME.c makekey.c -# C programs that live in the current directory and do not need -# explicit make lines. -# -STD= getNAME makekey - -# C programs that live in the current directory and need explicit make lines. -# -NSTD= +SUBDIR= libF77 libI77 libU77 libc libcurses libdbm \ + libg libln libm libmp libpc libplot libtermlib libutil liby sunrpc -all: ${SUBDIR} ${STD} ${NSTD} - -${SUBDIR}: FRC - cd $@; make ${MFLAGS} - -${STD}: ${LIBC} - ${CC} ${CFLAGS} -o $@ $@.c +all clean cleandir depend lint tags: FRC + @-for i in ${SUBDIR}; do \ + (echo "==> $$i"; \ + cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); done install: FRC - -for i in ${SUBDIR}; do \ - (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \ - done - -for i in ${STD} ${NSTD}; do \ - (install -s -o bin -g bin -m 755 $$i ${DESTDIR}/usr/lib/$$i); \ - done - install -c -o bin -g bin -m 755 lib.b ${DESTDIR}/usr/lib/lib.b - -tags: FRC - -for i in ${TAGSDIR}; do \ - (cd $$i; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags); \ - done - -clean: FRC - rm -f a.out core *.s *.o tags ${STD} ${NSTD} - for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done + @-for i in ${SUBDIR}; do \ + (echo "==> $$i"; \ + cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); done -depend: ldepend - for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done - -ldepend: FRC - mkdep -p ${CFLAGS} ${SRCS} +${SUBDIR}: FRC + cd $@; make ${MFLAGS} DESTDIR=${DESTDIR} FRC: - -# Files listed in ${NSTD} have explicit make lines given below. - -# DO NOT DELETE THIS LINE -- mkdep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -getNAME: getNAME.c /usr/include/strings.h /usr/include/stdio.h -makekey: makekey.c - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY