Makefile.serverlib revision 1.3 1 # $NetBSD: Makefile.serverlib,v 1.3 2008/08/15 15:55:05 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 # Architectures that can't use the XFree86 loader (such as MIPS) can use
25 # dlopen() to load modules.
26 .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
27 SHLIB_MAJOR= 0
28 SHLIB_MINOR= 0
29 MKPICLIB= yes
30 MKSTATICLIB= no
31 .endif
32