Makefile revision 98
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen###############################################################################
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Xorg server Makefile
009217abb57a24a4076092e8e4e165545747839eStephan Bosch# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Use subject to license terms.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Permission is hereby granted, free of charge, to any person obtaining a
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# copy of this software and associated documentation files (the
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# "Software"), to deal in the Software without restriction, including
5733207dc3ec10e6e5a6e0a8b30fbd1b061062b9Timo Sirainen# without limitation the rights to use, copy, modify, merge, publish,
cf7857bce68a33cdabe88bb15568e21921eb5ac7Aki Tuomi# distribute, and/or sell copies of the Software, and to permit persons
cf7857bce68a33cdabe88bb15568e21921eb5ac7Aki Tuomi# to whom the Software is furnished to do so, provided that the above
2adcf55dd8b0380cb2f1d2fd53accf448053d5d3Timo Sirainen# copyright notice(s) and this permission notice appear in all copies of
2adcf55dd8b0380cb2f1d2fd53accf448053d5d3Timo Sirainen# the Software and that both the above copyright notice(s) and this
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# permission notice appear in supporting documentation.
74c369c0587c5f6bb13d730675d8bc455c5c3f8eTimo Sirainen# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
74c369c0587c5f6bb13d730675d8bc455c5c3f8eTimo Sirainen# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
311cf367b949f360c9a90822f06f39df31ec69e3Timo Sirainen# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
SOURCE_PATCHES = \
IA.patch \
--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 \
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)
sed 's%#define XF86DRI 1%/* #define XF86DRI 1 */%' $(SOURCE_DIR)/include/xorg-server.h > $(PROTODIR)$(X11_INCLUDES_DIR)/xorg/xorg-server.h
-rm -f $@