Makefile revision 1387
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews###############################################################################
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Xorg server Makefile
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# copy of this software and associated documentation files (the "Software"),
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# to deal in the Software without restriction, including without limitation
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# the rights to use, copy, modify, merge, publish, distribute, sublicense,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and/or sell copies of the Software, and to permit persons to whom the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Software is furnished to do so, subject to the following conditions:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The above copyright notice and this permission notice (including the next
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# paragraph) shall be included in all copies or substantial portions of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# DEALINGS IN THE SOFTWARE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Package name used in tarballs
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Package metadata
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_DESC = portions of the X.Org X server software
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Version number (used in path names) - set in open-src/common/Makefile.init
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Checksums for upstream tarball
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTARBALL_SHA1 = f67a3a250216ab40f0e31648151ee1a457b70a3a
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTARBALL_SHA256= a5adb02571efb7d7459dde83286a3adb77dfd1a52a7348e75d2dc72d6f8d28aa
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Patches to apply to source after unpacking, in order
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Used in rules shared between Xorg & Xvnc builds in Makefile.inc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# to allow for different source layouts
6283056805887de88040698685b8e1936a1f7a2dAutomatic Updater# ARC cases that covered this module
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2004/187 Xorg Server for Solaris
6283056805887de88040698685b8e1936a1f7a2dAutomatic Updater# PSARC/2004/685 Xorg server upgrade to X11R6.8 release
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2004/829 Xorg 6.8.2 server upgrade for Solaris
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2005/450 Xorg 6.9 for Solaris
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2006/609 Xserver provider for DTrace
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2007/051 Xorg server upgrade to 7.2
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2007/434 Xorg server 1.3
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2007/500 X11 MIT-SHM Extension across zones
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2008/294 Xorg driver selection based on VIS_GETIDENTIFIER
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2009/021 Xorg server 1.5
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2009/292 Xorg server 1.6
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2009/679 Xorg server 1.7
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2010/109 Introduce libXcb in Solaris
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2011/008 Xorg server 1.9
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2010/382 Removal of 32-bit X servers
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2011/214 Xorg server 1.10
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2012/144 Xorg server 1.12
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2012/320 Xorg server 1.13
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2013/091 Xorg server 1.14
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Man pages to apply Sun footer to & attributes to list
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Override specific attributes for specific man pages
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(SUNTOUCH_MAN_FLAGS_$(@F:%.man.$(FIXED_MAN_SUFFIX)=%))
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Xephyr, Xvfb, and Xdmx are split out into their own packages
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUNTOUCH_MAN_FLAGS_Xephyr = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xephyr)}'
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUNTOUCH_MAN_FLAGS_Xvfb = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xvfb)}'
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUNTOUCH_MAN_FLAGS_Xdmx = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xdmx)}'
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUNTOUCH_MAN_FLAGS_Xserver = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xserver-common)}'
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Binary built in tree
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsBUILD_TARGETS=$(XORGSERVER_BIN) build_mdb set-elf-comments \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Need to convert dtrace docs from xml to text/html ourselves, since
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews# Solaris doesn't bundle the xmlto tool used upstream
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_DOC_DIR = $(MODULE_PREFIX)/share/doc/Xserver
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsDTRACE_DOCS = $(DTRACE_DOC_DIR)/Xserver-DTrace.html
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsDTRACE_DOCS += $(DTRACE_DOC_DIR)/Xserver-DTrace.txt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Need to regenerate autoconf/automake files after patching
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Command line options to GNU autoconf configure script
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# XXX: --disable-dga
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews --enable-kdrive --enable-xephyr --disable-xsdl \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Pass linker mapfile listing symbols that modules can count on resolving
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# from the Xorg binary itself
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXORG_EXTERNS_FLAG = -Wl,-M,$(PWD)/$(XORG_EXTERNS_FILE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_BUILD_ENV = XORG_EXTERNS_FLAG='$(XORG_EXTERNS_FLAG)'
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Optimization doesn't always remove unused inline functions, leaving many
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# binaries referencing pixman symbols that normally don't need them. Using
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# -z ignore should ensure that it's not added when not really needed.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Adding -z muldefs for 16418361 - which should be removed once we fix that
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_CONFIG_OPTS += LIBS="-z ignore -lpixman-1 -z muldefs"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# pkg-config files that need to have -R added
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Remove compiler specific visibility flag that breaks builds of drivers
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# with other compilers
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_FIX_PC_FLAGS= -e 's|\@symbol_visibility\@||'
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Need to use GNU Make to build due to hw/xfree86/loader
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews# Additional configure time targets beyond the defaults
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Additional install targets beyond the defaults
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_ADD_INSTALL_TARGETS=install_extras install_mdb install_pc_common \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Have to avoid dependency loop between install_pc_common and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# install_pkgconfig_uninstalled
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsINSTALL_PCU_DEPS = $(INSTALL_TARGETS:install_pc_common=)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Merge in additional sources from sun-src directory
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Compatibility links from /usr/X11/bin to /usr/bin
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Only needed for programs that were in /usr/X11/bin before we moved
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_X11_BINCOMPAT_LINKS = Xorg Xephyr Xvfb cvt gtf
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_X11_BINCOMPAT_LINKS += $(MODULE_X11_BINCOMPAT_LINKS_$(MACH))
52ece689e0265f9a3e518de5b2539e749f6d35acMark Andrews# Binaries that were linked to isaexec on x86 to choose 32-bit or 64-bit,
52ece689e0265f9a3e518de5b2539e749f6d35acMark Andrews# now just symlinks from amd64 to parent directory
52ece689e0265f9a3e518de5b2539e749f6d35acMark Andrews# Don't include build date & time in delivered binaries as it just causes
52ece689e0265f9a3e518de5b2539e749f6d35acMark Andrews# unnecessary binary differences to be pulled into package updates, but
52ece689e0265f9a3e518de5b2539e749f6d35acMark Andrews# leave it in debug builds for developer convenience
52ece689e0265f9a3e518de5b2539e749f6d35acMark Andrews$(BUILD_DEBUG:yes=$(POUND_SIGN)) CBD_TARGET = actually_clear_build_date
52ece689e0265f9a3e518de5b2539e749f6d35acMark Andrews printf '#undef BUILD_DATE\n#undef BUILD_TIME\n' > \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSDK_INCLUDES_DIR=$(PROTODIR)$(X11_INCLUDES_DIR)/xorg/
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews sed -e 's%#define XF86DRI 1%/* #define XF86DRI 1 */%' \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(SOURCE_DIR)/include/xorg-server.h > $(SDK_INCLUDES_DIR)/xorg-server.h
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(SOURCE_DIR)/hw/xfree86/os-support/bus/xf86Sbus.h \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(SOURCE_DIR)/hw/xfree86/dri/*.h $(SDK_INCLUDES_DIR)/
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews cp -pf $(SOURCE_DIR)/hw/xfree86/man/xorgcfg.1 \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews mkdir -p $(PROTODIR)/etc/hal/fdi/preprobe/10osvendor
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(PROTODIR)/etc/hal/fdi/preprobe/10osvendor/10-x11-input.fdi
6283056805887de88040698685b8e1936a1f7a2dAutomatic Updater cp -pf 90-zap.conf $(PROTODIR)/etc/X11/xorg.conf.avail
6283056805887de88040698685b8e1936a1f7a2dAutomatic Updater# Workaround bug in installing pkgconfig file to wrong directory in 64-bit
6283056805887de88040698685b8e1936a1f7a2dAutomatic Updater# builds, and install xorg-server.pc in 32-bit pkgconfig dir too
6283056805887de88040698685b8e1936a1f7a2dAutomatic Updaterinstall_pc_common: default_install install_pkgconfig_uninstalled
1c51f79aba598e5e20bde66aea0237e347f6d5ceAutomatic Updater -rm -f $(PROTODIR)$(PKGCONFIG_DIR)/xorg-server.pc
1c51f79aba598e5e20bde66aea0237e347f6d5ceAutomatic Updater $(PROTODIR)$(PKGCONFIG_DIR)/xorg-server.pc
6283056805887de88040698685b8e1936a1f7a2dAutomatic Updater -rm -f $(PROTODIR)$(PKGCONFIG_DIR_32)/xorg-server.pc \
6283056805887de88040698685b8e1936a1f7a2dAutomatic Updater $(PROTODIR)$(PKGCONFIG_DIR_32)/xorg-server-uninstalled.pc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews ln -s ../$(SUBDIR64)$(PKGCONFIG_DIR_suffix)/xorg-server.pc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews ../$(SUBDIR64)$(PKGCONFIG_DIR_suffix)/xorg-server-uninstalled.pc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Generate a list of exported functions & data objects so that we can verify
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# loadable modules don't reference symbols that have been deleted or renamed.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews'BEGIN { print "\043 Functions exported by Xorg server to loadable modules" ; \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews print "\n\044mapfile_version 2\n\nSYMBOL_SCOPE {\n\tglobal:" } \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews END { print "};" } \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $$7 ~ /UNDEF|\.tdata/ { next } \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $$5 !~ /GLOB/ { next } \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $$8 ~ /^(__|_edata|_end|_etext|_start|_environ|_lib_version)/ { next } \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $$4 ~ /FUNC/ && $$7 ~ /\.text/ { printf "\t\t%-40s { FLAGS = EXTERN };\n", $$8 } \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $$4 ~ /OBJT/ && $$7 ~ /data|bss/ { printf "\t\t%-40s { FLAGS = EXTERN };\n", $$8}'
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(BUILD_DIR)/mapfile-Xorg-externs: $(XORGSERVER_BIN)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# cmp $(XORG_EXTERNS_FILE) $@
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Fix paths in proto area to match paths in packages / installed systems
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater $(PROTODIR)$(MODULE_PREFIX)/bin/$(ARCHBINSUBDIR)/X
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater ln -s Xserver $(PROTODIR)$(MODULE_PREFIX)/bin/X
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic UpdaterMESA_MODULE_DIR = /usr/lib/mesa/modules/extensions
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic UpdaterEXT_MODULE_DIR = $(X11_SERVERMODS_DIR)/extensions
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updaterinstall_fix_paths_glxmodule: default_install
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater @rm -f $(PROTODIR)$(MESA_MODULE_DIR)/libglx.so
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater mv -f $(PROTODIR)$(EXT_MODULE_DIR)/libglx.so \
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater ln -s ../../../../../system/volatile/opengl/server/libglx.so \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Install metadata for Xephyr, Xvfb, Xdmx, & xtsol packages too
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXCOMMON_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%-xorg=%-xserver-common)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXEPHYR_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%-xorg=%-xephyr)
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsXVFB_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%-xorg=%-xvfb)
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsXDMX_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%-xorg=%-xdmx)
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsXTSOL_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%-server-xorg=%-trusted-trusted-xorg)
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsEXTRA_METADATA_DIRS = $(XCOMMON_PKG_METADATA_DIR) \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsEXTRA_ATTRDATA_FILES = $(EXTRA_METADATA_DIRS:%=%/$(ATTRDATA_FILE_NAME))
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsEXTRA_LICENSE_FILES = $(EXTRA_METADATA_DIRS:%=%/$(LICENSE_FILE_NAME))
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsEXTRA_METADATA_TARGETS= $(EXTRA_METADATA_DIRS) \
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews$(EXTRA_ATTRDATA_FILES) $(EXTRA_LICENSE_FILES): $(EXTRA_METADATA_DIRS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Xtsol module is covered only by Oracle copyright/license
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsXTSOL_LICENSE = $(XTSOL_PKG_METADATA_DIR)/$(LICENSE_FILE_NAME)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(XTSOL_LICENSE):= LICENSE_NAME = $(ORACLE_LICENSE_NAME)
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews$(XTSOL_LICENSE):= LICENSE_APPEND = $(ORACLE_LICENSE_APPEND)
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews# Special compatibility links from /usr/X11/include to /usr/include
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsX11_INCLUDE_COMPAT_DIR = $(PROTODIR)/usr/X11/include
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsX11_INCLUDE_COMPAT_LINKS = $(X11_INCLUDE_COMPAT_DIR)/drm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(X11_INCLUDE_COMPAT_LINKS): $(X11_INCLUDE_COMPAT_DIR)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews## mdb module rules
6283056805887de88040698685b8e1936a1f7a2dAutomatic Updater# Build & install mdb modules & scripts that aren't integrated to
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# normal build process.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMDB_MODULE_DIR=/usr/lib/mdb/proc/$(ARCHLIBSUBDIR)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsBUILT_MDB_MODULE=$(MDB_SOURCE_DIR)/modules/Xserver.so
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsBUILT_MDB_SCRIPTS=$(MDB_SCRIPTS:%=$(MDB_SOURCE_DIR)/scripts/%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsINSTALLED_MDB_LINKS=$(MDB_MODULE_NAMES:%=$(PROTODIR)$(MDB_MODULE_DIR)/%.so)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsINSTALLED_MDB_MODULE=$(PROTODIR)$(MDB_MODULE_DIR)/Xserver.so
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsINSTALLED_MDB_SCRIPTS=$(MDB_SCRIPTS:%=$(PROTODIR)$(MDB_SCRIPT_DIR)/%)
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark AndrewsINSTALLED_MDB_ALL=$(INSTALLED_MDB_MODULE) $(INSTALLED_MDB_LINKS) \
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark Andrews# Since configure options aren't used to build the mdb modules, pass
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark Andrews# those variables at build time
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMDB_BUILD_ENV += CFLAGS="$(LIB_CFLAGS)" LDFLAGS="$(LIB_LDFLAGS)"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMDB_BUILD_ENV += ARCHLIBSUBDIR="$(ARCHLIBSUBDIR)"
mkdir -p $@
@rm -f $@
mkdir -p $@