Commit | Line | Data |
---|---|---|
2958d0fe | 1 | # |
eaa52f3c 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. | |
2958d0fe | 5 | # |
eaa52f3c | 6 | # @(#)Makefile 4.7 (Berkeley) %G% |
2958d0fe | 7 | # |
eaa52f3c KB |
8 | CFLAGS= -O |
9 | LIBC= /lib/libc.a | |
10 | SRCS= diction.c nwords.c end.c part.c pscan.c outp.c | |
11 | OBJS= nwords.o end.o part.o pscan.o outp.o | |
6320ec27 | 12 | |
eaa52f3c | 13 | all: dprog style1 style2 style3 |
2958d0fe | 14 | |
eaa52f3c KB |
15 | dprog: diction.c ${LIBC} |
16 | ${CC} ${CFLAGS} -DDICT=\"/usr/lib/dict.d\" diction.c -o $@ | |
6320ec27 | 17 | |
eaa52f3c KB |
18 | style1: nwords.o ${LIBC} |
19 | ${CC} nwords.o -o $@ -ll | |
2958d0fe | 20 | |
eaa52f3c KB |
21 | style2: end.o ${LIBC} |
22 | ${CC} end.o -o $@ -ll | |
2958d0fe | 23 | |
eaa52f3c KB |
24 | style3: part.o pscan.o outp.o ${LIBC} |
25 | ${CC} part.o pscan.o outp.o -o $@ -ll | |
2958d0fe | 26 | |
eaa52f3c KB |
27 | clean: FRC |
28 | rm -f ${OBJS} part.c nwords.c end.c style1 style2 style3 dprog | |
a8629c9c | 29 | |
eaa52f3c KB |
30 | depend: ${SRCS} FRC |
31 | mkdep ${CFLAGS} ${SRCS} | |
2958d0fe | 32 | |
eaa52f3c KB |
33 | install: 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 | |
2958d0fe | 44 | |
eaa52f3c KB |
45 | lint: ${SRCS} FRC |
46 | lint ${CFLAGS} nwords.c | |
47 | lint ${CFLAGS} end.c | |
48 | lint ${CFLAGS} part.c pscan.c outp.c | |
2958d0fe | 49 | |
eaa52f3c KB |
50 | tags: ${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 | |
2958d0fe | 55 | |
eaa52f3c | 56 | FRC: |
6320ec27 | 57 | |
eaa52f3c KB |
58 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
59 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
6320ec27 | 60 | |
eaa52f3c KB |
61 | diction.o: diction.c /usr/include/stdio.h /usr/include/ctype.h |
62 | nwords.o: nwords.c /usr/include/stdio.h /usr/include/stdio.h | |
63 | nwords.o: /usr/include/ctype.h names.h nhash.c dict.c ydict.c abbrev.c | |
64 | end.o: end.c /usr/include/stdio.h /usr/include/stdio.h /usr/include/ctype.h | |
65 | end.o: names.h ehash.c edict.c | |
66 | part.o: part.c /usr/include/stdio.h style.h names.h conp.h | |
67 | pscan.o: pscan.c names.h conp.h | |
68 | outp.o: outp.c /usr/include/stdio.h /usr/include/ctype.h style.h names.h conp.h | |
6320ec27 | 69 | |
eaa52f3c | 70 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |