Makefile.inc revision 919
749N/A# -*- Makefile -*- rules common to all X.Org drivers 749N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 749N/A# Use is subject to license terms. 749N/A# Permission is hereby granted, free of charge, to any person obtaining a 749N/A# copy of this software and associated documentation files (the "Software"), 749N/A# to deal in the Software without restriction, including without limitation 749N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense, 749N/A# and/or sell copies of the Software, and to permit persons to whom the 749N/A# Software is furnished to do so, subject to the following conditions: 749N/A# The above copyright notice and this permission notice (including the next 749N/A# paragraph) shall be included in all copies or substantial portions of the 749N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 749N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 749N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 749N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 749N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 749N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 749N/A# DEALINGS IN THE SOFTWARE. 749N/A### Include common definitions 749N/Ainclude $(TOP)/common/Makefile.init 749N/A# Build 64-bit on SPARC, 32-bit & 64-bit on x86, to match Xorg server builds 749N/ABUILD_TYPES=$(BUILD_TYPES_$(MACH)) 749N/A# Additional command line options to GNU autoconf configure script 749N/AMODTYPE_BUILD_32_FLAGS=ARCHBINSUBDIR="$(SUBDIR32)" 749N/AMODTYPE_BUILD_64_FLAGS=ARCHBINSUBDIR="$(SUBDIR64)" 749N/AMODTYPE_BUILD_MAKEFLAGS= \ 749N/A# Set comments in ELF binaries to help identify versions/builds 749N/AMODTYPE_ADD_BUILD_TARGETS=set-elf-comments 749N/AMODTYPE_CFLAGS=$(PROG_CFLAGS) 749N/AASM_IL_DIR = $(PROTODIR)$(XORG_SDK_INCLUDES_DIR) 749N/AMODTYPE_CFLAGS_suncc_i386_32 = $(ASM_IL_DIR)/solaris-ia32.il 749N/AMODTYPE_CFLAGS_suncc_i386_64 = $(ASM_IL_DIR)/solaris-amd64.il 749N/AMODTYPE_CFLAGS_suncc_sparc_32 = $(ASM_IL_DIR)/solaris-sparcv8plus.il 749N/AMODTYPE_CFLAGS_suncc_sparc_64 = $(ASM_IL_DIR)/solaris-sparcv8plus.il 749N/AMODTYPE_CFLAGS += $(MODTYPE_CFLAGS_$(MODULE_COMPILER)_$(MACH)_$(BUILD_TYPE)) 749N/A# Replaces @symbol_visibilty@ in xorg-server.pc, since that fails when 749N/A# some drivers are compiled with a different compiler than the server 749N/AMODTYPE_CFLAGS_suncc_common = -xldscope=hidden 749N/AMODTYPE_CFLAGS_gcc_common = # -fvisibility=hidden - doesn't work with gcc 3.4.3 MODTYPE_CFLAGS += $(MODTYPE_CFLAGS_$(MODULE_COMPILER)_common) MODTYPE_LDFLAGS_gcc=-R/usr/sfw/lib$(ARCHLIBSUBDIR) MODTYPE_LDFLAGS=$(LDFLAGS) -Wl,-B,direct $(MODTYPE_LDFLAGS_$(MODULE_COMPILER)) MODTYPE_LD_OPTIONS=-z defs $(X11_SERVERLIBS_LDFLAGS) \ # Need to fix libtool interference with our linker flags include $(TOP)/common/Makefile.inc