X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/a096d51a03f02c9cb575d34678f6e59405665d41..62ab31a2320799f21e7e9ac25349857cf975def9:/usr/src/lib/Makefile diff --git a/usr/src/lib/Makefile b/usr/src/lib/Makefile index 12ffbe7c9f..8e317f0f70 100644 --- a/usr/src/lib/Makefile +++ b/usr/src/lib/Makefile @@ -1,12 +1,18 @@ # # Copyright (c) 1987 Regents of the University of California. -# All rights reserved. The Berkeley software License Agreement -# specifies the terms and conditions for redistribution. +# All rights reserved. # -# @(#)Makefile 5.11 (Berkeley) %G% +# Redistribution and use in source and binary forms are permitted +# provided that this notice is preserved and that due credit is given +# to the University of California at 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'' without express or implied warranty. +# +# @(#)Makefile 5.13 (Berkeley) %G% # -DESTDIR= CFLAGS= -O +LIBC= /lib/libc.a TAGSFILE=tags # Subdirectories whose routines are included in the making of the @@ -18,11 +24,7 @@ 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 - -# Shell scripts that need only be installed and are never removed. -# -SCRIPT= makewhatis + libm libmp libpc libplot libtermlib liby lpr me sendmail # C source that lives in the current directory # @@ -37,40 +39,39 @@ STD= getNAME makekey # NSTD= -all: ${SUBDIR} ${STD} ${NSTD} +all: ${SUBDIR} ${STD} ${NSTD} ${SUBDIR}: FRC cd $@; make ${MFLAGS} -FRC: - -${STD}: +${STD}: ${LIBC} ${CC} ${CFLAGS} -o $@ $@.c -install: +install: FRC -for i in ${SUBDIR}; do \ (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \ done - -for i in ${SCRIPT}; do \ - (install -c -o bin -g bin -m 755 $$i.sh ${DESTDIR}/usr/lib/$$i); \ - 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: +tags: FRC -for i in ${TAGSDIR}; do \ (cd $$i; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags); \ done -clean: +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 (cd $$i; make ${MFLAGS} clean); done + +depend: ldepend + for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done -depend: +ldepend: FRC mkdep -p ${CFLAGS} ${SRCS} - -for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done + +FRC: # Files listed in ${NSTD} have explicit make lines given below.