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 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. 16# 17# @(#)Makefile 5.7 (Berkeley) 07/09/88 18# 19 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 38 39depend: FRC 40 mkdep ${CFLAGS} ${SRCS} 41 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 45 46lint: FRC 47 lint ${CFLAGS} ${SRCS} 48 49tags: FRC 50 ctags ${SRCS} 51 52FRC: 53 54# DO NOT DELETE THIS LINE -- mkdep uses it. 55# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 56 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 77 78# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 79