# Copyright (c) 1987 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 4.9 (Berkeley) %G%
# Flag BSD4_2 means 4.2 or later.
LLIB
= ${DESTDIR}/usr
/lib
/learn
/bin
SRCS
= copy.c dounit.c getlesson.c learn.c list.c mem.c makpipe.c maktee.c \
mysys.c selsub.c selunit.c start.c whatnow.c wrapup.c
OBJS
= copy.o dounit.o getlesson.o learn.o list.o mem.o makpipe.o maktee.o \
mysys.o selsub.o selunit.o start.o whatnow.o wrapup.o
all: learn lrntee lcount getline.o getnum.o
${CC} -o
$@
${CFLAGS} ${OBJS}
${CC} ${CFLAGS} -o
$@ lcount.c
${CC} ${CFLAGS} -o
$@ lrntee.c
rm -f
${OBJS} core learn lrntee lcount getline.o getnum.o
mkdep
${CFLAGS} ${SRCS} lcount.c lrntee.c getline.c getnum.c
install -c
-s
-o bin
-g bin
-m
755 learn
${DESTDIR}/usr
/bin
/learn
install -s
-o bin
-g bin
-m
755 learn
${LLIB}/learn
install -s
-o bin
-g bin
-m
755 lrntee
${LLIB}/lrntee
install -s
-o bin
-g bin
-m
755 lcount
${LLIB}/lcount
install -o bin
-g bin
-m
644 getline.o
${LLIB}/getline.o
install -o bin
-g bin
-m
644 getnum.o
${LLIB}/getnum.o
cd
${LLIB}; rm -f ..
/C
/get*.o
; ln getline.o getnum.o ..
/C
install -c
-o bin
-g bin
-m
644 getline.c
${LLIB}/..
/C
/getline.c
install -c
-o bin
-g bin
-m
644 getnum.c
${LLIB}/..
/C
/getnum.c
chmod
755 ${LLIB}/..
/*/Init
lint
${CFLAGS} getline.c getnum.c
ctags
-a getline.c getnum.c
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
copy.o
: copy.c
/usr
/include/stdio.h
/usr
/include/signal.h lrnref.h
dounit.o
: dounit.c
/usr
/include/stdio.h lrnref.h
getlesson.o
: getlesson.c
/usr
/include/stdio.h lrnref.h
learn.o
: learn.c
/usr
/include/stdio.h lrnref.h
/usr
/include/signal.h
list.o
: list.c
/usr
/include/stdio.h lrnref.h
/usr
/include/signal.h
mem.o
: mem.c
/usr
/include/stdio.h lrnref.h
makpipe.o
: makpipe.c
/usr
/include/stdio.h
maktee.o
: maktee.c
/usr
/include/stdio.h
/usr
/include/signal.h lrnref.h
mysys.o
: mysys.c
/usr
/include/stdio.h
/usr
/include/signal.h
selsub.o
: selsub.c
/usr
/include/stdio.h
/usr
/include/sys
/types.h
selsub.o
: /usr
/include/sys
/stat.h lrnref.h
/usr
/include/sys
/dir.h
selunit.o
: selunit.c
/usr
/include/stdio.h lrnref.h
start.o
: start.c
/usr
/include/stdio.h lrnref.h
/usr
/include/sys
/types.h
start.o
: /usr
/include/sys
/dir.h
whatnow.o
: whatnow.c
/usr
/include/stdio.h lrnref.h
wrapup.o
: wrapup.c
/usr
/include/signal.h
/usr
/include/stdio.h lrnref.h
lcount.o
: lcount.c
/usr
/include/stdio.h
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY