Makefile revision 1515
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews###############################################################################
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# SPARC graphics utilities modules (fbconfig & VTS) Makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
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:
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
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
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Software.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
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.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# Package name used in tarballs
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox UserMODULE_NAME=fbconfig
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# pkg(5) name we deliver the files in (override default)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_PKGNAME=system/graphics/fbconfig
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE_PKGNAME_SET=yes
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Package metadata
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE_LICENSE = Oracle
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_LICENSE_SET = yes
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
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 AusteinORACLE_COPYRIGHT_YEARS = 1999, 2015
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Package classification (override default)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE_PKGCLASS=Drivers/Display
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_PKGCLASS_SET=yes
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# No upstream sources, only local sources
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE_VERSION=src
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSOURCE_TARBALL_NAME=NONE
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserSOURCE_TARBALL_NAME_SET=yes
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinADDITIONAL_SOURCE_DIR=sun-src
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
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 UserCLONE_SRC = yes
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Man pages to apply Sun footer to & attributes to list
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSUNTOUCHED_MANPAGES= # None
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE_STABILITY=Committed
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# No configure script to run, but need to clone sources into build dirs
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_TARGETS = $(BUILD_DIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_TARGETS_SET=yes
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
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)"
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Allow linker to skip linking to libm if compiler inlined all math functions
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE_LD_OPTIONS = $(ZDISCARD_UNUSED_DEP)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude ../Makefile.inc
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Install metadata for fb-specific packages too
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFB_MODULES = ast efb mga
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinEXTRA_METADATA_DIRS = $(FB_MODULES:%=$(MODULE_PKG_METADATA_DIR)-fbconfig-%)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
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) \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(EXTRA_LICENSE_FILES)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinstall_metadata: $(EXTRA_METADATA_TARGETS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(EXTRA_ATTRDATA_FILES) $(EXTRA_LICENSE_FILES): $(EXTRA_METADATA_DIRS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(EXTRA_METADATA_DIRS):
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein mkdir -p $@
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
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)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(AST_LICENSE_FILE):= DEVICE_NAME = ast
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(EFB_LICENSE_FILE):= DEVICE_NAME = efb
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(MGA_LICENSE_FILE):= DEVICE_NAME = mga
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
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
61e1dc26d62c2a0059e3ca7efe2ad0f4a5b8df92Mark Andrews
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
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User$(MGA_LICENSE_FILE):= ORACLE_COPYRIGHT_YEARS = 2006, 2012
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein