Makefile revision 1345
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews###############################################################################
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
71cef386fae61275b03e203825680b39fedaa8c6Tinderbox User# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Permission is hereby granted, free of charge, to any person obtaining a
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# copy of this software and associated documentation files (the "Software"),
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# to deal in the Software without restriction, including without limitation
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# the rights to use, copy, modify, merge, publish, distribute, sublicense,
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# and/or sell copies of the Software, and to permit persons to whom the
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Software is furnished to do so, subject to the following conditions:
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# The above copyright notice and this permission notice (including the next
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# paragraph) shall be included in all copies or substantial portions of the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Software.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# DEALINGS IN THE SOFTWARE.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Package name used in tarballs
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMODULE_NAME=mesa
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Package metadata
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntUPSTREAM = The Mesa 3-D Graphics Library
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntUPSTREAM_URL = http://mesa3d.org/
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntUPSTREAM_SET = yes
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMODULE_LICENSE = Mesa License (Mixed: MIT, LGPLv2, others)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_LICENSE_SET = yes
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_LICENSE_PREPEND = $(GPL_CHOICE_FILE)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_DESC = the Mesa 3-D Graphics Libraries
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserORACLE_TPNO = 9926
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# ARC cases that covered this module
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# LSARC/2005/109 MESA, Open Source OpenGL clone
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_ARC_CASES = LSARC/2005/109
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Version number (used in path names)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_VERSION=7.11.2
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Checksums for upstream tarball
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserTARBALL_MD5 = 0837c52698fe3252369c3fdb5195afcc
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserTARBALL_SHA1 = 5981ac2de8438e5f4a1f3561f2044d700c5f0de9
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Source tarball
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSOURCE_TARBALL_NAME=MesaLib-$(MODULE_VERSION).tar.bz2
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSOURCE_TARBALL_NAME_SET=yes
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Download site for source
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSOURCE_URL=ftp://ftp.freedesktop.org/pub/mesa/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSOURCE_URL_SET=yes
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserGIT_URL=$(FDO_GIT_URL)/mesa/mesa
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserGIT_URL_SET=yes
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Directory created by unpacking source
7e71f05d8643aca84914437c900cb716444507e4Tinderbox UserSOURCE_DIRNAME=Mesa-$(MODULE_VERSION)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSOURCE_DIRNAME_SET=yes
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSOURCE_DIR = $(BUILD_DIR)/$(SOURCE_DIRNAME)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Patches to apply to source after unpacking, in order
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntSOURCE_PATCHES= \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt CVE-2013-1993.patch,-p1 \
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt gallium-endian.patch,-p1 \
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt gcc-bitcount.patch,-p1 \
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt install-pc-dir.patch \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User glu-no-mangled-exports.patch \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User solaris-port.patch bromolow-chipset.patch \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User fix-gen6-viewperf-hang.patch
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# File created by running configure script
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserAUTOCONF_TARGET=$(SOURCE_DIR)/configs/autoconf
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserAUTOCONF_TARGET_SET=yes
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMODULE_ADD_CONFIGURE_TARGETS=set_pc_dir
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_INSTALL_DEPS=set_pc_dir
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntDRI_DRIVER_LIST_sparc=
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserDRI_DRIVER_LIST_i386=i915 i965 r200 r300 radeon
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserDRI_DRIVER_LIST= $(DRI_DRIVER_LIST_$(MACH)) swrast
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Command line options to GNU autoconf configure script
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_CONFIG_OPTS = --with-driver=dri --disable-egl --disable-gallium \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt --with-dri-driverdir='$(X11_SERVERMODS_DIR)/dri$(ARCHLIBSUBDIR)' \
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt --with-dri-drivers='$(DRI_DRIVER_LIST)' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt --with-gallium-drivers= --disable-gallium-llvm
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Build mesa with this define (CR 7032292)
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMODULE_CFLAGS = -D__EXTENSIONS__
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Override LDFLAGS passed to configure to not include CFLAGS, since that
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# breaks building libGLU with Sun Studio C++ compiler
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserMODULE_CONFIG_ENV = LDFLAGS="$(DEFAULT_CONFIG_LDFLAGS) $(ARCH_FLAGS) $(MODTYPE_LDFLAGS) $(MODULE_CFLAGS) $(MODULE_LDFLAGS)"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Add proto area to path to find makedepend
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMODULE_BUILD_ENV = PATH="$(PROTODIR)/$(X11_BIN_DIR):$(PATH)"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_CONFIG_ENV += $(MODULE_BUILD_ENV)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Need to use GNU Make to build
7e71f05d8643aca84914437c900cb716444507e4Tinderbox UserMODULE_MAKE=$(GNUMAKE)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_MAKE_SET=yes
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# To build with gcc, uncomment these lines and comment out the MODULE_CFLAGS
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_COMPILER=gcc
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_COMPILER_SET=yes
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Tell Sun compiler to not apply optimizations that increase binary sizes
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Without this flag, Studio 12 binaries are almost 2x bigger (CR 6808868)
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#MODULE_CFLAGS = -xspace
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Add include paths and linker paths needed for DRM modules
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_CPPFLAGS = -I$(PROTODIR)/usr/include/libdrm
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMODULE_LDFLAGS= -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) -z ignore
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Merge in additional sources from sun-src directory
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntADDITIONAL_SOURCE_DIR=sun-src
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# pkg-config files that need to have -R added
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntFIX_PC_FILES=src/*/*.pc.in src/mesa/drivers/dri/dri.pc.in
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt### Include common rulesets
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Huntinclude ../Makefile.inc
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Mesa makefiles use a different variable name/method for pkgconfig path
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Huntset_pc_dir: $(AUTOCONF_TARGET)
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt echo 'INSTALL_PC_DIR=$(PKGCONFIG_DIR)' >> $(AUTOCONF_TARGET)
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Move installed files to mesa subdirs and make links back
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntLIBRARIES_TO_DIRECT_LINK = libGLU.so.1 libGLw.so.1
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntLIBRARIES_TO_RUNTIME_LINK = libGL.so.1
350e5eecadfc5ee72b11b2cc46828c9a0bcd717cTinderbox UserLIBRARIES_TO_MOVE = $(LIBRARIES_TO_DIRECT_LINK) $(LIBRARIES_TO_RUNTIME_LINK)
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMESA_LIBDIR = $(PROTODIR)/usr/lib/mesa$(ARCHLIBSUBDIR)
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
HEADERS_TO_MOVE = GLwDrawA.h GLwDrawAP.h GLwMDrawA.h GLwMDrawAP.h \
gl.h gl_mangle.h glext.h glfbdev.h \
glu.h glu_mangle.h glx.h glx_mangle.h glxext.h \
mesa_wgl.h osmesa.h vms_x_fix.h wglext.h wmesa.h
HEADERS_TO_DIRECT_LINK = GLwDrawA.h GLwDrawAP.h GLwMDrawA.h GLwMDrawAP.h \
glu.h osmesa.h
HEADERS_TO_RUNTIME_LINK = gl.h glext.h glx.h glxext.h
# Run just once after all other install steps are done for both 32/64-bit
install: install_ogl_layout
install_ogl_layout: $(INSTALL_RULES)
-rm -rf $(PROTODIR)/usr/include/mesa
mkdir -p $(PROTODIR)/usr/include/mesa/internal
mv $(HEADERS_TO_MOVE:%=$(PROTODIR)/usr/include/GL/%) \
$(PROTODIR)/usr/include/mesa
mv $(PROTODIR)/usr/include/GL/internal/dri_interface.h \
$(PROTODIR)/usr/include/mesa/internal
ln -s ../../mesa/internal/dri_interface.h \
$(PROTODIR)/usr/include/GL/internal/
-rm -f $(HEADERS_TO_DIRECT_LINK:%=$(PROTODIR)/usr/include/GL/%) \
$(HEADERS_TO_RUNTIME_LINK:%=$(PROTODIR)/usr/include/GL/%)
ln -s $(HEADERS_TO_DIRECT_LINK:%=../mesa/%) \
$(HEADERS_TO_RUNTIME_LINK:%=../../../system/volatile/opengl/include/%) \
$(PROTODIR)/usr/include/GL
mkdir -p $(PROTODIR)/usr/lib/GL/$(SUBDIR64) \
$(PROTODIR)/usr/lib/mesa/$(SUBDIR64)
-rm -f $(PROTODIR)/usr/lib/GL/64 $(PROTODIR)/usr/lib/mesa/64
ln -s $(SUBDIR64) $(PROTODIR)/usr/lib/GL/64
ln -s $(SUBDIR64) $(PROTODIR)/usr/lib/mesa/64
-rm -f $(LIBRARIES_TO_MOVE:%=$(PROTODIR)/usr/lib/mesa/%) \
$(LIBRARIES_TO_MOVE:%=$(PROTODIR)/usr/lib/mesa/$(SUBDIR64)/%)
mv $(LIBRARIES_TO_MOVE:%=$(PROTODIR)/usr/lib/%) \
$(PROTODIR)/usr/lib/mesa/
mv $(LIBRARIES_TO_MOVE:%=$(PROTODIR)/usr/lib/$(SUBDIR64)/%) \
$(PROTODIR)/usr/lib/mesa/$(SUBDIR64)/
@for l in $(LIBRARIES_TO_MOVE) ; do \
$(START_CMD_ECHO) ; \
rm -f $(PROTODIR)/usr/lib/mesa/$${l%.1} \
$(PROTODIR)/usr/lib/GL/$${l%.1} \
$(PROTODIR)/usr/lib/mesa/$(SUBDIR64)/$${l%.1} \
$(PROTODIR)/usr/lib/GL/$(SUBDIR64)/$${l%.1} ; \
ln -s $${l} $(PROTODIR)/usr/lib/mesa/$${l%.1} ; \
ln -s $${l} $(PROTODIR)/usr/lib/GL/$${l%.1} ; \
ln -s $${l} $(PROTODIR)/usr/lib/mesa/$(SUBDIR64)/$${l%.1} ; \
ln -s $${l} $(PROTODIR)/usr/lib/GL/$(SUBDIR64)/$${l%.1} ; \
done
(cd $(PROTODIR)/usr/lib ; ln -s $(LIBRARIES_TO_MOVE:%=GL/%) .)
(cd $(PROTODIR)/usr/lib/$(SUBDIR64) ; \
ln -s $(LIBRARIES_TO_MOVE:%=../GL/$(SUBDIR64)/%) .)
-rm -f $(LIBRARIES_TO_DIRECT_LINK:%=$(PROTODIR)/usr/lib/GL/%)
(cd $(PROTODIR)/usr/lib/GL ; \
ln -s $(LIBRARIES_TO_DIRECT_LINK:%=../mesa/%) .)
-rm -f $(LIBRARIES_TO_DIRECT_LINK:%=$(PROTODIR)/usr/lib/GL/$(SUBDIR64)/%)
(cd $(PROTODIR)/usr/lib/GL/$(SUBDIR64) ; \
ln -s $(LIBRARIES_TO_DIRECT_LINK:%=../../mesa/$(SUBDIR64)/%) .)
-rm -f $(PROTODIR)/usr/lib/GL/libGL.so.1 \
$(PROTODIR)/usr/lib/GL/$(SUBDIR64)/libGL.so.1
ln -s ../../../system/volatile/opengl/lib/libGL.so.1 \
$(PROTODIR)/usr/lib/GL/libGL.so.1
ln -s ../../../../system/volatile/opengl/lib/$(SUBDIR64)/libGL.so.1 \
$(PROTODIR)/usr/lib/GL/$(SUBDIR64)/libGL.so.1
mkdir -p $(PROTODIR)/usr/X11/lib/$(SUBDIR64) \
$(PROTODIR)/usr/X11/include
-rm -f $(PROTODIR)/usr/X11/lib/GL $(PROTODIR)/usr/X11/lib/mesa
ln -s ../../lib/GL $(PROTODIR)/usr/X11/lib/GL
ln -s ../../lib/mesa $(PROTODIR)/usr/X11/lib/mesa
-rm -f $(PROTODIR)/usr/X11/lib/64
ln -s $(SUBDIR64) $(PROTODIR)/usr/X11/lib/64
@for l in $(LIBRARIES_TO_MOVE) ; do \
$(START_CMD_ECHO) ; \
rm -f $(PROTODIR)/usr/X11/lib/$${l} \
$(PROTODIR)/usr/X11/lib/$${l%.1} \
$(PROTODIR)/usr/X11/lib/$(SUBDIR64)/$${l} \
$(PROTODIR)/usr/X11/lib/$(SUBDIR64)/$${l%.1} ; \
ln -s $${l} $(PROTODIR)/usr/X11/lib/$${l%.1} ; \
ln -s GL/$${l} $(PROTODIR)/usr/X11/lib/$${l} ; \
ln -s $${l} $(PROTODIR)/usr/X11/lib/$(SUBDIR64)/$${l%.1} ; \
ln -s ../GL/$(SUBDIR64)/$${l} $(PROTODIR)/usr/X11/lib/$(SUBDIR64)/$${l} ; \
done
-rm -f $(PROTODIR)/usr/X11/include/GL $(PROTODIR)/usr/X11/include/mesa
ln -s ../../include/GL ../../include/mesa $(PROTODIR)/usr/X11/include/
$(TOP)/open-src/data/ogl-select/mesa_vendor_select root="$(PROTODIR)"