summaryrefslogtreecommitdiff
path: root/external/mit/xorg/server/xorg-server/Makefile.serverlib
blob: ff350a5b8d4fcc567ebb4764eb2f6ea46823802a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#	$NetBSD: Makefile.serverlib,v 1.17 2022/10/28 09:43:59 wiz Exp $

NOFULLRELRO=	yes

USE_FORT?=	yes # network server *and* setuid

.include <bsd.own.mk>		# for NETBSDSRCDIR and mk.conf processing

# We can't use LIBISPRIVATE here as we need the ".so" installed.
MKPICINSTALL:=	no
MKLINT:=	no
MKDEBUGLIB:=	no
MKPROFILE:=	no

.include <bsd.endian.mk>

.if ${TARGET_ENDIANNESS} == "1234"
X_BYTE_ORDER=X_LITTLE_ENDIAN
.elif ${TARGET_ENDIANNESS} == "4321"
X_BYTE_ORDER=X_BIG_ENDIAN
.else
X_BYTE_ORDER=0
.endif

CPPFLAGS+=	${X11FLAGS.SERVER}
CPPFLAGS+=	-DXORG_VERSION_CURRENT=${XORG_VERSION_CURRENT}

.if ${HAVE_XORG_GLAMOR} != "no"
CPPFLAGS+=	-DGLAMOR
.endif

.if (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "sparc64")
CPPFLAGS+=	-D__GLX_ALIGN64
.endif

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