Makefile.inc revision 1610
1088N/A# -*- Makefile -*- rules common to all xserver build trees 1597N/A# Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved. 235N/A# Permission is hereby granted, free of charge, to any person obtaining a 919N/A# copy of this software and associated documentation files (the "Software"), 919N/A# to deal in the Software without restriction, including without limitation 919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense, 919N/A# and/or sell copies of the Software, and to permit persons to whom the 919N/A# Software is furnished to do so, subject to the following conditions: 919N/A# The above copyright notice and this permission notice (including the next 919N/A# paragraph) shall be included in all copies or substantial portions of the 919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 919N/A# DEALINGS IN THE SOFTWARE. 970N/A# Defaults for pkg names in this area 970N/AMODTYPE_PKGHIER=x11/server 970N/AMODULE_PKGTAIL_DEFAULT = $(MODULE_PKGTAIL_SET:yes=$(POUND_SIGN)) 970N/A$(MODULE_PKGTAIL_DEFAULT) MODULE_PKGTAIL:sh=basename $(pwd) 970N/AMODULE_PKGTAIL_SET = yes 493N/A### Include common definitions 967N/Ainclude $(TOP)/open-src/common/Makefile.init 1356N/A# Dates to show in Oracle copyright notice in pkg license file 1356N/A# Earliest & latest of the copyrights in the Oracle files in this pkg 1356N/AORACLE_COPYRIGHT_YEARS = 1993, 2012 1088N/A# Patches shared between Xorg & Xvnc builds 1088N/AXORG_SOURCE_PATCHES:sh=sed '/^\#/ d' ../xorg/patch-list 1097N/ASERVER_MODULES_DIR='$(X11_SERVERMODS_DIR)' 1262N/ADRI_MODULES_DIR='$(X11_SERVERMODS_DIR)/dri$(ARCHLIBSUBDIR)' 947N/A# Changes to apply to man pages 1610N/AMODTYPE_SUNTOUCH_MAN_FLAGS = -p $(MODULE_BIN_DIR)/ 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 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" \
1422N/A# 64-bit X servers on SPARC crash on startup when built with Studio cc 1422N/A# with -g unless -xmemalign=8i is also used (Oracle bug #15389926) 606N/AMODTYPE_DEBUG_FLAGS_sparc_suncc = -xmemalign=8i 851N/AMODTYPE_DEBUG_FLAGS=$(MODTYPE_DEBUG_FLAGS_$(MACH)_$(MODULE_COMPILER)) 493N/AMODTYPE_CFLAGS=$(PROG_CFLAGS) 1095N/AMODTYPE_CPPFLAGS += $(PROG_CPPFLAGS) 493N/AMODTYPE_CXXFLAGS=$(PROG_CXXFLAGS) 965N/AMODTYPE_LDFLAGS=$(PROG_LDFLAGS) 1425N/A# configure scripts add libraries like -lm to the global $(LIBS) when only 1425N/A# some objects need them, so discard them in the rest, but only when building 1425N/A# programs or .so's, not the Dtrace magic relocatable objects. 1425N/AMODTYPE_LD_EXEC_OPTIONS = $(ZDISCARD_UNUSED_DEP) $(ZDISCARD_UNUSED_FIL) 1425N/AMODTYPE_LD_SHARED_OPTIONS = $(ZDISCARD_UNUSED_DEP) $(ZDISCARD_UNUSED_FIL) 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 \ 1190N/A# Mark packages as only compatible with the current server minor release series, 1190N/A# since Xorg tends to break ABI's in each minor release train (1.8, 1.9, etc.) 1190N/AMODTYPE_ATTRDATA_COMMANDS = @$(START_CMD_ECHO) ; \ 493N/A### Include common rulesets 967N/Ainclude $(TOP)/open-src/common/Makefile.inc 1030N/A# Fix paths in proto area to match paths in packages / installed systems 1097N/Ainstall_fix_paths: install_fix_paths_$(MACH) 1097N/Ainstall_fix_paths_sparc: # not needed 1097N/Ainstall_fix_paths_i386: install_fix_paths_amd64_links 1097N/A# We used to deliver both 32-bit & 64-bit binaries on x86 and use isaexec to 1097N/A# choose between them. Now we just deliver 64-bit and make symlinks from 1097N/A# the amd64 paths to the default paths for compatibility 1610N/AISAEXEC_DIR = $(PROTODIR)$(MODULE_BIN_DIR)/$(SUBDIR64) 1097N/AISAEXEC_LINKS = $(LINKED_TO_ISAEXEC:%=$(ISAEXEC_DIR)/%) 1097N/Ainstall_fix_paths_amd64_links: $(ISAEXEC_LINKS) 1097N/A$(ISAEXEC_LINKS): $(ISAEXEC_DIR)