1# 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# 6# @(#)Makefile 4.9 (Berkeley) 06/10/88 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 16 17all: learn lrntee lcount getline.o getnum.o 18 19learn: ${OBJS} ${LIBC} 20 ${CC} -o $@ ${CFLAGS} ${OBJS} 21 22lcount: lcount.c ${LIBC} 23 ${CC} ${CFLAGS} -o $@ lcount.c 24 25lrntee: lrntee.c ${LIBC} 26 ${CC} ${CFLAGS} -o $@ lrntee.c 27 28clean: FRC 29 rm -f ${OBJS} core learn lrntee lcount getline.o getnum.o 30 31depend: FRC 32 mkdep ${CFLAGS} ${SRCS} lcount.c lrntee.c getline.c getnum.c 33 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 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 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 44 chmod 755 ${LLIB}/../*/Init 45 46lint: FRC 47 lint ${CFLAGS} ${SRCS} 48 lint ${CFLAGS} lcount.c 49 lint ${CFLAGS} lrntee.c 50 lint ${CFLAGS} getline.c getnum.c 51 52tags: FRC 53 ctags ${SRCS} 54 ctags -a lcount.c 55 ctags -a lrntee.c 56 ctags -a getline.c getnum.c 57 sort -o tags tags 58 59FRC: 60 61# DO NOT DELETE THIS LINE -- mkdep uses it. 62# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 63 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 82 83# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 84