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