Makefile.inc revision 879
235N/A# -*- Makefile -*- rules common to both Xorg & Xvnc builds 879N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 742N/A# Use is subject to license terms. 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# 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# 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. 879N/A# ident "@(#)Makefile.inc 1.22 10/01/07 SMI" 493N/A### Include common definitions 493N/Ainclude $(TOP)/common/Makefile.init 235N/A# Xorg server source tarball to use sources from 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' 606N/ASERVER_MODULES_DIR='$(X11_SERVERMODS_DIR)$(SERVERMOD_subdir)' 606N/ADRI_MODULES_DIR='$(X11_SERVERMODS_DIR)/dri$(SERVERMOD_subdir)' 235N/A# Command line options to GNU autoconf configure script for xorg-server 235N/AXSERVER_CONFIG_OPTS_COMMON = \ 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)) 493N/AMODTYPE_CPPFLAGS_suncc= # No extra flags needed 705N/AMODTYPE_CPPFLAGS_gcc= # No extra flags needed 493N/AXSERVER_LDFLAGS_suncc= # No extra flags needed 493N/AXSERVER_LDFLAGS_gcc= -L/usr/sfw/lib$(ARCHLIBSUBDIR) \ 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) 235N/A XSERVERCFLAGS_CFLAGS=
"-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -DXUSE_MTSAFE_API" \
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)) 493N/AMODTYPE_CFLAGS=$(PROG_CFLAGS) 493N/AMODTYPE_CXXFLAGS=$(PROG_CXXFLAGS) 493N/AMODTYPE_LDFLAGS=$(PROG_LDFLAGS) $(XSERVER_LDFLAGS_$(MODULE_COMPILER)) \ 493N/AMODTYPE_BUILD_32_FLAGS=ARCHBINSUBDIR="$(SUBDIR32)" 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# 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 \ 493N/A### Include common rulesets 493N/Ainclude $(TOP)/common/Makefile.inc