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 | |
6 | # provided that this notice is preserved and that due credit is given | |
7 | # to the University of California at Berkeley. The name of the University | |
8 | # may not be used to endorse or promote products derived from this | |
9 | # software without specific written prior permission. This software | |
10 | # is provided ``as is'' without express or implied warranty. | |
11 | # | |
12 | # @(#)Makefile 5.6 (Berkeley) %G% | |
13 | # | |
14 | CFLAGS= -O | |
15 | LIBC= /lib/libc.a | |
16 | SRCS= patch.c pch.c inp.c version.c util.c | |
17 | OBJS= patch.o pch.o inp.o util.o version.o | |
18 | ||
19 | .SUFFIXES: .man .0 | |
20 | ||
21 | .man.0: | |
22 | ${DESTDIR}/usr/man/manroff $*.man > $*.0 | |
23 | ||
24 | all: patch | |
25 | ||
26 | patch: ${OBJS} ${LIBC} | |
27 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
28 | ||
29 | clean: FRC | |
30 | rm -f ${OBJS} core patch Makefile.old bsd config.sh \ | |
31 | eunice loc pdp11 usg v7 | |
f522cce1 | 32 | |
e1315213 KB |
33 | depend: FRC |
34 | mkdep ${CFLAGS} ${SRCS} | |
f522cce1 | 35 | |
e1315213 KB |
36 | install: patch.0 |
37 | install -c -o bin -g bin -m 444 patch.0 ${DESTDIR}/usr/new/man/cat1 | |
38 | install -s -o bin -g bin -m 755 patch ${DESTDIR}/usr/new | |
a9dade3e | 39 | |
e1315213 KB |
40 | lint: FRC |
41 | lint ${CFLAGS} ${SRCS} | |
a9dade3e | 42 | |
e1315213 KB |
43 | tags: FRC |
44 | ctags ${SRCS} | |
f522cce1 | 45 | |
e1315213 | 46 | FRC: |
f522cce1 | 47 | |
e1315213 KB |
48 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
49 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
f522cce1 | 50 | |
e1315213 KB |
51 | patch.o: patch.c INTERN.h common.h config.h /usr/include/stdio.h |
52 | patch.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
53 | patch.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h | |
54 | patch.o: EXTERN.h version.h util.h pch.h inp.h | |
55 | pch.o: pch.c EXTERN.h common.h config.h /usr/include/stdio.h | |
56 | pch.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
57 | pch.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h | |
58 | pch.o: util.h INTERN.h pch.h | |
59 | inp.o: inp.c EXTERN.h common.h config.h /usr/include/stdio.h | |
60 | inp.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
61 | inp.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h | |
62 | inp.o: util.h pch.h INTERN.h inp.h | |
63 | version.o: version.c EXTERN.h common.h config.h /usr/include/stdio.h | |
64 | version.o: /usr/include/assert.h /usr/include/sys/types.h | |
65 | version.o: /usr/include/sys/stat.h /usr/include/ctype.h /usr/include/signal.h | |
66 | version.o: /usr/include/machine/trap.h util.h INTERN.h patchlevel.h version.h | |
67 | util.o: util.c EXTERN.h common.h config.h /usr/include/stdio.h | |
68 | util.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
69 | util.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h | |
70 | util.o: INTERN.h util.h | |
f522cce1 | 71 | |
e1315213 | 72 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |