tabstr changed to indentprefix to be Sun compatible
[unix-history] / usr / src / usr.bin / patch / Makefile
CommitLineData
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
20CFLAGS= -O
21LIBC= /lib/libc.a
22SRCS= patch.c pch.c inp.c version.c util.c
23OBJS= 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
30all: patch
31
32patch: ${OBJS} ${LIBC}
33 ${CC} -o $@ ${CFLAGS} ${OBJS}
34
35clean: FRC
36 rm -f ${OBJS} core patch Makefile.old bsd config.sh \
37 eunice loc pdp11 usg v7
f522cce1 38
e1315213
KB
39depend: FRC
40 mkdep ${CFLAGS} ${SRCS}
f522cce1 41
e1315213
KB
42install: 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
46lint: FRC
47 lint ${CFLAGS} ${SRCS}
a9dade3e 48
e1315213
KB
49tags: FRC
50 ctags ${SRCS}
f522cce1 51
e1315213 52FRC:
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
57patch.o: patch.c INTERN.h common.h config.h /usr/include/stdio.h
58patch.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h
59patch.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h
60patch.o: EXTERN.h version.h util.h pch.h inp.h
61pch.o: pch.c EXTERN.h common.h config.h /usr/include/stdio.h
62pch.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h
63pch.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h
64pch.o: util.h INTERN.h pch.h
65inp.o: inp.c EXTERN.h common.h config.h /usr/include/stdio.h
66inp.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h
67inp.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h
68inp.o: util.h pch.h INTERN.h inp.h
69version.o: version.c EXTERN.h common.h config.h /usr/include/stdio.h
70version.o: /usr/include/assert.h /usr/include/sys/types.h
71version.o: /usr/include/sys/stat.h /usr/include/ctype.h /usr/include/signal.h
72version.o: /usr/include/machine/trap.h util.h INTERN.h patchlevel.h version.h
73util.o: util.c EXTERN.h common.h config.h /usr/include/stdio.h
74util.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h
75util.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h
76util.o: INTERN.h util.h
f522cce1 77
e1315213 78# IF YOU PUT ANYTHING HERE IT WILL GO AWAY