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.7 (Berkeley) 11/16/87 7# 8CFLAGS= -O 9LIBC= /lib/libc.a 10SRCS= diction.c nwords.c end.c part.c pscan.c outp.c 11OBJS= nwords.o end.o part.o pscan.o outp.o 12 13all: dprog style1 style2 style3 14 15dprog: diction.c ${LIBC} 16 ${CC} ${CFLAGS} -DDICT=\"/usr/lib/dict.d\" diction.c -o $@ 17 18style1: nwords.o ${LIBC} 19 ${CC} nwords.o -o $@ -ll 20 21style2: end.o ${LIBC} 22 ${CC} end.o -o $@ -ll 23 24style3: part.o pscan.o outp.o ${LIBC} 25 ${CC} part.o pscan.o outp.o -o $@ -ll 26 27clean: FRC 28 rm -f ${OBJS} part.c nwords.c end.c style1 style2 style3 dprog 29 30depend: ${SRCS} FRC 31 mkdep ${CFLAGS} ${SRCS} 32 33install: FRC 34 install -s -o bin -g bin -m 755 style1 ${DESTDIR}/usr/lib 35 install -s -o bin -g bin -m 755 style2 ${DESTDIR}/usr/lib 36 install -s -o bin -g bin -m 755 style3 ${DESTDIR}/usr/lib 37 install -s -o bin -g bin -m 755 dprog ${DESTDIR}/usr/lib 38 install -c -o bin -g bin -m 755 style.sh ${DESTDIR}/usr/bin/style 39 install -c -o bin -g bin -m 755 diction.sh ${DESTDIR}/usr/bin/diction 40 install -c -o bin -g bin -m 755 explain.sh ${DESTDIR}/usr/bin/explain 41 install -c -o bin -g bin -m 755 dict.d ${DESTDIR}/usr/lib 42 install -c -o bin -g bin -m 755 explain.d ${DESTDIR}/usr/lib 43# ln ${DESTDIR}/usr/bin/explain ${DESTDIR}/usr/bin/suggest 44 45lint: ${SRCS} FRC 46 lint ${CFLAGS} nwords.c 47 lint ${CFLAGS} end.c 48 lint ${CFLAGS} part.c pscan.c outp.c 49 50tags: ${SRCS} FRC 51 ctags nwords.c 52 ctags -a end.c 53 ctags -a part.c pscan.c outp.c 54 sort -o tags tags 55 56FRC: 57 58# DO NOT DELETE THIS LINE -- mkdep uses it. 59# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 60 61diction.o: diction.c /usr/include/stdio.h /usr/include/ctype.h 62nwords.o: nwords.c /usr/include/stdio.h /usr/include/stdio.h 63nwords.o: /usr/include/ctype.h names.h nhash.c dict.c ydict.c abbrev.c 64end.o: end.c /usr/include/stdio.h /usr/include/stdio.h /usr/include/ctype.h 65end.o: names.h ehash.c edict.c 66part.o: part.c /usr/include/stdio.h style.h names.h conp.h 67pscan.o: pscan.c names.h conp.h 68outp.o: outp.c /usr/include/stdio.h /usr/include/ctype.h style.h names.h conp.h 69 70# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 71