Makefile revision 235
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk###############################################################################
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# Xvnc server Makefile
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# Based on Fedora's vnc-4.1.2-21.fc8/vnc.spec
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# Use subject to license terms.
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# Permission is hereby granted, free of charge, to any person obtaining a
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# copy of this software and associated documentation files (the
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# "Software"), to deal in the Software without restriction, including
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# without limitation the rights to use, copy, modify, merge, publish,
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# distribute, and/or sell copies of the Software, and to permit persons
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# to whom the Software is furnished to do so, provided that the above
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# copyright notice(s) and this permission notice appear in all copies of
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# the Software and that both the above copyright notice(s) and this
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# permission notice appear in supporting documentation.
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# Except as contained in this notice, the name of a copyright holder
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# shall not be used in advertising or otherwise to promote the sale, use
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# or other dealings in this Software without prior written authorization
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# of the copyright holder.
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# @(#)Makefile 1.3 07/10/11
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# Build 32-bit or 64-bit?
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# Package name used in tarballs
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# Name used in server-specific rules in ../Makefile.inc
03100a6332bd4edc7a53091fcf7c9a7131bcdaa7vk# Version number (used in path names)
#SOURCE_URL=http://www.realvnc.com/dist/$(SOURCE_TARBALL_NAME)
SOURCE_PATCHES = \
c++public.patch \
# This step has to be done before including common/Makefile.inc so
PATCH_CMD=`echo $$p | awk -F, '{if (NF > 1) FLAGS = $$2; else FLAGS="-p0" ; printf "gpatch -d $(XORG_SOURCE_DIR) %s < ../xorg/%s\n", FLAGS, $$1}'` ; \
eval $${PATCH_CMD} ; \
# This step has to be done after including common/Makefile.inc since
unix/xorg-x11-server-source/hw/vnc/ ; \
cp -p unix/xorg-x11-server-source/cfb/cfb.h \
unix/xorg-x11-server-source/hw/vnc/ ; \
XVNC_CPPFLAGS = \