Makefile revision 1425
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews###############################################################################
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
04428429c4e689333e3ef8d19a2debeb20d4d15dMark Andrews# SPARC graphics utilities modules (fbconfig & VTS) Makefile
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews#
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews#
555d01f4c02295e896a26c649d0ffc8808a0bbdcAutomatic Updater# Permission is hereby granted, free of charge, to any person obtaining a
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# copy of this software and associated documentation files (the "Software"),
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# to deal in the Software without restriction, including without limitation
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# the rights to use, copy, modify, merge, publish, distribute, sublicense,
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and/or sell copies of the Software, and to permit persons to whom the
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Software is furnished to do so, subject to the following conditions:
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews# The above copyright notice and this permission notice (including the next
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# paragraph) shall be included in all copies or substantial portions of the
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# Software.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# DEALINGS IN THE SOFTWARE.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Package name used in tarballs
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_NAME=fbconfig
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# pkg(5) name we deliver the files in (override default)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_PKGNAME=system/graphics/fbconfig
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMODULE_PKGNAME_SET=yes
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Package metadata
bac1bc98410bd876b8d38a6de6126709a7f8cc5aAutomatic UpdaterMODULE_LICENSE = Oracle
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsMODULE_LICENSE_SET = yes
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f8448666aa53603696bea83de971a05007735d8fMark Andrews# Dates to show in Oracle copyright notice in fbconfig pkg license file
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Earliest & latest of the copyrights in the Oracle files in the base pkg
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterORACLE_COPYRIGHT_YEARS = 1999, 2011
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Package classification (override default)
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterMODULE_PKGCLASS=Drivers/Display
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_PKGCLASS_SET=yes
3a6600c8d319275d73c36eb625f77103cd83e824Automatic Updater
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# No upstream sources, only local sources
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_VERSION=src
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsSOURCE_TARBALL_NAME=NONE
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonSOURCE_TARBALL_NAME_SET=yes
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsADDITIONAL_SOURCE_DIR=sun-src
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Haven't made sure it's 64-bit clean yet, so continue building 32-bit for now
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsBUILD_TYPES_SET=yes
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonBUILD_TYPES=32
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Man pages to apply Sun footer to & attributes to list
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonSUNTOUCHED_MANPAGES= # None
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_STABILITY=Committed
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark Andrews# No configure script to run
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_TARGETS=
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark AndrewsCONFIGURE_TARGETS_SET=yes
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Since we don't have a configure script, pass configure flags to make
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_CONFIG_ENV = LIB_LDFLAGS="$(LIB_LDFLAGS)"
62ee2c9f460d2e2e45dcf1abc8b4b4a4a43f5618Mark AndrewsMODULE_BUILD_MAKEFLAGS = $(CONFIG_ENV)
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsMODULE_INSTALL_MAKEFLAGS= $(CONFIG_ENV)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# Allow linker to skip linking to libm if compiler inlined all math functions
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsMODULE_LD_OPTIONS = $(ZDISCARD_UNUSED_DEP)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsinclude ../Makefile.inc
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Install metadata for fb-specific packages too
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsFB_MODULES = ast efb mga
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonEXTRA_METADATA_DIRS = $(FB_MODULES:%=$(MODULE_PKG_METADATA_DIR)-fbconfig-%)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonEXTRA_ATTRDATA_FILES = $(EXTRA_METADATA_DIRS:%=%/$(ATTRDATA_FILE_NAME))
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsEXTRA_LICENSE_FILES = $(EXTRA_METADATA_DIRS:%=%/$(LICENSE_FILE_NAME))
96ea71632887c58a9d00f47eb318bf76b35903c3Mark AndrewsEXTRA_METADATA_TARGETS = $(EXTRA_METADATA_DIRS) \
dde4bc92964ec60a35212dfed59562580e3265e3Mark Andrews $(EXTRA_ATTRDATA_FILES) \
80f9a970ae6681c08529ef209eaabbe078c27ca3Mark Andrews $(EXTRA_LICENSE_FILES)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
dde4bc92964ec60a35212dfed59562580e3265e3Mark Andrewsinstall_metadata: $(EXTRA_METADATA_TARGETS)
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater$(EXTRA_ATTRDATA_FILES) $(EXTRA_LICENSE_FILES): $(EXTRA_METADATA_DIRS)
dde4bc92964ec60a35212dfed59562580e3265e3Mark Andrews
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark Andrews$(EXTRA_METADATA_DIRS):
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews mkdir -p $@
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews# Modules for specific frame buffers are covered only by Oracle copyright
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsAST_LICENSE_FILE = $(MODULE_PKG_METADATA_DIR)-fbconfig-ast/$(LICENSE_FILE_NAME)
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsEFB_LICENSE_FILE = $(MODULE_PKG_METADATA_DIR)-fbconfig-efb/$(LICENSE_FILE_NAME)
413988c8166976498250c0ebb2e3a645d0366bd3Mark AndrewsMGA_LICENSE_FILE = $(MODULE_PKG_METADATA_DIR)-fbconfig-mga/$(LICENSE_FILE_NAME)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews$(AST_LICENSE_FILE):= DEVICE_NAME = ast
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews$(EFB_LICENSE_FILE):= DEVICE_NAME = efb
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews$(MGA_LICENSE_FILE):= DEVICE_NAME = mga
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews# Module info to show in per-device pkg license files
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews$(EXTRA_LICENSE_FILES):= MODULE_TPNO_NAME = fbconfig-$(DEVICE_NAME)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews$(EXTRA_LICENSE_FILES):= MODULE_TPNO_NAME_SET = YES
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews$(EXTRA_LICENSE_FILES):= MODULE_DESC = fbconfig & VTS modules for graphics devices using the $(DEVICE_NAME) driver
642e0716c8b4ab82ebc8e60f94c9e897ee89f19aMark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# Dates to show in Oracle copyright notice in per-device pkg license files
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews$(AST_LICENSE_FILE):= ORACLE_COPYRIGHT_YEARS = 2009, 2011
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews$(EFB_LICENSE_FILE):= ORACLE_COPYRIGHT_YEARS = 2006, 2009
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews$(MGA_LICENSE_FILE):= ORACLE_COPYRIGHT_YEARS = 2006, 2012
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark Andrews