head	1.9;
access;
symbols
	netbsd-11-0-RC3:1.9
	netbsd-11-0-RC2:1.9
	netbsd-11-0-RC1:1.9
	perseant-exfatfs-base-20250801:1.9
	netbsd-11:1.9.0.24
	netbsd-11-base:1.9
	netbsd-10-1-RELEASE:1.9
	perseant-exfatfs-base-20240630:1.9
	perseant-exfatfs:1.9.0.22
	perseant-exfatfs-base:1.9
	netbsd-8-3-RELEASE:1.4
	netbsd-9-4-RELEASE:1.7
	netbsd-10-0-RELEASE:1.9
	netbsd-10-0-RC6:1.9
	netbsd-10-0-RC5:1.9
	netbsd-10-0-RC4:1.9
	netbsd-10-0-RC3:1.9
	netbsd-10-0-RC2:1.9
	thorpej-ifq:1.9.0.20
	thorpej-ifq-base:1.9
	thorpej-altq-separation:1.9.0.18
	thorpej-altq-separation-base:1.9
	netbsd-10-0-RC1:1.9
	netbsd-10:1.9.0.16
	netbsd-10-base:1.9
	bouyer-sunxi-drm:1.9.0.14
	bouyer-sunxi-drm-base:1.9
	netbsd-9-3-RELEASE:1.7
	thorpej-i2c-spi-conf2:1.9.0.12
	thorpej-i2c-spi-conf2-base:1.9
	thorpej-futex2:1.9.0.10
	thorpej-futex2-base:1.9
	thorpej-cfargs2:1.9.0.8
	thorpej-cfargs2-base:1.9
	cjep_sun2x-base1:1.9
	cjep_sun2x:1.9.0.6
	cjep_sun2x-base:1.9
	cjep_staticlib_x-base1:1.9
	netbsd-9-2-RELEASE:1.7
	cjep_staticlib_x:1.9.0.4
	cjep_staticlib_x-base:1.9
	thorpej-i2c-spi-conf:1.9.0.2
	thorpej-i2c-spi-conf-base:1.9
	thorpej-cfargs:1.7.0.12
	thorpej-cfargs-base:1.9
	thorpej-futex:1.7.0.10
	thorpej-futex-base:1.7
	netbsd-9-1-RELEASE:1.7
	bouyer-xenpvh-base2:1.7
	phil-wifi-20200421:1.7
	bouyer-xenpvh-base1:1.7
	phil-wifi-20200411:1.7
	bouyer-xenpvh:1.7.0.8
	bouyer-xenpvh-base:1.7
	is-mlppp:1.7.0.6
	is-mlppp-base:1.7
	phil-wifi-20200406:1.7
	netbsd-8-2-RELEASE:1.4
	ad-namecache-base3:1.7
	netbsd-9-0-RELEASE:1.7
	netbsd-9-0-RC2:1.7
	ad-namecache-base2:1.7
	ad-namecache-base1:1.7
	ad-namecache:1.7.0.4
	ad-namecache-base:1.7
	netbsd-9-0-RC1:1.7
	phil-wifi-20191119:1.7
	netbsd-9:1.7.0.2
	netbsd-9-base:1.7
	phil-wifi-20190609:1.7
	netbsd-8-1-RELEASE:1.4
	netbsd-8-1-RC1:1.4
	isaki-audio2:1.6.0.2
	isaki-audio2-base:1.6
	pgoyette-compat-merge-20190127:1.4.36.1
	pgoyette-compat-20190127:1.5
	pgoyette-compat-20190118:1.5
	pgoyette-compat-1226:1.5
	pgoyette-compat-1126:1.5
	pgoyette-compat-1020:1.5
	pgoyette-compat-0930:1.5
	pgoyette-compat-0906:1.5
	netbsd-7-2-RELEASE:1.4
	pgoyette-compat-0728:1.5
	netbsd-8-0-RELEASE:1.4
	phil-wifi:1.5.0.2
	phil-wifi-base:1.5
	pgoyette-compat-0625:1.5
	netbsd-8-0-RC2:1.4
	pgoyette-compat-0521:1.4
	pgoyette-compat-0502:1.4
	pgoyette-compat-0422:1.4
	netbsd-8-0-RC1:1.4
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.4
	pgoyette-compat-0330:1.4
	pgoyette-compat-0322:1.4
	pgoyette-compat-0315:1.4
	netbsd-7-1-2-RELEASE:1.4
	pgoyette-compat:1.4.0.36
	pgoyette-compat-base:1.4
	netbsd-7-1-1-RELEASE:1.4
	tls-maxphys-base-20171202:1.4
	matt-nb8-mediatek:1.4.0.34
	matt-nb8-mediatek-base:1.4
	nick-nhusb-base-20170825:1.4
	perseant-stdc-iso10646:1.4.0.32
	perseant-stdc-iso10646-base:1.4
	netbsd-8:1.4.0.30
	netbsd-8-base:1.4
	prg-localcount2-base3:1.4
	prg-localcount2-base2:1.4
	prg-localcount2-base1:1.4
	prg-localcount2:1.4.0.28
	prg-localcount2-base:1.4
	pgoyette-localcount-20170426:1.4
	bouyer-socketcan-base1:1.4
	jdolecek-ncq:1.4.0.26
	jdolecek-ncq-base:1.4
	pgoyette-localcount-20170320:1.4
	netbsd-7-1:1.4.0.24
	netbsd-7-1-RELEASE:1.4
	netbsd-7-1-RC2:1.4
	nick-nhusb-base-20170204:1.4
	netbsd-7-nhusb-base-20170116:1.4
	bouyer-socketcan:1.4.0.22
	bouyer-socketcan-base:1.4
	pgoyette-localcount-20170107:1.4
	netbsd-7-1-RC1:1.4
	nick-nhusb-base-20161204:1.4
	pgoyette-localcount-20161104:1.4
	netbsd-7-0-2-RELEASE:1.4
	nick-nhusb-base-20161004:1.4
	localcount-20160914:1.4
	netbsd-7-nhusb:1.4.0.20
	netbsd-7-nhusb-base:1.4
	pgoyette-localcount-20160806:1.4
	pgoyette-localcount-20160726:1.4
	pgoyette-localcount:1.4.0.18
	pgoyette-localcount-base:1.4
	nick-nhusb-base-20160907:1.4
	nick-nhusb-base-20160529:1.4
	netbsd-7-0-1-RELEASE:1.4
	nick-nhusb-base-20160422:1.4
	nick-nhusb-base-20160319:1.4
	nick-nhusb-base-20151226:1.4
	netbsd-7-0:1.4.0.16
	netbsd-7-0-RELEASE:1.4
	nick-nhusb-base-20150921:1.4
	netbsd-7-0-RC3:1.4
	netbsd-7-0-RC2:1.4
	netbsd-7-0-RC1:1.4
	nick-nhusb-base-20150606:1.4
	nick-nhusb-base-20150406:1.4
	nick-nhusb:1.4.0.14
	nick-nhusb-base:1.4
	netbsd-6-0-6-RELEASE:1.3
	netbsd-6-1-5-RELEASE:1.3
	netbsd-7:1.4.0.12
	netbsd-7-base:1.4
	yamt-pagecache-base9:1.4
	yamt-pagecache-tag8:1.1.10.2
	netbsd-6-1-4-RELEASE:1.3
	netbsd-6-0-5-RELEASE:1.3
	tls-earlyentropy:1.4.0.10
	tls-earlyentropy-base:1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4
	riastradh-drm2-base3:1.4
	netbsd-6-1-3-RELEASE:1.3
	netbsd-6-0-4-RELEASE:1.3
	netbsd-6-1-2-RELEASE:1.3
	netbsd-6-0-3-RELEASE:1.3
	rmind-smpnet-nbase:1.4
	netbsd-6-1-1-RELEASE:1.3
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.4.0.8
	riastradh-drm2-base:1.4
	rmind-smpnet:1.4.0.2
	rmind-smpnet-base:1.4
	netbsd-6-1:1.3.0.10
	netbsd-6-0-2-RELEASE:1.3
	netbsd-6-1-RELEASE:1.3
	khorben-n900:1.4.0.6
	netbsd-6-1-RC4:1.3
	netbsd-6-1-RC3:1.3
	agc-symver:1.4.0.4
	agc-symver-base:1.4
	netbsd-6-1-RC2:1.3
	netbsd-6-1-RC1:1.3
	yamt-pagecache-base8:1.4
	netbsd-6-0-1-RELEASE:1.3
	yamt-pagecache-base7:1.4
	matt-nb6-plus-nbase:1.3
	yamt-pagecache-base6:1.3
	netbsd-6-0:1.3.0.8
	netbsd-6-0-RELEASE:1.3
	netbsd-6-0-RC2:1.3
	tls-maxphys:1.3.0.6
	tls-maxphys-base:1.4
	matt-nb6-plus:1.3.0.4
	matt-nb6-plus-base:1.3
	netbsd-6-0-RC1:1.3
	jmcneill-usbmp-base10:1.3
	yamt-pagecache-base5:1.3
	jmcneill-usbmp-base9:1.3
	yamt-pagecache-base4:1.3
	jmcneill-usbmp-base8:1.3
	jmcneill-usbmp-base7:1.3
	jmcneill-usbmp-base6:1.3
	jmcneill-usbmp-base5:1.3
	jmcneill-usbmp-base4:1.3
	jmcneill-usbmp-base3:1.3
	jmcneill-usbmp-pre-base2:1.1
	jmcneill-usbmp-base2:1.3
	netbsd-6:1.3.0.2
	netbsd-6-base:1.3
	jmcneill-usbmp:1.1.0.14
	jmcneill-usbmp-base:1.1
	jmcneill-audiomp3:1.1.0.12
	jmcneill-audiomp3-base:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.10
	yamt-pagecache-base:1.1
	rmind-uvmplock-nbase:1.1
	jruoho-x86intr:1.1.0.8
	cherry-xenmp:1.1.0.6
	cherry-xenmp-base:1.1
	rmind-uvmplock-base:1.1
	rmind-uvmplock:1.1.0.4
	bouyer-quota2-nbase:1.1
	bouyer-quota2:1.1.0.2
	bouyer-quota2-base:1.1;
locks; strict;
comment	@# @;


1.9
date	2021.04.15.17.26.07;	author christos;	state Exp;
branches;
next	1.8;
commitid	LR7VSRYdJGKEFpPC;

1.8
date	2021.04.12.04.41.54;	author mrg;	state Exp;
branches;
next	1.7;
commitid	yvwYnVlfFJWAxXOC;

1.7
date	2019.06.05.16.28.07;	author hannken;	state Exp;
branches
	1.7.12.1;
next	1.6;
commitid	hU6jqmC7Udk2d1qB;

1.6
date	2019.02.17.04.05.58;	author rin;	state Exp;
branches;
next	1.5;
commitid	viEUadQYccaOx4cB;

1.5
date	2018.05.28.21.05.01;	author chs;	state Exp;
branches
	1.5.2.1;
next	1.4;
commitid	NQFwoUduS0toJ6EA;

1.4
date	2012.11.21.17.48.05;	author pooka;	state Exp;
branches
	1.4.36.1;
next	1.3;

1.3
date	2012.02.04.18.39.21;	author christos;	state Exp;
branches
	1.3.6.1;
next	1.2;

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

1.1
date	2011.01.18.22.21.22;	author haad;	state Exp;
branches
	1.1.4.1
	1.1.8.1
	1.1.10.1
	1.1.14.1;
next	;

1.7.12.1
date	2021.04.17.17.26.21;	author thorpej;	state Exp;
branches;
next	;
commitid	bct79XL9ibnNBFPC;

1.5.2.1
date	2019.06.10.22.09.39;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.4.36.1
date	2018.06.25.07.26.06;	author pgoyette;	state Exp;
branches;
next	;
commitid	8PtAu9af7VvhiDHA;

1.3.6.1
date	2013.02.25.00.30.01;	author tls;	state Exp;
branches;
next	;

1.1.4.1
date	2011.01.18.22.21.22;	author rmind;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2011.03.05.20.55.48;	author rmind;	state Exp;
branches;
next	;

1.1.8.1
date	2011.01.18.22.21.22;	author jruoho;	state dead;
branches;
next	1.1.8.2;

1.1.8.2
date	2011.06.06.09.09.50;	author jruoho;	state Exp;
branches;
next	;

1.1.10.1
date	2012.04.17.00.08.37;	author yamt;	state Exp;
branches;
next	1.1.10.2;

1.1.10.2
date	2013.01.16.05.33.48;	author yamt;	state Exp;
branches;
next	;

1.1.14.1
date	2012.02.18.07.35.37;	author mrg;	state Exp;
branches;
next	;


desc
@@


1.9
log
@- Don't include <bsd.own.mk> It should be done by the enclosing Makefile
- Don't define NEED_ISYSTEM. This is a rump thing and should be only exposed
  there.
@
text
@#	$NetBSD: Makefile.solmod,v 1.8 2021/04/12 04:41:54 mrg Exp $

ZFSDIR=	${S}/../external/cddl/osnet

.PATH:	${ZFSDIR}/dist/common/avl

SRCS=	avl.c

.PATH:	${ZFSDIR}/dist/common/nvpair

SRCS+=	fnvpair.c
SRCS+=	nvpair.c
SRCS+=	nvpair_alloc_fixed.c

.PATH:	${ZFSDIR}/dist/common/unicode

SRCS+=	u8_textprep.c

.PATH:	${ZFSDIR}/dist/uts/common/os

SRCS+=	fm.c
SRCS+=	list.c
SRCS+=	nvpair_alloc_system.c

.PATH:	${NETBSDSRCDIR}/common/lib/libc/rpc

SRCS+=	xdr.c
SRCS+=	xdr_array.c
SRCS+=	xdr_mem.c

.PATH:	${ZFSDIR}/dist/uts/common/zmod

SRCS+=	adler32.c
SRCS+=	crc32.c
SRCS+=	deflate.c
SRCS+=	inffast.c
SRCS+=	inflate.c
SRCS+=	inftrees.c
SRCS+=	trees.c
SRCS+=	zmod.c
SRCS+=	zmod_subr.c
SRCS+=	zutil.c

.PATH:  ${ZFSDIR}/dist/common/acl

SRCS+= acl_common.c

.PATH:	${ZFSDIR}/sys/kern

SRCS+=	callb.c
SRCS+=	ddi.c
SRCS+=	kmem.c
SRCS+=	kobj.c
SRCS+=	kstat.c
SRCS+=	misc.c
SRCS+=	mod.c
SRCS+=	opensolaris.c
SRCS+=	policy.c
SRCS+=	printf.c
SRCS+=	string.c
SRCS+=	sysevent.c
SRCS+=	taskq.c
SRCS+=	vfs.c
SRCS+=	zone.c

WARNS=		1

CWARNFLAGS+=	-Wall
CWARNFLAGS+=	-Wno-unknown-pragmas
CWARNFLAGS+=	-Wno-missing-braces
CWARNFLAGS+=	-Wno-parentheses
CWARNFLAGS+=	-Wno-uninitialized
CWARNFLAGS+=	-Wno-unused
CWARNFLAGS+=	-Wno-switch
CWARNFLAGS+=	-Wno-strict-prototypes
CWARNFLAGS+=	-Wno-missing-prototypes
CWARNFLAGS+=	-Wno-format

CPPFLAGS+=	-I${ZFSDIR}/sys
CPPFLAGS+=	-I${ZFSDIR}/dist/common/acl
CPPFLAGS+=	-I${ZFSDIR}/dist/common
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/zmod
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common
CPPFLAGS+=      -I${ZFSDIR}/sys/sys
@


1.8
log
@include bsd.own.mk to make sure $S is set.
@
text
@d1 1
a1 3
#	$NetBSD: Makefile.solmod,v 1.7 2019/06/05 16:28:07 hannken Exp $

.include <bsd.own.mk>
a84 2

NEED_ISYSTEM=   # duplicate headers, depends on -isystem to build
@


1.7
log
@Switch module solaris to native XDR.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile.solmod,v 1.6 2019/02/17 04:05:58 rin Exp $
@


1.7.12.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.solmod,v 1.9 2021/04/15 17:26:07 christos Exp $
d85 2
@


1.6
log
@Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.solmod,v 1.5 2018/05/28 21:05:01 chs Exp $
d25 1
a25 1
.PATH:	${ZFSDIR}/dist/uts/common/rpc
@


1.5
log
@merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.solmod,v 1.4 2012/11/21 17:48:05 pooka Exp $
d66 1
a66 2
WARNS=		0
NOGCCERROR=	yes
@


1.5.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.solmod,v 1.7 2019/06/05 16:28:07 hannken Exp $
d25 1
a25 1
.PATH:	${NETBSDSRCDIR}/common/lib/libc/rpc
d66 2
a67 1
WARNS=		1
@


1.4
log
@Don't unconditionally use the error-silencing magic of -isystem
(as opposed to -I) on every component, only the zfs ones depend on it
to build.  Regular modules might benefit from a similar move.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.solmod,v 1.3 2012/02/04 18:39:21 christos Exp $
d11 1
d50 3
d56 2
d59 1
d61 1
a61 5
SRCS+=	zone.c
SRCS+=	callb.c
SRCS+=	ddi.c
SRCS+=	mod.c
SRCS+=	printf.c
d64 1
a64 1
SRCS+=	opensolaris.c
d82 1
a86 6
CPPFLAGS+=	-Dcaddr_t=__caddr_t "-D__va_list=va_list"
CPPFLAGS+=	-std=c99
# CPPFLAGS+=	-D_NFS_NFS_H_
# CPPFLAGS+=	-D_PROPLIB_ZFS_CONFLICT
CPPFLAGS+=	-DDIAGNOSTIC

@


1.4.36.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.solmod,v 1.5 2018/05/28 21:05:01 chs Exp $
a10 1
SRCS+=	fnvpair.c
a48 3
SRCS+=	callb.c
SRCS+=	ddi.c
SRCS+=	kmem.c
d52 5
a57 2
SRCS+=	opensolaris.c
SRCS+=	policy.c
a58 2
SRCS+=	string.c
SRCS+=	sysevent.c
d61 1
a61 1
SRCS+=	zone.c
a78 1
CPPFLAGS+=	-I${ZFSDIR}/dist/common
d83 6
@


1.3
log
@argh, there was even more debugging!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.solmod,v 1.2 2012/02/04 18:38:13 christos Exp $
d88 2
@


1.3.6.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.solmod,v 1.3 2012/02/04 18:39:21 christos Exp $
a87 2

NEED_ISYSTEM=   # duplicate headers, depends on -isystem to build
@


1.2
log
@No -g on the default install, if you want debugging you know where to put it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.solmod,v 1.1 2011/01/18 22:21:22 haad Exp $
d87 1
a87 2

CFLAGS+=	-g -O0 -DDIAGNOSTIC
@


1.1
log
@Add support for compiling ZFS and Solaris modules as RUMP libraries. Add
some locking and rumpcopy primitives and refactor module building Makefiles
to work with both RUMP and kernel modules. This is first part of adding
support for regular test of zfs on NetBSD to hunt some bugs and make it
stable.

Ok by pooka@@.
@
text
@d1 1
a1 3
#	$NetBSD$

CFLAGS+= -g -fno-inline
d88 1
a88 1
CFLAGS+=	-g -O0 -DDIAGNOSTIC@


1.1.10.1
log
@sync with head
@
text
@d1 3
a3 1
#	$NetBSD: Makefile.solmod,v 1.1 2011/01/18 22:21:22 haad Exp $
d89 2
a90 1
CPPFLAGS+=	-DDIAGNOSTIC
@


1.1.10.2
log
@sync with (a bit old) head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.solmod,v 1.1.10.1 2012/04/17 00:08:37 yamt Exp $
a87 2

NEED_ISYSTEM=   # duplicate headers, depends on -isystem to build
@


1.1.14.1
log
@merge to -current.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile.solmod,v 1.3 2012/02/04 18:39:21 christos Exp $
d89 2
a90 1
CPPFLAGS+=	-DDIAGNOSTIC
@


1.1.8.1
log
@file Makefile.solmod was added on branch jruoho-x86intr on 2011-06-06 09:09:50 +0000
@
text
@d1 90
@


1.1.8.2
log
@Sync with HEAD.
@
text
@a0 90
#	$NetBSD: Makefile.solmod,v 1.1 2011/01/18 22:21:22 haad Exp $

CFLAGS+= -g -fno-inline

ZFSDIR=	${S}/../external/cddl/osnet

.PATH:	${ZFSDIR}/dist/common/avl

SRCS=	avl.c

.PATH:	${ZFSDIR}/dist/common/nvpair

SRCS+=	nvpair.c
SRCS+=	nvpair_alloc_fixed.c

.PATH:	${ZFSDIR}/dist/common/unicode

SRCS+=	u8_textprep.c

.PATH:	${ZFSDIR}/dist/uts/common/os

SRCS+=	fm.c
SRCS+=	list.c
SRCS+=	nvpair_alloc_system.c

.PATH:	${ZFSDIR}/dist/uts/common/rpc

SRCS+=	xdr.c
SRCS+=	xdr_array.c
SRCS+=	xdr_mem.c

.PATH:	${ZFSDIR}/dist/uts/common/zmod

SRCS+=	adler32.c
SRCS+=	crc32.c
SRCS+=	deflate.c
SRCS+=	inffast.c
SRCS+=	inflate.c
SRCS+=	inftrees.c
SRCS+=	trees.c
SRCS+=	zmod.c
SRCS+=	zmod_subr.c
SRCS+=	zutil.c

.PATH:  ${ZFSDIR}/dist/common/acl

SRCS+= acl_common.c

.PATH:	${ZFSDIR}/sys/kern

SRCS+=	kobj.c
SRCS+=	kstat.c
SRCS+=	misc.c
SRCS+=	policy.c
SRCS+=	string.c
SRCS+=	zone.c
SRCS+=	callb.c
SRCS+=	ddi.c
SRCS+=	mod.c
SRCS+=	printf.c
SRCS+=	taskq.c
SRCS+=	vfs.c
SRCS+=	opensolaris.c

WARNS=		0
NOGCCERROR=	yes

CWARNFLAGS+=	-Wall
CWARNFLAGS+=	-Wno-unknown-pragmas
CWARNFLAGS+=	-Wno-missing-braces
CWARNFLAGS+=	-Wno-parentheses
CWARNFLAGS+=	-Wno-uninitialized
CWARNFLAGS+=	-Wno-unused
CWARNFLAGS+=	-Wno-switch
CWARNFLAGS+=	-Wno-strict-prototypes
CWARNFLAGS+=	-Wno-missing-prototypes
CWARNFLAGS+=	-Wno-format

CPPFLAGS+=	-I${ZFSDIR}/sys
CPPFLAGS+=	-I${ZFSDIR}/dist/common/acl
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/zmod
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common
CPPFLAGS+=      -I${ZFSDIR}/sys/sys

CPPFLAGS+=	-Dcaddr_t=__caddr_t "-D__va_list=va_list"
CPPFLAGS+=	-std=c99
# CPPFLAGS+=	-D_NFS_NFS_H_
# CPPFLAGS+=	-D_PROPLIB_ZFS_CONFLICT

CFLAGS+=	-g -O0 -DDIAGNOSTIC@


1.1.4.1
log
@file Makefile.solmod was added on branch rmind-uvmplock on 2011-03-05 20:55:48 +0000
@
text
@d1 90
@


1.1.4.2
log
@sync with head
@
text
@a0 90
#	$NetBSD$

CFLAGS+= -g -fno-inline

ZFSDIR=	${S}/../external/cddl/osnet

.PATH:	${ZFSDIR}/dist/common/avl

SRCS=	avl.c

.PATH:	${ZFSDIR}/dist/common/nvpair

SRCS+=	nvpair.c
SRCS+=	nvpair_alloc_fixed.c

.PATH:	${ZFSDIR}/dist/common/unicode

SRCS+=	u8_textprep.c

.PATH:	${ZFSDIR}/dist/uts/common/os

SRCS+=	fm.c
SRCS+=	list.c
SRCS+=	nvpair_alloc_system.c

.PATH:	${ZFSDIR}/dist/uts/common/rpc

SRCS+=	xdr.c
SRCS+=	xdr_array.c
SRCS+=	xdr_mem.c

.PATH:	${ZFSDIR}/dist/uts/common/zmod

SRCS+=	adler32.c
SRCS+=	crc32.c
SRCS+=	deflate.c
SRCS+=	inffast.c
SRCS+=	inflate.c
SRCS+=	inftrees.c
SRCS+=	trees.c
SRCS+=	zmod.c
SRCS+=	zmod_subr.c
SRCS+=	zutil.c

.PATH:  ${ZFSDIR}/dist/common/acl

SRCS+= acl_common.c

.PATH:	${ZFSDIR}/sys/kern

SRCS+=	kobj.c
SRCS+=	kstat.c
SRCS+=	misc.c
SRCS+=	policy.c
SRCS+=	string.c
SRCS+=	zone.c
SRCS+=	callb.c
SRCS+=	ddi.c
SRCS+=	mod.c
SRCS+=	printf.c
SRCS+=	taskq.c
SRCS+=	vfs.c
SRCS+=	opensolaris.c

WARNS=		0
NOGCCERROR=	yes

CWARNFLAGS+=	-Wall
CWARNFLAGS+=	-Wno-unknown-pragmas
CWARNFLAGS+=	-Wno-missing-braces
CWARNFLAGS+=	-Wno-parentheses
CWARNFLAGS+=	-Wno-uninitialized
CWARNFLAGS+=	-Wno-unused
CWARNFLAGS+=	-Wno-switch
CWARNFLAGS+=	-Wno-strict-prototypes
CWARNFLAGS+=	-Wno-missing-prototypes
CWARNFLAGS+=	-Wno-format

CPPFLAGS+=	-I${ZFSDIR}/sys
CPPFLAGS+=	-I${ZFSDIR}/dist/common/acl
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/zmod
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common
CPPFLAGS+=      -I${ZFSDIR}/sys/sys

CPPFLAGS+=	-Dcaddr_t=__caddr_t "-D__va_list=va_list"
CPPFLAGS+=	-std=c99
# CPPFLAGS+=	-D_NFS_NFS_H_
# CPPFLAGS+=	-D_PROPLIB_ZFS_CONFLICT

CFLAGS+=	-g -O0 -DDIAGNOSTIC@


