don't build Kerb. libraries here anymore
[unix-history] / usr / src / lib / Makefile
index 970f925..0b1c075 100644 (file)
@@ -1,72 +1,36 @@
-#      Makefile        4.12    85/04/29
 #
 #
-DESTDIR=
-CFLAGS=        -O
-
-# Programs that live in subdirectories, and have makefiles of their own.
+# Copyright (c) 1989 The Regents of the University of California.
+# All rights reserved.
 #
 #
-SUBDIR=        lib2648 libF77 libI77 libU77 libcurses libdbm libg libln \
-       libm libmp libnm libpc libplot libtermlib lpr me sendmail
-
-# Shell scripts that need only be installed and are never removed.
+# 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.
 #
 #
-SCRIPT=        makewhatis
-
-# 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.
+#      @(#)Makefile    5.17 (Berkeley) %G%
 #
 #
-NSTD=  
-
-all:   ${SUBDIR} ${STD} ${NSTD}
-
-${SUBDIR}: /tmp
-       cd $@; make ${MFLAGS}
-
-${STD}:
-       cc ${CFLAGS} -o $@ $@.c
-
-install:
-       for i in ${SUBDIR}; do \
-               (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
-       install -c lib.b ${DESTDIR}/usr/lib/lib.b
 
 
-clean:
-       rm -f a.out core *.s *.o
-       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
-       rm -f ${STD} ${NSTD}
+SUBDIR=        libF77 libI77 libU77 libc libcurses libdbm \
+       libg libln libm libmp libpc libplot libtermlib libutil liby sunrpc
 
 
-depend:
-       cat </dev/null >x.c
-       for i in ${STD} ${NSTD}; do \
-               (echo $$i: $$i.c >>makedep; \
-               /bin/grep '^#[  ]*include' x.c $$i.c | sed \
-                       -e '/\.\.\/h/d' \
-                       -e 's,<\(.*\)>,"/usr/include/\1",' \
-                       -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
-                       -e 's/\.c//' >>makedep); done
-       echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
-       echo '$$r makedep' >>eddep
-       echo 'w' >>eddep
-       cp Makefile Makefile.bak
-       ed - Makefile < eddep
-       rm eddep makedep x.c
-       echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
-       echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
-       echo '# see make depend above' >> Makefile
+all clean cleandir depend lint tags: FRC
+       @-for i in ${SUBDIR}; do \
+               (echo "==> $$i"; \
+                   cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); done
 
 
-# Files listed in ${NSTD} have explicit make lines given below.
+install: FRC
+       @-for i in ${SUBDIR}; do \
+               (echo "==> $$i"; \
+                   cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); done
 
 
-# DO NOT DELETE THIS LINE -- make depend uses it
+${SUBDIR}: FRC
+       cd $@; make ${MFLAGS} DESTDIR=${DESTDIR}
 
 
-getNAME: getNAME.c
-getNAME: /usr/include/stdio.h
-makekey: makekey.c
-# DEPENDENCIES MUST END AT END OF FILE
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
+FRC: