xref: /original-bsd/usr.bin/patch/Makefile (revision ad93c43e)
1#
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) 02/18/88
13#
14CFLAGS=	-O
15LIBC=	/lib/libc.a
16SRCS=	patch.c pch.c inp.c version.c util.c
17OBJS=	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
24all: patch
25
26patch: ${OBJS} ${LIBC}
27	${CC} -o $@ ${CFLAGS} ${OBJS}
28
29clean: FRC
30	rm -f ${OBJS} core patch Makefile.old bsd config.sh \
31	eunice loc pdp11 usg v7
32
33depend: FRC
34	mkdep ${CFLAGS} ${SRCS}
35
36install: 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
39
40lint: FRC
41	lint ${CFLAGS} ${SRCS}
42
43tags: FRC
44	ctags ${SRCS}
45
46FRC:
47
48# DO NOT DELETE THIS LINE -- mkdep uses it.
49# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
50
51patch.o: patch.c INTERN.h common.h config.h /usr/include/stdio.h
52patch.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h
53patch.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h
54patch.o: EXTERN.h version.h util.h pch.h inp.h
55pch.o: pch.c EXTERN.h common.h config.h /usr/include/stdio.h
56pch.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h
57pch.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h
58pch.o: util.h INTERN.h pch.h
59inp.o: inp.c EXTERN.h common.h config.h /usr/include/stdio.h
60inp.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h
61inp.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h
62inp.o: util.h pch.h INTERN.h inp.h
63version.o: version.c EXTERN.h common.h config.h /usr/include/stdio.h
64version.o: /usr/include/assert.h /usr/include/sys/types.h
65version.o: /usr/include/sys/stat.h /usr/include/ctype.h /usr/include/signal.h
66version.o: /usr/include/machine/trap.h util.h INTERN.h patchlevel.h version.h
67util.o: util.c EXTERN.h common.h config.h /usr/include/stdio.h
68util.o: /usr/include/assert.h /usr/include/sys/types.h /usr/include/sys/stat.h
69util.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/machine/trap.h
70util.o: INTERN.h util.h
71
72# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
73