1#	$NetBSD: Makefile.servermod,v 1.10 2022/10/28 09:43:59 wiz Exp $
2
3NOFULLRELRO=	yes
4
5USE_FORT?=	yes # network server *and* setuid
6
7.include <bsd.own.mk>	# For /etc/mk.conf processing
8
9.if defined(XMODULEDIR)
10SHLIB_MAJOR=0
11
12# dri, dri2 and fb need to be linked statically as well?
13.if !defined(XMODULEDIRANDSTATIC)
14MKSTATICLIB:=	no
15.endif
16
17.else
18
19# if these aren't defined the module being built is not installed
20# instead it is statically linked into the xserver
21libinstall::
22moduleinstall::
23
24.endif
25
26# x11 modules that are installed need the X11FLAGS.LOADABLE's defined
27.if defined(XMODULEDIR)
28CPPFLAGS+=	${X11FLAGS.LOADABLE}
29.endif
30
31CPPFLAGS+=	${X11FLAGS.DIX}
32
33# IOPortBase is particularly annoying to fix
34COPTS+=         ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -fcommon :}
35