2004-07-14 13:44:26 +04:00
|
|
|
# $NetBSD: Makefile.serverlib,v 1.7 2004/07/14 09:44:26 agc Exp $
|
2003-09-24 03:21:02 +04:00
|
|
|
|
|
|
|
NOLINT= 1
|
|
|
|
NOPROFILE= 1
|
|
|
|
|
2004-07-13 13:29:45 +04:00
|
|
|
.if ${MACHINE_ARCH} != "mipseb" && ${MACHINE_ARCH} != "mipsel"
|
|
|
|
NOPIC= 1
|
|
|
|
.endif
|
|
|
|
|
2004-02-07 09:52:04 +03:00
|
|
|
.include <bsd.own.mk> # for NETBSDSRCDIR
|
2003-12-26 11:23:30 +03:00
|
|
|
.include <bsd.endian.mk>
|
|
|
|
|
2003-09-24 03:21:02 +04:00
|
|
|
.if ${XMODULEDIR:U} == ""
|
|
|
|
libinstall::
|
|
|
|
.endif
|
|
|
|
|
2003-12-26 11:23:30 +03:00
|
|
|
.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}
|
2003-12-21 06:07:01 +03:00
|
|
|
|
2004-02-07 09:52:04 +03:00
|
|
|
.if !defined(XSERVERINCDIR)
|
|
|
|
XSERVERINCDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/include && ${PRINTOBJDIR}
|
|
|
|
.MAKEOVERRIDES+=XSERVERINCDIR
|
|
|
|
.endif
|
|
|
|
|
2004-07-13 13:29:45 +04:00
|
|
|
# Architectures that can't use the XFree86 loader (such as MIPS) can use
|
|
|
|
# dlopen() to load modules.
|
|
|
|
|
2003-12-21 06:07:01 +03:00
|
|
|
.if defined(XMODULEDIR)
|
|
|
|
CPPFLAGS+= ${X11FLAGS.LOADABLE}
|
2004-07-13 13:29:45 +04:00
|
|
|
.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
|
|
|
|
SHLIB_MAJOR= 0
|
|
|
|
SHLIB_MINOR= 0
|
|
|
|
MKPICLIB= yes
|
|
|
|
MKSTATICLIB= no
|
|
|
|
.endif
|
|
|
|
.else
|
2003-12-21 06:07:01 +03:00
|
|
|
.endif
|