1# 2# Copyright (c) 1987 The 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.10 (Berkeley) 10/25/88 18# 19CFLAGS= -O 20LIBC= /lib/libc.a 21SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c \ 22 pass4.c pass5.c setup.c utilities.c /sys/sys/ufs_subr.c \ 23 /sys/sys/ufs_tables.c 24LOCOBJS=dir.o inode.o main.o pass1.o pass1b.o pass2.o \ 25 pass3.o pass4.o pass5.o setup.o utilities.o 26SYSOBJS=ufs_subr.o ufs_tables.o 27OBJS= ${LOCOBJS} ${SYSOBJS} 28MAN= fsck.0 29 30all: fsck 31 32fsck: ${OBJS} ${LIBC} 33 ${CC} -o $@ ${CFLAGS} ${OBJS} 34 35${LOCOBJS}: 36 ${CC} ${CFLAGS} -c $*.c 37 38ufs_subr.o: 39 ${CC} ${CFLAGS} -c /sys/sys/ufs_subr.c 40 41ufs_tables.o: 42 ${CC} ${CFLAGS} -I/usr/include/sys -c /sys/sys/ufs_tables.c 43 44clean: 45 rm -f ${OBJS} fsck core 46 47cleandir: clean 48 rm -f ${MAN} tags .depend 49 50depend: ${SRCS} 51 mkdep ${CFLAGS} ${SRCS} 52 53install: ${MAN} 54 install -s -o bin -g bin -m 755 fsck ${DESTDIR}/etc/fsck 55 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 56 57lint: ${SRCS} 58 lint ${CFLAGS} ${SRCS} 59 60tags: ${SRCS} 61 ctags ${SRCS} 62