summaryrefslogtreecommitdiff
path: root/mk/xaw.buildlink.mk
blob: c7ebaa1a375a23f5f7506eee8531deca732828f9 (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
# $NetBSD: xaw.buildlink.mk,v 1.3 2002/08/22 08:21:27 jlam Exp $
#
# This Makefile fragment is included by packages that use Xaw.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally set XAW_TYPE to the Xaw library desired, and
# (2) Include this Makefile fragment in the package Makefile.

.if !defined(XAW_BUILDLINK_MK)
XAW_BUILDLINK_MK=	# defined

# Pull in setting for XAW_TYPE.
XAW_TYPE?=	standard
.include "../../mk/bsd.prefs.mk"

.if ${XAW_TYPE} == "xpm"
.include "../../x11/Xaw-Xpm/buildlink.mk"
.elif ${XAW_TYPE} == "3d"
.include "../../x11/Xaw3d/buildlink.mk"
.elif ${XAW_TYPE} == "neXtaw"
.include "../../x11/neXtaw/buildlink.mk"
.else
LIBXAW?=	-L${BUILDLINK_X11_DIR}/lib -lXaw
MAKE_ENV+=	LIBXAW="${LIBXAW}"
.endif

.endif	# XAW_BUILDLINK_MK