blob: e0a0f9684c0dd7f7ad94df614fc3e2727344f9a6 (
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
38
39
40
41
42
43
44
45
|
# $NetBSD: Makefile.serverlib,v 1.8 2004/07/14 13:34:13 sekiya Exp $
NOLINT= 1
NOPROFILE= 1
.if ${MACHINE_ARCH} != "mipseb" && ${MACHINE_ARCH} != "mipsel"
NOPIC= 1
.endif
.include <bsd.own.mk> # for NETBSDSRCDIR
.include <bsd.endian.mk>
.if ${XMODULEDIR:U} == ""
libinstall::
.endif
.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} -DX_BYTE_ORDER=${X_BYTE_ORDER}
.if !defined(XSERVERINCDIR)
XSERVERINCDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/include && ${PRINTOBJDIR}
.MAKEOVERRIDES+=XSERVERINCDIR
.endif
# Architectures that can't use the XFree86 loader (such as MIPS) can use
# dlopen() to load modules.
.if defined(XMODULEDIR)
CPPFLAGS+= ${X11FLAGS.LOADABLE}
.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
SHLIB_MAJOR= 0
SHLIB_MINOR= 0
MKPICLIB= yes
MKSTATICLIB= no
.endif
.else
NOPIC= 1
.endif
|