file reorg, pathnames.h, paths.h
[unix-history] / usr / src / sbin / fsck / Makefile
CommitLineData
76797561 1#
d85b20d7
KB
2# Copyright (c) 1987 The Regents of the University of California.
3# All rights reserved.
76797561 4#
d85b20d7
KB
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#
7abf8d65 17# @(#)Makefile 5.11 (Berkeley) %G%
e75b2dea 18#
f7635e39 19CFLAGS= -O
d2748719 20LIBC= /lib/libc.a
7abf8d65
KB
21VPATH= ../../sys/kern
22SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
23 pass5.c setup.c utilities.c ufs_subr.c ufs_tables.c
24LOCOBJS=dir.o inode.o main.o pass1.o pass1b.o pass2.o pass3.o pass4.o \
25 pass5.o setup.o utilities.o
f7635e39 26SYSOBJS=ufs_subr.o ufs_tables.o
d2748719 27OBJS= ${LOCOBJS} ${SYSOBJS}
d85b20d7 28MAN= fsck.0
e75b2dea 29
d2748719 30all: fsck
e75b2dea 31
d85b20d7 32fsck: ${OBJS} ${LIBC}
d2748719 33 ${CC} -o $@ ${CFLAGS} ${OBJS}
6bff11d1 34
f7635e39 35${LOCOBJS}:
d2748719 36 ${CC} ${CFLAGS} -c $*.c
30d84d9a 37
d85b20d7 38clean:
d2748719 39 rm -f ${OBJS} fsck core
6bff11d1 40
d85b20d7
KB
41cleandir: clean
42 rm -f ${MAN} tags .depend
43
44depend: ${SRCS}
d2748719 45 mkdep ${CFLAGS} ${SRCS}
f7635e39 46
d85b20d7 47install: ${MAN}
7abf8d65 48 install -s -o bin -g bin -m 755 fsck ${DESTDIR}/sbin/fsck
d85b20d7 49 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
a34110c6 50
d85b20d7 51lint: ${SRCS}
d2748719 52 lint ${CFLAGS} ${SRCS}
a34110c6 53
d85b20d7 54tags: ${SRCS}
d2748719 55 ctags ${SRCS}