Makefile.inc revision 919
321N/A# -*- Makefile -*- rules common to most X.Org font modules
321N/A#
321N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
321N/A# Use is subject to license terms.
321N/A#
321N/A# Permission is hereby granted, free of charge, to any person obtaining a
321N/A# copy of this software and associated documentation files (the "Software"),
321N/A# to deal in the Software without restriction, including without limitation
321N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
321N/A# and/or sell copies of the Software, and to permit persons to whom the
321N/A# Software is furnished to do so, subject to the following conditions:
321N/A#
321N/A# The above copyright notice and this permission notice (including the next
321N/A# paragraph) shall be included in all copies or substantial portions of the
321N/A# Software.
321N/A#
321N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
321N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
321N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
321N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
321N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
321N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
321N/A# DEALINGS IN THE SOFTWARE.
321N/A#
321N/A#
321N/A
321N/A### Makefile settings/rules common to all X.Org font modules
321N/A
321N/APWD:sh=pwd
321N/ATOP=$(PWD)/../..
321N/A
321N/AMODTYPE=font
493N/A
321N/A### Include common definitions
321N/Ainclude $(TOP)/common/Makefile.init
321N/A
493N/A# Most font modules have no man pages
321N/AMODTYPE_SUNTOUCH_MAN_FLAGS=
321N/A
493N/A# No common dependencies
321N/AMODTYPE_CONFIGURE_DEPS=
321N/A
321N/A# Set default installation path for fonts
321N/AMODTYPE_CONFIG_OPTS = --with-fontrootdir="$(X11_FONT_DIR)"
321N/A
321N/A# Disable compression of pcf fonts
493N/AMODTYPE_CONFIG_OPTS += --without-compression
493N/A
321N/A# Most font modules have nothing to build, for those that do, use lib flags
321N/AMODTYPE_CFLAGS=$(LIB_CFLAGS)
MODTYPE_LDFLAGS=$(LIB_LDFLAGS)
MODTYPE_LD_OPTIONS=
# Paths to find mkfontscale, fc-cache & the libraries they need in build area
FONT_UTILS_PATH=$(PROTODIR)$(X11_DIR)/bin:$(PROTODIR)/usr/bin
FONT_LIBS_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR):$(PROTODIR)$(X11_DIR)/lib:$(PROTODIR)/usr/lib
# Additional environment variable options to GNU autoconf configure script
MODTYPE_CONFIG_ENV = PATH="$(FONT_UTILS_PATH):$$PATH" \
LD_LIBRARY_PATH="$(FONT_LIBS_PATH)"
# Environment variable options needed when building
MODTYPE_BUILD_ENV = PATH="$(FONT_UTILS_PATH):$$PATH" \
LD_LIBRARY_PATH="$(FONT_LIBS_PATH)"
### Include common rulesets
include $(TOP)/common/Makefile.inc