1 # $NetBSD: version.mk,v 1.4 2011/01/08 21:46:56 dholland Exp $
3 # This Makefile fragment is included by Makefiles that need to access
4 # the X11_TYPE and version number of a native X11 distribution.
6 # The following variables are provided by this file:
8 # BUILTIN_X11_TYPE.native is the X11_TYPE of the native X11
9 # distribution detected on the system.
11 # BUILTIN_X11_VERSION.native is the version number, where applicable,
12 # of the native X11 distribution detected on the system.
15 .if !defined(BUILTIN_X11_VERSION.native)
16 . include "xorg-version.mk"
17 . include "xfree-version.mk"
19 . if defined(BUILTIN_X11_VERSION.xorg)
20 BUILTIN_X11_TYPE.native= ${BUILTIN_X11_TYPE.xorg}
21 BUILTIN_X11_VERSION.native= ${BUILTIN_X11_VERSION.xorg}
22 . elif defined(BUILTIN_X11_VERSION.XFree86)
23 BUILTIN_X11_TYPE.native= ${BUILTIN_X11_TYPE.XFree86}
24 BUILTIN_X11_VERSION.native= ${BUILTIN_X11_VERSION.XFree86}
25 . elif !empty(X11BASE:M*openwin)
26 BUILTIN_X11_TYPE.native= openwin
27 . elif ${OPSYS} == "IRIX"
28 BUILTIN_X11_TYPE.native= xsgi
29 . elif ${OPSYS} == "OSF1"
30 BUILTIN_X11_TYPE.native= xdec
32 BUILTIN_X11_TYPE.native= unknown
35 MAKEVARS+= BUILTIN_X11_VERSION.native BUILTIN_X11_TYPE.native