pkgsrc/mk/xaw.buildlink2.mk
jschauma 7e75c9318a Initiate support for X11 apps under IRIX.
We introduce two new variables: ABI and IMAKEOPTS
ABI determines the correct ABI to use and is set during bootstrapping
from /etc/compiler.defaults.
IMAKEOPTS are the options passed to imake to allow it to set the right
definitions and find the right paths etc.  Use IMAKEOPTS with SunOS, too.

IRIX will always require xpkgwedge, since it's got a bogus X11BASE.

When linking against libXaw, make sure we get the right ABI.
2003-06-12 15:27:08 +00:00

27 lines
767 B
Makefile

# $NetBSD: xaw.buildlink2.mk,v 1.10 2003/06/12 15:27:09 jschauma Exp $
.if !defined(XAW_BUILDLINK2_MK)
XAW_BUILDLINK2_MK= # defined
# Pull in setting for XAW_TYPE.
XAW_TYPE?= standard
.include "../../mk/bsd.prefs.mk"
.if ${XAW_TYPE} == "xpm"
. include "../../x11/Xaw-Xpm/buildlink2.mk"
BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw-Xpm}
.elif ${XAW_TYPE} == "3d"
. include "../../x11/Xaw3d/buildlink2.mk"
BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw3d}
.elif ${XAW_TYPE} == "neXtaw"
. include "../../x11/neXtaw/buildlink2.mk"
BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.neXtaw}
.else
BUILDLINK_PREFIX.Xaw?= ${X11BASE}
LIBXAW?= -L${X11BASE}/lib${ABI} -Wl,${RPATH_FLAG}${X11BASE}/lib${ABI} -lXaw
.endif
MAKE_ENV+= LIBXAW="${LIBXAW}"
.endif # XAW_BUILDLINK2_MK