Makefile.inc revision 291
320N/A# -*- Makefile -*- rules common to both Xorg & Xvnc builds 320N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 320N/A# Use subject to license terms. 320N/A# Permission is hereby granted, free of charge, to any person obtaining a 320N/A# copy of this software and associated documentation files (the 320N/A# "Software"), to deal in the Software without restriction, including 320N/A# without limitation the rights to use, copy, modify, merge, publish, 320N/A# distribute, and/or sell copies of the Software, and to permit persons 320N/A# to whom the Software is furnished to do so, provided that the above 320N/A# copyright notice(s) and this permission notice appear in all copies of 320N/A# the Software and that both the above copyright notice(s) and this 320N/A# permission notice appear in supporting documentation. 320N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 320N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 320N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 320N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 320N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 320N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 320N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 320N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 320N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 320N/A# Except as contained in this notice, the name of a copyright holder 320N/A# shall not be used in advertising or otherwise to promote the sale, use 320N/A# or other dealings in this Software without prior written authorization 320N/A# of the copyright holder. 320N/A# @(#)Makefile.inc 1.2 07/10/11 320N/A# Xorg server source tarball to use sources from 320N/Ainclude $(TOP)/common/Makefile.inc 320N/A# Prefix for installation 320N/AXSERVER_PREFIX=$(X11_DIR) 320N/AFONTDIR=$(X11_DIR)/lib/X11/fonts 493N/AMESA_SRC_DIR=$(TOP)/lib/mesa/$(BUILD_DIR)/Mesa-6.5.2 320N/AMODULES_DIR='$${libdir}/modules$(MODULE_subdir)' 320N/ADRI_MODULES_DIR='$${libdir}/modules/dri$(MODULE_subdir)' # Command line options to GNU autoconf configure script for xorg-server XSERVER_CONFIG_OPTS_COMMON = \ --
bindir=
'$${exec_prefix}/bin/$(ARCHBINSUBDIR)' \
--
with-
default-
font-
path=
"$(FONTDIR)/TrueType/,$(FONTDIR)/Type1/,$(FONTDIR)/Type1/sun/,$(FONTDIR)/F3bitmaps/,$(FONTDIR)/misc/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/"XSERVER_CONFIG_OPTS_sparc=$(XSERVER_CONFIG_OPTS_COMMON) XSERVER_CONFIG_OPTS_i386=$(XSERVER_CONFIG_OPTS_COMMON) \ XSERVER_CONFIG_OPTS=$(XSERVER_CONFIG_OPTS_$(MACH)) # 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 \ # 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 XSERVERCFLAGS_CFLAGS=
"-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -DXUSE_MTSAFE_API" \
LDPATH_ADD = -L$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \ CONFIG_ENV_cc = CC=$(CC) CFLAGS="$(PROG_CFLAGS)" \ LDFLAGS=
"$(PROG_LDFLAGS) $(LDPATH_ADD)" \
CONFIG_ENV_gcc = CC=$(GCC) CFLAGS="$(DEFAULT_GCC_CFLAGS) $(ARCH_GCC_FLAGS)" \ CPPFLAGS=
"$(GCC_HEADERS) $($(XSERVER)_CPPFLAGS)" CONFIG_ENV= $(CONFIG_ENV_$(COMPILER)) $(CONFIG_ENV_common) BUILD_32_FLAGS=ARCH_GCC_FLAGS="$(ARCH32_GCC_FLAGS)" ARCHBINSUBDIR="$(SUBDIR32)" BUILD_64_FLAGS_sparc=ARCH_GCC_FLAGS="$(ARCH64_GCC_FLAGS)" BUILD_64_FLAGS_i386=ARCH_GCC_FLAGS="$(ARCH64_GCC_FLAGS)" ARCHBINSUBDIR="$(SUBDIR64)" BUILD_64_FLAGS=$(BUILD_64_FLAGS_$(MACH)) # Environment variable options to use when building BUILD_ENV= PATH=$(PATH):/usr/sbin \