Makefile revision 1196
2035N/A###############################################################################
2035N/A#
2035N/A# DPS Makefile
2035N/A#
2035N/A# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
2035N/A#
2035N/A# Permission is hereby granted, free of charge, to any person obtaining a
2035N/A# copy of this software and associated documentation files (the "Software"),
2035N/A# to deal in the Software without restriction, including without limitation
2035N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
2035N/A# and/or sell copies of the Software, and to permit persons to whom the
2035N/A# Software is furnished to do so, subject to the following conditions:
2035N/A#
2035N/A# The above copyright notice and this permission notice (including the next
2035N/A# paragraph) shall be included in all copies or substantial portions of the
2035N/A# Software.
2035N/A#
2035N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2035N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2035N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
3699N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2035N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2035N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2035N/A# DEALINGS IN THE SOFTWARE.
2035N/A#
3998N/A#
2035N/A
2035N/ABUILD_TYPES_SET=yes
2035N/ABUILD_TYPES=32
3998N/A
2035N/AMODULE_NAME=DPS
2035N/A
3699N/A# Sources were extracted from X11R6.9 source tree, but we don't want
2035N/A# to download & unpack all that, and upstream isn't maintaining, so
3998N/A# we just have a local copy here.
2899N/AMODULE_VERSION=X11R6.9
2818N/ASOURCE_TARBALL_NAME=NONE
4982N/ASOURCE_TARBALL_NAME_SET=yes
2818N/AADDITIONAL_SOURCE_DIR=sun-src
3817N/A
3817N/A# Library name (used for specfiles/mapfiles)
3817N/ALIBNAME=dps
2035N/A
2035N/A# Man pages to apply Sun footer to & attributes to list
2035N/ASUNTOUCHED_MANPAGES= # None
2035N/AMODULE_STABILITY=Obsolete
2035N/A
2035N/A# No configure script to run
2035N/ACONFIGURE_TARGETS=
2035N/ACONFIGURE_TARGETS_SET=yes
2035N/A
2035N/A# Since we don't have a configure script, pass configure flags to make
2035N/AMODULE_MAKEFLAGS=$(CONFIG_ENV) PREFIX=$(MODULE_PREFIX) \
2035N/A datadir=$(MODULE_PREFIX)/share bindir=$(X11_DIR)/bin \
2035N/A libdir=$(MODULE_PREFIX)/lib$(MODULE_ADD_LIB_SUBDIR)$(ARCHLIBSUBDIR) \
2035N/A PROG_LDFLAGS="$(PROG_LDFLAGS)"
2035N/A
2035N/A# Allow linker to skip linking to libm if compiler inlined all math functions
2035N/AMODULE_LDFLAGS = -z ignore
2035N/A
2035N/A# Compatibility links from /usr/X11/bin to /usr/bin
2035N/AMODULE_X11_BINCOMPAT_LINKS = makepsres pswrap
4337N/A
4337N/Ainclude ../Makefile.inc
3817N/A
3817N/A# Install metadata for dps-motif package too
3998N/AMOTIF_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%x11-library-dps=%library-motif-libdpstkxm)
3817N/AMOTIF_PKG_ATTRDATA_FILE = $(MOTIF_PKG_METADATA_DIR)/$(ATTRDATA_FILE_NAME)
MOTIF_PKG_LICENSE_FILE = $(MOTIF_PKG_METADATA_DIR)/$(LICENSE_FILE_NAME)
EXTRA_METADATA_TARGETS = \
$(MOTIF_PKG_METADATA_DIR) \
$(MOTIF_PKG_ATTRDATA_FILE) \
$(MOTIF_PKG_LICENSE_FILE)
install_metadata: $(EXTRA_METADATA_TARGETS)
$(MOTIF_PKG_METADATA_DIR):
mkdir -p $@
$(MOTIF_PKG_ATTRDATA_FILE) $(MOTIF_PKG_LICENSE_FILE): $(MOTIF_PKG_METADATA_DIR)