Makefile revision 1201
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews###############################################################################
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater# Xorg server Makefile
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater#
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater#
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# Permission is hereby granted, free of charge, to any person obtaining a
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# copy of this software and associated documentation files (the "Software"),
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# to deal in the Software without restriction, including without limitation
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# the rights to use, copy, modify, merge, publish, distribute, sublicense,
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and/or sell copies of the Software, and to permit persons to whom the
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# Software is furnished to do so, subject to the following conditions:
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# The above copyright notice and this permission notice (including the next
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# paragraph) shall be included in all copies or substantial portions of the
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# Software.
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater# DEALINGS IN THE SOFTWARE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Package name used in tarballs
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonMODULE_NAME=xorg-server
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Version number (used in path names)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonMODULE_VERSION=$(XORGSERVER_VERS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Checksums for upstream tarball
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterTARBALL_MD5 = fc1bb18a09244cd43a998625a6a1b071
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntTARBALL_SHA1 = 1699be5c0edeca553cfa3ee6caa228483465136b
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterTARBALL_SHA256 = 05ec05fbc8ec336127071db38cfb61c618e43b720edbd8d51d171c0cd359e290
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Patches to apply to source after unpacking, in order
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterSOURCE_PATCHES=$(XORG_SOURCE_PATCHES)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Used in rules shared between Xorg & Xvnc builds in Makefile.inc
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# to allow for different source layouts
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterXORG_BUILD_DIR=$(SOURCE_DIR)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# ARC cases that covered this module
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# PSARC/2004/187 Xorg Server for Solaris
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE_ARC_CASES = PSARC/2004/187
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# PSARC/2004/685 Xorg server upgrade to X11R6.8 release
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE_ARC_CASES += PSARC/2004/685
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# PSARC/2004/829 Xorg 6.8.2 server upgrade for Solaris
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterMODULE_ARC_CASES += PSARC/2004/829
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# PSARC/2005/450 Xorg 6.9 for Solaris
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE_ARC_CASES += PSARC/2005/450
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# PSARC/2006/609 Xserver provider for DTrace
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE_ARC_CASES += PSARC/2006/609
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# PSARC/2007/051 Xorg server upgrade to 7.2
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsMODULE_ARC_CASES += PSARC/2007/051
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# PSARC/2007/434 Xorg server 1.3
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMODULE_ARC_CASES += PSARC/2007/434
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# PSARC/2007/500 X11 MIT-SHM Extension across zones
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_ARC_CASES += PSARC/2007/500
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# PSARC/2008/294 Xorg driver selection based on VIS_GETIDENTIFIER
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic UpdaterMODULE_ARC_CASES += PSARC/2008/294
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# PSARC/2009/021 Xorg server 1.5
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic UpdaterMODULE_ARC_CASES += PSARC/2009/021
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# PSARC/2009/292 Xorg server 1.6
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic UpdaterMODULE_ARC_CASES += PSARC/2009/292
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# PSARC/2009/679 Xorg server 1.7
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_ARC_CASES += PSARC/2009/679
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# PSARC/2010/109 Introduce libXcb in Solaris
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_ARC_CASES += PSARC/2010/109
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater# PSARC/2011/008 Xorg server 1.9
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic UpdaterMODULE_ARC_CASES += PSARC/2011/008
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# PSARC/2010/382 Removal of 32-bit X servers
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterMODULE_ARC_CASES += PSARC/2010/382
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# PSARC/2011/214 Xorg server 1.10
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterMODULE_ARC_CASES += PSARC/2011/214
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Man pages to apply Sun footer to & attributes to list
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterSUNTOUCHED_MANPAGES= \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson doc/man/Xserver.man \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater hw/kdrive/ephyr/man/Xephyr.man \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater hw/xfree86/utils/man/cvt.man \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson hw/xfree86/utils/man/gtf.man \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater hw/xfree86/doc/man/Xorg.man \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater hw/xfree86/doc/man/xorg.conf.man \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater hw/xfree86/doc/man/xorg.conf.d.man \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews hw/vfb/man/Xvfb.man
11af78f7dc35741bdab68dbab11b03daab005b28Automatic Updater
11af78f7dc35741bdab68dbab11b03daab005b28Automatic UpdaterMODULE_STABILITY=Volatile
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Override specific attributes for specific man pages
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterMODULE_SUNTOUCH_MAN_FLAGS= \
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater $(SUNTOUCH_MAN_FLAGS_$(@F:%.man.$(FIXED_MAN_SUFFIX)=%))
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Xephyr, Xvfb, and Xdmx are split out into their own packages
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsSUNTOUCH_MAN_FLAGS_Xephyr = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xephyr)}'
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterSUNTOUCH_MAN_FLAGS_Xvfb = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xvfb)}'
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic UpdaterSUNTOUCH_MAN_FLAGS_Xdmx = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xdmx)}'
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsSUNTOUCH_MAN_FLAGS_Xserver = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xserver-common)}'
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
08e3b6797706a13054bad749dea04e94b514b8e7Automatic Updater# Binary built in tree
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterXORGSERVER_BIN=$(SOURCE_DIR)/hw/xfree86/Xorg
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsBUILD_TARGETS=$(XORGSERVER_BIN) build_mdb set-elf-comments \
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater $(BUILD_DIR)/mapfile-Xorg-externs
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic UpdaterBUILD_TARGETS_SET=yes
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Need to convert dtrace docs from xml to text/html ourselves, since
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# Solaris doesn't bundle the xmlto tool used upstream
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic UpdaterMODULE_DOC_DIR = $(MODULE_PREFIX)/share/doc/Xserver
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_DOC_DIR_SET=yes
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic UpdaterMODULE_XML_PATH = $(SOURCE_DIR)/doc/xml
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic UpdaterDTRACE_DOC_DIR = $(SOURCE_DIR)/doc/xml/dtrace
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterDTRACE_DOCS = $(DTRACE_DOC_DIR)/Xserver-DTrace.html
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterDTRACE_DOCS += $(DTRACE_DOC_DIR)/Xserver-DTrace.txt
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterBUILD_TARGETS += $(DTRACE_DOCS)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Need to regenerate autoconf/automake files after patching
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterAUTORECONF=yes
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Command line options to GNU autoconf configure script
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# XXX: --disable-dga
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonMODULE_CONFIG_OPTS = $(XSERVER_CONFIG_OPTS) \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater --enable-dmx \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews --enable-builddocs \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson --enable-kdrive --enable-xephyr --disable-xsdl \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater MKFONTDIR="$(MKFONTDIR)" \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater MKFONTSCALE="$(MKFONTSCALE)"
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic UpdaterMODULE_LDFLAGS = $(XSERVER_LDFLAGS)
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic UpdaterMODULE_LD_OPTIONS = $(MAPFILES_FOR_ALL)
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Pass linker mapfile listing symbols that modules can count on resolving
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# from the Xorg binary itself
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterXORG_EXTERNS_FLAG = -Wl,-M,$(PWD)/$(XORG_EXTERNS_FILE)
4104e236f71eb5108fcfda6711878a97f6f4a8e7Automatic UpdaterMODULE_BUILD_ENV = XORG_EXTERNS_FLAG='$(XORG_EXTERNS_FLAG)'
8711e5c73ca872d59810760af0332194cbdd619bAutomatic UpdaterMODULE_LDFLAGS += $(XORG_EXTERNS_FLAG)
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater# Optimization doesn't always remove unused inline functions, leaving many
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# binaries referencing pixman symbols that normally don't need them. Using
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater# -z ignore should ensure that it's not added when not really needed.
765c97d56ccddc9d7904c7d9ff2e2d825d9687e4Automatic UpdaterMODULE_CONFIG_OPTS += LIBS="-z ignore -lpixman-1"
3e5340279d8875d136a4dd815cccad0044aa2644Automatic Updater
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater# pkg-config files that need to have -R added
da82e232161d67b77df2d67898bdac693f647be1Automatic UpdaterFIX_PC_FILES=xorg-server.pc.in
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# Remove compiler specific visibility flag that breaks builds of drivers
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater# with other compilers
8711e5c73ca872d59810760af0332194cbdd619bAutomatic UpdaterMODULE_FIX_PC_FLAGS= -e 's|\@symbol_visibility\@||'
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Need to use GNU Make to build due to hw/xfree86/loader
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE_MAKE=$(GNUMAKE)
da82e232161d67b77df2d67898bdac693f647be1Automatic UpdaterMODULE_MAKE_SET=yes
e628576d3b3d91c8954679077f4c208f1e43b433Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Additional configure time targets beyond the defaults
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterMODULE_ADD_CONFIGURE_TARGETS=clear_build_date
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Additional install targets beyond the defaults
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterMODULE_ADD_INSTALL_TARGETS=install_extras install_mdb install_pc_common \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater install_fix_paths install_docs
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Have to avoid dependency loop between install_pc_common and
7f79131f9a8e804b93c57f3c679065cce878b726Automatic Updater# install_pkgconfig_uninstalled
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterINSTALL_PCU_DEPS = $(INSTALL_TARGETS:install_pc_common=)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterINSTALL_PCU_DEPS_SET=yes
3f616e6f846be57b1717c6beaba0f74de9d5a7c6Automatic Updater
da82e232161d67b77df2d67898bdac693f647be1Automatic Updater# Merge in additional sources from sun-src directory
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterADDITIONAL_SOURCE_DIR=sun-src
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Compatibility links from /usr/X11/bin to /usr/bin
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Only needed for programs that were in /usr/X11/bin before we moved
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic UpdaterMODULE_X11_BINCOMPAT_LINKS = Xorg Xephyr Xvfb cvt gtf
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterMODULE_X11_BINCOMPAT_LINKS_i386 = amd64
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterMODULE_X11_BINCOMPAT_LINKS += $(MODULE_X11_BINCOMPAT_LINKS_$(MACH))
f7a71eef29bcbf892270460269c79664f600cffdAutomatic Updater
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# Binaries that were linked to isaexec on x86 to choose 32-bit or 64-bit,
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# now just symlinks from amd64 to parent directory
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic UpdaterLINKED_TO_ISAEXEC = Xorg Xephyr Xvfb Xdmx
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updater
7262eb86f2b465822206122921e2f357218f0cfdAutomatic Updaterinclude ../Makefile.inc
96ea71632887c58a9d00f47eb318bf76b35903c3Mark Andrews
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Don't include build date & time in delivered binaries as it just causes
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# unnecessary binary differences to be pulled into package updates, but
bbb069be941f649228760edcc241122933c066d2Automatic Updater# leave it in debug builds for developer convenience
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater$(BUILD_DEBUG:yes=$(POUND_SIGN)) CBD_TARGET = actually_clear_build_date
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsclear_build_date: $(CBD_TARGET)
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updateractually_clear_build_date: $(AUTOCONF_TARGET)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews printf '#undef BUILD_DATE\n#undef BUILD_TIME\n' > \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(SOURCE_DIR)/hw/xfree86/common/xf86Build.h
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(XORGSERVER_BIN): default_build
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
765c97d56ccddc9d7904c7d9ff2e2d825d9687e4Automatic UpdaterSDK_INCLUDES_DIR=$(PROTODIR)$(X11_INCLUDES_DIR)/xorg/
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f7c88d61cc1ad2435b0b7cfaedfc9d5248c0be25Automatic Updaterinstall_extras: default_install
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews -rm -f $(SDK_INCLUDES_DIR)/xorg-server.h
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater sed -e 's%#define XF86DRI 1%/* #define XF86DRI 1 */%' \
3f616e6f846be57b1717c6beaba0f74de9d5a7c6Automatic Updater $(SOURCE_DIR)/include/xorg-server.h > $(SDK_INCLUDES_DIR)/xorg-server.h
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater cp -pf $(SOURCE_DIR)/mi/mioverlay.h \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(SOURCE_DIR)/hw/xfree86/os-support/bus/xf86Sbus.h \
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater $(SOURCE_DIR)/hw/xfree86/dri/*.h $(SDK_INCLUDES_DIR)/
f7a71eef29bcbf892270460269c79664f600cffdAutomatic Updater mkdir -p $(PROTODIR)$(X11_MAN_DIR)/man1
3e5340279d8875d136a4dd815cccad0044aa2644Automatic Updater cp -pf $(SOURCE_DIR)/hw/xfree86/doc/man/xorgcfg.1 \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(SOURCE_DIR)/hw/xfree86/doc/man/xorgconfig.1 \
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater $(PROTODIR)$(X11_MAN_DIR)/man1
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater mkdir -p $(PROTODIR)/etc/hal/fdi/preprobe/10osvendor
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic Updater cp -pf $(SOURCE_DIR)/config/x11-input.fdi \
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater $(PROTODIR)/etc/hal/fdi/preprobe/10osvendor/10-x11-input.fdi
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater mkdir -p $(PROTODIR)/etc/X11/xorg.conf.d \
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater $(PROTODIR)/etc/X11/xorg.conf.avail \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(PROTODIR)/usr/share/X11/xorg.conf.d
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic Updater cp -pf 90-zap.conf $(PROTODIR)/etc/X11/xorg.conf.avail
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Workaround bug in installing pkgconfig file to wrong directory in 64-bit
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updater# builds, and install xorg-server.pc in 32-bit pkgconfig dir too
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updaterinstall_pc_common: default_install install_pkgconfig_uninstalled
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater -rm -f $(PROTODIR)$(PKGCONFIG_DIR)/xorg-server.pc
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater mkdir -p $(PROTODIR)$(PKGCONFIG_DIR)
099b86fb8136a7dff81df85cf395978c16eb254cAutomatic Updater cp -pf $(SOURCE_DIR)/xorg-server.pc \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(PROTODIR)$(PKGCONFIG_DIR)/xorg-server.pc
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater -rm -f $(PROTODIR)$(PKGCONFIG_DIR_32)/xorg-server.pc \
3857cb6fcabeb79d85de4b3e3e4ab99912b701f8Mark Andrews $(PROTODIR)$(PKGCONFIG_DIR_32)/xorg-server-uninstalled.pc
572cb2c1c931f6bc6a4a019c103ae88239b0eb96Automatic Updater mkdir -p $(PROTODIR)$(PKGCONFIG_DIR_32)
7858b0168b866c0c2878fc4ea31fb5e581c1a6a9Automatic Updater ln -s ../$(SUBDIR64)$(PKGCONFIG_DIR_suffix)/xorg-server.pc \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ../$(SUBDIR64)$(PKGCONFIG_DIR_suffix)/xorg-server-uninstalled.pc \
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater $(PROTODIR)$(PKGCONFIG_DIR_32)/
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
e2caa7536302de34de6cc04025abcd53dc3a499aAutomatic Updater# Generate a list of exported functions & data objects so that we can verify
56e7dc0c24b04210dcbffb180a9e35644fb820daAutomatic Updater# loadable modules don't reference symbols that have been deleted or renamed.
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic UpdaterSYMBOL_AWK_SCRIPT = \
8292deab031e7599cd7622aa7675fbe139ca6095Mark Andrews'BEGIN { print "\043 Functions exported by Xorg server to loadable modules" ; \
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews print "\n\044mapfile_version 2\n\nSYMBOL_SCOPE {\n\tglobal:" } \
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews END { print "};" } \
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews $$7 ~ /UNDEF|\.tdata/ { next } \
ca35524ce2b57e6f1b261d23565d1288a355d12fAutomatic Updater $$5 !~ /GLOB/ { next } \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews $$8 ~ /^(__|_end|_etext|_start|_environ|_lib_version)/ { next } \
b109432c3a939bff66a463be86c371bd88efe3aaAutomatic Updater $$4 ~ /FUNC/ && $$7 ~ /\.text/ { printf "\t\t%-40s { FLAGS = EXTERN };\n", $$8 } \
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater $$4 ~ /OBJT/ && $$7 ~ /data|bss/ { printf "\t\t%-40s { FLAGS = EXTERN };\n", $$8}'
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews$(BUILD_DIR)/mapfile-Xorg-externs: $(XORGSERVER_BIN)
3351ccbd5c1961404044f8273d54dad405f53960Mark Andrews -rm -f $@
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater LC_ALL=C /usr/bin/nm -gs $(XORGSERVER_BIN) | \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews gawk -F\| $(SYMBOL_AWK_SCRIPT) > $@
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews cmp $(XORG_EXTERNS_FILE) $@
3351ccbd5c1961404044f8273d54dad405f53960Mark Andrews
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater# Fix paths in proto area to match paths in packages / installed systems
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsinstall_fix_paths_X: default_install
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews rm -f $(PROTODIR)$(MODULE_PREFIX)/bin/X \
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater $(PROTODIR)$(MODULE_PREFIX)/bin/$(ARCHBINSUBDIR)/X
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews ln -s Xserver $(PROTODIR)$(MODULE_PREFIX)/bin/X
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updaterinstall_fix_paths: install_fix_paths_X
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic UpdaterMESA_MODULE_DIR = /usr/lib/mesa/modules/extensions
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic UpdaterEXT_MODULE_DIR = $(X11_SERVERMODS_DIR)/extensions
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updaterinstall_fix_paths_glxmodule: default_install
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater @rm -f $(PROTODIR)$(MESA_MODULE_DIR)/libglx.so
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater mkdir -p $(PROTODIR)$(MESA_MODULE_DIR)/
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater mv -f $(PROTODIR)$(EXT_MODULE_DIR)/libglx.so \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(PROTODIR)$(MESA_MODULE_DIR)/libglx.so
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater ln -s ../../../../../system/volatile/opengl/server/libglx.so \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater $(PROTODIR)$(EXT_MODULE_DIR)/libglx.so
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updaterinstall_fix_paths: install_fix_paths_glxmodule
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Install metadata for Xephyr, Xvfb, Xdmx, & xtsol packages too
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsXCOMMON_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%-xorg=%-xserver-common)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsXEPHYR_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%-xorg=%-xephyr)
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsXVFB_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%-xorg=%-xvfb)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsXDMX_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%-xorg=%-xdmx)
06f5acb11f1c32228d93eefd1eb841dbfb1c7f4dAutomatic UpdaterXTSOL_PKG_METADATA_DIR = $(MODULE_PKG_METADATA_DIR:%-server-xorg=%-trusted-trusted-xorg)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
7f79131f9a8e804b93c57f3c679065cce878b726Automatic UpdaterEXTRA_METADATA_DIRS = $(XCOMMON_PKG_METADATA_DIR) \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(XEPHYR_PKG_METADATA_DIR) \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(XVFB_PKG_METADATA_DIR) \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(XDMX_PKG_METADATA_DIR) \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews $(XTSOL_PKG_METADATA_DIR)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
ac4e70ff8955669341f435bc0a734a17c01af124Mark AndrewsEXTRA_ATTRDATA_FILES = $(EXTRA_METADATA_DIRS:%=%/$(ATTRDATA_FILE_NAME))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonEXTRA_LICENSE_FILES = $(EXTRA_METADATA_DIRS:%=%/$(LICENSE_FILE_NAME))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
b13d89bd89878137c81b36a36596cca3920f27a4Automatic UpdaterEXTRA_METADATA_TARGETS= $(EXTRA_METADATA_DIRS) \
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater $(EXTRA_ATTRDATA_FILES) \
b13d89bd89878137c81b36a36596cca3920f27a4Automatic Updater $(EXTRA_LICENSE_FILES)
b13d89bd89878137c81b36a36596cca3920f27a4Automatic Updater
b13d89bd89878137c81b36a36596cca3920f27a4Automatic Updaterinstall_metadata: $(EXTRA_METADATA_TARGETS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater$(EXTRA_ATTRDATA_FILES) $(EXTRA_LICENSE_FILES): $(EXTRA_METADATA_DIRS)
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater$(EXTRA_METADATA_DIRS):
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater mkdir -p $@
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater
bc0a4c01beede169df81a3ee5b614ed9e82339dbAutomatic Updater# Xtsol module is covered only by Oracle copyright/license
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonXTSOL_LICENSE = $(XTSOL_PKG_METADATA_DIR)/$(LICENSE_FILE_NAME)
665ba746c0585088d0c314dcfc4671aa2c7b2dc1Automatic Updater$(XTSOL_LICENSE):= LICENSE_NAME = $(ORACLE_LICENSE_NAME)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(XTSOL_LICENSE):= LICENSE_FILE = COPYING.tsol
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(XTSOL_LICENSE):= LICENSE_APPEND = $(ORACLE_LICENSE_APPEND)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Special compatibility links from /usr/X11/include to /usr/include
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonX11_INCLUDE_COMPAT_DIR = $(PROTODIR)/usr/X11/include
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonX11_INCLUDE_COMPAT_LINKS = $(X11_INCLUDE_COMPAT_DIR)/drm \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(X11_INCLUDE_COMPAT_DIR)/xorg
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninstall: $(X11_INCLUDE_COMPAT_LINKS)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(X11_INCLUDE_COMPAT_DIR):
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington mkdir -p $@
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(X11_INCLUDE_COMPAT_LINKS): $(X11_INCLUDE_COMPAT_DIR)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @rm -f $@
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ln -s ../../include/$(@F) $@
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## mdb module rules
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Build & install mdb modules & scripts that aren't integrated to
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# normal build process.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMDB_SOURCE_DIR=$(XORG_BUILD_DIR)/os/solaris/mdb
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMDB_MODULE_DIR=/usr/lib/mdb/proc/$(ARCHLIBSUBDIR)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMDB_SCRIPT_DIR=/usr/demo/Xserver/mdb
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMDB_SCRIPTS=list_Xserver_clients \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington list_Xserver_devicegrab_client \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington list_Xserver_servergrab_client
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMDB_MODULE_NAMES=Xephyr Xorg Xvfb Xvnc Xdmx
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonBUILT_MDB_MODULE=$(MDB_SOURCE_DIR)/modules/Xserver.so
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonBUILT_MDB_SCRIPTS=$(MDB_SCRIPTS:%=$(MDB_SOURCE_DIR)/scripts/%)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonINSTALLED_MDB_LINKS=$(MDB_MODULE_NAMES:%=$(PROTODIR)$(MDB_MODULE_DIR)/%.so)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonINSTALLED_MDB_MODULE=$(PROTODIR)$(MDB_MODULE_DIR)/Xserver.so
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonINSTALLED_MDB_SCRIPTS=$(MDB_SCRIPTS:%=$(PROTODIR)$(MDB_SCRIPT_DIR)/%)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonINSTALLED_MDB_ALL=$(INSTALLED_MDB_MODULE) $(INSTALLED_MDB_LINKS) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(INSTALLED_MDB_SCRIPTS)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Since configure options aren't used to build the mdb modules, pass
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# those variables at build time
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMDB_BUILD_ENV=$(CONFIG_ENV) $(BUILD_ENV)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMDB_BUILD_ENV += CFLAGS="$(LIB_CFLAGS)" LDFLAGS="$(LIB_LDFLAGS)"
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonbuild_mdb: $(BUILT_MDB_MODULE)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(BUILT_MDB_SCRIPTS): $(SOURCE_TARGETS)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(BUILT_MDB_MODULE): $(CONFIGURE_TARGETS)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington (cd $(MDB_SOURCE_DIR) ; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(MDB_BUILD_ENV) $(MAKE) $(MAKEFLAGS) $(DEFAULT_BUILD_MAKEFLAGS))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater$(PROTODIR)$(MDB_MODULE_DIR) $(PROTODIR)$(MDB_SCRIPT_DIR):
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater mkdir -p $@
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater$(INSTALLED_MDB_MODULE): $(PROTODIR)$(MDB_MODULE_DIR) $(BUILT_MDB_MODULE)
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater $(INSTALL_SCRIPT) -c -m 0555 $(BUILT_MDB_MODULE) $@
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater$(INSTALLED_MDB_LINKS): $(PROTODIR)$(MDB_MODULE_DIR)
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater @rm -f $@
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater ln -s Xserver.so $@
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater$(INSTALLED_MDB_SCRIPTS): $(BUILT_MDB_SCRIPTS) $(PROTODIR)$(MDB_SCRIPT_DIR)
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater $(INSTALL_SCRIPT) -c -m 0555 $(MDB_SOURCE_DIR)/scripts/$(@F) \
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater $(PROTODIR)$(MDB_SCRIPT_DIR)/
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updaterinstall_mdb: $(INSTALLED_MDB_ALL)
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater $(INSTALL_SCRIPT) -c -m 0444 $(MDB_SOURCE_DIR)/README \
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater $(PROTODIR)$(MDB_SCRIPT_DIR)/
0d3490f93bb980fde704055e74c1b508987a5fe4Mark Andrews
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington## Dtrace docs rules
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington$(DTRACE_DOC_DIR)/Xserver-DTrace.xml: $(AUTOCONF_TARGET)
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtoninstall_docs: $(DTRACE_DOCS) $(PROTODIR)$(MODULE_DOC_DIR)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews $(INSTALL_SCRIPT) -c -m 0444 $(DTRACE_DOCS) $(PROTODIR)$(MODULE_DOC_DIR)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews