Makefile revision 212
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits###############################################################################
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Xorg server Makefile
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Use subject to license terms.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Permission is hereby granted, free of charge, to any person obtaining a
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# copy of this software and associated documentation files (the
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# "Software"), to deal in the Software without restriction, including
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# without limitation the rights to use, copy, modify, merge, publish,
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# distribute, and/or sell copies of the Software, and to permit persons
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# to whom the Software is furnished to do so, provided that the above
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# copyright notice(s) and this permission notice appear in all copies of
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# the Software and that both the above copyright notice(s) and this
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# permission notice appear in supporting documentation.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Except as contained in this notice, the name of a copyright holder
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# shall not be used in advertising or otherwise to promote the sale, use
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# or other dealings in this Software without prior written authorization
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# of the copyright holder.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# @(#)Makefile 1.55 07/08/31
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Package name used in tarballs
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Version number (used in path names)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Source tarball
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(XORGSERVER_VERS).tar.bz2
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Patches to apply to source after unpacking, in order
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Directory created by unpacking source
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsSOURCE_DIR=$(BUILD_DIR)/$(MODULE_NAME)-$(XORGSERVER_VERS)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Prefix for installation
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Man pages to apply Sun footer to & attributes to list
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# XXX: Need to adjust some of these to correct packages/stability
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits -a '{Availability, SUNWxorg-server} {Interface Stability, Volatile}'
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Binary built in tree
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsBUILD_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' >> $@