1# 2# Copyright (c) 1987 Regents of the University of California. 3# All rights reserved. The Berkeley software License Agreement 4# specifies the terms and conditions for redistribution. 5# 6# @(#)Makefile 4.5 (Berkeley) 10/07/87 7# 8CFLAGS= -O 9LIBC= /lib/libc.a 10SRCS= find.c bigram.c code.c 11OBJS= find.o bigram.o code.o 12 13all: find bigram code 14 15find: find.c ${LIBC} 16 ${CC} ${CFLAGS} -o $@ find.c 17 18bigram: bigram.c 19 ${CC} ${CFLAGS} -o $@ bigram.c 20 21code: code.c 22 ${CC} ${CFLAGS} -o $@ code.c 23 24clean: FRC 25 rm -f ${OBJS} core find bigram code 26 27depend: FRC 28 mkdep -p ${CFLAGS} ${SRCS} 29 30install: FRC 31 install -s -o bin -g bin -m 755 find ${DESTDIR}/usr/bin/find 32 -[ -d ${DESTDIR}/usr/lib/find ] || mkdir ${DESTDIR}/usr/lib/find 33 install -s -o bin -g bin -m 755 bigram ${DESTDIR}/usr/lib/find/bigram 34 install -s -o bin -g bin -m 755 code ${DESTDIR}/usr/lib/find/code 35 install -c -o bin -g bin -m 755 updatedb.csh ${DESTDIR}/usr/lib/find/updatedb 36 37lint: FRC 38 lint ${CFLAGS} find.c 39 lint ${CFLAGS} bigram.c 40 lint ${CFLAGS} code.c 41 42tags: FRC 43 ctags find.c 44 ctags -a bigram.c 45 ctags -a code.c 46 sort -o tags tags 47 48FRC: 49 50# DO NOT DELETE THIS LINE -- mkdep uses it. 51# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 52 53find: find.c /usr/include/stdio.h /usr/include/sys/param.h 54find: /usr/include/sys/types.h /usr/include/signal.h 55find: /usr/include/machine/machparam.h /usr/include/sys/dir.h 56find: /usr/include/sys/stat.h /usr/include/pwd.h /usr/include/grp.h 57find: /usr/include/utmp.h 58bigram: bigram.c /usr/include/stdio.h 59code: code.c /usr/include/stdio.h 60 61# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 62