Makefile revision 1450
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Permission is hereby granted, free of charge, to any person obtaining a
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# copy of this software and associated documentation files (the "Software"),
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# to deal in the Software without restriction, including without limitation
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# the rights to use, copy, modify, merge, publish, distribute, sublicense,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and/or sell copies of the Software, and to permit persons to whom the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Software is furnished to do so, subject to the following conditions:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The above copyright notice and this permission notice (including the next
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# paragraph) shall be included in all copies or substantial portions of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Software.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# DEALINGS IN THE SOFTWARE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes###############################################################################
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# This Makefile drives the production of the DRM (Direct Rendering
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Manager) common misc module.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes###############################################################################
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesTOP:sh = hg root
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# X-consolidation defines:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# include $(TOP)/open-src/kernel/Makefile.init
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Module core info
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE = drm
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# MODULE_NAME - the package this module is installed in
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_NAME = $(MODULE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# This is the package this module should be installed into
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_PKGTAIL = drm
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_PKGTAIL_SET = yes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Where are the local sources relative to the build dir
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesREL_SOURCE_DIR = ../src
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Where do we install the driver.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_PREFIX = kernel/misc/$(MACH64_i386)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_PREFIX_SET = yes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# No upstream sources for these files, since they're Solaris-specific
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSOURCE_TARBALL_NAME = NONE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSOURCE_TARBALL_NAME_SET = yes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSOURCE_TARGETS =
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSOURCE_TARGETS_SET = yes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# No configure script, so pass usual environment to build/install instead
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_TARGETS = $(BUILD_DIR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_TARGETS_SET = yes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_MAKEFLAGS = VPATH=$(REL_SOURCE_DIR) -f $(REL_SOURCE_DIR)/Makefile
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_BUILD_ENV = $(CONFIG_ENV) PREFIX=$(MODULE_PREFIX)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_LDFLAGS = -r -dy -Nmisc/agpmaster -Nmisc/gfx_private
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# License info
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_LICENSE = Intel license
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_LICENSE_SET = yes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_DESC = the Direct Rendering Manager
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE_VERSION = 1.6
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesORACLE_TPNO = 5772
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLICENSE_FILE = license_drm
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLICENSE_FILE_SET = yes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Include kernel rules.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(TOP)/open-src/kernel/Makefile.inc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(TOP)/open-src/kernel/Makefile.rules
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes