head	1.7;
access;
symbols
	netbsd-11-0-RC6:1.6
	netbsd-11-0-RC5:1.6
	netbsd-11-0-RC4:1.6
	netbsd-11-0-RC3:1.6
	netbsd-11-0-RC2:1.6
	netbsd-11-0-RC1:1.6
	perseant-exfatfs-base-20250801:1.6
	netbsd-11:1.6.0.44
	netbsd-11-base:1.6
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.6
	perseant-exfatfs:1.6.0.42
	perseant-exfatfs-base:1.6
	netbsd-8-3-RELEASE:1.6
	netbsd-9-4-RELEASE:1.6
	netbsd-10-0-RELEASE:1.6
	netbsd-10-0-RC6:1.6
	netbsd-10-0-RC5:1.6
	netbsd-10-0-RC4:1.6
	netbsd-10-0-RC3:1.6
	netbsd-10-0-RC2:1.6
	netbsd-10-0-RC1:1.6
	netbsd-10:1.6.0.40
	netbsd-10-base:1.6
	netbsd-9-3-RELEASE:1.6
	cjep_sun2x-base1:1.6
	cjep_sun2x:1.6.0.38
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	netbsd-9-2-RELEASE:1.6
	cjep_staticlib_x:1.6.0.36
	cjep_staticlib_x-base:1.6
	netbsd-9-1-RELEASE:1.6
	phil-wifi-20200421:1.6
	phil-wifi-20200411:1.6
	is-mlppp:1.6.0.34
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-8-2-RELEASE:1.6
	netbsd-9-0-RELEASE:1.6
	netbsd-9-0-RC2:1.6
	netbsd-9-0-RC1:1.6
	phil-wifi-20191119:1.6
	netbsd-9:1.6.0.32
	netbsd-9-base:1.6
	phil-wifi-20190609:1.6
	netbsd-8-1-RELEASE:1.6
	netbsd-8-1-RC1:1.6
	pgoyette-compat-merge-20190127:1.6
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	netbsd-7-2-RELEASE:1.6
	pgoyette-compat-0728:1.6
	netbsd-8-0-RELEASE:1.6
	phil-wifi:1.6.0.30
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	netbsd-8-0-RC2:1.6
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	netbsd-8-0-RC1:1.6
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	netbsd-7-1-2-RELEASE:1.6
	pgoyette-compat:1.6.0.28
	pgoyette-compat-base:1.6
	netbsd-7-1-1-RELEASE:1.6
	matt-nb8-mediatek:1.6.0.26
	matt-nb8-mediatek-base:1.6
	perseant-stdc-iso10646:1.6.0.24
	perseant-stdc-iso10646-base:1.6
	netbsd-8:1.6.0.22
	netbsd-8-base:1.6
	prg-localcount2-base3:1.6
	prg-localcount2-base2:1.6
	prg-localcount2-base1:1.6
	prg-localcount2:1.6.0.20
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	pgoyette-localcount-20170320:1.6
	netbsd-7-1:1.6.0.18
	netbsd-7-1-RELEASE:1.6
	netbsd-7-1-RC2:1.6
	netbsd-7-nhusb-base-20170116:1.6
	bouyer-socketcan:1.6.0.16
	bouyer-socketcan-base:1.6
	pgoyette-localcount-20170107:1.6
	netbsd-7-1-RC1:1.6
	pgoyette-localcount-20161104:1.6
	netbsd-7-0-2-RELEASE:1.6
	localcount-20160914:1.6
	netbsd-7-nhusb:1.6.0.14
	netbsd-7-nhusb-base:1.6
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.12
	pgoyette-localcount-base:1.6
	netbsd-7-0-1-RELEASE:1.6
	netbsd-7-0:1.6.0.10
	netbsd-7-0-RELEASE:1.6
	netbsd-7-0-RC3:1.6
	netbsd-7-0-RC2:1.6
	netbsd-7-0-RC1:1.6
	netbsd-5-2-3-RELEASE:1.4
	netbsd-5-1-5-RELEASE:1.4
	netbsd-6-0-6-RELEASE:1.5
	netbsd-6-1-5-RELEASE:1.5
	netbsd-7:1.6.0.8
	netbsd-7-base:1.6
	yamt-pagecache-base9:1.6
	yamt-pagecache-tag8:1.5.6.1
	netbsd-6-1-4-RELEASE:1.5
	netbsd-6-0-5-RELEASE:1.5
	tls-earlyentropy:1.6.0.6
	tls-earlyentropy-base:1.6
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6
	riastradh-drm2-base3:1.6
	netbsd-6-1-3-RELEASE:1.5
	netbsd-6-0-4-RELEASE:1.5
	netbsd-5-2-2-RELEASE:1.4
	netbsd-5-1-4-RELEASE:1.4
	netbsd-6-1-2-RELEASE:1.5
	netbsd-6-0-3-RELEASE:1.5
	netbsd-5-2-1-RELEASE:1.4
	netbsd-5-1-3-RELEASE:1.4
	netbsd-6-1-1-RELEASE:1.5
	riastradh-drm2-base2:1.6
	riastradh-drm2-base1:1.6
	riastradh-drm2:1.6.0.2
	riastradh-drm2-base:1.6
	netbsd-6-1:1.5.0.16
	netbsd-6-0-2-RELEASE:1.5
	netbsd-6-1-RELEASE:1.5
	netbsd-6-1-RC4:1.5
	netbsd-6-1-RC3:1.5
	agc-symver:1.6.0.4
	agc-symver-base:1.6
	netbsd-6-1-RC2:1.5
	netbsd-6-1-RC1:1.5
	yamt-pagecache-base8:1.6
	netbsd-5-2:1.4.0.14
	netbsd-6-0-1-RELEASE:1.5
	yamt-pagecache-base7:1.5
	netbsd-5-2-RELEASE:1.4
	netbsd-5-2-RC1:1.4
	matt-nb6-plus-nbase:1.5
	yamt-pagecache-base6:1.5
	netbsd-6-0:1.5.0.14
	netbsd-6-0-RELEASE:1.5
	netbsd-6-0-RC2:1.5
	tls-maxphys:1.5.0.12
	tls-maxphys-base:1.6
	matt-nb6-plus:1.5.0.10
	matt-nb6-plus-base:1.5
	netbsd-6-0-RC1:1.5
	yamt-pagecache-base5:1.5
	yamt-pagecache-base4:1.5
	netbsd-6:1.5.0.8
	netbsd-6-base:1.5
	netbsd-5-1-2-RELEASE:1.4
	netbsd-5-1-1-RELEASE:1.4
	yamt-pagecache-base3:1.5
	yamt-pagecache-base2:1.5
	yamt-pagecache:1.5.0.6
	yamt-pagecache-base:1.5
	cherry-xenmp:1.5.0.4
	cherry-xenmp-base:1.5
	bouyer-quota2-nbase:1.5
	bouyer-quota2:1.5.0.2
	bouyer-quota2-base:1.5
	matt-mips64-premerge-20101231:1.5
	matt-nb5-mips64-premerge-20101231:1.4
	matt-nb5-pq3:1.4.0.12
	matt-nb5-pq3-base:1.4
	netbsd-5-1:1.4.0.10
	netbsd-5-1-RELEASE:1.4
	netbsd-5-1-RC4:1.4
	matt-nb5-mips64-k15:1.4
	netbsd-5-1-RC3:1.4
	netbsd-5-1-RC2:1.4
	netbsd-5-1-RC1:1.4
	netbsd-5-0-2-RELEASE:1.4
	matt-nb5-mips64-premerge-20091211:1.4
	matt-premerge-20091211:1.5
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.4
	matt-nb4-mips64-k7-u2a-k9b:1.4
	matt-nb5-mips64-u1-k1-k5:1.4
	matt-nb5-mips64:1.4.0.8
	netbsd-5-0-1-RELEASE:1.4
	jym-xensuspend-nbase:1.4
	netbsd-5-0:1.4.0.6
	netbsd-5-0-RELEASE:1.4
	netbsd-5-0-RC4:1.4
	netbsd-5-0-RC3:1.4
	netbsd-5-0-RC2:1.4
	jym-xensuspend:1.4.0.4
	jym-xensuspend-base:1.4
	netbsd-5-0-RC1:1.4
	netbsd-5:1.4.0.2
	netbsd-5-base:1.4
	matt-mips64-base2:1.4
	matt-mips64:1.3.0.40
	netbsd-4-0-1-RELEASE:1.3
	wrstuden-revivesa-base-3:1.4
	wrstuden-revivesa-base-2:1.4
	wrstuden-fixsa-newbase:1.3
	wrstuden-revivesa-base-1:1.3
	yamt-pf42-base4:1.3
	yamt-pf42-base3:1.3
	hpcarm-cleanup-nbase:1.3
	yamt-pf42-baseX:1.3
	yamt-pf42-base2:1.3
	wrstuden-revivesa:1.3.0.38
	wrstuden-revivesa-base:1.3
	yamt-pf42:1.3.0.36
	yamt-pf42-base:1.3
	mjf-devfs2:1.3.0.34
	mjf-devfs2-base:1.4
	keiichi-mipv6:1.3.0.32
	keiichi-mipv6-base:1.3
	matt-armv6-nbase:1.3
	matt-armv6-prevmlocking:1.3
	wrstuden-fixsa-base-1:1.3
	netbsd-4-0:1.3.0.30
	netbsd-4-0-RELEASE:1.3
	cube-autoconf:1.3.0.28
	cube-autoconf-base:1.3
	mjf-devfs:1.3.0.26
	mjf-devfs-base:1.3
	netbsd-4-0-RC5:1.3
	netbsd-4-0-RC4:1.3
	netbsd-4-0-RC3:1.3
	netbsd-4-0-RC2:1.3
	netbsd-4-0-RC1:1.3
	matt-armv6:1.3.0.24
	matt-armv6-base:1.3
	matt-mips64-base:1.3
	hpcarm-cleanup:1.3.0.22
	hpcarm-cleanup-base:1.3
	netbsd-3-1-1-RELEASE:1.3
	netbsd-3-0-3-RELEASE:1.3
	wrstuden-fixsa:1.3.0.20
	wrstuden-fixsa-base:1.3
	abandoned-netbsd-4-base:1.3
	abandoned-netbsd-4:1.3.0.14
	netbsd-3-1:1.3.0.16
	netbsd-3-1-RELEASE:1.3
	netbsd-3-0-2-RELEASE:1.3
	netbsd-3-1-RC4:1.3
	netbsd-3-1-RC3:1.3
	netbsd-3-1-RC2:1.3
	netbsd-3-1-RC1:1.3
	netbsd-4:1.3.0.18
	netbsd-4-base:1.3
	netbsd-3-0-1-RELEASE:1.3
	netbsd-3-0:1.3.0.12
	netbsd-3-0-RELEASE:1.3
	netbsd-3-0-RC6:1.3
	netbsd-3-0-RC5:1.3
	netbsd-3-0-RC4:1.3
	netbsd-3-0-RC3:1.3
	netbsd-3-0-RC2:1.3
	netbsd-3-0-RC1:1.3
	netbsd-2-0-3-RELEASE:1.3
	netbsd-2-1:1.3.0.10
	netbsd-2-1-RELEASE:1.3
	netbsd-2-1-RC6:1.3
	netbsd-2-1-RC5:1.3
	netbsd-2-1-RC4:1.3
	netbsd-2-1-RC3:1.3
	netbsd-2-1-RC2:1.3
	netbsd-2-1-RC1:1.3
	netbsd-2-0-2-RELEASE:1.3
	netbsd-3:1.3.0.8
	netbsd-3-base:1.3
	netbsd-2-0-1-RELEASE:1.3
	netbsd-2:1.3.0.6
	netbsd-2-base:1.3
	netbsd-2-0-RELEASE:1.3
	netbsd-2-0-RC5:1.3
	netbsd-2-0-RC4:1.3
	netbsd-2-0-RC3:1.3
	netbsd-2-0-RC2:1.3
	netbsd-2-0-RC1:1.3
	netbsd-2-0:1.3.0.4
	netbsd-2-0-base:1.3
	netbsd-1-6-PATCH002-RELEASE:1.3
	netbsd-1-6-PATCH002:1.3
	netbsd-1-6-PATCH002-RC4:1.3
	netbsd-1-6-PATCH002-RC3:1.3
	netbsd-1-6-PATCH002-RC2:1.3
	netbsd-1-6-PATCH002-RC1:1.3
	netbsd-1-6-PATCH001:1.3
	netbsd-1-6-PATCH001-RELEASE:1.3
	netbsd-1-6-PATCH001-RC3:1.3
	netbsd-1-6-PATCH001-RC2:1.3
	netbsd-1-6-PATCH001-RC1:1.3
	fvdl_fs64_base:1.3
	netbsd-1-6-RELEASE:1.3
	netbsd-1-6-RC3:1.3
	netbsd-1-6-RC2:1.3
	netbsd-1-6-RC1:1.3
	netbsd-1-6:1.3.0.2
	netbsd-1-6-base:1.3
	netbsd-1-5-PATCH003:1.2
	FreeBSD-20010910:1.1.1.1
	FREEBSD:1.1.1
	netbsd-1-5-PATCH002:1.2
	netbsd-1-5-PATCH001:1.2
	netbsd-1-5-RELEASE:1.2
	netbsd-1-5-BETA2:1.2
	netbsd-1-5-BETA:1.2
	netbsd-1-4-PATCH003:1.2
	netbsd-1-5-ALPHA2:1.2
	netbsd-1-5:1.2.0.12
	netbsd-1-5-base:1.2
	minoura-xpg4dl:1.2.0.10
	minoura-xpg4dl-base:1.2
	netbsd-1-4-PATCH002:1.2
	wrstuden-devbsize-19991221:1.2
	wrstuden-devbsize:1.2.0.8
	wrstuden-devbsize-base:1.2
	comdex-fall-1999:1.2.0.6
	comdex-fall-1999-base:1.2
	netbsd-1-4-PATCH001:1.2
	netbsd-1-4-RELEASE:1.2
	netbsd-1-4:1.2.0.4
	netbsd-1-4-base:1.2
	netbsd-1-3-PATCH003:1.2
	netbsd-1-3-PATCH003-CANDIDATE2:1.2
	netbsd-1-3-PATCH003-CANDIDATE1:1.2
	netbsd-1-3-PATCH003-CANDIDATE0:1.2
	netbsd-1-3-PATCH002:1.2
	netbsd-1-3-PATCH001:1.2
	netbsd-1-3-RELEASE:1.2
	netbsd-1-3-BETA:1.2
	netbsd-1-3:1.2.0.2
	netbsd-1-3-base:1.2;
locks; strict;
comment	@# @;


1.7
date	2026.05.01.20.39.26;	author christos;	state Exp;
branches;
next	1.6;
commitid	cR1Ui0rZNS3nw9EG;

1.6
date	2013.01.21.20.28.38;	author christos;	state Exp;
branches;
next	1.5;

1.5
date	2009.06.05.21.52.31;	author haad;	state Exp;
branches
	1.5.6.1
	1.5.12.1;
next	1.4;

1.4
date	2008.08.11.10.56.54;	author christos;	state Exp;
branches;
next	1.3;

1.3
date	2001.09.10.18.27.41;	author christos;	state Exp;
branches
	1.3.34.1
	1.3.38.1;
next	1.2;

1.2
date	97.10.10.19.51.57;	author christos;	state Exp;
branches;
next	1.1;

1.1
date	97.03.01.19.42.54;	author christos;	state Exp;
branches
	1.1.1.1;
next	;

1.5.6.1
date	2013.01.23.00.05.32;	author yamt;	state Exp;
branches;
next	;

1.5.12.1
date	2013.02.25.00.28.09;	author tls;	state Exp;
branches;
next	;

1.3.34.1
date	2008.09.28.11.17.14;	author mjf;	state Exp;
branches;
next	;

1.3.38.1
date	2008.09.18.04.28.29;	author wrstuden;	state Exp;
branches;
next	;

1.1.1.1
date	2001.09.10.18.25.08;	author christos;	state Exp;
branches;
next	;


desc
@@


1.7
log
@PR/59957: Taylor R. Campbell: Centralize the disk open sequence from newfs
and tunefs to a new function "openspecial" and use it to fix this PR, and
the same issue with newfs_ext2fs.
@
text
@# $NetBSD: Makefile,v 1.6 2013/01/21 20:28:38 christos Exp $
# From: $FreeBSD: src/sbin/newfs_msdos/Makefile,v 1.5 2001/03/26 14:33:18 ru Exp $

.include <bsd.own.mk>

PROG=	newfs_msdos
MAN=	newfs_msdos.8
SRCS=	newfs_msdos.c partutil.c mkfs_msdos.c openspecial.c

LDADD+= -lutil
DPADD+= ${LIBUTIL}

LDADD+=-lprop
DPADD+=${LIBPROP}

FSCK=${NETBSDSRCDIR}/sbin/fsck
CPPFLAGS+=-I${.CURDIR} -I${FSCK}
.PATH:  ${FSCK}


.if ${MACHINE} == "pc98"
CFLAGS+= -DPC98
.endif

.include <bsd.prog.mk>
@


1.6
log
@Split the make fs portion into a function; do argument tests inside the
function.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2009/06/05 21:52:31 haad Exp $
d8 1
a8 1
SRCS=	newfs_msdos.c partutil.c mkfs_msdos.c
@


1.5
log
@Add support for DIOCGDISKINFO to disk like device drivers. Change
partutil.c::getdiskinfo to use it to get disk geometry info.
Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk
driver doesn't support it use old DIOCGDINFO. This patch adds support for
wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and
other tools.

No objections on tech-userlevel@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2008/08/11 10:56:54 christos Exp $
d8 1
a8 1
SRCS=	newfs_msdos.c partutil.c
@


1.5.12.1
log
@resync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2009/06/05 21:52:31 haad Exp $
d8 1
a8 1
SRCS=	newfs_msdos.c partutil.c mkfs_msdos.c
@


1.5.6.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2009/06/05 21:52:31 haad Exp $
d8 1
a8 1
SRCS=	newfs_msdos.c partutil.c mkfs_msdos.c
@


1.4
log
@teach this about wedges.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2001/09/10 18:27:41 christos Exp $
d13 3
@


1.3
log
@- Remove old files.
- Port to NetBSD
XXX: *untested*
@
text
@d1 1
a1 1
# $NetBSD$
d4 2
d8 2
d13 5
@


1.3.34.1
log
@Sync with HEAD.
@
text
@a3 2
.include <bsd.own.mk>

a5 2
SRCS=	newfs_msdos.c partutil.c

a8 5
FSCK=${NETBSDSRCDIR}/sbin/fsck
CPPFLAGS+=-I${.CURDIR} -I${FSCK}
.PATH:  ${FSCK}


@


1.3.38.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2001/09/10 18:27:41 christos Exp $
a3 2
.include <bsd.own.mk>

a5 2
SRCS=	newfs_msdos.c partutil.c

a8 5
FSCK=${NETBSDSRCDIR}/sbin/fsck
CPPFLAGS+=-I${.CURDIR} -I${FSCK}
.PATH:  ${FSCK}


@


1.2
log
@CFLAGS->CPPFLAGS
@
text
@d1 2
a2 5
# $NetBSD: Makefile,v 1.1 1997/03/01 19:42:54 christos Exp $
# Id: Makefile,v 1.3 1997/02/22 16:06:35 peter Exp 
#
PROG=newfs_msdos
MAN=newfs_msdos.8
d4 8
a11 1
CPPFLAGS+= -I${.CURDIR}/../../sys/msdosfs
@


1.1
log
@From FreeBSD's mkdosfs:
	- KNF
	- cleaned up a few typos.
	- use the msdosfs header files.
	- separated Makefile and Makefile.boot, since we cannot build
	  bootcode.h (yet)
ToDo:
	- Make it work on hard disks; only works on floppies
	- Make it accept an msdos.sys io.sys and a command.com, to make
	  a real dos bootable disk.
@
text
@d1 1
a1 1
# $NetBSD$
d7 1
a7 1
CFLAGS+= -I${.CURDIR}/../../sys/msdosfs -Wall -Wno-unused
@


1.1.1.1
log
@Import FreeBSD's newfs_msdos
@
text
@d1 5
a5 1
# $FreeBSD: src/sbin/newfs_msdos/Makefile,v 1.5 2001/03/26 14:33:18 ru Exp $
d7 1
a7 6
PROG=	newfs_msdos
MAN=	newfs_msdos.8

.if ${MACHINE} == "pc98"
CFLAGS+= -DPC98
.endif
@

