Makefile revision 212
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews###############################################################################
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Xorg server Makefile
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Use subject to license terms.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Permission is hereby granted, free of charge, to any person obtaining a
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# copy of this software and associated documentation files (the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# "Software"), to deal in the Software without restriction, including
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# without limitation the rights to use, copy, modify, merge, publish,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# distribute, and/or sell copies of the Software, and to permit persons
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# to whom the Software is furnished to do so, provided that the above
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# copyright notice(s) and this permission notice appear in all copies of
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# the Software and that both the above copyright notice(s) and this
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# permission notice appear in supporting documentation.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Except as contained in this notice, the name of a copyright holder
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# shall not be used in advertising or otherwise to promote the sale, use
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# or other dealings in this Software without prior written authorization
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# of the copyright holder.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# @(#)Makefile 1.55 07/08/31
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# Package name used in tarballs
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# Version number (used in path names)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Source tarball
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(XORGSERVER_VERS).tar.bz2
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Patches to apply to source after unpacking, in order
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Directory created by unpacking source
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSOURCE_DIR=$(BUILD_DIR)/$(MODULE_NAME)-$(XORGSERVER_VERS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Prefix for installation
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Man pages to apply Sun footer to & attributes to list
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# XXX: Need to adjust some of these to correct packages/stability
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User hw/xfree86/utils/xorgconfig/xorgconfig.man.pre \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSUNTOUCH_MAN_FLAGS= -p $(XORGSERVER_PREFIX)/bin/ \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User -a '{Availability, SUNWxorg-server} {Interface Stability, Volatile}'
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Binary built in tree
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinBUILD_TARGETS=$(XORGSERVER_BIN) $(BUILD_DIR)/mapfile-Xorg-externs
--with-default-font-path="$(FONTDIR)/TrueType/,$(FONTDIR)/Type1/,$(FONTDIR)/Type1/sun/,$(FONTDIR)/F3bitmaps/,$(FONTDIR)/misc/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/"
GCC_HEADERS:sh=gcc -print-search-dirs | awk -F: '$1 == "install" {printf "-idirafter %s/install-tools/include", $2}'
PKG_CONFIG_PATH=$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR)/pkgconfig:$(TOP)/common/pc-files/$(BUILD_DIR):/usr/lib$(ARCHLIBSUBDIR)/pkgconfig \
XSERVERCFLAGS_CFLAGS="-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -DXUSE_MTSAFE_API" \
LDFLAGS="$(GCC_PROG_LDFLAGS) -L/usr/sfw/lib$(ARCHLIBSUBDIR) -R/usr/sfw/lib$(ARCHLIBSUBDIR) $(LDPATH_ADD)" \
LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR):$(PROTODIR)$(X11_DIR)/lib$(ARCHLIBSUBDIR):$(PROTODIR)$(X11_DIR)/lib/xorgcfg$(ARCHLIBSUBDIR)
-e 's%^.* _XSERVER64 .*$$%#include <sys/isa_defs.h>\
cp -p $(SOURCE_DIR)/hw/xfree86/os-support/bus/xf86Sbus.h $(PROTODIR)$(X11_INCLUDES_DIR)/xorg/xf86Sbus.h
# Install xorg-server.pc in 32-bit pkgconfig dir on SPARC too
-rm -f $@
/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' >> $@