Commit | Line | Data |
---|---|---|
f522cce1 | 1 | # |
e1315213 KB |
2 | # Copyright (c) 1987 Regents of the University of California. |
3 | # All rights reserved. | |
4 | # | |
5 | # Redistribution and use in source and binary forms are permitted | |
57a981eb KB |
6 | # provided that the above copyright notice and this paragraph are |
7 | # duplicated in all such forms and that any documentation, | |
8 | # advertising materials, and other materials related to such | |
9 | # distribution and use acknowledge that the software was developed | |
10 | # by the University of California, Berkeley. The name of the | |
11 | # University may not be used to endorse or promote products derived | |
12 | # from this software without specific prior written permission. | |
13 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
e1315213 | 16 | # |
57a981eb | 17 | # @(#)Makefile 5.7 (Berkeley) %G% |
e1315213 | 18 | # |
57a981eb | 19 | |
e1315213 KB |
20 | CFLAGS= -O |
21 | LIBC= /lib/libc.a | |
22 | SRCS= patch.c pch.c inp.c version.c util.c | |
23 | OBJS= patch.o pch.o inp.o util.o version.o | |
24 | ||
25 | .SUFFIXES: .man .0 | |
26 | ||
27 | .man.0: | |
28 | ${DESTDIR}/usr/man/manroff $*.man > $*.0 | |
29 | ||
30 | all: patch | |
31 | ||
32 | patch: ${OBJS} ${LIBC} | |
33 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
34 | ||
35 | clean: FRC | |
36 | rm -f ${OBJS} core patch Makefile.old bsd config.sh \ | |
37 | eunice loc pdp11 usg v7 | |
f522cce1 | 38 | |
e1315213 KB |
39 | depend: FRC |
40 | mkdep ${CFLAGS} ${SRCS} | |
f522cce1 | 41 | |
e1315213 KB |
42 | install: patch.0 |
43 | install -c -o bin -g bin -m 444 patch.0 ${DESTDIR}/usr/new/man/cat1 | |
44 | install -s -o bin -g bin -m 755 patch ${DESTDIR}/usr/new | |
a9dade3e | 45 | |
e1315213 KB |
46 | lint: FRC |
47 | lint ${CFLAGS} ${SRCS} | |
a9dade3e | 48 | |
e1315213 KB |
49 | tags: FRC |
50 | ctags ${SRCS} | |
f522cce1 | 51 | |
e1315213 | 52 | FRC: |
f522cce1 | 53 | |
e1315213 KB |
54 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
55 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
f522cce1 | 56 | |
e1315213 KB |
57 | patch.o: patch.c INTERN.h common.h config.h /usr/include/stdio.h |
58 | patch.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
59 | patch.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h | |
60 | patch.o: EXTERN.h version.h util.h pch.h inp.h | |
61 | pch.o: pch.c EXTERN.h common.h config.h /usr/include/stdio.h | |
62 | pch.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
63 | pch.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h | |
64 | pch.o: util.h INTERN.h pch.h | |
65 | inp.o: inp.c EXTERN.h common.h config.h /usr/include/stdio.h | |
66 | inp.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
67 | inp.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h | |
68 | inp.o: util.h pch.h INTERN.h inp.h | |
69 | version.o: version.c EXTERN.h common.h config.h /usr/include/stdio.h | |
70 | version.o: /usr/include/assert.h /usr/include/sys/types.h | |
71 | version.o: /usr/include/sys/stat.h /usr/include/ctype.h /usr/include/signal.h | |
72 | version.o: /usr/include/machine/trap.h util.h INTERN.h patchlevel.h version.h | |
73 | util.o: util.c EXTERN.h common.h config.h /usr/include/stdio.h | |
74 | util.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
75 | util.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h | |
76 | util.o: INTERN.h util.h | |
f522cce1 | 77 | |
e1315213 | 78 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |