head	1.10;
access;
symbols
	netbsd-11-0-RC5:1.10
	netbsd-11-0-RC4:1.10
	netbsd-11-0-RC3:1.10
	netbsd-11-0-RC2:1.10
	netbsd-11-0-RC1:1.10
	perseant-exfatfs-base-20250801:1.10
	netbsd-11:1.10.0.6
	netbsd-11-base:1.10
	netbsd-10-1-RELEASE:1.10
	perseant-exfatfs-base-20240630:1.10
	perseant-exfatfs:1.10.0.4
	perseant-exfatfs-base:1.10
	netbsd-8-3-RELEASE:1.4
	netbsd-9-4-RELEASE:1.5
	netbsd-10-0-RELEASE:1.10
	netbsd-10-0-RC6:1.10
	netbsd-10-0-RC5:1.10
	netbsd-10-0-RC4:1.10
	netbsd-10-0-RC3:1.10
	netbsd-10-0-RC2:1.10
	netbsd-10-0-RC1:1.10
	netbsd-10:1.10.0.2
	netbsd-10-base:1.10
	netbsd-9-3-RELEASE:1.5
	cjep_sun2x-base1:1.6
	cjep_sun2x:1.6.0.4
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	netbsd-9-2-RELEASE:1.5
	cjep_staticlib_x:1.6.0.2
	cjep_staticlib_x-base:1.6
	netbsd-9-1-RELEASE:1.5
	phil-wifi-20200421:1.5
	phil-wifi-20200411:1.5
	is-mlppp:1.5.0.4
	is-mlppp-base:1.5
	phil-wifi-20200406:1.5
	netbsd-8-2-RELEASE:1.4
	netbsd-9-0-RELEASE:1.5
	netbsd-9-0-RC2:1.5
	netbsd-9-0-RC1:1.5
	phil-wifi-20191119:1.5
	netbsd-9:1.5.0.2
	netbsd-9-base:1.5
	phil-wifi-20190609:1.5
	netbsd-8-1-RELEASE:1.4
	netbsd-8-1-RC1:1.4
	pgoyette-compat-merge-20190127:1.4.14.1
	pgoyette-compat-20190127:1.5
	pgoyette-compat-20190118:1.5
	pgoyette-compat-1226:1.4
	pgoyette-compat-1126:1.4
	pgoyette-compat-1020:1.4
	pgoyette-compat-0930:1.4
	pgoyette-compat-0906:1.4
	netbsd-7-2-RELEASE:1.2
	pgoyette-compat-0728:1.4
	netbsd-8-0-RELEASE:1.4
	phil-wifi:1.4.0.16
	phil-wifi-base:1.4
	pgoyette-compat-0625:1.4
	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.2
	pgoyette-compat:1.4.0.14
	pgoyette-compat-base:1.4
	netbsd-7-1-1-RELEASE:1.2
	matt-nb8-mediatek:1.4.0.12
	matt-nb8-mediatek-base:1.4
	perseant-stdc-iso10646:1.4.0.10
	perseant-stdc-iso10646-base:1.4
	netbsd-8:1.4.0.8
	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.6
	prg-localcount2-base:1.4
	pgoyette-localcount-20170426:1.4
	bouyer-socketcan-base1:1.4
	pgoyette-localcount-20170320:1.4
	netbsd-7-1:1.2.0.48
	netbsd-7-1-RELEASE:1.2
	netbsd-7-1-RC2:1.2
	netbsd-7-nhusb-base-20170116:1.2
	bouyer-socketcan:1.4.0.4
	bouyer-socketcan-base:1.4
	pgoyette-localcount-20170107:1.4
	netbsd-7-1-RC1:1.2
	pgoyette-localcount-20161104:1.4
	netbsd-7-0-2-RELEASE:1.2
	localcount-20160914:1.4
	netbsd-7-nhusb:1.2.0.46
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.4
	pgoyette-localcount-20160726:1.4
	pgoyette-localcount:1.4.0.2
	pgoyette-localcount-base:1.4
	netbsd-7-0-1-RELEASE:1.2
	netbsd-7-0:1.2.0.44
	netbsd-7-0-RELEASE:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	netbsd-5-2-3-RELEASE:1.2
	netbsd-5-1-5-RELEASE:1.2
	netbsd-6-0-6-RELEASE:1.2
	netbsd-6-1-5-RELEASE:1.2
	netbsd-7:1.2.0.42
	netbsd-7-base:1.2
	yamt-pagecache-base9:1.2
	yamt-pagecache-tag8:1.2
	netbsd-6-1-4-RELEASE:1.2
	netbsd-6-0-5-RELEASE:1.2
	tls-earlyentropy:1.2.0.40
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2
	netbsd-6-1-3-RELEASE:1.2
	netbsd-6-0-4-RELEASE:1.2
	netbsd-5-2-2-RELEASE:1.2
	netbsd-5-1-4-RELEASE:1.2
	netbsd-6-1-2-RELEASE:1.2
	netbsd-6-0-3-RELEASE:1.2
	netbsd-5-2-1-RELEASE:1.2
	netbsd-5-1-3-RELEASE:1.2
	netbsd-6-1-1-RELEASE:1.2
	riastradh-drm2-base2:1.2
	riastradh-drm2-base1:1.2
	riastradh-drm2:1.2.0.34
	riastradh-drm2-base:1.2
	netbsd-6-1:1.2.0.38
	netbsd-6-0-2-RELEASE:1.2
	netbsd-6-1-RELEASE:1.2
	netbsd-6-1-RC4:1.2
	netbsd-6-1-RC3:1.2
	agc-symver:1.2.0.36
	agc-symver-base:1.2
	netbsd-6-1-RC2:1.2
	netbsd-6-1-RC1:1.2
	yamt-pagecache-base8:1.2
	netbsd-5-2:1.2.0.32
	netbsd-6-0-1-RELEASE:1.2
	yamt-pagecache-base7:1.2
	netbsd-5-2-RELEASE:1.2
	netbsd-5-2-RC1:1.2
	matt-nb6-plus-nbase:1.2
	yamt-pagecache-base6:1.2
	netbsd-6-0:1.2.0.30
	netbsd-6-0-RELEASE:1.2
	netbsd-6-0-RC2:1.2
	tls-maxphys:1.2.0.28
	tls-maxphys-base:1.2
	matt-nb6-plus:1.2.0.26
	matt-nb6-plus-base:1.2
	netbsd-6-0-RC1:1.2
	yamt-pagecache-base5:1.2
	yamt-pagecache-base4:1.2
	netbsd-6:1.2.0.24
	netbsd-6-base:1.2
	netbsd-5-1-2-RELEASE:1.2
	netbsd-5-1-1-RELEASE:1.2
	yamt-pagecache-base3:1.2
	yamt-pagecache-base2:1.2
	yamt-pagecache:1.2.0.4
	yamt-pagecache-base:1.2
	cherry-xenmp:1.2.0.22
	cherry-xenmp-base:1.2
	bouyer-quota2-nbase:1.2
	bouyer-quota2:1.2.0.20
	bouyer-quota2-base:1.2
	matt-mips64-premerge-20101231:1.2
	matt-nb5-mips64-premerge-20101231:1.2
	matt-nb5-pq3:1.2.0.18
	matt-nb5-pq3-base:1.2
	pre-xorg-192:1.2
	netbsd-5-1:1.2.0.16
	netbsd-5-1-RELEASE:1.2
	netbsd-5-1-RC4:1.2
	matt-nb5-mips64-k15:1.2
	netbsd-5-1-RC3:1.2
	netbsd-5-1-RC2:1.2
	netbsd-5-1-RC1:1.2
	netbsd-5-0-2-RELEASE:1.2
	matt-nb5-mips64-premerge-20091211:1.2
	matt-premerge-20091211:1.2
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.2
	matt-nb4-mips64-k7-u2a-k9b:1.2
	matt-nb5-mips64-u1-k1-k5:1.2
	matt-nb5-mips64:1.2.0.14
	netbsd-5-0-1-RELEASE:1.2
	jym-xensuspend-nbase:1.2
	netbsd-5-0:1.2.0.12
	netbsd-5-0-RELEASE:1.2
	netbsd-5-0-RC4:1.2
	netbsd-5-0-RC3:1.2
	netbsd-5-0-RC2:1.2
	jym-xensuspend:1.2.0.10
	jym-xensuspend-base:1.2
	netbsd-5-0-RC1:1.2
	haad-dm-base:1.2
	haad-dm-base2:1.2
	haad-nbase2:1.2
	netbsd-5:1.2.0.8
	netbsd-5-base:1.2
	matt-mips64-base2:1.2
	haad-dm:1.2.0.6
	haad-dm-base1:1.2
	wrstuden-revivesa-base-3:1.2
	wrstuden-revivesa:1.2.0.2
	wrstuden-revivesa-base-2:1.2;
locks; strict;
comment	@# @;


1.10
date	2022.10.28.09.43.59;	author wiz;	state Exp;
branches;
next	1.9;
commitid	R4wMU7jTgxDL4tZD;

1.9
date	2022.07.15.04.18.54;	author mrg;	state Exp;
branches;
next	1.8;
commitid	o4A4jy8xMVZZEWLD;

1.8
date	2021.11.16.09.25.52;	author nia;	state Exp;
branches;
next	1.7;
commitid	ZhN9fVPgGjpz60hD;

1.7
date	2021.11.01.10.05.19;	author nia;	state Exp;
branches;
next	1.6;
commitid	hrNab118VQ8kN4fD;

1.6
date	2021.04.12.03.57.06;	author mrg;	state Exp;
branches;
next	1.5;
commitid	h7lu1UVjJ0RgiXOC;

1.5
date	2018.12.31.11.14.03;	author mrg;	state Exp;
branches;
next	1.4;
commitid	TUVjjF1MdjrmtW5B;

1.4
date	2016.01.25.18.00.26;	author christos;	state Exp;
branches
	1.4.14.1
	1.4.16.1;
next	1.3;
commitid	qY0JIMvwz9RW9lSy;

1.3
date	2015.07.18.08.56.06;	author mrg;	state Exp;
branches;
next	1.2;
commitid	NzqVZwHidetehKty;

1.2
date	2008.08.10.11.56.06;	author rtr;	state Exp;
branches
	1.2.2.1
	1.2.6.1;
next	1.1;

1.1
date	2008.08.02.04.32.00;	author mrg;	state Exp;
branches;
next	;

1.4.14.1
date	2019.01.18.08.49.06;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.4.16.1
date	2019.06.10.22.02.45;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.2.2.1
date	2008.08.10.11.56.06;	author wrstuden;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2008.09.18.05.18.43;	author wrstuden;	state Exp;
branches;
next	;

1.2.6.1
date	2008.08.10.11.56.06;	author haad;	state dead;
branches;
next	1.2.6.2;

1.2.6.2
date	2008.10.19.22.41.17;	author haad;	state Exp;
branches;
next	;


desc
@@


1.10
log
@put reallocarray() in the public namespace

reallocarray() will be part of the next POSIX release, see
https://austingroupbugs.net/view.php?id=1218

adapt an errno value to match POSIX expectations

As discussed on tech-userlevel
@
text
@#	$NetBSD: Makefile.servermod,v 1.9 2022/07/15 04:18:54 mrg Exp $

NOFULLRELRO=	yes

USE_FORT?=	yes # network server *and* setuid

.include <bsd.own.mk>	# For /etc/mk.conf processing

.if defined(XMODULEDIR)
SHLIB_MAJOR=0

# dri, dri2 and fb need to be linked statically as well?
.if !defined(XMODULEDIRANDSTATIC)
MKSTATICLIB:=	no
.endif

.else

# if these aren't defined the module being built is not installed
# instead it is statically linked into the xserver
libinstall::
moduleinstall::

.endif

# x11 modules that are installed need the X11FLAGS.LOADABLE's defined
.if defined(XMODULEDIR)
CPPFLAGS+=	${X11FLAGS.LOADABLE}
.endif

CPPFLAGS+=	${X11FLAGS.DIX}

# IOPortBase is particularly annoying to fix
COPTS+=         ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -fcommon :}
@


1.9
log
@various updates to build with xorg-server 21.1.3.

- the s3, tga, and trident drivers use old functionality and are disabled
- dixmods/fb is removed, main fb has all these now (we retain our revert
  of an upstream change here.)
- adjust source lists as necessary
- remove vbe module, now part of int10
- use -lxcvt
- misc clean up
- ramdac loses IBM, BT and TI support (this is one of the problems for
  the disabled drivers, but also some structures in RamDac.h are gone
  entirely, not copied anywhere.)
- old apm code is gone, all bsd uses pm_noop. now

this probably require a clean build in at least xorg-server and the
drivers, and perhaps the DESTDIR as well.  will update src/UPDATING with
details when they are fully known.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.servermod,v 1.8 2021/11/16 09:25:52 nia Exp $
d31 1
a31 1
CPPFLAGS+=	${X11FLAGS.DIX} -D_OPENBSD_SOURCE
@


1.8
log
@xorg: sprinkle a little bit of USE_FORT around
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.servermod,v 1.7 2021/11/01 10:05:19 nia Exp $
d31 1
a31 1
CPPFLAGS+=	${X11FLAGS.DIX}
@


1.7
log
@mk: Add support for conditional compilation of parts of the tree with
partial RELRO when MKRELRO=full is set.

Currently the X server needs to be compiled with only partial RELRO
due to the way certain (but not all - it seems wsfb works with full
RELRO) graphics driver modules are loaded.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.servermod,v 1.6 2021/04/12 03:57:06 mrg Exp $
d5 2
@


1.6
log
@use -fcommon where necessary.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile.servermod,v 1.5 2018/12/31 11:14:03 mrg Exp $
@


1.5
log
@build updates for xorg-server 1.20.3:
- moved/removed/new files
- don't define HAVE_XORG_CONFIG_H or HAVE_DIX_CONFIG_H if using
  ${X11FLAGS.DIX} -- already included.

put glxvnd into glx itself for now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.servermod,v 1.4 2016/01/25 18:00:26 christos Exp $
d28 3
@


1.4
log
@Include <bsd.own.mk> before setting any MK variables, so that /etc/mk.conf
is processed first, and it's settings don't override ours.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.servermod,v 1.3 2015/07/18 08:56:06 mrg Exp $
d26 2
@


1.4.16.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.servermod,v 1.5 2018/12/31 11:14:03 mrg Exp $
a25 2

CPPFLAGS+=	${X11FLAGS.DIX}
@


1.4.14.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.servermod,v 1.4 2016/01/25 18:00:26 christos Exp $
a25 2

CPPFLAGS+=	${X11FLAGS.DIX}
@


1.3
log
@no longer build a bunch of xorg-server twice (for .a and _pic.a).
entirely obsolete installing libi2c since it's builtin.

libfb, libdri and libdri2 all want to be both .a for the Xorg link
and .so for the run-time, i didn't really look too closely.

remove a bunch of duplicated set list entries.

i built a bunch of platforms for this, and i think i got the sets
lists updates correct, including for debug sets, but it's probable
that i broke something.

XXX: pullup to netbsd-7, but not critical
@
text
@d1 3
a3 1
#	$NetBSD: Makefile.servermod,v 1.2 2008/08/10 11:56:06 rtr Exp $
@


1.2
log
@SHLIB_MAJOR=0 if defined(XMODULEDIR)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.servermod,v 1.1 2008/08/02 04:32:00 mrg Exp $
d5 4
d11 2
a14 1
.if !defined(XMODULEDIR) && !defined(XMODULE)
d17 1
@


1.2.6.1
log
@file Makefile.servermod was added on branch haad-dm on 2008-10-19 22:41:17 +0000
@
text
@d1 17
@


1.2.6.2
log
@Sync with HEAD.
@
text
@a0 17
#	$NetBSD: Makefile.servermod,v 1.2 2008/08/10 11:56:06 rtr Exp $

.if defined(XMODULEDIR)
SHLIB_MAJOR=0
.endif

# if these aren't defined the module being built is not installed
# instead it is statically linked into the xserver
.if !defined(XMODULEDIR) && !defined(XMODULE)
libinstall::
moduleinstall::
.endif

# x11 modules that are installed need the X11FLAGS.LOADABLE's defined
.if defined(XMODULEDIR)
CPPFLAGS+=	${X11FLAGS.LOADABLE}
.endif
@


1.2.2.1
log
@file Makefile.servermod was added on branch wrstuden-revivesa on 2008-09-18 05:18:43 +0000
@
text
@d1 17
@


1.2.2.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@a0 17
#	$NetBSD: Makefile.servermod,v 1.2 2008/08/10 11:56:06 rtr Exp $

.if defined(XMODULEDIR)
SHLIB_MAJOR=0
.endif

# if these aren't defined the module being built is not installed
# instead it is statically linked into the xserver
.if !defined(XMODULEDIR) && !defined(XMODULE)
libinstall::
moduleinstall::
.endif

# x11 modules that are installed need the X11FLAGS.LOADABLE's defined
.if defined(XMODULEDIR)
CPPFLAGS+=	${X11FLAGS.LOADABLE}
.endif
@


1.1
log
@start of build-glue support for xorg-server bits.
building so far:
	doc include dix fb mi miext randr render


again based on the work rtr made for xorg support, and of course this
is very much based on the work lukem did originally for src/x11, as is
all the stuff in src/external/mit/xorg.

hi luke! :)
@
text
@d1 5
a5 1
#	$NetBSD: Makefile.servermod,v 1.1.2.1 2004/11/21 10:01:25 rtr Exp $
@
