Makefile revision 747
f743002678eb67b99bbc29fee116b65d9530fec0wrowe###############################################################################
a34684a59b60a4173c25035d0c627ef17e6dc215rpluem# Xorg server Makefile
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Use is subject to license terms.
4da61833a1cbbca94094f9653fd970582b97a72etrawick# Permission is hereby granted, free of charge, to any person obtaining a
4da61833a1cbbca94094f9653fd970582b97a72etrawick# copy of this software and associated documentation files (the
4da61833a1cbbca94094f9653fd970582b97a72etrawick# "Software"), to deal in the Software without restriction, including
4da61833a1cbbca94094f9653fd970582b97a72etrawick# without limitation the rights to use, copy, modify, merge, publish,
4da61833a1cbbca94094f9653fd970582b97a72etrawick# distribute, and/or sell copies of the Software, and to permit persons
4789804be088bcd86ae637a29cdb7fda25169521jailletc# to whom the Software is furnished to do so, provided that the above
4789804be088bcd86ae637a29cdb7fda25169521jailletc# copyright notice(s) and this permission notice appear in all copies of
4789804be088bcd86ae637a29cdb7fda25169521jailletc# the Software and that both the above copyright notice(s) and this
4789804be088bcd86ae637a29cdb7fda25169521jailletc# permission notice appear in supporting documentation.
e50c3026198fd496f183cda4c32a202925476778covener# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
e50c3026198fd496f183cda4c32a202925476778covener# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
4f29b65ab4b547ad5dbe506e2d0ff5d12ead9247ylavic# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
4f29b65ab4b547ad5dbe506e2d0ff5d12ead9247ylavic# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic# Except as contained in this notice, the name of a copyright holder
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic# shall not be used in advertising or otherwise to promote the sale, use
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic# or other dealings in this Software without prior written authorization
69301145375a889e7e37caf7cc7321ac0f91801erpluem# of the copyright holder.
69301145375a889e7e37caf7cc7321ac0f91801erpluem# @(#)Makefile 1.77 09/06/24
506bfe33206b2fece40ef25f695af39dd4130facjkaluza# Build 32-bit or 64-bit?
2e6f4d654c96c98b761fb012fd25c5d5b1558c44sf# Package name used in tarballs
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic# Version number (used in path names)
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic# Patches to apply to source after unpacking, in order
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavic# *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic# Man pages to apply Sun footer to & attributes to list
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic# XXX: Need to adjust some of these to correct packages/stability
44ff304057225e944e220e981d434a046d14cf06covener# Binary built in tree
032982212dbcc7c3cce95bf89c503bb56e185ac7kbrand# Need to regenerate autoconf/automake files after patching
caad2986f81ab263f7af41467dd622dc9add17f3ylavic# Command line options to GNU autoconf configure script
caad2986f81ab263f7af41467dd622dc9add17f3ylavic# Need to override LD setting to add -xarch flags that libtool strips
caad2986f81ab263f7af41467dd622dc9add17f3ylavic# XXX: --disable-dga
1e2d421a36999d292042a5539971070d54aa6c63ylavic# pkg-config files that need to have -R added
fa7ed98b9dc94c5845cf845aea0a44ecacd290c9humbedooh# Additional install targets beyond the defaults
0b67eb8568cd58bb77082703951679b42cf098actrawickMODULE_ADD_INSTALL_TARGETS=install_extras $(EXTRA_INSTALL_$(MACH))
fb1985a97912b25ec6564c73e610a31e5fc6e25fcovener# Merge in additional sources from sun-src directory
e6b4bd1113567627ab6bb6c6a7105e1e01a7d889jailletc sed -e 's%#define XF86DRI 1%/* #define XF86DRI 1 */%' \
e466c40e1801982602ee0200c9e8b61cc148742djailletc -e 's%^.* _XSERVER64 .*$$%#include <sys/isa_defs.h>\
e466c40e1801982602ee0200c9e8b61cc148742djailletc#ifdef _LP64\
457468b82e59d01eba00dd9d0817309c8f5e414ejim#define _XSERVER64 1\
457468b82e59d01eba00dd9d0817309c8f5e414ejim $(SOURCE_DIR)/include/xorg-server.h > $(SDK_INCLUDES_DIR)/xorg-server.h
04983e3bd1754764eec7d6bb772fe3b0bf391771jorton cp -p $(SOURCE_DIR)/mi/mioverlay.h $(SDK_INCLUDES_DIR)/mioverlay.h
04983e3bd1754764eec7d6bb772fe3b0bf391771jorton cp -p $(SOURCE_DIR)/hw/xfree86/os-support/bus/xf86Sbus.h $(SDK_INCLUDES_DIR)/xf86Sbus.h
15890c9306ba98f6fc243e15a3c4778ddc7d773erpluem cp -p $(SOURCE_DIR)/hw/xfree86/dri/*.h $(SDK_INCLUDES_DIR)/
15660979a30d251681463de2e0584853890082accovener -rm -f $(SDK_INCLUDES_DIR)/xf1bpp.h $(SDK_INCLUDES_DIR)/xf4bpp.h
49dacedb6c387b786b7911082ff35121a45f414bcovener cp -p $(SOURCE_DIR)/hw/xfree86/doc/README.* $(PROTODIR)$(X11_DOC_DIR)/
28c31fb73c1264bd1d0ff932573677030b024c7dwrowe mkdir -p $(PROTODIR)$(X11_DIR)/share/hal/fdi/policy/10osvendor
28c31fb73c1264bd1d0ff932573677030b024c7dwrowe $(PROTODIR)$(X11_DIR)/share/hal/fdi/policy/10osvendor/10-x11-input.fdi
8491e0600f69b0405e156ea8a419653c065c645bcovener# Install xorg-server.pc in 32-bit pkgconfig dir on SPARC too
63b9f1f5880391261705f696d7d65507bbe9ace3covener cp -pf $(PROTODIR)$(PKGCONFIG_DIR_64)/xorg-server.pc \
49dacedb6c387b786b7911082ff35121a45f414bcovener cp -pf $(PROTODIR)$(PKGCONFIG_DIR_64)/xorg-server-uninstalled.pc \
49dacedb6c387b786b7911082ff35121a45f414bcovener $(PROTODIR)$(PKGCONFIG_DIR_32)/xorg-server-uninstalled.pc
3c990331fc6702119e4f5b8ba9eae3021aea5265jim printf '# Functions exported by Xorg server to loadable modules\n\n' > $@
3c990331fc6702119e4f5b8ba9eae3021aea5265jim /usr/ccs/bin/nm -g $(XORGSERVER_BIN) $(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)/libXfont.so | grep -v UNDEF | sed -n -e 's/^.*\|FUNC \|GLOB \|.*\|\([A-Za-z].*\)$$/ \1 = FUNCTION extern;/p' -e 's/^.*\|OBJT \|GLOB \|.*\|\([A-Za-z].*\)$$/ \1 = DATA extern;/p' >> $@