diff --git a/usr.sbin/makefs/Makefile b/usr.sbin/makefs/Makefile index 8b046e64371e..8b8c1f67ea8b 100644 --- a/usr.sbin/makefs/Makefile +++ b/usr.sbin/makefs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2011/07/18 08:58:38 uch Exp $ +# $NetBSD: Makefile,v 1.27 2011/07/18 17:15:51 tron Exp $ # WARNS?= 3 # XXX -Wsign-compare @@ -6,7 +6,7 @@ WARNS?= 3 # XXX -Wsign-compare .include PROG= makefs -SRCS= cd9660.c ffs.c v7fs.c \ +SRCS= cd9660.c ffs.c \ getid.c \ makefs.c misc.c \ pack_dev.c \ @@ -22,9 +22,11 @@ CPPFLAGS+= -I${.CURDIR} -I${MKNODSRC} -I${MTREESRC} .include "${.CURDIR}/cd9660/Makefile.inc" .include "${.CURDIR}/ffs/Makefile.inc" + +.if !defined(HOSTPROG) +SRCS+= v7fs.c .include "${.CURDIR}/v7fs/Makefile.inc" -.if (${HOSTPROG:U} == "") DPADD+= ${LIBUTIL} LDADD+= -lutil .endif diff --git a/usr.sbin/makefs/makefs.c b/usr.sbin/makefs/makefs.c index 3bf44188f2d4..41f736ab218b 100644 --- a/usr.sbin/makefs/makefs.c +++ b/usr.sbin/makefs/makefs.c @@ -1,4 +1,4 @@ -/* $NetBSD: makefs.c,v 1.27 2011/07/18 08:58:38 uch Exp $ */ +/* $NetBSD: makefs.c,v 1.28 2011/07/18 17:15:52 tron Exp $ */ /* * Copyright (c) 2001-2003 Wasabi Systems, Inc. @@ -41,7 +41,7 @@ #include #if defined(__RCSID) && !defined(__lint) -__RCSID("$NetBSD: makefs.c,v 1.27 2011/07/18 08:58:38 uch Exp $"); +__RCSID("$NetBSD: makefs.c,v 1.28 2011/07/18 17:15:52 tron Exp $"); #endif /* !__lint */ #include @@ -73,8 +73,10 @@ static fstype_t fstypes[] = { { "ffs", ffs_prep_opts, ffs_parse_opts, ffs_cleanup_opts, ffs_makefs }, { "cd9660", cd9660_prep_opts, cd9660_parse_opts, cd9660_cleanup_opts, cd9660_makefs}, +#ifdef USE_V7FS { "v7fs", v7fs_prep_opts, v7fs_parse_opts, v7fs_cleanup_opts, v7fs_makefs }, +#endif { .type = NULL }, }; diff --git a/usr.sbin/makefs/makefs.h b/usr.sbin/makefs/makefs.h index 7197ac454f7b..d696072b4d56 100644 --- a/usr.sbin/makefs/makefs.h +++ b/usr.sbin/makefs/makefs.h @@ -1,4 +1,4 @@ -/* $NetBSD: makefs.h,v 1.21 2011/07/18 08:58:38 uch Exp $ */ +/* $NetBSD: makefs.h,v 1.22 2011/07/18 17:15:52 tron Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -170,10 +170,12 @@ int cd9660_parse_opts(const char *, fsinfo_t *); void cd9660_cleanup_opts(fsinfo_t *); void cd9660_makefs(const char *, const char *, fsnode *, fsinfo_t *); +#ifdef USE_V7FS void v7fs_prep_opts(fsinfo_t *); int v7fs_parse_opts(const char *, fsinfo_t *); void v7fs_cleanup_opts(fsinfo_t *); void v7fs_makefs(const char *, const char *, fsnode *, fsinfo_t *); +#endif extern u_int debug; extern struct timespec start_time;