old learn bug report (4.2BSD/usr.bin/2)
[unix-history] / usr / src / usr.bin / learn / Makefile
CommitLineData
7aa40f92 1#
ba710df4
KB
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
b0998160 6# @(#)Makefile 4.9 (Berkeley) %G%
ba710df4
KB
7#
8# Flag BSD4_2 means 4.2 or later.
9CFLAGS= -O -DBSD4_2
10LIBC= /lib/libc.a
11LLIB= ${DESTDIR}/usr/lib/learn/bin
12SRCS= copy.c dounit.c getlesson.c learn.c list.c mem.c makpipe.c maktee.c \
13 mysys.c selsub.c selunit.c start.c whatnow.c wrapup.c
14OBJS= copy.o dounit.o getlesson.o learn.o list.o mem.o makpipe.o maktee.o \
15 mysys.o selsub.o selunit.o start.o whatnow.o wrapup.o
7aa40f92 16
af33acf0 17all: learn lrntee lcount getline.o getnum.o
7aa40f92 18
ba710df4
KB
19learn: ${OBJS} ${LIBC}
20 ${CC} -o $@ ${CFLAGS} ${OBJS}
7aa40f92 21
ba710df4
KB
22lcount: lcount.c ${LIBC}
23 ${CC} ${CFLAGS} -o $@ lcount.c
f9a082f0 24
ba710df4
KB
25lrntee: lrntee.c ${LIBC}
26 ${CC} ${CFLAGS} -o $@ lrntee.c
7aa40f92 27
ba710df4 28clean: FRC
af33acf0 29 rm -f ${OBJS} core learn lrntee lcount getline.o getnum.o
f9a082f0 30
ba710df4 31depend: FRC
af33acf0 32 mkdep ${CFLAGS} ${SRCS} lcount.c lrntee.c getline.c getnum.c
7aa40f92 33
ba710df4
KB
34install: FRC
35 install -c -s -o bin -g bin -m 755 learn ${DESTDIR}/usr/bin/learn
36 install -s -o bin -g bin -m 755 learn ${LLIB}/learn
37 install -s -o bin -g bin -m 755 lrntee ${LLIB}/lrntee
38 install -s -o bin -g bin -m 755 lcount ${LLIB}/lcount
af33acf0
JK
39 install -o bin -g bin -m 644 getline.o ${LLIB}/getline.o
40 install -o bin -g bin -m 644 getnum.o ${LLIB}/getnum.o
41 cd ${LLIB}; rm -f ../C/get*.o; ln getline.o getnum.o ../C
b0998160
KB
42 install -c -o bin -g bin -m 644 getline.c ${LLIB}/../C/getline.c
43 install -c -o bin -g bin -m 644 getnum.c ${LLIB}/../C/getnum.c
b1077c94 44 chmod 755 ${LLIB}/../*/Init
7aa40f92 45
ba710df4
KB
46lint: FRC
47 lint ${CFLAGS} ${SRCS}
48 lint ${CFLAGS} lcount.c
49 lint ${CFLAGS} lrntee.c
af33acf0 50 lint ${CFLAGS} getline.c getnum.c
7aa40f92 51
ba710df4
KB
52tags: FRC
53 ctags ${SRCS}
54 ctags -a lcount.c
55 ctags -a lrntee.c
af33acf0 56 ctags -a getline.c getnum.c
ba710df4 57 sort -o tags tags
7aa40f92 58
ba710df4 59FRC:
7aa40f92 60
ba710df4
KB
61# DO NOT DELETE THIS LINE -- mkdep uses it.
62# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
7aa40f92 63
ba710df4
KB
64copy.o: copy.c /usr/include/stdio.h /usr/include/signal.h lrnref.h
65dounit.o: dounit.c /usr/include/stdio.h lrnref.h
66getlesson.o: getlesson.c /usr/include/stdio.h lrnref.h
67learn.o: learn.c /usr/include/stdio.h lrnref.h /usr/include/signal.h
68list.o: list.c /usr/include/stdio.h lrnref.h /usr/include/signal.h
69mem.o: mem.c /usr/include/stdio.h lrnref.h
70makpipe.o: makpipe.c /usr/include/stdio.h
71maktee.o: maktee.c /usr/include/stdio.h /usr/include/signal.h lrnref.h
72mysys.o: mysys.c /usr/include/stdio.h /usr/include/signal.h
73selsub.o: selsub.c /usr/include/stdio.h /usr/include/sys/types.h
74selsub.o: /usr/include/sys/stat.h lrnref.h /usr/include/sys/dir.h
75selunit.o: selunit.c /usr/include/stdio.h lrnref.h
76start.o: start.c /usr/include/stdio.h lrnref.h /usr/include/sys/types.h
77start.o: /usr/include/sys/dir.h
78whatnow.o: whatnow.c /usr/include/stdio.h lrnref.h
79wrapup.o: wrapup.c /usr/include/signal.h /usr/include/stdio.h lrnref.h
80lcount.o: lcount.c /usr/include/stdio.h
81lrntee.o: lrntee.c
a8629c9c 82
ba710df4 83# IF YOU PUT ANYTHING HERE IT WILL GO AWAY