Makefile.inc revision 879
235N/A# -*- Makefile -*- rules common to both Xorg & Xvnc builds
235N/A#
879N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
742N/A# Use is subject to license terms.
235N/A#
235N/A# Permission is hereby granted, free of charge, to any person obtaining a
235N/A# copy of this software and associated documentation files (the
235N/A# "Software"), to deal in the Software without restriction, including
235N/A# without limitation the rights to use, copy, modify, merge, publish,
235N/A# distribute, and/or sell copies of the Software, and to permit persons
235N/A# to whom the Software is furnished to do so, provided that the above
235N/A# copyright notice(s) and this permission notice appear in all copies of
235N/A# the Software and that both the above copyright notice(s) and this
235N/A# permission notice appear in supporting documentation.
235N/A#
235N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
235N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
235N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
235N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
235N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
235N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
235N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
235N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
235N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
235N/A#
235N/A# Except as contained in this notice, the name of a copyright holder
235N/A# shall not be used in advertising or otherwise to promote the sale, use
235N/A# or other dealings in this Software without prior written authorization
235N/A# of the copyright holder.
235N/A#
879N/A# ident "@(#)Makefile.inc 1.22 10/01/07 SMI"
235N/A#
235N/A
235N/APWD:sh=pwd
235N/ATOP=$(PWD)/../..
235N/A
493N/AMODTYPE=xserver
493N/A
493N/A### Include common definitions
493N/Ainclude $(TOP)/common/Makefile.init
493N/A
235N/A# Xorg server source tarball to use sources from
879N/AXORGSERVER_VERS=1.7.4
235N/A
493N/A# Patches shared between Xorg & Xvnc builds
493N/AXORG_SOURCE_PATCHES:sh=cat -s ../xorg/patch-list ../xorg/closed-src/patch-list | sed '/^\#/ d'
235N/A
606N/ASERVER_MODULES_DIR='$(X11_SERVERMODS_DIR)$(SERVERMOD_subdir)'
606N/ADRI_MODULES_DIR='$(X11_SERVERMODS_DIR)/dri$(SERVERMOD_subdir)'
235N/A
235N/A# Command line options to GNU autoconf configure script for xorg-server
235N/AXSERVER_CONFIG_OPTS_COMMON = \
235N/A --bindir='$${exec_prefix}/bin/$(ARCHBINSUBDIR)' \
851N/A --docdir='$(X11_DOC_DIR)' \
750N/A --enable-xdm-auth-1 --enable-xdmcp --enable-xcsecurity \
235N/A --enable-shared --disable-static \
851N/A --enable-glx --enable-dri2 \
705N/A --disable-xsdl --disable-xwin --disable-xnest \
235N/A --disable-install-setuid \
851N/A --with-vendor-name='Sun Microsystems, Inc., based on X.Org Foundation sources' \
851N/A --with-vendor-web='http://sunsolve.sun.com/' \
851N/A --with-builderstring='Solaris ABI: $(BUILD_TYPE)-bit' \
742N/A --with-os-name="`uname -srm`" \
235N/A --with-log-dir=/var/log --with-xkb-output=/var/run/xkb \
493N/A --with-module-dir=$(SERVER_MODULES_DIR) \
235N/A --with-dri-driver-path=$(DRI_MODULES_DIR) \
851N/A --with-default-font-path='catalogue:/etc/X11/fontpath.d' \
851N/A --with-xkb-bin-directory='$${exec_prefix}/bin' \
606N/A --with-default-xkb-model=pc105 \
606N/A $(ADDITIONAL_CONFIG_OPTS)
235N/A
851N/AXSERVER_CONFIG_OPTS_sparc=$(XSERVER_CONFIG_OPTS_COMMON)
851N/AXSERVER_CONFIG_OPTS_i386=$(XSERVER_CONFIG_OPTS_COMMON)
235N/AXSERVER_CONFIG_OPTS=$(XSERVER_CONFIG_OPTS_$(MACH))
235N/A
493N/AMODTYPE_CPPFLAGS_suncc= # No extra flags needed
705N/AMODTYPE_CPPFLAGS_gcc= # No extra flags needed
493N/A
493N/AMODTYPE_CPPFLAGS= \
606N/A -I$(PROTODIR)/usr/include \
606N/A -I$(PROTODIR)/usr/include/pixman-1 \
235N/A -I$(PROTODIR)$(X11_INCLUDES_DIR) \
606N/A -I$(PROTODIR)$(X11_INCLUDES_DIR)/drm \
606N/A -I$(PROTODIR)$(X11_INCLUDES_DIR)/X11/dri \
235N/A -I$(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions \
493N/A $(DPMS_DEFINES) -DSUNSOFT -DTSOL \
493N/A $(MODTYPE_CPPFLAGS_$(MODULE_COMPILER))
493N/A
493N/AXSERVER_LDFLAGS_suncc= # No extra flags needed
493N/AXSERVER_LDFLAGS_gcc= -L/usr/sfw/lib$(ARCHLIBSUBDIR) \
493N/A -R/usr/sfw/lib$(ARCHLIBSUBDIR)
235N/A
235N/A# Environment variable options to GNU autoconf configure script
235N/A# - XSERVERCFLAGS_CFLAGS - force CFLAGS to avoid -I /usr/X11/include breaking
235N/A# use of headers from proto area
705N/A# - PATH - include /usr/sbin for dtrace command (needed for building probes)
493N/AMODTYPE_CONFIG_ENV = \
235N/A XSERVERCFLAGS_CFLAGS="-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -DXUSE_MTSAFE_API" \
235N/A PATH=$(PATH):/usr/sbin
235N/A
606N/A# 64-bit X servers on SPARC crash on startup when built with Sun Studio
606N/A# with -g unless -xmemalign=8i is also used (Sun bug #6545113)
606N/AMODTYPE_DEBUG_FLAGS_sparc_suncc = -xmemalign=8i
851N/AMODTYPE_DEBUG_FLAGS=$(MODTYPE_DEBUG_FLAGS_$(MACH)_$(MODULE_COMPILER))
606N/A
493N/AMODTYPE_CFLAGS=$(PROG_CFLAGS)
493N/AMODTYPE_CXXFLAGS=$(PROG_CXXFLAGS)
493N/AMODTYPE_LDFLAGS=$(PROG_LDFLAGS) $(XSERVER_LDFLAGS_$(MODULE_COMPILER)) \
493N/A -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
371N/A -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
371N/A -L$(PROTODIR)$(X11_DIR)/lib$(ARCHLIBSUBDIR) \
371N/A -R$(X11_DIR)/lib$(ARCHLIBSUBDIR)
235N/A
493N/AMODTYPE_BUILD_32_FLAGS=ARCHBINSUBDIR="$(SUBDIR32)"
235N/A
493N/AMODTYPE_BUILD_64_FLAGS_sparc=ARCHBINSUBDIR=""
493N/AMODTYPE_BUILD_64_FLAGS_i386=ARCHBINSUBDIR="$(SUBDIR64)"
493N/AMODTYPE_BUILD_64_FLAGS=$(MODTYPE_BUILD_64_FLAGS_$(MACH))
235N/A
235N/A# Environment variable options to use when building
705N/A# - PATH - include /usr/sbin for dtrace command (needed for building probes)
493N/AMODTYPE_BUILD_ENV= PATH=$(PATH):/usr/sbin \
851N/A LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR):$(PROTODIR)$(X11_DIR)/lib$(ARCHLIBSUBDIR)
493N/A
493N/A### Include common rulesets
493N/Ainclude $(TOP)/common/Makefile.inc
493N/A