Makefile.inc revision 1095
486N/A# -*- Makefile -*- rules common to all xserver build trees 486N/A# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. 486N/A# Permission is hereby granted, free of charge, to any person obtaining a 486N/A# copy of this software and associated documentation files (the "Software"), 486N/A# to deal in the Software without restriction, including without limitation 486N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense, 486N/A# and/or sell copies of the Software, and to permit persons to whom the 486N/A# Software is furnished to do so, subject to the following conditions: 486N/A# The above copyright notice and this permission notice (including the next 486N/A# paragraph) shall be included in all copies or substantial portions of the 486N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 486N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 486N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 486N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 486N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 486N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 486N/A# DEALINGS IN THE SOFTWARE. 486N/A# Defaults for pkg names in this area 486N/AMODTYPE_PKGHIER=x11/server 486N/AMODULE_PKGTAIL_DEFAULT = $(MODULE_PKGTAIL_SET:yes=$(POUND_SIGN)) 486N/A$(MODULE_PKGTAIL_DEFAULT) MODULE_PKGTAIL:sh=basename $(pwd) 486N/AMODULE_PKGTAIL_SET = yes 486N/A### Include common definitions 486N/Ainclude $(TOP)/open-src/common/Makefile.init 486N/A# Xorg server source tarball to use sources from 486N/A# Patches shared between Xorg & Xvnc builds 486N/AXORG_SOURCE_PATCHES:sh=sed '/^\#/ d' ../xorg/patch-list 486N/ASERVER_MODULES_DIR='$(X11_SERVERMODS_DIR)$(SERVERMOD_subdir)' 486N/ADRI_MODULES_DIR='$(X11_SERVERMODS_DIR)/dri$(SERVERMOD_subdir)' # Changes to apply to man pages MODTYPE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_PREFIX)/bin/ # Command line options to GNU autoconf configure script for xorg-server XSERVER_CONFIG_OPTS_COMMON = \ --
bindir=
'$${exec_prefix}/bin/$(ARCHBINSUBDIR)' \
XSERVER_CONFIG_OPTS_sparc=$(XSERVER_CONFIG_OPTS_COMMON) XSERVER_CONFIG_OPTS_i386=$(XSERVER_CONFIG_OPTS_COMMON) XSERVER_CONFIG_OPTS=$(XSERVER_CONFIG_OPTS_$(MACH)) MODTYPE_CPPFLAGS_suncc= # No extra flags needed MODTYPE_CPPFLAGS_gcc= # No extra flags needed # 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 # - PATH - include /usr/sbin for dtrace command (needed for building probes) XSERVERCFLAGS_CFLAGS=
"-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -DXUSE_MTSAFE_API" \
# 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)) MODTYPE_CFLAGS=$(PROG_CFLAGS) MODTYPE_CPPFLAGS += $(PROG_CPPFLAGS) MODTYPE_CXXFLAGS=$(PROG_CXXFLAGS) MODTYPE_LDFLAGS=$(PROG_LDFLAGS) 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 # - PATH - include /usr/sbin for dtrace command (needed for building probes) MODTYPE_BUILD_ENV= PATH=$(PATH):/usr/sbin \ MODTYPE_ADD_CONFIGURE_TARGETS = fix-moduledirs ### Include common rulesets include $(TOP)/open-src/common/Makefile.inc # Fix paths in proto area to match paths in packages / installed systems install_fix_paths: install_fix_paths_$(MACH)_$(BUILD_TYPE) install_fix_paths_$(MACH)_: $(BUILD_TYPES:%=install_fix_paths_$(MACH)_%) # When both 32-bit & 64-bit are built, only one copy of the programs in # NOT_LINKED_TO_ISAEXEC are needed, so move the 32-bit copy to /usr/bin # instead of linking to isaexec, and delete the 64-bit copy. UTILS_IN_BIN = $(NOT_LINKED_TO_ISAEXEC:%=$(PROTODIR)$(MODULE_PREFIX)/bin/%) install_fix_paths_use_utilities: $(INSTALL_FIX_PATHS_DEPS) install_fix_paths_remove_utilities: $(INSTALL_FIX_PATHS_DEPS) install_fix_paths_i386_32: install_fix_paths_use_utilities install_fix_paths_i386_64: install_fix_paths_remove_utilities install_fix_paths_sparc_64: # not needed # When both 32-bit & 64-bit are built, we install both versions of the # programs in LINKED_TO_ISAEXEC, and use isaexec to pick 32-bit or 64-bit ISAEXEC_LINKS = $(LINKED_TO_ISAEXEC:%=$(PROTODIR)$(MODULE_PREFIX)/bin/%) $(PROTODIR)/usr/lib/isaexec: $(ISAEXEC_LINKS): $(PROTODIR)/usr/lib/isaexec install_fix_isaexec: $(ISAEXEC_LINKS) install_fix_paths_i386_32: install_fix_isaexec # Not needed in 64-bit builds on sparc or x86