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