Makefile revision 980
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen###############################################################################
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
8aacc9e7c84f8376822823ec98c2f551d4919b2eTimo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Permission is hereby granted, free of charge, to any person obtaining a
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# copy of this software and associated documentation files (the "Software"),
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# to deal in the Software without restriction, including without limitation
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# the rights to use, copy, modify, merge, publish, distribute, sublicense,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# and/or sell copies of the Software, and to permit persons to whom the
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Software is furnished to do so, subject to the following conditions:
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# The above copyright notice and this permission notice (including the next
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen# paragraph) shall be included in all copies or substantial portions of the
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen# Software.
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen#
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen# DEALINGS IN THE SOFTWARE.
1b3bb8d39686ed24730cbc31cc9a33dc62c8c6c3Timo Sirainen#
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen#
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen#
8aacc9e7c84f8376822823ec98c2f551d4919b2eTimo Sirainen# Files for integration with Solaris Service Management Framework (SMF) and
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen# Role Based Access Control (RBAC)
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenMODULE_NAME=ogl-select
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen# pkg(5) name we deliver the files in (override default)
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenMODULE_PKGNAME=service/opengl/ogl-select
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenMODULE_PKGNAME_SET=yes
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen# ARC cases that covered this module
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen# LSARC 2005/700 OpenGL boot time selection of libraries and headers
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenMODULE_ARC_CASES = LSARC/2005/700
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen# No upstream sources for these files, since they're Solaris-specific
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenMODULE_VERSION=NONE
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenSOURCE_TARBALL_NAME=NONE
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenSOURCE_TARBALL_NAME_SET=yes
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenSOURCE_TARGETS=
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenSOURCE_TARGETS_SET=yes
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenCONFIGURE_TARGETS=
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenCONFIGURE_TARGETS_SET=yes
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenBUILD_TARGETS = check
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenBUILD_TARGETS_SET=yes
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenINSTALL_TARGETS = install_ogl-select
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenINSTALL_TARGETS_SET=yes
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen### Include common rulesets
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Siraineninclude ../Makefile.inc
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenOGL_SMF_MANIFEST_DIR=$(SMF_MANIFEST_DIR)/application/opengl
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenDESTDIR=$(PROTODIR)
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainencheck: ogl-select.xml
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen /usr/sbin/svccfg validate ogl-select.xml
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenOGL_VENDOR_SCRIPTS_sparc=sun_vendor_select
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenOGL_VENDOR_SCRIPTS_i386=nvidia_vendor_select
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenOGL_VENDOR_SCRIPTS=mesa_vendor_select $(OGL_VENDOR_SCRIPTS_$(MACH))
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Siraineninstall_ogl-select:
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen mkdir -p $(DESTDIR)$(OGL_SMF_MANIFEST_DIR) \
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(DESTDIR)$(SMF_METHOD_DIR) \
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(DESTDIR)$(X11_DIR)/share/man/man1 \
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(DESTDIR)/lib/opengl/ogl_select/
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(INSTALL_SCRIPT) -c -m 0444 ogl-select.xml \
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(DESTDIR)$(OGL_SMF_MANIFEST_DIR)
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(INSTALL_SCRIPT) -c -m 0555 ogl-select \
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(DESTDIR)$(SMF_METHOD_DIR)/ogl-select
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(INSTALL_SCRIPT) -c -m 0444 ogl-select.man \
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(DESTDIR)$(X11_DIR)/share/man/man1/ogl-select.1
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(INSTALL_SCRIPT) -c -m 0555 $(OGL_VENDOR_SCRIPTS) \
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(DESTDIR)/lib/opengl/ogl_select/
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen