aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/fsck/Makefile9
-rw-r--r--sbin/fsck_ffs/Makefile9
-rw-r--r--sbin/fsck_ifs/Makefile9
-rw-r--r--sbin/fsdb/Makefile11
4 files changed, 29 insertions, 9 deletions
diff --git a/sbin/fsck/Makefile b/sbin/fsck/Makefile
index 3155b1a466ea..3e2558d2dc43 100644
--- a/sbin/fsck/Makefile
+++ b/sbin/fsck/Makefile
@@ -3,8 +3,13 @@
PROG= fsck
MAN8= fsck.8
SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
- pass5.c preen.c setup.c utilities.c ffs_subr.c ffs_tables.c
-CFLAGS+=-W
+ pass5.c preen.c setup.c utilities.c ffs_subr.c ffs_tables.c \
+ opt_diagnostic.h
+CFLAGS+=-W -I${.OBJDIR}
+CLEANFILES+=opt_diagnostic.h
.PATH: ${.CURDIR}/../../sys/ufs/ffs
+opt_diagnostic.h:
+ touch opt_diagnostic.h
+
.include <bsd.prog.mk>
diff --git a/sbin/fsck_ffs/Makefile b/sbin/fsck_ffs/Makefile
index 3155b1a466ea..3e2558d2dc43 100644
--- a/sbin/fsck_ffs/Makefile
+++ b/sbin/fsck_ffs/Makefile
@@ -3,8 +3,13 @@
PROG= fsck
MAN8= fsck.8
SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
- pass5.c preen.c setup.c utilities.c ffs_subr.c ffs_tables.c
-CFLAGS+=-W
+ pass5.c preen.c setup.c utilities.c ffs_subr.c ffs_tables.c \
+ opt_diagnostic.h
+CFLAGS+=-W -I${.OBJDIR}
+CLEANFILES+=opt_diagnostic.h
.PATH: ${.CURDIR}/../../sys/ufs/ffs
+opt_diagnostic.h:
+ touch opt_diagnostic.h
+
.include <bsd.prog.mk>
diff --git a/sbin/fsck_ifs/Makefile b/sbin/fsck_ifs/Makefile
index 3155b1a466ea..3e2558d2dc43 100644
--- a/sbin/fsck_ifs/Makefile
+++ b/sbin/fsck_ifs/Makefile
@@ -3,8 +3,13 @@
PROG= fsck
MAN8= fsck.8
SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
- pass5.c preen.c setup.c utilities.c ffs_subr.c ffs_tables.c
-CFLAGS+=-W
+ pass5.c preen.c setup.c utilities.c ffs_subr.c ffs_tables.c \
+ opt_diagnostic.h
+CFLAGS+=-W -I${.OBJDIR}
+CLEANFILES+=opt_diagnostic.h
.PATH: ${.CURDIR}/../../sys/ufs/ffs
+opt_diagnostic.h:
+ touch opt_diagnostic.h
+
.include <bsd.prog.mk>
diff --git a/sbin/fsdb/Makefile b/sbin/fsdb/Makefile
index 5fa4d665c23b..f69b375f2015 100644
--- a/sbin/fsdb/Makefile
+++ b/sbin/fsdb/Makefile
@@ -1,15 +1,20 @@
# $NetBSD: Makefile,v 1.1.1.1 1995/10/08 23:08:36 thorpej Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
-# $Id$
+# $Id: Makefile,v 1.6 1997/02/22 14:32:24 peter Exp $
PROG= fsdb
MAN8= fsdb.8
SRCS= fsdb.c fsdbutil.c \
dir.c inode.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
- pass5.c preen.c setup.c utilities.c ffs_subr.c ffs_tables.c
-CFLAGS+= -I${.CURDIR}/../fsck
+ pass5.c preen.c setup.c utilities.c ffs_subr.c ffs_tables.c \
+ opt_diagnostic.h
+CFLAGS+= -I${.CURDIR}/../fsck -I${.OBJDIR}
+CLEANFILES+=opt_diagnostic.h
LDADD+= -ledit -ltermcap
DPADD+= ${LIBEDIT} ${LIBTERMCAP}
.PATH: ${.CURDIR}/../fsck ${.CURDIR}/../../sys/ufs/ffs
+opt_diagnostic.h:
+ touch opt_diagnostic.h
+
.include <bsd.prog.mk>