Makefile.inc revision 606
8N/A# -*- Makefile -*- rules common to both Xorg & Xvnc builds
8N/A#
606N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
8N/A# Use subject to license terms.
8N/A#
8N/A# Permission is hereby granted, free of charge, to any person obtaining a
8N/A# copy of this software and associated documentation files (the
8N/A# "Software"), to deal in the Software without restriction, including
8N/A# without limitation the rights to use, copy, modify, merge, publish,
8N/A# distribute, and/or sell copies of the Software, and to permit persons
8N/A# to whom the Software is furnished to do so, provided that the above
8N/A# copyright notice(s) and this permission notice appear in all copies of
8N/A# the Software and that both the above copyright notice(s) and this
8N/A# permission notice appear in supporting documentation.
8N/A#
8N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
8N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
8N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
8N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
8N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
8N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8N/A#
8N/A# Except as contained in this notice, the name of a copyright holder
8N/A# shall not be used in advertising or otherwise to promote the sale, use
8N/A# or other dealings in this Software without prior written authorization
8N/A# of the copyright holder.
8N/A#
705N/A# @(#)Makefile.inc 1.10 09/01/14
8N/A#
8N/A
8N/APWD:sh=pwd
606N/ATOP=$(PWD)/../..
606N/A
606N/AMODTYPE=xserver
606N/A
606N/A### Include common definitions
705N/Ainclude $(TOP)/common/Makefile.init
606N/A
606N/A# Xorg server source tarball to use sources from
606N/AXORGSERVER_VERS=1.5.3
606N/A
606N/A# Patches shared between Xorg & Xvnc builds
606N/AXORG_SOURCE_PATCHES:sh=cat -s ../xorg/patch-list ../xorg/closed-src/patch-list | sed '/^\#/ d'
606N/A
606N/AXSERVER_FONTDIR=$(X11_DIR)/lib/X11/fonts
606N/AMESA_SRC_DIR=$(TOP)/lib/mesa/$(BUILD_DIR)/Mesa-7.2
606N/A
606N/ASERVER_MODULES_DIR='$(X11_SERVERMODS_DIR)$(SERVERMOD_subdir)'
606N/ADRI_MODULES_DIR='$(X11_SERVERMODS_DIR)/dri$(SERVERMOD_subdir)'
606N/A
606N/A# Command line options to GNU autoconf configure script for xorg-server
606N/AXSERVER_CONFIG_OPTS_COMMON = \
606N/A --bindir='$${exec_prefix}/bin/$(ARCHBINSUBDIR)' \
606N/A --disable-xdm-auth-1 --enable-xcsecurity \
606N/A --enable-shared --disable-static \
606N/A --disable-xsdl --disable-xwin --disable-xgl \
606N/A --disable-kbd_mode \
606N/A --disable-install-setuid \
606N/A --with-vendor-name="Sun Microsystems, Inc." \
606N/A --with-vendor-web="http://sunsolve.sun.com/" \
606N/A --with-os-name="`uname -srmv`" \
606N/A --with-log-dir=/var/log --with-xkb-output=/var/run/xkb \
606N/A --with-module-dir=$(SERVER_MODULES_DIR) \
98N/A --with-dri-driver-path=$(DRI_MODULES_DIR) \
156N/A --with-xkb-path='$${libdir}/X11/xkb' \
98N/A --with-rgb-path='$${libdir}/X11/rgb' \
606N/A --with-serverconfig-path='$${libdir}/X11/xserver' \
98N/A --with-default-font-path="catalogue:/etc/X11/fontpath.d" \
8N/A --with-default-xkb-rules=xorg \
8N/A --with-default-xkb-model=pc105 \
493N/A $(ADDITIONAL_CONFIG_OPTS)
8N/A
493N/AXSERVER_CONFIG_OPTS_sparc=$(XSERVER_CONFIG_OPTS_COMMON) \
493N/A --disable-glx
380N/AXSERVER_CONFIG_OPTS_i386=$(XSERVER_CONFIG_OPTS_COMMON) \
493N/A --with-mesa-source=$(MESA_SRC_DIR)
493N/AXSERVER_CONFIG_OPTS=$(XSERVER_CONFIG_OPTS_$(MACH))
493N/A
# Need to append header path with gcc headers for MMX/SSE intrinsics
GCC_HEADERS:sh=gcc -print-search-dirs | awk -F: '$1 == "install" {printf "-idirafter %s/install-tools/include", $2}'
# Default DPMS settings for Solaris
DPMS_DEFINES= -DDEFAULT_STANDBY_TIME=1440000 \
-DDEFAULT_SUSPEND_TIME=1620000 \
-DDEFAULT_OFF_TIME=1800000
MODTYPE_CPPFLAGS_suncc= # No extra flags needed
MODTYPE_CPPFLAGS_gcc= $(GCC_HEADERS)
MODTYPE_CPPFLAGS= \
-I$(PROTODIR)/usr/include \
-I$(PROTODIR)/usr/include/pixman-1 \
-I$(PROTODIR)$(X11_INCLUDES_DIR) \
-I$(PROTODIR)$(X11_INCLUDES_DIR)/drm \
-I$(PROTODIR)$(X11_INCLUDES_DIR)/X11/dri \
-I$(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions \
$(DPMS_DEFINES) -DSUNSOFT -DTSOL \
$(MODTYPE_CPPFLAGS_$(MODULE_COMPILER))
XSERVER_LDFLAGS_suncc= # No extra flags needed
XSERVER_LDFLAGS_gcc= -L/usr/sfw/lib$(ARCHLIBSUBDIR) \
-R/usr/sfw/lib$(ARCHLIBSUBDIR)
# Environment variable options to GNU autoconf configure script
# - XSERVERCFLAGS_CFLAGS - force CFLAGS to avoid -I /usr/X11/include breaking
# use of headers from proto area
MODTYPE_CONFIG_ENV = \
XSERVERCFLAGS_CFLAGS="-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -DXUSE_MTSAFE_API" \
PATH=$(PATH):/usr/sbin
# 64-bit X servers on SPARC crash on startup when built with Sun Studio
# with -g unless -xmemalign=8i is also used (Sun bug #6545113)
MODTYPE_DEBUG_FLAGS_sparc_suncc = -xmemalign=8i
MODTYPE_DEBUG_FLAGS=$(MODTYPE_DEBUG_FLAGS_$(MACH)_$(MODULE_COMPILER)) -DDEBUG
MODTYPE_CFLAGS=$(PROG_CFLAGS)
MODTYPE_CXXFLAGS=$(PROG_CXXFLAGS)
MODTYPE_LDFLAGS=$(PROG_LDFLAGS) $(XSERVER_LDFLAGS_$(MODULE_COMPILER)) \
-L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
-R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
-L$(PROTODIR)$(X11_DIR)/lib$(ARCHLIBSUBDIR) \
-R$(X11_DIR)/lib$(ARCHLIBSUBDIR)
MODTYPE_BUILD_32_FLAGS=ARCHBINSUBDIR="$(SUBDIR32)"
MODTYPE_BUILD_64_FLAGS_sparc=ARCHBINSUBDIR=""
MODTYPE_BUILD_64_FLAGS_i386=ARCHBINSUBDIR="$(SUBDIR64)"
MODTYPE_BUILD_64_FLAGS=$(MODTYPE_BUILD_64_FLAGS_$(MACH))
# Environment variable options to use when building
MODTYPE_BUILD_ENV= PATH=$(PATH):/usr/sbin \
LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR):$(PROTODIR)$(X11_DIR)/lib$(ARCHLIBSUBDIR):$(PROTODIR)$(X11_DIR)/lib/xorgcfg$(ARCHLIBSUBDIR)
### Include common rulesets
include $(TOP)/common/Makefile.inc