Makefile revision 1476
5f5870385cff47efd2f58e7892f251cf13761528Timo Sirainen###############################################################################
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenberger# SPARC graphics utilities modules (fbconfig & VTS) Makefile
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenberger# Permission is hereby granted, free of charge, to any person obtaining a
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# copy of this software and associated documentation files (the "Software"),
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# to deal in the Software without restriction, including without limitation
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# the rights to use, copy, modify, merge, publish, distribute, sublicense,
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# and/or sell copies of the Software, and to permit persons to whom the
0df9428baed48afaff90b4d4f03792d2fd756a43Timo Sirainen# Software is furnished to do so, subject to the following conditions:
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# The above copyright notice and this permission notice (including the next
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# paragraph) shall be included in all copies or substantial portions of the
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# DEALINGS IN THE SOFTWARE.
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# Package name used in tarballs
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# pkg(5) name we deliver the files in (override default)
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# Package metadata
04870054863757edf048c81dcce3c5e7dec453cdTimo Sirainen# Dates to show in Oracle copyright notice in fbconfig pkg license file
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# Earliest & latest of the copyrights in the Oracle files in the base pkg
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# Package classification (override default)
4462bd7b4c7ef3de006f060e155a90e5de7cae21Timo Sirainen# No upstream sources, only local sources
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# Since the Makefiles in these subdirs haven't been updated to support VPATH
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# builds, just clone the whole source tree to the build tree for now.
eacce2276278ce6a8176a9a100807dba50bbfb36Timo Sirainen# Man pages to apply Sun footer to & attributes to list
0df9428baed48afaff90b4d4f03792d2fd756a43Timo Sirainen# No configure script to run, but need to clone sources into build dirs
c0a87e5f3316a57e6f915882fa1951d0fbb74a61Timo Sirainen# Since we don't have a configure script, pass configure flags to make
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenMODULE_BUILD_ENV = $(CONFIG_ENV) PREFIX=$(MODULE_PREFIX)
02a54da28f376dd66d7939d8546a196a0045b486Timo SirainenMODULE_CONFIG_ENV = LIB_LDFLAGS="$(LIB_LDFLAGS) $(ARCH_FLAGS)"
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# Allow linker to skip linking to libm if compiler inlined all math functions
eacce2276278ce6a8176a9a100807dba50bbfb36Timo Sirainen# Install metadata for fb-specific packages too
eacce2276278ce6a8176a9a100807dba50bbfb36Timo SirainenEXTRA_METADATA_DIRS = $(FB_MODULES:%=$(MODULE_PKG_METADATA_DIR)-fbconfig-%)
02a54da28f376dd66d7939d8546a196a0045b486Timo SirainenEXTRA_ATTRDATA_FILES = $(EXTRA_METADATA_DIRS:%=%/$(ATTRDATA_FILE_NAME))
eacce2276278ce6a8176a9a100807dba50bbfb36Timo SirainenEXTRA_LICENSE_FILES = $(EXTRA_METADATA_DIRS:%=%/$(LICENSE_FILE_NAME))
eacce2276278ce6a8176a9a100807dba50bbfb36Timo SirainenEXTRA_METADATA_TARGETS = $(EXTRA_METADATA_DIRS) \
e1203014de25c8c3d3975a9f4b4a04616df4bba2Timo Sirainen$(EXTRA_ATTRDATA_FILES) $(EXTRA_LICENSE_FILES): $(EXTRA_METADATA_DIRS)
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# Modules for specific frame buffers are covered only by Oracle copyright
02a54da28f376dd66d7939d8546a196a0045b486Timo SirainenAST_LICENSE_FILE = $(MODULE_PKG_METADATA_DIR)-fbconfig-ast/$(LICENSE_FILE_NAME)
02a54da28f376dd66d7939d8546a196a0045b486Timo SirainenEFB_LICENSE_FILE = $(MODULE_PKG_METADATA_DIR)-fbconfig-efb/$(LICENSE_FILE_NAME)
02a54da28f376dd66d7939d8546a196a0045b486Timo SirainenMGA_LICENSE_FILE = $(MODULE_PKG_METADATA_DIR)-fbconfig-mga/$(LICENSE_FILE_NAME)
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# Module info to show in per-device pkg license files
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen$(EXTRA_LICENSE_FILES):= MODULE_TPNO_NAME = fbconfig-$(DEVICE_NAME)
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen$(EXTRA_LICENSE_FILES):= MODULE_TPNO_NAME_SET = YES
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen$(EXTRA_LICENSE_FILES):= MODULE_DESC = fbconfig & VTS modules for graphics devices using the $(DEVICE_NAME) driver
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen# Dates to show in Oracle copyright notice in per-device pkg license files
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen$(AST_LICENSE_FILE):= ORACLE_COPYRIGHT_YEARS = 2009, 2011
02a54da28f376dd66d7939d8546a196a0045b486Timo Sirainen$(EFB_LICENSE_FILE):= ORACLE_COPYRIGHT_YEARS = 2006, 2009