Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#	$NetBSD: Makefile.serverlib,v 1.5 2021/11/01 10:05:19 nia Exp $

NOFULLRELRO=	yes

.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 (${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 :}