Makefile.serverlib revision 1.2 1 # $NetBSD: Makefile.serverlib,v 1.2 2008/08/15 10:31:12 rtr Exp $
2
3 NOLINT= 1
4 NOPROFILE= 1
5
6 # XXX for now?
7 MKX11LOADABLE=no
8
9 .include <bsd.own.mk> # for NETBSDSRCDIR
10 .include <bsd.endian.mk>
11
12 .if ${TARGET_ENDIANNESS} == "1234"
13 X_BYTE_ORDER=X_LITTLE_ENDIAN
14 .elif ${TARGET_ENDIANNESS} == "4321"
15 X_BYTE_ORDER=X_BIG_ENDIAN
16 .else
17 X_BYTE_ORDER=0
18 .endif
19
20 CPPFLAGS+= ${X11FLAGS.SERVER}
21 #CPPFLAGS+= ${X11FLAGS.SERVER} -DX_BYTE_ORDER=${X_BYTE_ORDER} \
22 # -DXORG_VERSION_CURRENT=${XORG_VERSION_CURRENT}
23
24 .if !defined(XSERVERINCDIR)
25 XSERVERINCDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/include && ${PRINTOBJDIR}
26 .MAKEOVERRIDES+=XSERVERINCDIR
27 .endif
28
29 # Architectures that can't use the XFree86 loader (such as MIPS) can use
30 # dlopen() to load modules.
31 .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
32 SHLIB_MAJOR= 0
33 SHLIB_MINOR= 0
34 MKPICLIB= yes
35 MKSTATICLIB= no
36 .endif
37