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