# Copyright (c) 1987 Regents of the University of California.
# 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%
# 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 \
libm libmp libpc libplot libtermlib liby lpr me sendmail
# C source that lives in the current directory
SRCS
= getNAME.c makekey.c
# C programs that live in the current directory and do not need
# C programs that live in the current directory and need explicit make lines.
all: ${SUBDIR} ${STD} ${NSTD}
${CC} ${CFLAGS} -o
$@
$@.c
-for i in
${SUBDIR}; do \
(cd
$$i; make
${MFLAGS} DESTDIR
=${DESTDIR} install); \
-for i in
${STD} ${NSTD}; do \
(install -s
-o bin
-g bin
-m
755 $$i ${DESTDIR}/usr
/lib
/$$i); \
install -c
-o bin
-g bin
-m
755 lib.b
${DESTDIR}/usr
/lib
/lib.b
-for i in
${TAGSDIR}; do \
(cd
$$i; make
${MFLAGS} TAGSFILE
=..
/${TAGSFILE} tags); \
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} depend
); done
mkdep
-p
${CFLAGS} ${SRCS}
# 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
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY