head	1.8;
access;
symbols
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.4
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.2
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.3
	netbsd-9-4-RELEASE:1.3
	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.2
	netbsd-10-base:1.6
	netbsd-9-3-RELEASE:1.3
	cjep_sun2x-base1:1.4
	cjep_sun2x:1.4.0.4
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	netbsd-9-2-RELEASE:1.3
	cjep_staticlib_x:1.4.0.2
	cjep_staticlib_x-base:1.4
	netbsd-9-1-RELEASE:1.3
	phil-wifi-20200421:1.3
	phil-wifi-20200411:1.3
	is-mlppp:1.3.0.18
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	netbsd-8-2-RELEASE:1.3
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.16
	netbsd-9-base:1.3
	phil-wifi-20190609:1.3
	netbsd-8-1-RELEASE:1.3
	netbsd-8-1-RC1:1.3
	pgoyette-compat-merge-20190127:1.3
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	netbsd-7-2-RELEASE:1.2
	pgoyette-compat-0728:1.3
	netbsd-8-0-RELEASE:1.3
	phil-wifi:1.3.0.14
	phil-wifi-base:1.3
	pgoyette-compat-0625:1.3
	netbsd-8-0-RC2:1.3
	pgoyette-compat-0521:1.3
	pgoyette-compat-0502:1.3
	pgoyette-compat-0422:1.3
	netbsd-8-0-RC1:1.3
	pgoyette-compat-0415:1.3
	pgoyette-compat-0407:1.3
	pgoyette-compat-0330:1.3
	pgoyette-compat-0322:1.3
	pgoyette-compat-0315:1.3
	netbsd-7-1-2-RELEASE:1.2
	pgoyette-compat:1.3.0.12
	pgoyette-compat-base:1.3
	netbsd-7-1-1-RELEASE:1.2
	matt-nb8-mediatek:1.3.0.10
	matt-nb8-mediatek-base:1.3
	perseant-stdc-iso10646:1.3.0.8
	perseant-stdc-iso10646-base:1.3
	netbsd-8:1.3.0.6
	netbsd-8-base:1.3
	prg-localcount2-base3:1.3
	prg-localcount2-base2:1.3
	prg-localcount2-base1:1.3
	prg-localcount2:1.3.0.4
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	pgoyette-localcount-20170320:1.3
	netbsd-7-1:1.2.0.16
	netbsd-7-1-RELEASE:1.2
	netbsd-7-1-RC2:1.2
	netbsd-7-nhusb-base-20170116:1.2
	bouyer-socketcan:1.3.0.2
	bouyer-socketcan-base:1.3
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.2
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.2
	localcount-20160914:1.2
	netbsd-7-nhusb:1.2.0.14
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.12
	pgoyette-localcount-base:1.2
	netbsd-7-0-1-RELEASE:1.2
	netbsd-7-0:1.2.0.10
	netbsd-7-0-RELEASE:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	tls-maxphys-base:1.2
	tls-maxphys:1.2.0.8
	netbsd-7:1.2.0.6
	netbsd-7-base:1.2
	yamt-pagecache:1.2.0.4
	yamt-pagecache-base9:1.2
	tls-earlyentropy:1.2.0.2
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2;
locks; strict;
comment	@# @;


1.8
date	2023.06.03.21.26.29;	author lukem;	state Exp;
branches;
next	1.7;
commitid	Ei0aZMNlbMuRXxrE;

1.7
date	2023.06.03.08.53.00;	author lukem;	state Exp;
branches;
next	1.6;
commitid	JFrjk5m11qFkNtrE;

1.6
date	2022.04.10.09.22.35;	author riastradh;	state Exp;
branches;
next	1.5;
commitid	3UhxMg2VZabpqDzD;

1.5
date	2022.04.06.13.29.16;	author reinoud;	state Exp;
branches;
next	1.4;
commitid	8gZcBw0KmYsIU8zD;

1.4
date	2020.09.06.07.20.31;	author mrg;	state Exp;
branches;
next	1.3;
commitid	IFqEYW6MZdeXkXmC;

1.3
date	2017.01.11.12.19.44;	author joerg;	state Exp;
branches;
next	1.2;
commitid	Mzi1RRAPKHaCXxBz;

1.2
date	2013.08.05.18.45.00;	author reinoud;	state Exp;
branches
	1.2.4.1
	1.2.8.1
	1.2.12.1;
next	1.1;
commitid	H3pggfw078GUqi0x;

1.1
date	2013.08.05.14.41.57;	author reinoud;	state Exp;
branches;
next	;
commitid	etTuBXmncZNZ4h0x;

1.2.4.1
date	2013.08.05.18.45.00;	author yamt;	state dead;
branches;
next	1.2.4.2;
commitid	wmvImESqVQCgMwBx;

1.2.4.2
date	2014.05.22.11.43.05;	author yamt;	state Exp;
branches;
next	;
commitid	wmvImESqVQCgMwBx;

1.2.8.1
date	2013.08.05.18.45.00;	author tls;	state dead;
branches;
next	1.2.8.2;
commitid	jTnpym9Qu0o4R1Nx;

1.2.8.2
date	2014.08.20.00.05.09;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.2.12.1
date	2017.03.20.06.58.08;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;


desc
@@


1.8
log
@adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}

Simplify CWARNFLAGS to use ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
which works for both clang and gcc, and remove compiler-specific
equivalents.
@
text
@#	$NetBSD: Makefile.inc,v 1.7 2023/06/03 08:53:00 lukem Exp $
#

UDF=	${NETBSDSRCDIR}/sys/fs/udf
UDF_NEWFS=	${NETBSDSRCDIR}/sbin/newfs_udf
FSCK=	${NETBSDSRCDIR}/sbin/fsck	# use progress meter.

.PATH:	${.CURDIR}/udf ${UDF} ${UDF_NEWFS} ${FSCK}

CPPFLAGS+= -I${UDF} -I${UDF_NEWFS} -I${FSCK}

SRCS += udf_core.c udf_osta.c

.if !defined(HOSTPROG)
DPADD+=${LIBUTIL}
LDADD+=-lutil -lprop
.endif

CWARNFLAGS.clang+=	-Wno-error=constant-conversion
CWARNFLAGS+=		${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
@


1.7
log
@bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
	CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
	CLANG_NO_ADDR_OF_PACKED_MEMBER
	CC_NO_ADDR_OF_PACKED_MEMBER
	GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2022/04/10 09:22:35 riastradh Exp $
d19 2
a20 2
CWARNFLAGS.clang+=	-Wno-error=address-of-packed-member -Wno-error=constant-conversion
CWARNFLAGS.gcc+=	${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
@


1.6
log
@makefs(8): Fix tool build -- no libutil DPADD if HOSTPROG.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2022/04/06 13:29:16 reinoud Exp $
d20 1
a20 1
CWARNFLAGS.gcc+=	${GCC_NO_ADDR_OF_PACKED_MEMBER}
@


1.5
log
@Refactor and rewrite of newfs_udf(8) and makefs(8) (-t udf) with a shared
section for fsck_udf(8).

Newfs_udf and makefs support predefined disc image profiles, harddisc
partitions (disklabel and wedges on all generic block devices) and all optical
media types on CD/DVD/BD writers.

Newfs_udf and makefs now also support formatting of UDF 2.50 with a metadata
partition.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2020/09/06 07:20:31 mrg Exp $
d14 1
d17 1
@


1.4
log
@add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2017/01/11 12:19:44 joerg Exp $
d12 4
a15 1
SRCS += udf_create.c udf_write.c udf_osta.c
@


1.3
log
@Disable a couple of warnings until further investigation.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2013/08/05 18:45:00 reinoud Exp $
d15 1
@


1.2
log
@Cleanup makefile for makefs
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 2013/08/05 14:41:57 reinoud Exp $
d14 1
@


1.2.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2017/01/11 12:19:44 joerg Exp $
a13 1
CWARNFLAGS.clang+=	-Wno-error=address-of-packed-member -Wno-error=constant-conversion
@


1.2.8.1
log
@file Makefile.inc was added on branch tls-maxphys on 2014-08-20 00:05:09 +0000
@
text
@d1 13
@


1.2.8.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 13
#	$NetBSD$
#

UDF=	${NETBSDSRCDIR}/sys/fs/udf
UDF_NEWFS=	${NETBSDSRCDIR}/sbin/newfs_udf
FSCK=	${NETBSDSRCDIR}/sbin/fsck	# use progress meter.

.PATH:	${.CURDIR}/udf ${UDF} ${UDF_NEWFS} ${FSCK}

CPPFLAGS+= -I${UDF} -I${UDF_NEWFS} -I${FSCK}

SRCS += udf_create.c udf_write.c udf_osta.c

@


1.2.4.1
log
@file Makefile.inc was added on branch yamt-pagecache on 2014-05-22 11:43:05 +0000
@
text
@d1 13
@


1.2.4.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 13
#	$NetBSD$
#

UDF=	${NETBSDSRCDIR}/sys/fs/udf
UDF_NEWFS=	${NETBSDSRCDIR}/sbin/newfs_udf
FSCK=	${NETBSDSRCDIR}/sbin/fsck	# use progress meter.

.PATH:	${.CURDIR}/udf ${UDF} ${UDF_NEWFS} ${FSCK}

CPPFLAGS+= -I${UDF} -I${UDF_NEWFS} -I${FSCK}

SRCS += udf_create.c udf_write.c udf_osta.c

@


1.1
log
@Implement `makefs -t udf'.

Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2013/01/23 21:03:15 christos Exp $
d4 1
a4 2
SYSFS=	${NETBSDSRCDIR}/sys/fs
UDF=	${SYSFS}/udf
a13 6
#SRCS += main.c		# newfs
#.if !defined(HOSTPROG)
#SRCS += progress.c	# progress bar (fsck)
#.endif

#SRCS += v7fs_estimate.c v7fs_populate.c
@

