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.5 (Berkeley) 06/29/88 18# 19CFLAGS= -O 20LIBC= /lib/libc.a 21ASRCS= apropos.c 22MSRCS= man.c 23 24all: man apropos 25 26apropos: ${LIBC} 27 ${CC} -o $@ ${CFLAGS} ${ASRCS} 28 29man: ${LIBC} 30 ${CC} -o $@ ${CFLAGS} ${MSRCS} 31 32clean: FRC 33 rm -f core apropos man 34 35depend: FRC 36 mkdep -p ${CFLAGS} ${ASRCS} ${MSRCS} 37 38install: FRC 39 rm -f ${DESTDIR}/usr/ucb/whatis ${DESTDIR}/usr/ucb/apropos 40 install -s -o bin -g bin -m 755 apropos ${DESTDIR}/usr/ucb/apropos 41 install -s -o bin -g bin -m 755 man ${DESTDIR}/usr/ucb/man 42 ln ${DESTDIR}/usr/ucb/apropos ${DESTDIR}/usr/ucb/whatis 43 44lint: FRC 45 lint ${CFLAGS} ${ASRCS} 46 lint ${CFLAGS} ${MSRCS} 47 48tags: FRC 49 ctags ${ASRCS} 50 ctags ${MSRCS} 51 sort -o tags tags 52 53FRC: 54 55# DO NOT DELETE THIS LINE -- mkdep uses it. 56# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 57 58apropos: apropos.c /usr/include/sys/param.h /usr/include/sys/types.h 59apropos: /usr/include/signal.h /usr/include/machine/trap.h 60apropos: /usr/include/machine/machparam.h /usr/include/machine/endian.h 61apropos: /usr/include/stdio.h /usr/include/ctype.h 62man: man.c /usr/include/sys/param.h /usr/include/sys/types.h 63man: /usr/include/signal.h /usr/include/machine/trap.h 64man: /usr/include/machine/machparam.h /usr/include/machine/endian.h 65man: /usr/include/sys/file.h /usr/include/stdio.h /usr/include/ctype.h 66 67# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 68