Compare commits
	
		
			197 Commits
		
	
	
		
			mesa-9.0.3
			...
			mesa_7_7_1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 0c88e34049 | ||
|  | 663642b435 | ||
|  | 535742d75f | ||
|  | 8fe3b3f66a | ||
|  | 4cf14fa80b | ||
|  | 6ec259eb17 | ||
|  | ca1c8a183d | ||
|  | 3f3b1094bf | ||
|  | e33121b2d8 | ||
|  | 415d0326bb | ||
|  | 7e24ce2d9b | ||
|  | 2ae754b7b9 | ||
|  | 501156b36b | ||
|  | 4ff3244457 | ||
|  | 3889556d70 | ||
|  | 6412046f65 | ||
|  | 6e96cea6e2 | ||
|  | 3a3ef3d6c9 | ||
|  | 98aed6dc69 | ||
|  | d3a607f889 | ||
|  | 00e41e007e | ||
|  | 6624845a5d | ||
|  | c9c54180e4 | ||
|  | 93e77b0028 | ||
|  | 0c9e8e6c6e | ||
|  | c50477c255 | ||
|  | 3bf13656d3 | ||
|  | fa4083d38b | ||
|  | d311ded31d | ||
|  | 34f0207161 | ||
|  | 8d3f629a13 | ||
|  | b98ef495d4 | ||
|  | 21c91b410a | ||
|  | a8f3b3f88a | ||
|  | e8a8c5e339 | ||
|  | 7941d31ee6 | ||
|  | 842351dd76 | ||
|  | d74929702f | ||
|  | 1e431f0454 | ||
|  | 4cc8d1d79f | ||
|  | 3d2bc6848a | ||
|  | d5327538e7 | ||
|  | 86ac140937 | ||
|  | b584e780ab | ||
|  | 981e8a2087 | ||
|  | 72d380b363 | ||
|  | cf8af9bcf1 | ||
|  | 7123f3d77a | ||
|  | 2edb1b9534 | ||
|  | 69334d6784 | ||
|  | 61482ddc1c | ||
|  | b0e84e22d5 | ||
|  | c0e8d443fe | ||
|  | b95d4cd680 | ||
|  | 293f4d51b4 | ||
|  | f0e99179bc | ||
|  | 69a94e1452 | ||
|  | bc7e12e5e3 | ||
|  | 7accf8ced6 | ||
|  | 52d83efdbc | ||
|  | 1702db3a35 | ||
|  | fa6eee135e | ||
|  | b5fa760972 | ||
|  | 69cf45cdae | ||
|  | f5ffbe0bc3 | ||
|  | 46d8ca023d | ||
|  | 9bef69782d | ||
|  | b0e5dcb859 | ||
|  | bcd561c667 | ||
|  | c98eced9ae | ||
|  | 13cbb5fff6 | ||
|  | dd8d78c908 | ||
|  | 9d17ad2891 | ||
|  | d437d905e6 | ||
|  | 551c96979e | ||
|  | c1a4f249f1 | ||
|  | 18ff85e91d | ||
|  | 12617c7e30 | ||
|  | 5dbf44953c | ||
|  | a51d638ff3 | ||
|  | 770945cff4 | ||
|  | eaa4066bfc | ||
|  | 46cf606cd3 | ||
|  | a69a7b9688 | ||
|  | eb7590a0d9 | ||
|  | 86870a691c | ||
|  | 7c34c237a2 | ||
|  | 13cd4298fb | ||
|  | 3b724f91c5 | ||
|  | 2077f375c7 | ||
|  | 055265b0a3 | ||
|  | 3094adb3ca | ||
|  | 7c7247ddbf | ||
|  | af2023e31c | ||
|  | 2eedbc94c2 | ||
|  | 672f6bb545 | ||
|  | ab6bcef99a | ||
|  | c5a4cfb03f | ||
|  | df944efdbf | ||
|  | 1ff9cd5079 | ||
|  | 4a2b54cbdb | ||
|  | 6bd6a15ab3 | ||
|  | c1a5c9bb4c | ||
|  | b3c7dc6ff2 | ||
|  | a1025ec041 | ||
|  | 3a4068474c | ||
|  | 1ae976be4a | ||
|  | b685927156 | ||
|  | df0c8d029d | ||
|  | 3477dc4c48 | ||
|  | 0426bccadd | ||
|  | 841333cd21 | ||
|  | e541dceb67 | ||
|  | fea7a70a1a | ||
|  | 426f607aaa | ||
|  | 408f32dc16 | ||
|  | 94028edfc5 | ||
|  | 7fec5f88a5 | ||
|  | 67007670bb | ||
|  | e8865f199d | ||
|  | 2d3262d47d | ||
|  | 3470d821ba | ||
|  | 0371956d66 | ||
|  | 45c4addea7 | ||
|  | 1eba0eb37d | ||
|  | d87fb5e003 | ||
|  | 4be7922a8e | ||
|  | a1cac0732b | ||
|  | fb32e0fcc5 | ||
|  | 9564a6fa13 | ||
|  | 0b9990b2fd | ||
|  | 8ce99c85e7 | ||
|  | a2c402ba53 | ||
|  | 1ceb906c12 | ||
|  | fb1fe8e76f | ||
|  | f8b05566aa | ||
|  | a6148b8eba | ||
|  | 64be837b0b | ||
|  | e070c1d183 | ||
|  | e6ee4b49c4 | ||
|  | e65029e9b3 | ||
|  | 3ca6cb3440 | ||
|  | 34b36277b7 | ||
|  | c8ea0212fe | ||
|  | 7d6cbcdd9a | ||
|  | 9d9c1f17dc | ||
|  | f1afb352da | ||
|  | e4c3abbf55 | ||
|  | 141b5775c0 | ||
|  | c0d5f1d3ad | ||
|  | 70947e531e | ||
|  | 7b92cb45b2 | ||
|  | 43e4b58422 | ||
|  | e0d01c9d7f | ||
|  | b90b3667a1 | ||
|  | 0123a2d042 | ||
|  | 51a2cc5499 | ||
|  | f5145a6ec3 | ||
|  | ddedfe12d4 | ||
|  | cb5447f79c | ||
|  | 9fd3c74724 | ||
|  | 4d1234e222 | ||
|  | 3cba779e16 | ||
|  | 23eda89ec8 | ||
|  | 6e68898b05 | ||
|  | 1befcd5a2a | ||
|  | 12ba355978 | ||
|  | a0907a645f | ||
|  | 1acf7a09e7 | ||
|  | 14dc02a1b2 | ||
|  | 88cf87bd56 | ||
|  | 31b3420688 | ||
|  | 4e95983fa8 | ||
|  | 4e506eac8f | ||
|  | 46167149ce | ||
|  | 96ec4eb755 | ||
|  | e20547042c | ||
|  | 0451d0fd01 | ||
|  | aa8b23e077 | ||
|  | 4eb48a3af7 | ||
|  | 8db8adfd01 | ||
|  | 8e240d7e0e | ||
|  | 40298bf272 | ||
|  | a0518e66b2 | ||
|  | 82c76cd16f | ||
|  | 50e890bc51 | ||
|  | bba9557019 | ||
|  | 2041d3e4b7 | ||
|  | 77b7b3a1ab | ||
|  | 0dab80fbfb | ||
|  | e3257912e0 | ||
|  | 15fe491822 | ||
|  | ac597f5acc | ||
|  | 5cb255f0d7 | ||
|  | 2f28ca0a27 | ||
|  | 0580e488da | ||
|  | 5435f790fd | 
| @@ -1,11 +0,0 @@ | ||||
| ((nil | ||||
|   (indent-tabs-mode . nil) | ||||
|   (tab-width . 8) | ||||
|   (c-basic-offset . 3) | ||||
|   (c-file-style . "stroustrup") | ||||
|   (fill-column . 78) | ||||
|   (eval . (progn | ||||
| 	    (c-set-offset 'innamespace '0) | ||||
| 	    (c-set-offset 'inline-open '0))) | ||||
|   ) | ||||
|  ) | ||||
							
								
								
									
										10
									
								
								.emacs-dirvars
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.emacs-dirvars
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| ;; -*- emacs-lisp -*- | ||||
| ;; | ||||
| ;; This file is processed by the dirvars emacs package.  Each variable | ||||
| ;; setting below is performed when this dirvars file is loaded. | ||||
| ;; | ||||
| indent-tabs-mode: nil | ||||
| tab-width: 8 | ||||
| c-basic-offset: 3 | ||||
| kde-emacs-after-parent-string: "" | ||||
| evaluate: (c-set-offset 'inline-open '0) | ||||
							
								
								
									
										18
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -2,30 +2,20 @@ | ||||
| *.dll | ||||
| *.exe | ||||
| *.ilk | ||||
| *.la | ||||
| *.lo | ||||
| *.o | ||||
| *.obj | ||||
| *.os | ||||
| *.pc | ||||
| *.pdb | ||||
| *.pyc | ||||
| *.pyo | ||||
| *.so | ||||
| *.so.* | ||||
| *.sw[a-z] | ||||
| *.tar | ||||
| *.tar.bz2 | ||||
| *.tar.gz | ||||
| *.zip | ||||
| *~ | ||||
| depend | ||||
| depend.bak | ||||
| bin/ltmain.sh | ||||
| lib | ||||
| lib64 | ||||
| configure | ||||
| configure.lineno | ||||
| autom4te.cache | ||||
| aclocal.m4 | ||||
| config.log | ||||
| @@ -34,11 +24,3 @@ cscope* | ||||
| .scon* | ||||
| config.py | ||||
| build | ||||
| libtool | ||||
| manifest.txt | ||||
| Makefile.in | ||||
| .dir-locals.el | ||||
| .deps/ | ||||
| .dirstamp | ||||
| .libs/ | ||||
| /Makefile | ||||
|   | ||||
| @@ -1,65 +0,0 @@ | ||||
| # Mesa 3-D graphics library | ||||
| # | ||||
| # Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com> | ||||
| # Copyright (C) 2010-2011 LunarG Inc. | ||||
| # | ||||
| # Permission is hereby granted, free of charge, to any person obtaining a | ||||
| # copy of this software and associated documentation files (the "Software"), | ||||
| # to deal in the Software without restriction, including without limitation | ||||
| # the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||||
| # and/or sell copies of the Software, and to permit persons to whom the | ||||
| # Software is furnished to do so, subject to the following conditions: | ||||
| # | ||||
| # The above copyright notice and this permission notice shall be included | ||||
| # in all copies or substantial portions of the Software. | ||||
| # | ||||
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL | ||||
| # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
| # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||||
| # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||||
| # DEALINGS IN THE SOFTWARE. | ||||
|  | ||||
| # use c99 compiler by default | ||||
| ifeq ($(LOCAL_CC),) | ||||
| ifeq ($(LOCAL_IS_HOST_MODULE),true) | ||||
| LOCAL_CC := $(HOST_CC) -std=c99 | ||||
| else | ||||
| LOCAL_CC := $(TARGET_CC) -std=c99 | ||||
| endif | ||||
| endif | ||||
|  | ||||
| LOCAL_C_INCLUDES += \ | ||||
| 	$(MESA_TOP)/include | ||||
|  | ||||
| # define ANDROID_VERSION (e.g., 4.0.x => 0x0400) | ||||
| major := $(word 1, $(subst ., , $(PLATFORM_VERSION))) | ||||
| minor := $(word 2, $(subst ., , $(PLATFORM_VERSION))) | ||||
| LOCAL_CFLAGS += \ | ||||
| 	-DANDROID_VERSION=0x0$(major)0$(minor) | ||||
|  | ||||
| LOCAL_CFLAGS += \ | ||||
| 	-DHAVE_PTHREAD=1 \ | ||||
| 	-fvisibility=hidden \ | ||||
| 	-Wno-sign-compare | ||||
|  | ||||
| ifeq ($(strip $(MESA_ENABLE_ASM)),true) | ||||
| ifeq ($(TARGET_ARCH),x86) | ||||
| LOCAL_CFLAGS += \ | ||||
| 	-DUSE_X86_ASM \ | ||||
| 	-DHAVE_DLOPEN \ | ||||
|  | ||||
| endif | ||||
| endif | ||||
|  | ||||
| LOCAL_CPPFLAGS += \ | ||||
| 	-Wno-error=non-virtual-dtor \ | ||||
| 	-Wno-non-virtual-dtor | ||||
|  | ||||
| # uncomment to keep the debug symbols | ||||
| #LOCAL_STRIP_MODULE := false | ||||
|  | ||||
| ifeq ($(strip $(LOCAL_MODULE_TAGS)),) | ||||
| LOCAL_MODULE_TAGS := optional | ||||
| endif | ||||
							
								
								
									
										94
									
								
								Android.mk
									
									
									
									
									
								
							
							
						
						
									
										94
									
								
								Android.mk
									
									
									
									
									
								
							| @@ -1,94 +0,0 @@ | ||||
| # Mesa 3-D graphics library | ||||
| # | ||||
| # Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com> | ||||
| # Copyright (C) 2010-2011 LunarG Inc. | ||||
| # | ||||
| # Permission is hereby granted, free of charge, to any person obtaining a | ||||
| # copy of this software and associated documentation files (the "Software"), | ||||
| # to deal in the Software without restriction, including without limitation | ||||
| # the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||||
| # and/or sell copies of the Software, and to permit persons to whom the | ||||
| # Software is furnished to do so, subject to the following conditions: | ||||
| # | ||||
| # The above copyright notice and this permission notice shall be included | ||||
| # in all copies or substantial portions of the Software. | ||||
| # | ||||
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL | ||||
| # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
| # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||||
| # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||||
| # DEALINGS IN THE SOFTWARE. | ||||
|  | ||||
| # BOARD_GPU_DRIVERS should be defined.  The valid values are | ||||
| # | ||||
| #   classic drivers: i915 i965 | ||||
| #   gallium drivers: swrast i915g nouveau r300g r600g radeonsi vmwgfx | ||||
| # | ||||
| # The main target is libGLES_mesa.  For each classic driver enabled, a DRI | ||||
| # module will also be built.  DRI modules will be loaded by libGLES_mesa. | ||||
|  | ||||
| MESA_TOP := $(call my-dir) | ||||
| MESA_COMMON_MK := $(MESA_TOP)/Android.common.mk | ||||
| MESA_PYTHON2 := python | ||||
|  | ||||
| DRM_TOP := external/drm | ||||
| DRM_GRALLOC_TOP := hardware/drm_gralloc | ||||
|  | ||||
| classic_drivers := i915 i965 | ||||
| gallium_drivers := swrast i915g nouveau r300g r600g radeonsi vmwgfx | ||||
|  | ||||
| MESA_GPU_DRIVERS := $(strip $(BOARD_GPU_DRIVERS)) | ||||
|  | ||||
| # warn about invalid drivers | ||||
| invalid_drivers := $(filter-out \ | ||||
| 	$(classic_drivers) $(gallium_drivers), $(MESA_GPU_DRIVERS)) | ||||
| ifneq ($(invalid_drivers),) | ||||
| $(warning invalid GPU drivers: $(invalid_drivers)) | ||||
| # tidy up | ||||
| MESA_GPU_DRIVERS := $(filter-out $(invalid_drivers), $(MESA_GPU_DRIVERS)) | ||||
| endif | ||||
|  | ||||
| # host and target must be the same arch to generate matypes.h | ||||
| ifeq ($(TARGET_ARCH),$(HOST_ARCH)) | ||||
| MESA_ENABLE_ASM := true | ||||
| else | ||||
| MESA_ENABLE_ASM := false | ||||
| endif | ||||
|  | ||||
| ifneq ($(filter $(classic_drivers), $(MESA_GPU_DRIVERS)),) | ||||
| MESA_BUILD_CLASSIC := true | ||||
| else | ||||
| MESA_BUILD_CLASSIC := false | ||||
| endif | ||||
|  | ||||
| ifneq ($(filter $(gallium_drivers), $(MESA_GPU_DRIVERS)),) | ||||
| MESA_BUILD_GALLIUM := true | ||||
| else | ||||
| MESA_BUILD_GALLIUM := false | ||||
| endif | ||||
|  | ||||
| # add subdirectories | ||||
| ifneq ($(strip $(MESA_GPU_DRIVERS)),) | ||||
|  | ||||
| SUBDIRS := \ | ||||
| 	src/mapi \ | ||||
| 	src/glsl \ | ||||
| 	src/mesa \ | ||||
| 	src/egl/main | ||||
|  | ||||
| ifeq ($(strip $(MESA_BUILD_CLASSIC)),true) | ||||
| SUBDIRS += \ | ||||
| 	src/egl/drivers/dri2 \ | ||||
| 	src/mesa/drivers/dri | ||||
| endif | ||||
|  | ||||
| ifeq ($(strip $(MESA_BUILD_GALLIUM)),true) | ||||
| SUBDIRS += src/gallium | ||||
| endif | ||||
|  | ||||
| mkfiles := $(patsubst %,$(MESA_TOP)/%/Android.mk,$(SUBDIRS)) | ||||
| include $(mkfiles) | ||||
|  | ||||
| endif | ||||
							
								
								
									
										577
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										577
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,577 @@ | ||||
| # Top-level Mesa makefile | ||||
|  | ||||
| TOP = . | ||||
|  | ||||
| SUBDIRS = src progs | ||||
|  | ||||
|  | ||||
| default: $(TOP)/configs/current | ||||
| 	@for dir in $(SUBDIRS) ; do \ | ||||
| 		if [ -d $$dir ] ; then \ | ||||
| 			(cd $$dir && $(MAKE)) || exit 1 ; \ | ||||
| 		fi \ | ||||
| 	done | ||||
|  | ||||
| all: default | ||||
|  | ||||
|  | ||||
| doxygen: | ||||
| 	cd doxygen && $(MAKE) | ||||
|  | ||||
| clean: | ||||
| 	-@touch $(TOP)/configs/current | ||||
| 	-@for dir in $(SUBDIRS) ; do \ | ||||
| 		if [ -d $$dir ] ; then \ | ||||
| 			(cd $$dir && $(MAKE) clean) ; \ | ||||
| 		fi \ | ||||
| 	done | ||||
| 	-@test -s $(TOP)/configs/current || rm -f $(TOP)/configs/current | ||||
|  | ||||
|  | ||||
| realclean: clean | ||||
| 	-rm -rf lib* | ||||
| 	-rm -f $(TOP)/configs/current | ||||
| 	-rm -f $(TOP)/configs/autoconf | ||||
| 	-rm -rf autom4te.cache | ||||
| 	-find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \ | ||||
| 	  -name depend -o -name depend.bak ')' -exec rm -f '{}' ';' | ||||
|  | ||||
|  | ||||
| distclean: realclean | ||||
|  | ||||
|  | ||||
| install: | ||||
| 	@for dir in $(SUBDIRS) ; do \ | ||||
| 		if [ -d $$dir ] ; then \ | ||||
| 			(cd $$dir && $(MAKE) install) || exit 1 ; \ | ||||
| 		fi \ | ||||
| 	done | ||||
|  | ||||
|  | ||||
| .PHONY: default doxygen clean realclean distclean install linux-directfb-install | ||||
|  | ||||
| # If there's no current configuration file | ||||
| $(TOP)/configs/current: | ||||
| 	@echo | ||||
| 	@echo | ||||
| 	@echo "Please choose a configuration from the following list:" | ||||
| 	@ls -1 $(TOP)/configs | grep -v "current\|default\|CVS\|autoconf.*" | ||||
| 	@echo | ||||
| 	@echo "Then type 'make <config>' (ex: 'make linux-x86')" | ||||
| 	@echo | ||||
| 	@echo "Or, run './configure' then 'make'" | ||||
| 	@echo "See './configure --help' for details" | ||||
| 	@echo | ||||
| 	@echo "(ignore the following error message)" | ||||
| 	@exit 1 | ||||
|  | ||||
|  | ||||
| # Rules to set/install a specific build configuration | ||||
| aix \ | ||||
| aix-64 \ | ||||
| aix-64-static \ | ||||
| aix-gcc \ | ||||
| aix-static \ | ||||
| autoconf \ | ||||
| bluegene-osmesa \ | ||||
| bluegene-xlc-osmesa \ | ||||
| beos \ | ||||
| catamount-osmesa-pgi \ | ||||
| darwin \ | ||||
| darwin-fat-32bit \ | ||||
| darwin-fat-all \ | ||||
| darwin-static \ | ||||
| darwin-static-x86ppc \ | ||||
| freebsd \ | ||||
| freebsd-dri \ | ||||
| freebsd-dri-amd64 \ | ||||
| freebsd-dri-x86 \ | ||||
| hpux10 \ | ||||
| hpux10-gcc \ | ||||
| hpux10-static \ | ||||
| hpux11-32 \ | ||||
| hpux11-32-static \ | ||||
| hpux11-32-static-nothreads \ | ||||
| hpux11-64 \ | ||||
| hpux11-64-static \ | ||||
| hpux11-ia64 \ | ||||
| hpux11-ia64-static \ | ||||
| hpux9 \ | ||||
| hpux9-gcc \ | ||||
| irix6-64 \ | ||||
| irix6-64-static \ | ||||
| irix6-n32 \ | ||||
| irix6-n32-static \ | ||||
| irix6-o32 \ | ||||
| irix6-o32-static \ | ||||
| linux \ | ||||
| linux-alpha \ | ||||
| linux-alpha-static \ | ||||
| linux-cell \ | ||||
| linux-cell-debug \ | ||||
| linux-debug \ | ||||
| linux-directfb \ | ||||
| linux-dri \ | ||||
| linux-dri-debug \ | ||||
| linux-dri-x86 \ | ||||
| linux-dri-x86-64 \ | ||||
| linux-dri-ppc \ | ||||
| linux-dri-xcb \ | ||||
| linux-egl \ | ||||
| linux-indirect \ | ||||
| linux-fbdev \ | ||||
| linux-glide \ | ||||
| linux-ia64-icc \ | ||||
| linux-ia64-icc-static \ | ||||
| linux-icc \ | ||||
| linux-icc-static \ | ||||
| linux-llvm \ | ||||
| linux-osmesa \ | ||||
| linux-osmesa-static \ | ||||
| linux-osmesa16 \ | ||||
| linux-osmesa16-static \ | ||||
| linux-osmesa32 \ | ||||
| linux-ppc \ | ||||
| linux-ppc-static \ | ||||
| linux-profile \ | ||||
| linux-solo \ | ||||
| linux-solo-x86 \ | ||||
| linux-solo-ia64 \ | ||||
| linux-sparc \ | ||||
| linux-sparc5 \ | ||||
| linux-static \ | ||||
| linux-ultrasparc \ | ||||
| linux-tcc \ | ||||
| linux-x86 \ | ||||
| linux-x86-debug \ | ||||
| linux-x86-32 \ | ||||
| linux-x86-64 \ | ||||
| linux-x86-64-debug \ | ||||
| linux-x86-64-profile \ | ||||
| linux-x86-64-static \ | ||||
| linux-x86-glide \ | ||||
| linux-x86-profile \ | ||||
| linux-x86-static \ | ||||
| netbsd \ | ||||
| openbsd \ | ||||
| osf1 \ | ||||
| osf1-static \ | ||||
| solaris-x86 \ | ||||
| solaris-x86-gcc \ | ||||
| solaris-x86-gcc-static \ | ||||
| sunos4 \ | ||||
| sunos4-gcc \ | ||||
| sunos4-static \ | ||||
| sunos5 \ | ||||
| sunos5-gcc \ | ||||
| sunos5-64-gcc \ | ||||
| sunos5-smp \ | ||||
| sunos5-v8 \ | ||||
| sunos5-v8-static \ | ||||
| sunos5-v9 \ | ||||
| sunos5-v9-static \ | ||||
| sunos5-v9-cc-g++ \ | ||||
| ultrix-gcc: | ||||
| 	@ if test -f configs/current || test -L configs/current ; then \ | ||||
| 		echo "Please run 'make realclean' before changing configs" ; \ | ||||
| 		exit 1 ; \ | ||||
| 	fi | ||||
| 	(cd configs && rm -f current && ln -s $@ current) | ||||
| 	$(MAKE) default | ||||
|  | ||||
|  | ||||
| # Rules for making release tarballs | ||||
|  | ||||
| VERSION=7.7.1 | ||||
| DIRECTORY = Mesa-$(VERSION) | ||||
| LIB_NAME = MesaLib-$(VERSION) | ||||
| DEMO_NAME = MesaDemos-$(VERSION) | ||||
| GLUT_NAME = MesaGLUT-$(VERSION) | ||||
|  | ||||
| MAIN_FILES = \ | ||||
| 	$(DIRECTORY)/Makefile*						\ | ||||
| 	$(DIRECTORY)/configure						\ | ||||
| 	$(DIRECTORY)/configure.ac					\ | ||||
| 	$(DIRECTORY)/acinclude.m4					\ | ||||
| 	$(DIRECTORY)/aclocal.m4						\ | ||||
| 	$(DIRECTORY)/bin/config.guess					\ | ||||
| 	$(DIRECTORY)/bin/config.sub					\ | ||||
| 	$(DIRECTORY)/bin/install-sh					\ | ||||
| 	$(DIRECTORY)/bin/mklib						\ | ||||
| 	$(DIRECTORY)/bin/minstall					\ | ||||
| 	$(DIRECTORY)/bin/version.mk					\ | ||||
| 	$(DIRECTORY)/configs/[a-z]*					\ | ||||
| 	$(DIRECTORY)/docs/*.html					\ | ||||
| 	$(DIRECTORY)/docs/COPYING					\ | ||||
| 	$(DIRECTORY)/docs/README.*					\ | ||||
| 	$(DIRECTORY)/docs/RELNOTES*					\ | ||||
| 	$(DIRECTORY)/docs/*.spec					\ | ||||
| 	$(DIRECTORY)/include/GL/internal/glcore.h			\ | ||||
| 	$(DIRECTORY)/include/GL/dmesa.h					\ | ||||
| 	$(DIRECTORY)/include/GL/ggimesa.h				\ | ||||
| 	$(DIRECTORY)/include/GL/gl.h					\ | ||||
| 	$(DIRECTORY)/include/GL/glext.h					\ | ||||
| 	$(DIRECTORY)/include/GL/gl_mangle.h				\ | ||||
| 	$(DIRECTORY)/include/GL/glu.h					\ | ||||
| 	$(DIRECTORY)/include/GL/glu_mangle.h				\ | ||||
| 	$(DIRECTORY)/include/GL/glx.h					\ | ||||
| 	$(DIRECTORY)/include/GL/glxext.h				\ | ||||
| 	$(DIRECTORY)/include/GL/glx_mangle.h				\ | ||||
| 	$(DIRECTORY)/include/GL/glfbdev.h				\ | ||||
| 	$(DIRECTORY)/include/GL/mesa_wgl.h				\ | ||||
| 	$(DIRECTORY)/include/GL/mglmesa.h				\ | ||||
| 	$(DIRECTORY)/include/GL/osmesa.h				\ | ||||
| 	$(DIRECTORY)/include/GL/svgamesa.h				\ | ||||
| 	$(DIRECTORY)/include/GL/vms_x_fix.h				\ | ||||
| 	$(DIRECTORY)/include/GL/wglext.h				\ | ||||
| 	$(DIRECTORY)/include/GL/wmesa.h					\ | ||||
| 	$(DIRECTORY)/src/Makefile					\ | ||||
| 	$(DIRECTORY)/src/mesa/Makefile*					\ | ||||
| 	$(DIRECTORY)/src/mesa/sources.mak				\ | ||||
| 	$(DIRECTORY)/src/mesa/descrip.mms				\ | ||||
| 	$(DIRECTORY)/src/mesa/gl.pc.in					\ | ||||
| 	$(DIRECTORY)/src/mesa/osmesa.pc.in				\ | ||||
| 	$(DIRECTORY)/src/mesa/depend					\ | ||||
| 	$(DIRECTORY)/src/mesa/main/*.[chS]				\ | ||||
| 	$(DIRECTORY)/src/mesa/main/descrip.mms				\ | ||||
| 	$(DIRECTORY)/src/mesa/glapi/*.[chS]				\ | ||||
| 	$(DIRECTORY)/src/mesa/math/*.[ch]				\ | ||||
| 	$(DIRECTORY)/src/mesa/math/descrip.mms				\ | ||||
| 	$(DIRECTORY)/src/mesa/shader/*.[chly]				\ | ||||
| 	$(DIRECTORY)/src/mesa/shader/Makefile				\ | ||||
| 	$(DIRECTORY)/src/mesa/shader/descrip.mms			\ | ||||
| 	$(DIRECTORY)/src/mesa/shader/grammar/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/shader/slang/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/shader/slang/descrip.mms			\ | ||||
| 	$(DIRECTORY)/src/mesa/shader/slang/library/*.[ch]		\ | ||||
| 	$(DIRECTORY)/src/mesa/shader/slang/library/*.gc			\ | ||||
| 	$(DIRECTORY)/src/mesa/shader/slang/library/*.syn		\ | ||||
| 	$(DIRECTORY)/src/mesa/shader/slang/library/Makefile		\ | ||||
| 	$(DIRECTORY)/src/mesa/swrast/*.[ch]				\ | ||||
| 	$(DIRECTORY)/src/mesa/swrast/descrip.mms			\ | ||||
| 	$(DIRECTORY)/src/mesa/swrast_setup/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/swrast_setup/descrip.mms			\ | ||||
| 	$(DIRECTORY)/src/mesa/vbo/*.[chS]				\ | ||||
| 	$(DIRECTORY)/src/mesa/vbo/descrip.mms				\ | ||||
| 	$(DIRECTORY)/src/mesa/tnl/*.[chS]				\ | ||||
| 	$(DIRECTORY)/src/mesa/tnl/descrip.mms				\ | ||||
| 	$(DIRECTORY)/src/mesa/tnl_dd/*.[ch]				\ | ||||
| 	$(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch]				\ | ||||
| 	$(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/Makefile				\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/beos/*.cpp			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/beos/Makefile			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/common/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/common/descrip.mms		\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/directfb/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/directfb/Makefile			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dos/*.[chS]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/fbdev/Makefile			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/glide/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/ggi/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in		\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/ggi/default/*.c			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in	\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/ggi/display/*.c			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in		\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h		\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/osmesa/Makefile			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win		\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms		\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/svga/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/windows/*/*.def			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/x11/Makefile			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/x11/descrip.mms			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/x11/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/glslcompiler/Makefile		\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/glslcompiler/glslcompiler.c	\ | ||||
| 	$(DIRECTORY)/src/mesa/ppc/*.[ch]				\ | ||||
| 	$(DIRECTORY)/src/mesa/sparc/*.[chS]				\ | ||||
| 	$(DIRECTORY)/src/mesa/x86/Makefile				\ | ||||
| 	$(DIRECTORY)/src/mesa/x86/*.[ch]				\ | ||||
| 	$(DIRECTORY)/src/mesa/x86/*.S					\ | ||||
| 	$(DIRECTORY)/src/mesa/x86/rtasm/*.[ch]				\ | ||||
| 	$(DIRECTORY)/src/mesa/x86-64/*.[chS]				\ | ||||
| 	$(DIRECTORY)/src/mesa/x86-64/Makefile				\ | ||||
| 	$(DIRECTORY)/progs/Makefile					\ | ||||
| 	$(DIRECTORY)/progs/util/README					\ | ||||
| 	$(DIRECTORY)/progs/util/*.[ch]					\ | ||||
| 	$(DIRECTORY)/progs/util/sampleMakefile				\ | ||||
| 	$(DIRECTORY)/windows/VC8/ | ||||
|  | ||||
| EGL_FILES = \ | ||||
| 	$(DIRECTORY)/include/EGL/*.h					\ | ||||
| 	$(DIRECTORY)/include/GLES/*.h					\ | ||||
| 	$(DIRECTORY)/include/GLES2/*.h					\ | ||||
| 	$(DIRECTORY)/src/egl/Makefile					\ | ||||
| 	$(DIRECTORY)/src/egl/*/Makefile					\ | ||||
| 	$(DIRECTORY)/src/egl/*/*.[ch]					\ | ||||
| 	$(DIRECTORY)/src/egl/*/*/Makefile				\ | ||||
| 	$(DIRECTORY)/src/egl/*/*/*.[ch]					\ | ||||
|  | ||||
| GALLIUM_FILES = \ | ||||
| 	$(DIRECTORY)/src/mesa/state_tracker/*[ch]			\ | ||||
| 	$(DIRECTORY)/src/gallium/Makefile				\ | ||||
| 	$(DIRECTORY)/src/gallium/Makefile.template			\ | ||||
| 	$(DIRECTORY)/src/gallium/SConscript				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/Makefile				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/SConscript				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/Makefile				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/Makefile.template			\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/SConscript				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/*.[ch]				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/*.py				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/*.csv				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/*/Makefile				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/*/SConscript			\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/*/*.[ch]				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/*/*.py				\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/*/*/Makefile			\ | ||||
| 	$(DIRECTORY)/src/gallium/*/*/*/*/*.[ch]				\ | ||||
|  | ||||
|  | ||||
| DRI_FILES = \ | ||||
| 	$(DIRECTORY)/include/GL/internal/dri_interface.h		\ | ||||
| 	$(DIRECTORY)/include/GL/internal/glcore.h			\ | ||||
| 	$(DIRECTORY)/include/GL/internal/sarea.h			\ | ||||
| 	$(DIRECTORY)/src/glx/Makefile					\ | ||||
| 	$(DIRECTORY)/src/glx/x11/Makefile				\ | ||||
| 	$(DIRECTORY)/src/glx/x11/*.[ch]					\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/Makefile			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/Makefile.template		\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/dri.pc.in			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch]		\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po		\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/*/*/*.[chS]			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/*/Makefile			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/*/*/Makefile			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile			\ | ||||
| 	$(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch] | ||||
|  | ||||
| SGI_GLU_FILES = \ | ||||
| 	$(DIRECTORY)/src/glu/Makefile					\ | ||||
| 	$(DIRECTORY)/src/glu/glu.pc.in					\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/Makefile				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/Makefile.mgw				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/Makefile.win				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/glu.def				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/dummy.cc				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/glu.exports				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/glu.exports.darwin			\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/mesaglu.opt				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/include/gluos.h			\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h			\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc		\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h			\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc		\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h			\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc			\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/libtess/README				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/libtess/alg-outline			\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/libtess/*.[ch]				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/libutil/*.[ch] | ||||
|  | ||||
| MESA_GLU_FILES = \ | ||||
| 	$(DIRECTORY)/src/glu/mesa/README[12]		\ | ||||
| 	$(DIRECTORY)/src/glu/mesa/Makefile*		\ | ||||
| 	$(DIRECTORY)/src/glu/mesa/descrip.mms		\ | ||||
| 	$(DIRECTORY)/src/glu/mesa/mms_depend		\ | ||||
| 	$(DIRECTORY)/src/glu/mesa/*.def			\ | ||||
| 	$(DIRECTORY)/src/glu/mesa/depend		\ | ||||
| 	$(DIRECTORY)/src/glu/mesa/*.[ch] | ||||
|  | ||||
| GLW_FILES = \ | ||||
| 	$(DIRECTORY)/src/glw/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/glw/Makefile*			\ | ||||
| 	$(DIRECTORY)/src/glw/README			\ | ||||
| 	$(DIRECTORY)/src/glw/glw.pc.in			\ | ||||
| 	$(DIRECTORY)/src/glw/depend | ||||
|  | ||||
| GLEW_FILES = \ | ||||
| 	$(DIRECTORY)/include/GL/glew.h			\ | ||||
| 	$(DIRECTORY)/include/GL/glxew.h			\ | ||||
| 	$(DIRECTORY)/include/GL/wglew.h			\ | ||||
| 	$(DIRECTORY)/src/glew/*.c			\ | ||||
| 	$(DIRECTORY)/src/glew/Makefile			\ | ||||
| 	$(DIRECTORY)/src/glew/SConscript		\ | ||||
| 	$(DIRECTORY)/src/glew/LICENSE.txt | ||||
|  | ||||
| DEMO_FILES = \ | ||||
| 	$(GLEW_FILES)					\ | ||||
| 	$(DIRECTORY)/progs/beos/*.cpp			\ | ||||
| 	$(DIRECTORY)/progs/beos/Makefile		\ | ||||
| 	$(DIRECTORY)/progs/images/*.rgb			\ | ||||
| 	$(DIRECTORY)/progs/images/*.rgba		\ | ||||
| 	$(DIRECTORY)/progs/demos/Makefile*		\ | ||||
| 	$(DIRECTORY)/progs/demos/descrip.mms		\ | ||||
| 	$(DIRECTORY)/progs/demos/*.[ch]			\ | ||||
| 	$(DIRECTORY)/progs/demos/*.cxx			\ | ||||
| 	$(DIRECTORY)/progs/demos/*.dat			\ | ||||
| 	$(DIRECTORY)/progs/demos/README			\ | ||||
| 	$(DIRECTORY)/progs/fbdev/Makefile		\ | ||||
| 	$(DIRECTORY)/progs/fbdev/glfbdevtest.c		\ | ||||
| 	$(DIRECTORY)/progs/objviewer/*.[ch]		\ | ||||
| 	$(DIRECTORY)/progs/objviewer/*.obj		\ | ||||
| 	$(DIRECTORY)/progs/objviewer/*.mtl		\ | ||||
| 	$(DIRECTORY)/progs/objviewer/*.rgb		\ | ||||
| 	$(DIRECTORY)/progs/objviewer/Makefile		\ | ||||
| 	$(DIRECTORY)/progs/objviewer/README.txt		\ | ||||
| 	$(DIRECTORY)/progs/osdemos/Makefile		\ | ||||
| 	$(DIRECTORY)/progs/osdemos/*.c			\ | ||||
| 	$(DIRECTORY)/progs/xdemos/Makefile*		\ | ||||
| 	$(DIRECTORY)/progs/xdemos/*.[chf]		\ | ||||
| 	$(DIRECTORY)/progs/redbook/Makefile*		\ | ||||
| 	$(DIRECTORY)/progs/redbook/README		\ | ||||
| 	$(DIRECTORY)/progs/redbook/*.[ch]		\ | ||||
| 	$(DIRECTORY)/progs/samples/Makefile*		\ | ||||
| 	$(DIRECTORY)/progs/samples/README		\ | ||||
| 	$(DIRECTORY)/progs/samples/*.c			\ | ||||
| 	$(DIRECTORY)/progs/glsl/Makefile*		\ | ||||
| 	$(DIRECTORY)/progs/glsl/*.c			\ | ||||
| 	$(DIRECTORY)/progs/glsl/*.frag			\ | ||||
| 	$(DIRECTORY)/progs/glsl/*.vert			\ | ||||
| 	$(DIRECTORY)/progs/glsl/*.shtest		\ | ||||
| 	$(DIRECTORY)/progs/windml/Makefile.ugl		\ | ||||
| 	$(DIRECTORY)/progs/windml/*.c			\ | ||||
| 	$(DIRECTORY)/progs/windml/*.bmp			\ | ||||
| 	$(DIRECTORY)/progs/ggi/*.c | ||||
|  | ||||
| GLUT_FILES = \ | ||||
| 	$(DIRECTORY)/include/GL/glut.h			\ | ||||
| 	$(DIRECTORY)/include/GL/glutf90.h		\ | ||||
| 	$(DIRECTORY)/src/glut/glx/Makefile*		\ | ||||
| 	$(DIRECTORY)/src/glut/glx/depend		\ | ||||
| 	$(DIRECTORY)/src/glut/glx/glut.pc.in		\ | ||||
| 	$(DIRECTORY)/src/glut/glx/*def			\ | ||||
| 	$(DIRECTORY)/src/glut/glx/*.[ch]		\ | ||||
| 	$(DIRECTORY)/src/glut/beos/*.[ch]		\ | ||||
| 	$(DIRECTORY)/src/glut/beos/*.cpp		\ | ||||
| 	$(DIRECTORY)/src/glut/beos/Makefile		\ | ||||
| 	$(DIRECTORY)/src/glut/dos/*.[ch]		\ | ||||
| 	$(DIRECTORY)/src/glut/dos/PC_HW/*.[chS]		\ | ||||
| 	$(DIRECTORY)/src/glut/ggi/*.[ch]		\ | ||||
| 	$(DIRECTORY)/src/glut/ggi/Makefile		\ | ||||
| 	$(DIRECTORY)/src/glut/fbdev/Makefile		\ | ||||
| 	$(DIRECTORY)/src/glut/fbdev/*[ch]		\ | ||||
| 	$(DIRECTORY)/src/glut/mini/*[ch]		\ | ||||
| 	$(DIRECTORY)/src/glut/mini/glut.pc.in		\ | ||||
| 	$(DIRECTORY)/src/glut/directfb/Makefile		\ | ||||
| 	$(DIRECTORY)/src/glut/directfb/NOTES		\ | ||||
| 	$(DIRECTORY)/src/glut/directfb/*[ch] | ||||
|  | ||||
| DEPEND_FILES = \ | ||||
| 	$(TOP)/src/mesa/depend		\ | ||||
| 	$(TOP)/src/glx/x11/depend	\ | ||||
| 	$(TOP)/src/glw/depend		\ | ||||
| 	$(TOP)/src/glut/glx/depend	\ | ||||
| 	$(TOP)/src/glu/sgi/depend | ||||
|  | ||||
|  | ||||
| LIB_FILES = \ | ||||
| 	$(MAIN_FILES)		\ | ||||
| 	$(EGL_FILES)		\ | ||||
| 	$(GALLIUM_FILES)	\ | ||||
| 	$(DRI_FILES)		\ | ||||
| 	$(SGI_GLU_FILES)	\ | ||||
| 	$(GLW_FILES) | ||||
|  | ||||
|  | ||||
| # Everything for new a Mesa release: | ||||
| tarballs: rm_depend configure aclocal.m4 lib_gz demo_gz glut_gz \ | ||||
| 	lib_bz2 demo_bz2 glut_bz2 lib_zip demo_zip glut_zip md5 | ||||
|  | ||||
|  | ||||
| # Helper for autoconf builds | ||||
| ACLOCAL = aclocal | ||||
| ACLOCAL_FLAGS = | ||||
| AUTOCONF = autoconf | ||||
| AC_FLAGS = | ||||
| aclocal.m4: configure.ac acinclude.m4 | ||||
| 	$(ACLOCAL) $(ACLOCAL_FLAGS) | ||||
| configure: configure.ac aclocal.m4 acinclude.m4 | ||||
| 	$(AUTOCONF) $(AC_FLAGS) | ||||
|  | ||||
| rm_depend: | ||||
| 	@for dep in $(DEPEND_FILES) ; do \ | ||||
| 		rm -f $$dep ; \ | ||||
| 		touch $$dep ; \ | ||||
| 	done | ||||
|  | ||||
| rm_config: | ||||
| 	rm -f configs/current | ||||
| 	rm -f configs/autoconf | ||||
|  | ||||
| lib_gz: rm_config | ||||
| 	cd .. ; \ | ||||
| 	tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \ | ||||
| 	gzip $(LIB_NAME).tar ; \ | ||||
| 	mv $(LIB_NAME).tar.gz $(DIRECTORY) | ||||
|  | ||||
| demo_gz: | ||||
| 	cd .. ; \ | ||||
| 	tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \ | ||||
| 	gzip $(DEMO_NAME).tar ; \ | ||||
| 	mv $(DEMO_NAME).tar.gz $(DIRECTORY) | ||||
|  | ||||
| glut_gz: | ||||
| 	cd .. ; \ | ||||
| 	tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \ | ||||
| 	gzip $(GLUT_NAME).tar ; \ | ||||
| 	mv $(GLUT_NAME).tar.gz $(DIRECTORY) | ||||
|  | ||||
| lib_bz2: rm_config | ||||
| 	cd .. ; \ | ||||
| 	tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \ | ||||
| 	bzip2 $(LIB_NAME).tar ; \ | ||||
| 	mv $(LIB_NAME).tar.bz2 $(DIRECTORY) | ||||
|  | ||||
| demo_bz2: | ||||
| 	cd .. ; \ | ||||
| 	tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \ | ||||
| 	bzip2 $(DEMO_NAME).tar ; \ | ||||
| 	mv $(DEMO_NAME).tar.bz2 $(DIRECTORY) | ||||
|  | ||||
| glut_bz2: | ||||
| 	cd .. ; \ | ||||
| 	tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \ | ||||
| 	bzip2 $(GLUT_NAME).tar ; \ | ||||
| 	mv $(GLUT_NAME).tar.bz2 $(DIRECTORY) | ||||
|  | ||||
| lib_zip: rm_config | ||||
| 	rm -f $(LIB_NAME).zip ; \ | ||||
| 	cd .. ; \ | ||||
| 	zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \ | ||||
| 	mv $(LIB_NAME).zip $(DIRECTORY) | ||||
|  | ||||
| demo_zip: | ||||
| 	rm -f $(DEMO_NAME).zip ; \ | ||||
| 	cd .. ; \ | ||||
| 	zip -qr $(DEMO_NAME).zip $(DEMO_FILES) ; \ | ||||
| 	mv $(DEMO_NAME).zip $(DIRECTORY) | ||||
|  | ||||
| glut_zip: | ||||
| 	rm -f $(GLUT_NAME).zip ; \ | ||||
| 	cd .. ; \ | ||||
| 	zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \ | ||||
| 	mv $(GLUT_NAME).zip $(DIRECTORY) | ||||
|  | ||||
| md5: | ||||
| 	@-md5sum $(LIB_NAME).tar.gz | ||||
| 	@-md5sum $(LIB_NAME).tar.bz2 | ||||
| 	@-md5sum $(LIB_NAME).zip | ||||
| 	@-md5sum $(DEMO_NAME).tar.gz | ||||
| 	@-md5sum $(DEMO_NAME).tar.bz2 | ||||
| 	@-md5sum $(DEMO_NAME).zip | ||||
| 	@-md5sum $(GLUT_NAME).tar.gz | ||||
| 	@-md5sum $(GLUT_NAME).tar.bz2 | ||||
| 	@-md5sum $(GLUT_NAME).zip | ||||
|  | ||||
| .PHONY: tarballs rm_depend rm_config md5 \ | ||||
| 	lib_gz demo_gz glut_gz \ | ||||
| 	lib_bz2 demo_bz2 glut_bz2 \ | ||||
| 	lib_zip demo_zip glut_zip | ||||
							
								
								
									
										138
									
								
								Makefile.am
									
									
									
									
									
								
							
							
						
						
									
										138
									
								
								Makefile.am
									
									
									
									
									
								
							| @@ -1,138 +0,0 @@ | ||||
| # Copyright © 2012 Intel Corporation | ||||
| # | ||||
| # Permission is hereby granted, free of charge, to any person obtaining a | ||||
| # copy of this software and associated documentation files (the "Software"), | ||||
| # to deal in the Software without restriction, including without limitation | ||||
| # the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||||
| # and/or sell copies of the Software, and to permit persons to whom the | ||||
| # Software is furnished to do so, subject to the following conditions: | ||||
| # | ||||
| # The above copyright notice and this permission notice (including the next | ||||
| # paragraph) shall be included in all copies or substantial portions of the | ||||
| # Software. | ||||
| # | ||||
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL | ||||
| # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
| # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||||
| # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||||
| # IN THE SOFTWARE. | ||||
|  | ||||
| SUBDIRS = src | ||||
|  | ||||
| ACLOCAL_AMFLAGS = -I m4 | ||||
|  | ||||
| doxygen: | ||||
| 	cd doxygen && $(MAKE) | ||||
|  | ||||
| check-local: | ||||
| 	$(MAKE) -C src/mapi/glapi/tests check | ||||
| 	$(MAKE) -C src/mapi/shared-glapi/tests check | ||||
| 	$(MAKE) -C src/mesa/main/tests check | ||||
| 	$(MAKE) -C src/glsl/tests check | ||||
| 	$(MAKE) -C src/glx/tests check | ||||
|  | ||||
| clean-local: | ||||
| 	-@touch $(top_builddir)/configs/current | ||||
| 	-@for dir in $(SUBDIRS) ; do \ | ||||
| 		if [ -d $$dir ] ; then \ | ||||
| 			(cd $$dir && $(MAKE) clean) ; \ | ||||
| 		fi \ | ||||
| 	done | ||||
| 	-@test -s $(top_builddir)/configs/current || rm -f $(top_builddir)/configs/current | ||||
|  | ||||
|  | ||||
|  | ||||
| distclean-local: | ||||
| 	-rm -rf lib* | ||||
| 	-rm -f $(top_builddir)/configs/current | ||||
| 	-find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \ | ||||
| 	  -name depend -o -name depend.bak ')' -exec rm -f '{}' ';' | ||||
|  | ||||
| .PHONY: doxygen | ||||
|  | ||||
| # Rules for making release tarballs | ||||
|  | ||||
| PACKAGE_VERSION=9.0.3 | ||||
| PACKAGE_DIR = Mesa-$(PACKAGE_VERSION) | ||||
| PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION) | ||||
|  | ||||
| EXTRA_FILES = \ | ||||
| 	aclocal.m4					\ | ||||
| 	configure					\ | ||||
| 	bin/ar-lib					\ | ||||
| 	bin/compile					\ | ||||
| 	bin/config.sub					\ | ||||
| 	bin/config.guess				\ | ||||
| 	bin/depcomp					\ | ||||
| 	bin/install-sh					\ | ||||
| 	bin/ltmain.sh					\ | ||||
| 	bin/missing					\ | ||||
| 	bin/ylwrap					\ | ||||
| 	src/glsl/glsl_parser.cc				\ | ||||
| 	src/glsl/glsl_parser.h				\ | ||||
| 	src/glsl/glsl_lexer.cc				\ | ||||
| 	src/glsl/glcpp/glcpp-lex.c			\ | ||||
| 	src/glsl/glcpp/glcpp-parse.c			\ | ||||
| 	src/glsl/glcpp/glcpp-parse.h			\ | ||||
| 	src/mesa/main/api_exec_es1.c			\ | ||||
| 	src/mesa/main/api_exec_es1_dispatch.h		\ | ||||
| 	src/mesa/main/api_exec_es1_remap_helper.h	\ | ||||
| 	src/mesa/main/api_exec_es2.c			\ | ||||
| 	src/mesa/main/api_exec_es2_dispatch.h		\ | ||||
| 	src/mesa/main/api_exec_es2_remap_helper.h	\ | ||||
| 	src/mesa/program/lex.yy.c			\ | ||||
| 	src/mesa/program/program_parse.tab.c		\ | ||||
| 	src/mesa/program/program_parse.tab.h		\ | ||||
| 	`git ls-files | grep "Makefile.am" | sed -e "s/Makefile.am/Makefile.in/"` | ||||
|  | ||||
|  | ||||
| IGNORE_FILES = \ | ||||
| 	-x autogen.sh | ||||
|  | ||||
|  | ||||
| parsers: configure | ||||
| 	-@touch $(top_builddir)/configs/current | ||||
| 	$(MAKE) -C src/glsl glsl_parser.cc glsl_parser.h glsl_lexer.cc | ||||
| 	$(MAKE) -C src/glsl/glcpp glcpp-lex.c glcpp-parse.c glcpp-parse.h | ||||
| 	$(MAKE) -C src/mesa program/lex.yy.c program/program_parse.tab.c program/program_parse.tab.h | ||||
|  | ||||
| # Everything for new a Mesa release: | ||||
| ARCHIVES = $(PACKAGE_NAME).tar.gz \ | ||||
| 	$(PACKAGE_NAME).tar.bz2 \ | ||||
| 	$(PACKAGE_NAME).zip | ||||
|  | ||||
| tarballs: md5 | ||||
| 	rm -f ../$(PACKAGE_DIR) $(PACKAGE_NAME).tar | ||||
|  | ||||
| manifest.txt: .git | ||||
| 	( \ | ||||
| 		ls -1 $(EXTRA_FILES) ; \ | ||||
| 		git ls-files $(IGNORE_FILES) \ | ||||
| 	) | sed -e '/^\(.*\/\)\?\./d' -e "s@^@$(PACKAGE_DIR)/@" > $@ | ||||
|  | ||||
| ../$(PACKAGE_DIR): | ||||
| 	ln -s $(PWD) $@ | ||||
|  | ||||
| $(PACKAGE_NAME).tar: parsers ../$(PACKAGE_DIR) manifest.txt | ||||
| 	cd .. ; tar -cf $(PACKAGE_DIR)/$(PACKAGE_NAME).tar -T $(PACKAGE_DIR)/manifest.txt | ||||
|  | ||||
| $(PACKAGE_NAME).tar.gz: $(PACKAGE_NAME).tar ../$(PACKAGE_DIR) | ||||
| 	gzip --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.gz | ||||
|  | ||||
| $(PACKAGE_NAME).tar.bz2: $(PACKAGE_NAME).tar | ||||
| 	bzip2 --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.bz2 | ||||
|  | ||||
| $(PACKAGE_NAME).zip: parsers ../$(PACKAGE_DIR) manifest.txt | ||||
| 	rm -f $(PACKAGE_NAME).zip ; \ | ||||
| 	cd .. ; \ | ||||
| 	zip -q -@ $(PACKAGE_NAME).zip < $(PACKAGE_DIR)/manifest.txt ; \ | ||||
| 	mv $(PACKAGE_NAME).zip $(PACKAGE_DIR) | ||||
|  | ||||
| md5: $(ARCHIVES) | ||||
| 	@-md5sum $(PACKAGE_NAME).tar.gz | ||||
| 	@-md5sum $(PACKAGE_NAME).tar.bz2 | ||||
| 	@-md5sum $(PACKAGE_NAME).zip | ||||
|  | ||||
| .PHONY: tarballs md5 | ||||
							
								
								
									
										196
									
								
								SConstruct
									
									
									
									
									
								
							
							
						
						
									
										196
									
								
								SConstruct
									
									
									
									
									
								
							| @@ -3,14 +3,14 @@ | ||||
| # | ||||
| # For example, invoke scons as  | ||||
| # | ||||
| #   scons build=debug llvm=yes machine=x86 | ||||
| #   scons debug=1 dri=0 machine=x86 | ||||
| # | ||||
| # to set configuration variables. Or you can write those options to a file | ||||
| # named config.py: | ||||
| # | ||||
| #   # config.py | ||||
| #   build='debug' | ||||
| #   llvm=True | ||||
| #   debug=1 | ||||
| #   dri=0 | ||||
| #   machine='x86' | ||||
| #  | ||||
| # Invoke | ||||
| @@ -23,15 +23,34 @@ | ||||
| import os | ||||
| import os.path | ||||
| import sys | ||||
| import SCons.Util | ||||
|  | ||||
| import common | ||||
|  | ||||
| ####################################################################### | ||||
| # Configuration options | ||||
|  | ||||
| default_statetrackers = 'mesa' | ||||
|  | ||||
| if common.default_platform in ('linux', 'freebsd', 'darwin'): | ||||
| 	default_drivers = 'softpipe,failover,svga,i915,trace,identity,llvmpipe' | ||||
| 	default_winsys = 'xlib' | ||||
| elif common.default_platform in ('winddk',): | ||||
| 	default_drivers = 'softpipe,svga,i915,trace,identity' | ||||
| 	default_winsys = 'all' | ||||
| else: | ||||
| 	default_drivers = 'all' | ||||
| 	default_winsys = 'all' | ||||
|  | ||||
| opts = Variables('config.py') | ||||
| common.AddOptions(opts) | ||||
| opts.Add(ListVariable('statetrackers', 'state trackers to build', default_statetrackers, | ||||
|                      ['mesa', 'python', 'xorg'])) | ||||
| opts.Add(ListVariable('drivers', 'pipe drivers to build', default_drivers, | ||||
|                      ['softpipe', 'failover', 'svga', 'i915', 'cell', 'trace', 'r300', 'identity', 'llvmpipe'])) | ||||
| opts.Add(ListVariable('winsys', 'winsys drivers to build', default_winsys, | ||||
|                      ['xlib', 'vmware', 'intel', 'gdi', 'radeon'])) | ||||
|  | ||||
| opts.Add(EnumVariable('MSVS_VERSION', 'MS Visual C++ version', None, allowed_values=('7.1', '8.0', '9.0'))) | ||||
|  | ||||
| env = Environment( | ||||
| 	options = opts, | ||||
| @@ -40,98 +59,103 @@ env = Environment( | ||||
| 	ENV = os.environ, | ||||
| ) | ||||
|  | ||||
| # XXX: This creates a many problems as it saves... | ||||
| #opts.Save('config.py', env) | ||||
|  | ||||
| # Backwards compatability with old target configuration variable | ||||
| try: | ||||
|     targets = ARGUMENTS['targets'] | ||||
| except KeyError: | ||||
|     pass | ||||
| else: | ||||
|     targets = targets.split(',') | ||||
|     print 'scons: warning: targets option is deprecated; pass the targets on their own such as' | ||||
|     print | ||||
|     print '  scons %s' % ' '.join(targets) | ||||
|     print  | ||||
|     COMMAND_LINE_TARGETS.append(targets) | ||||
|  | ||||
|  | ||||
| Help(opts.GenerateHelpText(env)) | ||||
|  | ||||
| # fail early for a common error on windows | ||||
| if env['gles']: | ||||
|     try: | ||||
|         import libxml2 | ||||
|     except ImportError: | ||||
|         raise SCons.Errors.UserError, "GLES requires libxml2-python to build" | ||||
| # replicate options values in local variables | ||||
| debug = env['debug'] | ||||
| dri = env['dri'] | ||||
| llvm = env['llvm'] | ||||
| machine = env['machine'] | ||||
| platform = env['platform'] | ||||
|  | ||||
| # derived options | ||||
| x86 = machine == 'x86' | ||||
| ppc = machine == 'ppc' | ||||
| gcc = platform in ('linux', 'freebsd', 'darwin') | ||||
| msvc = platform in ('windows', 'winddk') | ||||
|  | ||||
| Export([ | ||||
| 	'debug',  | ||||
| 	'x86',  | ||||
| 	'ppc',  | ||||
| 	'dri',  | ||||
| 	'llvm', | ||||
| 	'platform', | ||||
| 	'gcc', | ||||
| 	'msvc', | ||||
| ]) | ||||
|  | ||||
|  | ||||
| ####################################################################### | ||||
| # Environment setup | ||||
|  | ||||
| # Includes | ||||
| env.Prepend(CPPPATH = [ | ||||
| 	'#/include', | ||||
| ]) | ||||
| env.Append(CPPPATH = [ | ||||
| 	'#/include', | ||||
| 	'#/src/gallium/include', | ||||
| 	'#/src/gallium/auxiliary', | ||||
| 	'#/src/gallium/drivers', | ||||
| 	'#/src/gallium/winsys', | ||||
| ]) | ||||
|  | ||||
| if env['msvc']: | ||||
|     env.Append(CPPPATH = ['#include/c99']) | ||||
|  | ||||
| # Posix | ||||
| if platform in ('posix', 'linux', 'freebsd', 'darwin'): | ||||
| 	env.Append(CPPDEFINES = [ | ||||
| 		'_POSIX_SOURCE', | ||||
| 		('_POSIX_C_SOURCE', '199309L'),  | ||||
| 		'_SVID_SOURCE', | ||||
| 		'_BSD_SOURCE',  | ||||
| 		'_GNU_SOURCE', | ||||
| 		 | ||||
| 		'PTHREADS', | ||||
| 		'HAVE_POSIX_MEMALIGN', | ||||
| 	]) | ||||
| 	if platform == 'darwin': | ||||
| 		env.Append(CPPDEFINES = ['_DARWIN_C_SOURCE']) | ||||
| 	env.Append(CPPPATH = ['/usr/X11R6/include']) | ||||
| 	env.Append(LIBPATH = ['/usr/X11R6/lib']) | ||||
| 	env.Append(LIBS = [ | ||||
| 		'm', | ||||
| 		'pthread', | ||||
| 		'expat', | ||||
| 		'dl', | ||||
| 	]) | ||||
|  | ||||
|  | ||||
| # DRI | ||||
| if dri: | ||||
| 	env.ParseConfig('pkg-config --cflags --libs libdrm') | ||||
| 	env.Append(CPPDEFINES = [ | ||||
| 		('USE_EXTERNAL_DXTN_LIB', '1'),  | ||||
| 		'IN_DRI_DRIVER', | ||||
| 		'GLX_DIRECT_RENDERING', | ||||
| 		'GLX_INDIRECT_RENDERING', | ||||
| 	]) | ||||
|  | ||||
| # LLVM | ||||
| if llvm: | ||||
| 	# See also http://www.scons.org/wiki/UsingPkgConfig | ||||
| 	env.ParseConfig('llvm-config --cflags --ldflags --libs backend bitreader engine instrumentation interpreter ipo') | ||||
| 	env.Append(CPPDEFINES = ['MESA_LLVM']) | ||||
|         # Force C++ linkage | ||||
| 	env['LINK'] = env['CXX'] | ||||
|  | ||||
| # libGL | ||||
| if platform in ('linux', 'freebsd', 'darwin'): | ||||
| 	env.Append(LIBS = [ | ||||
| 		'X11', | ||||
| 		'Xext', | ||||
| 		'Xxf86vm', | ||||
| 		'Xdamage', | ||||
| 		'Xfixes', | ||||
| 	]) | ||||
|  | ||||
| # for debugging | ||||
| #print env.Dump() | ||||
|  | ||||
|  | ||||
| ####################################################################### | ||||
| # Invoke host SConscripts  | ||||
| #  | ||||
| # For things that are meant to be run on the native host build machine, instead | ||||
| # of the target machine. | ||||
| # | ||||
|  | ||||
| # Create host environent | ||||
| if env['crosscompile'] and not env['embedded']: | ||||
|     host_env = Environment( | ||||
|         options = opts, | ||||
|         # no tool used | ||||
|         tools = [], | ||||
|         toolpath = ['#scons'], | ||||
|         ENV = os.environ, | ||||
|     ) | ||||
|  | ||||
|     # Override options | ||||
|     host_env['platform'] = common.host_platform | ||||
|     host_env['machine'] = common.host_machine | ||||
|     host_env['toolchain'] = 'default' | ||||
|     host_env['llvm'] = False | ||||
|  | ||||
|     host_env.Tool('gallium') | ||||
|  | ||||
|     host_env['hostonly'] = True | ||||
|     assert host_env['crosscompile'] == False | ||||
|  | ||||
|     if host_env['msvc']: | ||||
|         host_env.Append(CPPPATH = ['#include/c99']) | ||||
|  | ||||
|     target_env = env | ||||
|     env = host_env | ||||
|     Export('env') | ||||
|  | ||||
|     SConscript( | ||||
|         'src/SConscript', | ||||
|         variant_dir = host_env['build_dir'], | ||||
|         duplicate = 0, # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html | ||||
|     ) | ||||
|  | ||||
|     env = target_env | ||||
|  | ||||
| Export('env') | ||||
|  | ||||
|  | ||||
| ####################################################################### | ||||
| # Invoke SConscripts | ||||
|  | ||||
| @@ -140,22 +164,6 @@ Export('env') | ||||
|  | ||||
| SConscript( | ||||
| 	'src/SConscript', | ||||
| 	variant_dir = env['build_dir'], | ||||
| 	variant_dir = env['build'], | ||||
| 	duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html | ||||
| ) | ||||
|  | ||||
|  | ||||
| ######################################################################## | ||||
| # List all aliases | ||||
|  | ||||
| try: | ||||
|     from SCons.Node.Alias import default_ans | ||||
| except ImportError: | ||||
|     pass | ||||
| else: | ||||
|     aliases = default_ans.keys() | ||||
|     aliases.sort() | ||||
|     env.Help('\n') | ||||
|     env.Help('Recognized targets:\n') | ||||
|     for alias in aliases: | ||||
|         env.Help('    %s\n' % alias) | ||||
|   | ||||
							
								
								
									
										14
									
								
								autogen.sh
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								autogen.sh
									
									
									
									
									
								
							| @@ -3,12 +3,16 @@ | ||||
| srcdir=`dirname "$0"` | ||||
| test -z "$srcdir" && srcdir=. | ||||
|  | ||||
| SRCDIR=`(cd "$srcdir" && pwd)` | ||||
| ORIGDIR=`pwd` | ||||
| cd "$srcdir" | ||||
|  | ||||
| if test "x$SRCDIR" != "x$ORIGDIR"; then | ||||
| 	echo "Mesa cannot be built when srcdir != builddir" 1>&2 | ||||
| 	exit 1 | ||||
| fi | ||||
|  | ||||
| MAKEFLAGS="" | ||||
|  | ||||
| autoreconf -v --install || exit 1 | ||||
| cd $ORIGDIR || exit $? | ||||
|  | ||||
| if test -z "$NOCONFIGURE"; then | ||||
|     "$srcdir"/configure "$@" | ||||
| fi | ||||
| "$srcdir"/configure "$@" | ||||
|   | ||||
| @@ -1,41 +0,0 @@ | ||||
| # These commits were cherry picked without using -x. | ||||
| ca3ed3e024864e91ca3cccc59fb96950e1d079b5 egl/wayland: Don't invalidate drawable on swap buffers | ||||
| 89ba4368fd86778405eea163e2b27812055f0df9 egl/wayland: Add invalidate back in eglSwapBuffers() | ||||
| 60a11e295b86475ff334291a5b483e422371b21c egl/wayland: Dispatch the event queue before get_buffers | ||||
| 41e105d5beb78c42993a602cc58d0f990739b088 nvc0: add missing call to map edge flag in push_vbo | ||||
| be75a9373a6d0f9e2ef35ac376a541e60d72d306 nv50/ir: wrap assertion using typeid in #ifndef NDEBUG | ||||
| 7d2d450ea6d8082db14cd3f86c6c25442bf771c5 nouveau: fix undefined behaviour when testing sample_count | ||||
|  | ||||
| # Causes too many regressions... | ||||
| 413c4914129cd26ca87960852d8c0264c0fb29e7 intel: Improve teximage perf for Google Chrome paint rects (v3) | ||||
| b1d0fe022dc4826dadce014ab8fe062a82f75a16 intel: Fix segfault in intel_texsubimage_tiled_memcpy | ||||
| b5891286202987dfc2606ac716050c0ee426de11 intel: Fix yet-another-bug in intel_texsubimage_tiled_memcpy | ||||
|  | ||||
| # Introduces performance regressions for other games... don't cherry-pick for now | ||||
| fa58644855e44830e0b91dc627703c236fa6712a r600g: fix abysmal performance in Reaction Quake | ||||
|  | ||||
| # i965 guardband clipping is disabled in 9.0, so no need to fix bugs in it | ||||
| 23e7b81f2d742d292d77b53ac9cf72c3d89fc798 i965: Use fewer temporary variables in c | ||||
| lip setup. | ||||
| d411bbd5bd895617e265e023213895100e4509ef i965: Disable the GB clip test when a li | ||||
| mited viewport is set. | ||||
|  | ||||
| # Candidates for 9.1 | ||||
| 1559994cba380a4e87a5e8dbb04b0a7475711756 i965: Fix assignment instead of comparison in asserts. | ||||
| 5c86a728d4f688c0fe7fbf9f4b8f88060b65c4ee r600g: fix htile buffer leak | ||||
| a06f03d795153ce060d99aafb61d10c27a47efc1 r300g: always put MSAA resources in VRAM | ||||
| a8a5055f2dea1960898763d17f28043577c3e64e radeonsi: Fix draws using user index buffer. | ||||
| 257006e2a4201c11ca5f800a74ac4aaf62a7bfc1 r600g/llvm: Select the correct GPU type for RV670 | ||||
| e5fb7347a72118bf06dfabaa453208578c7ad876 radeonsi: Adapt to sample intrinsics changes. | ||||
| 120efeef8b51c16924dafa6bbeb017a856db911b radeonsi: Improve packing of texture address parameters. | ||||
| 6bcb8238446060db665425d9f63eb0c1b3ba9f68 radeonsi: Enable texture arrays. | ||||
| 6455d40b7ec09e3a3923c9b78952dc29627afed1 radeonsi: Remove spurious traces of R16G16B16 support. | ||||
| 2db1f73849260cf8e5a7e390d04f5f26141a0b37 builtin_compiler/build: Don't use *_FOR_BUILD when not cross compiling | ||||
| 11bd1b0f589bfeab8fcad5c70adf4c8a665eebc9 gallium/egl: Fix include dirs for VPATH build | ||||
| b92900d26a54ef997f2920d6a7371bb7c9caabf8 mesa/glsl: Separate parsing logic from _mesa_get_uniform_location. | ||||
| b4db34cc4c047427a21efb9bde03d7e125f70e55 glsl: Rename uniform_field_visitor to program_resource_visitor. | ||||
| 53febac02c382fa163a9ad7280fc5f4d2707a665 glsl: Use parse_program_resource_name to parse transform feedback varyings. | ||||
| 99b78337e38308480ee491493b045179f10ed579 glsl: Support transform feedback of varying structs. | ||||
| 83e4407f443fb6baeccf9aefee291c82adcaa58b radeonsi: add support for Oland chips | ||||
| af0af75881ea99452086afd6907780de77af6e96 radeonsi: default PA_SC_RASTER_CONFIG to 0 | ||||
| 4161d70bba567e6e73d5e9e993a74d81930d0e72 radeonsi: add Oland pci ids | ||||
							
								
								
									
										8
									
								
								bin/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								bin/.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,8 +0,0 @@ | ||||
| config.guess | ||||
| config.sub | ||||
| install-sh | ||||
| /depcomp | ||||
| /missing | ||||
| ylwrap | ||||
| compile | ||||
| ar-lib | ||||
							
								
								
									
										48
									
								
								bin/confdiff.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										48
									
								
								bin/confdiff.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| #!/bin/bash -e | ||||
|  | ||||
| usage() | ||||
| { | ||||
| 	echo "Usage: $0 <target1> <target2>" | ||||
| 	echo "Highlight differences between Mesa configs" | ||||
| 	echo "Example:" | ||||
| 	echo "  $0 linux linux-x86" | ||||
| } | ||||
|  | ||||
| die() | ||||
| { | ||||
| 	echo "$@" >&2 | ||||
| 	return 1 | ||||
| } | ||||
|  | ||||
| case "$1" in | ||||
| -h|--help) usage; exit 0;; | ||||
| esac | ||||
|  | ||||
| [ $# -lt 2 ] && die 2 targets needed. See $0 --help | ||||
| target1=$1 | ||||
| target2=$2 | ||||
|  | ||||
| topdir=$(cd "`dirname $0`"/..; pwd) | ||||
| cd "$topdir" | ||||
|  | ||||
| [ -f "./configs/$target1" ] || die Missing configs/$target1 | ||||
| [ -f "./configs/$target2" ] || die Missing configs/$target2 | ||||
|  | ||||
| trap 'rm -f "$t1" "$t2"' 0 | ||||
|  | ||||
| t1=$(mktemp) | ||||
| t2=$(mktemp) | ||||
|  | ||||
| make -f- -n -p <<EOF | sed '/^# Not a target/,/^$/d' > $t1 | ||||
| TOP = . | ||||
| include \$(TOP)/configs/$target1 | ||||
| default: | ||||
| EOF | ||||
|  | ||||
| make -f- -n -p <<EOF | sed '/^# Not a target/,/^$/d' > $t2 | ||||
| TOP = . | ||||
| include \$(TOP)/configs/$target2 | ||||
| default: | ||||
| EOF | ||||
|  | ||||
| diff -pu -I'^#' $t1 $t2 | ||||
							
								
								
									
										1555
									
								
								bin/config.guess
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										1555
									
								
								bin/config.guess
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1685
									
								
								bin/config.sub
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										1685
									
								
								bin/config.sub
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,29 +0,0 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| # Script for generating a list of candidates for cherry-picking to a stable branch | ||||
|  | ||||
| # Grep for commits with "cherry picked from commit" in the commit message. | ||||
| git log --reverse --grep="cherry picked from commit" origin/master..HEAD |\ | ||||
| 	grep "cherry picked from commit" |\ | ||||
| 	sed -e 's/^[[:space:]]*(cherry picked from commit[[:space:]]*//' -e 's/)//' > already_picked | ||||
|  | ||||
| # Grep for commits that were marked as a candidate for the stable tree. | ||||
| git log --reverse --pretty=%H -i --grep='^[[:space:]]*NOTE: This is a candidate' HEAD..origin/master |\ | ||||
| while read sha | ||||
| do | ||||
| 	# Check to see whether the patch is on the ignore list. | ||||
| 	if [ -f bin/.cherry-ignore ] ; then | ||||
| 		if grep -q ^$sha bin/.cherry-ignore ; then | ||||
| 			continue | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# Check to see if it has already been picked over. | ||||
| 	if grep -q ^$sha already_picked ; then | ||||
| 		continue | ||||
| 	fi | ||||
|  | ||||
| 	git log -n1 --pretty=oneline $sha | cat | ||||
| done | ||||
|  | ||||
| rm -f already_picked | ||||
							
								
								
									
										1
									
								
								bin/install-sh
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								bin/install-sh
									
									
									
									
									
										Symbolic link
									
								
							| @@ -0,0 +1 @@ | ||||
| minstall | ||||
							
								
								
									
										21
									
								
								bin/minstall
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								bin/minstall
									
									
									
									
									
								
							| @@ -31,7 +31,7 @@ if [ $# -ge 2 ] ; then | ||||
|  | ||||
| 	# Last cmd line arg is the dest dir | ||||
| 	for FILE in $@ ; do | ||||
| 		DESTDIR="$FILE" | ||||
| 		DEST="$FILE" | ||||
| 	done | ||||
|  | ||||
| 	# Loop over args, moving them to DEST directory | ||||
| @@ -42,25 +42,6 @@ if [ $# -ge 2 ] ; then | ||||
| 			exit 0 | ||||
| 		fi | ||||
|  | ||||
|                 DEST=$DESTDIR | ||||
|  | ||||
|                 # On CYGWIN, because DLLs are loaded by the native Win32 loader, | ||||
|                 # they are installed in the executable path.  Stub libraries used | ||||
|                 # only for linking are installed in the library path | ||||
|                 case `uname` in | ||||
|                     CYGWIN*) | ||||
|                         case $FILE in | ||||
|                             *.dll) | ||||
|                                 DEST="$DEST/../bin" | ||||
|                                 ;; | ||||
|                             *) | ||||
|                                 ;; | ||||
|                         esac | ||||
| 	                ;; | ||||
|                     *) | ||||
|                         ;; | ||||
|                 esac | ||||
|  | ||||
| 		PWDSAVE=`pwd` | ||||
|  | ||||
| 		# determine file's type | ||||
|   | ||||
							
								
								
									
										412
									
								
								bin/mklib
									
									
									
									
									
								
							
							
						
						
									
										412
									
								
								bin/mklib
									
									
									
									
									
								
							| @@ -25,109 +25,6 @@ | ||||
| # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
|  | ||||
|  | ||||
| # Clear CDPATH as the 'cd' command will echo stuff | ||||
| # to stdout if it is set | ||||
| unset CDPATH | ||||
|  | ||||
| # Given a list of files, look for .a archives and unpack them. | ||||
| # Return the original list of files minus the .a files plus the unpacked files. | ||||
| # first param:  name of a temp directory (to be deleted when finished) | ||||
| # remaining params:  list of .o and .a files | ||||
| expand_archives() { | ||||
|     DIR=$1 | ||||
|     shift | ||||
|     FILES=$@ | ||||
|     NEWFILES="" | ||||
|     ORIG_DIR=`pwd` | ||||
|     mkdir -p "$DIR" | ||||
|     cd "$DIR" | ||||
|     for FILE in $FILES ; do | ||||
|         case $FILE in | ||||
|             *.a) | ||||
|                 # extract the .o files from this .a archive | ||||
|                 case $FILE in | ||||
|                     /*) ;; | ||||
|                     *)  FILE="$ORIG_DIR/$FILE" ;; | ||||
|                 esac | ||||
|                 MEMBERS=`ar t $FILE` | ||||
|                 ar x $FILE | ||||
|                 for MEMBER in $MEMBERS ; do | ||||
|                     NEWFILES="$NEWFILES $DIR/$MEMBER" | ||||
|                 done | ||||
|                 ;; | ||||
|             *) | ||||
|                 # other file type, just add to list | ||||
|                 NEWFILES="$NEWFILES $FILE" | ||||
|                 ;; | ||||
|         esac | ||||
|     done | ||||
|     cd "$ORIG_DIR" | ||||
|     echo $NEWFILES | ||||
| } | ||||
|  | ||||
|  | ||||
| # Make static library with 'ar' | ||||
| # params: | ||||
| #    options to ar | ||||
| #    1 or 0 to indicate if ranlib should be run | ||||
| #    libname to make | ||||
| #    list of object files | ||||
| # Return name of library we made | ||||
| # Example: "make_ar_static_lib -ru 1 libfoo.a foo.o bar.o" | ||||
| make_ar_static_lib() { | ||||
|     OPTS=$1 | ||||
|     shift; | ||||
|     RANLIB=$1 | ||||
|     shift; | ||||
|     LIBNAME=$1 | ||||
|     shift; | ||||
|     OBJECTS=$@ | ||||
|  | ||||
|     # remove existing lib, if present | ||||
|     rm -f ${LIBNAME} | ||||
|  | ||||
|     # make static lib | ||||
|     ar ${OPTS} ${LIBNAME} ${OBJECTS} | ||||
|  | ||||
|     # run ranlib | ||||
|     if [ ${RANLIB} = 1 ] ; then | ||||
|         ranlib ${LIBNAME} | ||||
|     fi | ||||
|  | ||||
|     echo ${LIBNAME} | ||||
| } | ||||
|  | ||||
|  | ||||
| # Print usage info. | ||||
| usage() { | ||||
|     echo 'Usage: mklib [options] objects' | ||||
|     echo 'Create a shared library from object files.' | ||||
|     echo '  -o LIBRARY    specifies the name of the resulting library, without' | ||||
|     echo '                the leading "lib" or any suffix.' | ||||
|     echo '                (eg: "-o GL" might result in "libGL.so" being made)' | ||||
|     echo '  -major N      specifies major version number (default is 1)' | ||||
|     echo '  -minor N      specifies minor version number (default is 0)' | ||||
|     echo '  -patch N      specifies patch version number (default is 0)' | ||||
|     echo '  -lLIBRARY     specifies a dependency on LIBRARY' | ||||
|     echo '  -LDIR         search in DIR for library dependencies at build time' | ||||
|     echo '  -RDIR         search in DIR for library dependencies at run time' | ||||
|     echo '  -linker L     explicity specify the linker program to use (eg: gcc, g++)' | ||||
|     echo '                Not observed on all systems at this time.' | ||||
|     echo '  -ldflags OPT  specify any additional linker flags in OPT' | ||||
|     echo '  -cplusplus    link with C++ runtime' | ||||
|     echo '  -static       make a static library (default is dynamic/shared)' | ||||
|     echo '  -dlopen       make a shared library suitable for dynamic loading' | ||||
|     echo '  -install DIR  put resulting library file(s) in DIR' | ||||
|     echo '  -arch ARCH    override using `uname` to determine host system' | ||||
|     echo '  -archopt OPT  specify an extra achitecture-specific option OPT' | ||||
|     echo '  -altopts OPTS alternate options to override all others' | ||||
|     echo "  -noprefix     don't prefix library name with 'lib' nor add any suffix" | ||||
|     echo '  -exports FILE only export the symbols listed in FILE' | ||||
|     echo '  -id NAME      Sets the id of the dylib (Darwin)' | ||||
|     echo '  -h, --help    display this information and exit' | ||||
| } | ||||
|  | ||||
|  | ||||
| # | ||||
| # Option defaults | ||||
| # | ||||
| @@ -155,7 +52,31 @@ while true | ||||
| do | ||||
|     case $1 in | ||||
| 	'-h' | '--help') | ||||
| 	    usage | ||||
| 	    echo 'Usage: mklib [options] objects' | ||||
| 	    echo 'Create a shared library from object files.' | ||||
| 	    echo '  -o LIBRARY    specifies the name of the resulting library, without' | ||||
| 	    echo '                the leading "lib" or any suffix.' | ||||
| 	    echo '                (eg: "-o GL" might result in "libGL.so" being made)' | ||||
| 	    echo '  -major N      specifies major version number (default is 1)' | ||||
| 	    echo '  -minor N      specifies minor version number (default is 0)' | ||||
| 	    echo '  -patch N      specifies patch version number (default is 0)' | ||||
| 	    echo '  -lLIBRARY     specifies a dependency on LIBRARY' | ||||
| 	    echo '  -LDIR         search in DIR for library dependencies at build time' | ||||
| 	    echo '  -RDIR         search in DIR for library dependencies at run time' | ||||
| 	    echo '  -linker L     explicity specify the linker program to use (eg: gcc, g++)' | ||||
| 	    echo '                Not observed on all systems at this time.' | ||||
| 	    echo '  -ldflags OPT  specify any additional linker flags in OPT' | ||||
| 	    echo '  -cplusplus    link with C++ runtime' | ||||
| 	    echo '  -static       make a static library (default is dynamic/shared)' | ||||
| 	    echo '  -dlopen       make a shared library suitable for dynamic loading' | ||||
| 	    echo '  -install DIR  put resulting library file(s) in DIR' | ||||
| 	    echo '  -arch ARCH    override using `uname` to determine host system' | ||||
| 	    echo '  -archopt OPT  specify an extra achitecture-specific option OPT' | ||||
| 	    echo '  -altopts OPTS alternate options to override all others' | ||||
| 	    echo "  -noprefix     don't prefix library name with 'lib' nor add any suffix" | ||||
| 	    echo '  -exports FILE only export the symbols listed in FILE' | ||||
| 	    echo '  -id NAME      Sets the id of the dylib (Darwin)' | ||||
| 	    echo '  -h, --help    display this information and exit' | ||||
| 	    exit 1 | ||||
| 	    ;; | ||||
| 	'-o') | ||||
| @@ -260,7 +181,7 @@ if [ $STATIC = 1 ]; then | ||||
|     NEWOBJECTS="" | ||||
|     for OBJ in $OBJECTS ; do | ||||
| 	case $OBJ in | ||||
| 	    -Wl,*|-L*|-l*) | ||||
| 	    -Wl,*) | ||||
| 		echo "mklib: warning: ignoring $OBJ for static library" | ||||
| 		;; | ||||
| 	    *) | ||||
| @@ -276,11 +197,11 @@ fi | ||||
| # Error checking | ||||
| # | ||||
| if [ "x${LIBNAME}" = "x" ] ; then | ||||
|     echo "mklib: Error: no library name specified (-h for help)" | ||||
|     echo "mklib: Error: no library name specified" | ||||
|     exit 1 | ||||
| fi | ||||
| if [ "x${OBJECTS}" = "x" ] ; then | ||||
|     echo "mklib: Error: no object files specified (-h for help)" | ||||
|     echo "mklib: Error: no object files specified" | ||||
|     exit 1 | ||||
| fi | ||||
|  | ||||
| @@ -307,7 +228,7 @@ fi | ||||
| # | ||||
| case $ARCH in | ||||
|  | ||||
|     'Linux' | 'OpenBSD' | 'DragonFly' | 'GNU' | GNU/* | 'NetBSD') | ||||
|     'Linux' | 'OpenBSD' | 'DragonFly' | 'GNU' | GNU/*) | ||||
| 	# we assume gcc | ||||
|  | ||||
| 	if [ "x$LINK" = "x" ] ; then | ||||
| @@ -319,25 +240,6 @@ case $ARCH in | ||||
|             fi | ||||
| 	fi | ||||
|  | ||||
| 	# Check if objects are 32-bit and we're running in 64-bit | ||||
| 	# environment.  If so, pass -m32 flag to linker. | ||||
| 	add_abi_flag_to_opts() { | ||||
| 	    case $(file $1) in | ||||
| 		*32-bit*x86-64*) | ||||
| 		    # x86_64 x32 ABI. | ||||
| 		    OPTS="-mx32 ${OPTS}" | ||||
| 		    ;; | ||||
| 		*64-bit*x86-64*) | ||||
| 		    # x86_64 64-bit ABI. | ||||
| 		    OPTS="-m64 ${OPTS}" | ||||
| 		    ;; | ||||
| 		*32-bit*Intel*) | ||||
| 		    # x86 32-bit ABI. | ||||
| 		    OPTS="-m32 ${OPTS}" | ||||
| 		    ;; | ||||
| 	    esac | ||||
| 	} | ||||
|  | ||||
| 	if [ $NOPREFIX = 1 ] ; then | ||||
| 	    # No "lib" or ".so" part | ||||
| 	    echo "mklib: Making" $ARCH "shared library: " ${LIBNAME} | ||||
| @@ -349,8 +251,13 @@ case $ARCH in | ||||
| 	    ;; | ||||
| 	    esac | ||||
|  | ||||
| 	    # Check to see if we are building for a different ABI. | ||||
| 	    add_abi_flag_to_opts ${OBJECTS} | ||||
| 	    # Check if objects are 32-bit and we're running in 64-bit | ||||
| 	    # environment.  If so, pass -m32 flag to linker. | ||||
| 	    set ${OBJECTS} | ||||
| 	    ABI32=`file $1 | grep 32-bit` | ||||
| 	    if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then | ||||
| 		OPTS="-m32 ${OPTS}" | ||||
| 	    fi | ||||
|  | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
| @@ -362,24 +269,45 @@ case $ARCH in | ||||
|             # finish up | ||||
|             FINAL_LIBS="${LIBNAME}" | ||||
|         elif [ $STATIC = 1 ] ; then | ||||
| 	    # make a static .a library | ||||
|             LIBNAME="lib${LIBNAME}.a"     # prefix with "lib", suffix with ".a" | ||||
|             echo "mklib: Making" $ARCH "static library: " ${LIBNAME} | ||||
|             LINK="ar" | ||||
|             OPTS="-ru" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|             rm -f ${LIBNAME} | ||||
|  | ||||
| 	    # expand .a into .o files | ||||
| 	    NEW_OBJECTS=`expand_archives ${LIBNAME}.obj $OBJECTS` | ||||
| 	    # expand any .a objects into constituent .o files. | ||||
| 	    NEWOBJECTS="" | ||||
| 	    DELETIA="" | ||||
| 	    for OBJ in $OBJECTS ; do | ||||
| 		case $OBJ in | ||||
| 		    *.a) | ||||
| 			# extract the .o files from this .a archive | ||||
| 			FILES=`ar t $OBJ` | ||||
| 			ar x $OBJ | ||||
| 			NEWOBJECTS="$NEWOBJECTS $FILES" | ||||
| 			# keep track of temporary .o files and delete them below | ||||
| 			DELETIA="$DELETIA $FILES" | ||||
| 			;; | ||||
| 		    *) | ||||
| 			# ordinary .o file | ||||
| 			NEWOBJECTS="$NEWOBJECTS $OBJ" | ||||
| 			;; | ||||
| 		esac | ||||
| 	    done | ||||
|  | ||||
|             # make static lib | ||||
| 	    FINAL_LIBS=`make_ar_static_lib ${OPTS} 1 ${LIBNAME} ${NEW_OBJECTS}` | ||||
|             # make lib | ||||
|             ${LINK} ${OPTS} ${LIBNAME} ${NEWOBJECTS} | ||||
|             ranlib ${LIBNAME} | ||||
|  | ||||
| 	    # remove temporary extracted .o files | ||||
| 	    rm -rf ${LIBNAME}.obj | ||||
| 	    rm -f ${DELETIA} | ||||
|  | ||||
|             # finish up | ||||
|             FINAL_LIBS=${LIBNAME} | ||||
|         else | ||||
| 	    # make dynamic library | ||||
| 	    LIBNAME="lib${LIBNAME}"     # prefix with "lib" | ||||
| 	    case $ARCH in 'Linux' | 'GNU' | GNU/*) | ||||
| 		OPTS="-Xlinker -Bsymbolic -shared -Wl,-soname,${LIBNAME}.so.${MAJOR}" | ||||
| @@ -401,9 +329,13 @@ case $ARCH in | ||||
| 		# exptmp is removed below | ||||
| 	    fi | ||||
|  | ||||
| 	    # Check to see if we are building for a different ABI. | ||||
| 	    add_abi_flag_to_opts ${OBJECTS} | ||||
|  | ||||
| 	    # Check if objects are 32-bit and we're running in 64-bit | ||||
| 	    # environment.  If so, pass -m32 flag to linker. | ||||
| 	    set ${OBJECTS} | ||||
| 	    ABI32=`file $1 | grep 32-bit` | ||||
| 	    if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then | ||||
| 		OPTS="-m32 ${OPTS}" | ||||
| 	    fi | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
| @@ -436,7 +368,9 @@ case $ARCH in | ||||
|         if [ $STATIC = 1 ] ; then | ||||
| 	    LIBNAME="lib${LIBNAME}.a" | ||||
| 	    echo "mklib: Making SunOS static library: " ${LIBNAME} | ||||
| 	    FINAL_LIBS=`make_ar_static_lib -ruc 0 ${LIBNAME} ${OBJECTS}` | ||||
| 	    rm -f ${LIBNAME} | ||||
| 	    ar -ruv ${LIBNAME} ${OBJECTS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
| 	else | ||||
| 	    if [ $NOPREFIX = 0 ] ; then | ||||
| 		LIBNAME="lib${LIBNAME}.so" | ||||
| @@ -504,16 +438,13 @@ case $ARCH in | ||||
| 		OPTS="${OPTS} -Wl,-Mmapfile.scope" | ||||
| 	    fi | ||||
|  | ||||
| 	    # Check if objects are 64-bit | ||||
| 	    # Check if objects are SPARC v9 | ||||
| 	    # file says: ELF 64-bit MSB relocatable SPARCV9 Version 1 | ||||
| 	    set ${OBJECTS} | ||||
| 	    if [ ${LINK} = "cc" -o ${LINK} = "CC" ] ; then | ||||
| 		ABI64=`file $1 | grep "ELF 64-bit"` | ||||
| 		if [ "${ABI64}" ] ; then | ||||
| 		    case `uname -p` in | ||||
| 			sparc)	    OPTS="${OPTS} -xarch=v9" ;; | ||||
| 			i386)	    OPTS="${OPTS} -xarch=amd64" ;; | ||||
| 		    esac | ||||
| 		SPARCV9=`file $1 | grep SPARCV9` | ||||
| 		if [ "${SPARCV9}" ] ; then | ||||
| 		    OPTS="${OPTS} -xarch=v9" | ||||
| 		fi | ||||
| 	    fi | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
| @@ -558,19 +489,13 @@ case $ARCH in | ||||
| 	    ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
|         elif [ $STATIC = 1 ] ; then | ||||
| 	    # make a static .a library | ||||
| 	    STLIB="lib${LIBNAME}.a" | ||||
| 	    echo "mklib: Making FreeBSD static library: " ${STLIB} | ||||
|  | ||||
| 	    # expand .a into .o files | ||||
| 	    NEW_OBJECTS=`expand_archives ${STLIB}.obj $OBJECTS` | ||||
|  | ||||
| 	    FINAL_LIBS=`make_ar_static_lib cq 1 ${STLIB} ${NEW_OBJECTS}` | ||||
|  | ||||
| 	    # remove temporary extracted .o files | ||||
| 	    rm -rf ${STLIB}.obj | ||||
| 	    rm -f ${STLIB} | ||||
| 	    ar cq ${STLIB} ${OBJECTS} | ||||
| 	    ranlib ${STLIB} | ||||
| 	    FINAL_LIBS=${STLIB} | ||||
| 	else | ||||
| 	    # make dynamic library | ||||
| 	    SHLIB="lib${LIBNAME}.so.${MAJOR}" | ||||
| 	    OPTS="-shared -Wl,-soname,${SHLIB}" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
| @@ -584,10 +509,29 @@ case $ARCH in | ||||
| 	fi | ||||
| 	;; | ||||
|  | ||||
|     'NetBSD') | ||||
|         if [ $STATIC = 1 ] ; then | ||||
| 	    LIBNAME="lib${LIBNAME}_pic.a" | ||||
| 	    echo "mklib: Making NetBSD PIC static library: " ${LIBNAME} | ||||
| 	    rm -f ${LIBNAME} | ||||
| 	    ar cq ${LIBNAME} ${OBJECTS} | ||||
| 	    ranlib ${LIBNAME} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
| 	else | ||||
| 	    LIBNAME="lib${LIBNAME}.so.${MAJOR}.${MINOR}" | ||||
| 	    echo "mklib: Making NetBSD PIC shared library: " ${LIBNAME} | ||||
| 	    rm -f ${LIBNAME} | ||||
| 	    ld -x -Bshareable -Bforcearchive -o ${LIBNAME} ${OBJECTS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
| 	fi | ||||
| 	;; | ||||
|  | ||||
|     'IRIX' | 'IRIX64') | ||||
|         if [ $STATIC = 1 ] ; then | ||||
| 	    LIBNAME="lib${LIBNAME}.a" | ||||
| 	    FINAL_LIBS=`make_ar_static_lib rc 0 ${LIBNAME} ${OBJECTS}` | ||||
| 	    rm -f ${LIBNAME} | ||||
| 	    ar rc ${LIBNAME} ${OBJECTS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
| 	else | ||||
| 	    LIBNAME="lib${LIBNAME}.so"  # prefix with "lib", suffix with ".so" | ||||
|  | ||||
| @@ -638,7 +582,9 @@ case $ARCH in | ||||
|         if [ $STATIC = 1 ] ; then | ||||
| 	    LIBNAME="lib${LIBNAME}.a" | ||||
| 	    echo "mklib: Making HP-UX static library: " ${LIBNAME} | ||||
|     	    FINAL_LIBS=`make_ar_static_lib -ruv 0 ${LIBNAME} ${OBJECTS}` | ||||
| 	    rm -f ${LIBNAME} | ||||
| 	    ar -ruv ${LIBNAME} ${OBJECTS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
| 	else | ||||
|             # HP uses a .2 for their current GL/GLU libraries | ||||
| 	    if [ ${LIBNAME} = "GL" -o ${LIBNAME} = "GLU" ] ; then | ||||
| @@ -668,7 +614,8 @@ case $ARCH in | ||||
| 	if [ $STATIC = 1 ] ; then | ||||
| 	    LIBNAME="lib${LIBNAME}.a" | ||||
| 	    echo "mklib: Making AIX static library: " ${LIBNAME} | ||||
|     	    FINAL_LIBS=`make_ar_static_lib -ruv 0 ${LIBNAME} ${OBJECTS}` | ||||
| 	    ar -ruv ${X64} ${LIBNAME} ${OBJECTS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
| 	else | ||||
| 	    EXPFILE="lib${LIBNAME}.exp" | ||||
| 	    LIBNAME="lib${LIBNAME}.a"  # shared objects are still stored in the .a libraries | ||||
| @@ -719,7 +666,9 @@ case $ARCH in | ||||
|         if [ $STATIC = 1 ] ; then | ||||
| 	    LIBNAME="lib${LIBNAME}.a" | ||||
| 	    echo "mklib: Making OSF/1 static library: " ${LIBNAME} | ||||
|     	    FINAL_LIBS=`make_ar_static_lib -ruv 0 ${LIBNAME} ${OBJECTS}` | ||||
| 	    rm -f ${LIBNAME} | ||||
| 	    ar -ruv ${LIBNAME} ${OBJECTS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
| 	else | ||||
| 	    VERSION="${MAJOR}.${MINOR}" | ||||
| 	    LIBNAME="lib${LIBNAME}.so" | ||||
| @@ -742,20 +691,12 @@ case $ARCH in | ||||
|         if [ $STATIC = 1 ] ; then | ||||
|             LIBNAME="lib${LIBNAME}.a" | ||||
|             echo "mklib: Making Darwin static library: " ${LIBNAME} | ||||
|             LINK="ar" | ||||
|             OPTS="-ruvs" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|  | ||||
|             # expand .a into .o files | ||||
|             NEW_OBJECTS=`expand_archives ${LIBNAME}.obj $OBJECTS` | ||||
|  | ||||
|             # make static lib | ||||
|             FINAL_LIBS=`make_ar_static_lib ${OPTS} 1 ${LIBNAME} ${NEW_OBJECTS}` | ||||
|  | ||||
|             # remove temporary extracted .o files | ||||
|             rm -rf ${LIBNAME}.obj | ||||
|  | ||||
|             ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS} | ||||
|             FINAL_LIBS=${LIBNAME} | ||||
|         else | ||||
|             # On Darwin a .bundle is used for a library that you want to dlopen | ||||
| @@ -777,8 +718,9 @@ case $ARCH in | ||||
|                 OPTS="${OPTS} -exported_symbols_list ${EXPORTS}" | ||||
|             fi | ||||
|  | ||||
|             LINKNAME="lib${LIBNAME}.${LIBSUFFIX}" | ||||
|             LIBNAME="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}" | ||||
|             LINKNAME="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}" | ||||
|             LINKNAME2="lib${LIBNAME}.${LIBSUFFIX}" | ||||
|             LIBNAME="lib${LIBNAME}.${MAJOR}.${MINOR}.${LIBSUFFIX}" | ||||
|  | ||||
| 	    # examine first object to determine ABI | ||||
|     	    set ${OBJECTS} | ||||
| @@ -791,6 +733,9 @@ case $ARCH in | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|  | ||||
| 	    # XXX can we always add -isysroot /Developer/SDKs/MacOSX10.4u.sdk | ||||
| 	    # to OPTS here? | ||||
|  | ||||
| 	    # determine linker | ||||
| 	    if [ $CPLUSPLUS = 1 ] ; then | ||||
| 		LINK="g++" | ||||
| @@ -802,14 +747,33 @@ case $ARCH in | ||||
|  | ||||
|             ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
|             ln -s ${LIBNAME} ${LINKNAME} | ||||
|             FINAL_LIBS="${LIBNAME} ${LINKNAME}" | ||||
|             ln -s ${LIBNAME} ${LINKNAME2} | ||||
|             FINAL_LIBS="${LIBNAME} ${LINKNAME} ${LINKNAME2}" | ||||
|         fi | ||||
|         ;; | ||||
|  | ||||
|     'LynxOS') | ||||
| 	LIBNAME="lib${LIBNAME}.a" | ||||
| 	echo "mklib: Making LynxOS static library: " ${LIBNAME} | ||||
|         FINAL_LIBS=`make_ar_static_lib -ru 0 ${LIBNAME} ${OBJECTS}` | ||||
| 	rm -f ${LIBNAME} | ||||
| 	ar ru ${LIBNAME} ${OBJECTS} | ||||
| 	FINAL_LIBS=${LIBNAME} | ||||
| 	;; | ||||
|  | ||||
|     'BeOS') | ||||
|         if [ $STATIC = 1 ] ; then | ||||
|             LIBNAME="lib${LIBNAME}.a" | ||||
|             echo "mklib: Making BeOS static library: " ${LIBNAME} | ||||
|             ar -cru "${LIBNAME}" ${OBJECTS} | ||||
|         else | ||||
| 	    LIBNAME="lib${LIBNAME}.so" | ||||
| 	    echo "mklib: Making BeOS shared library: " ${LIBNAME} | ||||
| 	    gcc -nostart -Xlinker "-soname=${LIBNAME}" -L/Be/develop/lib/x86 -lbe ${DEPS} ${OBJECTS} -o "${LIBNAME}" | ||||
| 	    mimeset -f "${LIBNAME}" | ||||
| 	    # XXX remove the Mesa3D stuff here since mklib isn't mesa-specific. | ||||
| 	    setversion "${LIBNAME}" -app ${MAJOR} ${MINOR} ${PATCH} -short "Powered by Mesa3D!" -long "Powered by Mesa3D!" | ||||
| 	fi | ||||
| 	FINAL_LIBS=${LIBNAME} | ||||
| 	;; | ||||
|  | ||||
|     'QNX') | ||||
| @@ -879,7 +843,9 @@ case $ARCH in | ||||
|         if [ $STATIC = 1 ] ; then | ||||
| 	    LIBNAME="lib${LIBNAME}.a" | ||||
| 	    echo "mklib: Making AIX GCC static library: " ${LIBNAME} | ||||
|             FINAL_LIBS=`make_ar_static_lib ru 0 ${LIBNAME} ${OBJECTS}` | ||||
| 	    rm -f ${LIBNAME} | ||||
| 	    ar ru ${LIBNAME} ${OBJECTS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
| 	else | ||||
| 	    LIBNAME="lib${LIBNAME}.so"  # prefix with "lib", suffix with ".so" | ||||
| 	    echo "mklib: Making AIX GCC shared library: " ${LIBNAME} | ||||
| @@ -900,21 +866,13 @@ case $ARCH in | ||||
| 	fi | ||||
| 	LIBNAME="lib${LIBNAME}.a" | ||||
| 	echo "mklib: Making static library for Ultrix: " ${LIBNAME} | ||||
|         FINAL_LIBS=`make_ar_static_lib ru 0 ${LIBNAME} ${OBJECTS}` | ||||
| 	rm -f ${LIBNAME} | ||||
| 	ar ru ${LIBNAME} ${OBJECTS} | ||||
| 	FINAL_LIBS="${LIBNAME}" | ||||
| 	;; | ||||
|  | ||||
|      CYGWIN*) | ||||
| 	# GCC-based environment | ||||
|  | ||||
| 	if [ "x$LINK" = "x" ] ; then | ||||
| 	    # -linker was not specified so set default link command now | ||||
|             if [ $CPLUSPLUS = 1 ] ; then | ||||
|                 LINK=g++ | ||||
|             else | ||||
|                 LINK=gcc | ||||
|             fi | ||||
| 	fi | ||||
|  | ||||
| 	if [ $NOPREFIX = 1 ] ; then | ||||
| 	    # No "lib" or ".so" part | ||||
| 	    echo "mklib: Making CYGWIN shared library: " ${LIBNAME} | ||||
| @@ -923,33 +881,36 @@ case $ARCH in | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
| 	    rm -f ${LIBNAME} | ||||
| 	    ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} || exit $? | ||||
| 	    ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
|         else | ||||
| 	CYGNAME="cyg${LIBNAME}"     # prefix with "cyg" | ||||
| 	LIBNAME="lib${LIBNAME}"     # prefix with "lib" | ||||
|  | ||||
|         if [ $STATIC = 1 ] ; then | ||||
| 	    LIBNAME=${LIBNAME}.a | ||||
|             echo "mklib: Making CYGWIN static library: " ${LIBNAME} | ||||
|             echo "mklib: Making" $ARCH "static library: " ${LIBNAME}.a | ||||
|             LINK="ar" | ||||
|             OPTS="-ru" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|  | ||||
|             # expand .a into .o files | ||||
|             NEW_OBJECTS=`expand_archives ${LIBNAME}.obj $OBJECTS` | ||||
|  | ||||
|             FINAL_LIBS=`make_ar_static_lib ${OPTS} 1 ${LIBNAME} ${NEW_OBJECTS}` | ||||
|  | ||||
|             # remove temporary extracted .o files | ||||
|             rm -rf ${LIBNAME}.obj | ||||
|             # make lib | ||||
|             ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS} | ||||
| 	    ranlib ${LIBNAME}.a | ||||
|             # finish up | ||||
|             FINAL_LIBS=${LIBNAME}.a | ||||
|         else | ||||
| 	    OPTS="-shared -Wl,--enable-auto-image-base -Wl,-export-all -Wl,--out-implib=${LIBNAME}-${MAJOR}.dll.a" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|             echo "mklib: Making CYGWIN shared library: " ${CYGNAME}-${MAJOR}.dll | ||||
|             echo "mklib: Making" $ARCH "shared library: " ${CYGNAME}-${MAJOR}.dll | ||||
|  | ||||
|             if [ $CPLUSPLUS = 1 ] ; then | ||||
|                 LINK="g++" | ||||
|             else | ||||
|                 LINK="gcc" | ||||
|             fi | ||||
|  | ||||
|             # rm any old libs | ||||
|             rm -f ${CYGNAME}-${MAJOR}.dll | ||||
| @@ -958,7 +919,12 @@ case $ARCH in | ||||
|             rm -f ${LIBNAME}.a | ||||
|  | ||||
|             # make lib | ||||
|             ${LINK} ${OPTS} ${LDFLAGS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS} || exit $? | ||||
|             ${LINK} ${OPTS} ${LDFLAGS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS} | ||||
|             # make build fail if link failed | ||||
|             es=$? | ||||
|             if [ "$es" -ne "0" ]; then | ||||
|                 exit $es | ||||
|             fi | ||||
|             # make usual symlinks | ||||
|             ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a | ||||
|             # finish up | ||||
| @@ -969,50 +935,15 @@ case $ARCH in | ||||
|         fi | ||||
| 	;; | ||||
|  | ||||
| 	'Haiku') | ||||
| 		if [ $STATIC = 1 ] ; then | ||||
| 			LIBNAME="lib${LIBNAME}.a" | ||||
| 			if [ "x$LINK" = "x" ] ; then | ||||
| 				# -linker was not specified so set default link command now | ||||
| 				if [ $CPLUSPLUS = 1 ] ; then | ||||
| 					LINK=g++ | ||||
| 				else | ||||
| 					LINK=gcc | ||||
| 				fi | ||||
| 			fi | ||||
|  | ||||
| 			OPTS="-ru" | ||||
| 			if [ "${ALTOPTS}" ] ; then | ||||
| 				OPTS=${ALTOPTS} | ||||
| 			fi | ||||
|  | ||||
| 			echo "mklib: Making static library for Haiku: " ${LIBNAME} | ||||
|  | ||||
| 			# expand .a into .o files | ||||
| 			NEW_OBJECTS=`expand_archives ${LIBNAME}.obj $OBJECTS` | ||||
|  | ||||
| 			# make static lib | ||||
| 			FINAL_LIBS=`make_ar_static_lib ${OPTS} 1 ${LIBNAME} ${NEW_OBJECTS}` | ||||
|  | ||||
| 			# remove temporary extracted .o files | ||||
| 			rm -rf ${LIBNAME}.obj | ||||
| 		else | ||||
| 			LIBNAME="lib${LIBNAME}.so"  # prefix with "lib", suffix with ".so" | ||||
| 			OPTS="-shared" | ||||
|  | ||||
| 			echo "mklib: Making shared library for Haiku: " ${LIBNAME} | ||||
| 			${LINK} ${OPTS} ${LDFLAGS} ${OBJECTS} ${DEPS} -o ${LIBNAME} | ||||
| 			FINAL_LIBS="${LIBNAME}" | ||||
| 		fi | ||||
| 	;; | ||||
|  | ||||
|     'example') | ||||
| 	# If you're adding support for a new architecture, you can | ||||
| 	# start with this: | ||||
|         if [ $STATIC = 1 ] ; then | ||||
| 	    LIBNAME="lib${LIBNAME}.a" | ||||
| 	    echo "mklib: Making static library for example arch: " ${LIBNAME} | ||||
|             FINAL_LIBS=`make_ar_static_lib rv 0 ${LIBNAME} ${OBJECTS}` | ||||
| 	    rm -f ${LIBNAME} | ||||
| 	    ar rv ${LIBNAME} ${OBJECTS} | ||||
| 	    FINAL_LIBS="${LIBNAME}" | ||||
| 	else | ||||
| 	    LIBNAME="lib${LIBNAME}.so"  # prefix with "lib", suffix with ".so" | ||||
| 	    echo "mklib: Making shared library for example arch: " ${LIBNAME} | ||||
| @@ -1035,9 +966,4 @@ if [ ${INSTALLDIR} != "." ] ; then | ||||
|     echo "mklib: Installing" ${FINAL_LIBS} "in" ${INSTALLDIR} | ||||
|     test -d ${INSTALLDIR} || mkdir -p ${INSTALLDIR} | ||||
|     mv ${FINAL_LIBS} ${INSTALLDIR}/ | ||||
|  | ||||
|     if [ "x${FINAL_BINS}" != "x" ] ; then | ||||
|         echo "mklib: Installing" ${FINAL_BINS} "in" ${INSTALLDIR} | ||||
|         mv ${FINAL_BINS} ${INSTALLDIR}/ | ||||
|     fi | ||||
| fi | ||||
|   | ||||
							
								
								
									
										366
									
								
								bin/raw2png.py
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										366
									
								
								bin/raw2png.py
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,366 @@ | ||||
| #!/usr/bin/env python | ||||
| ########################################################################## | ||||
| #  | ||||
| # Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas. | ||||
| # All Rights Reserved. | ||||
| #  | ||||
| # Permission is hereby granted, free of charge, to any person obtaining a | ||||
| # copy of this software and associated documentation files (the | ||||
| # "Software"), to deal in the Software without restriction, including | ||||
| # without limitation the rights to use, copy, modify, merge, publish, | ||||
| # distribute, sub license, and/or sell copies of the Software, and to | ||||
| # permit persons to whom the Software is furnished to do so, subject to | ||||
| # the following conditions: | ||||
| #  | ||||
| # The above copyright notice and this permission notice (including the | ||||
| # next paragraph) shall be included in all copies or substantial portions | ||||
| # of the Software. | ||||
| #  | ||||
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||||
| # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||||
| # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. | ||||
| # IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR | ||||
| # ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||||
| # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||||
| # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
| #  | ||||
| ########################################################################## | ||||
|  | ||||
|  | ||||
| import os.path | ||||
| import sys | ||||
| import struct | ||||
| import Image # http://www.pythonware.com/products/pil/ | ||||
|  | ||||
| PIPE_FORMAT_LAYOUT_RGBAZS   = 0 | ||||
| PIPE_FORMAT_LAYOUT_YCBCR    = 1 | ||||
| PIPE_FORMAT_LAYOUT_DXT      = 2 | ||||
| PIPE_FORMAT_LAYOUT_MIXED    = 3 | ||||
|  | ||||
| PIPE_FORMAT_COMP_R    = 0 | ||||
| PIPE_FORMAT_COMP_G    = 1 | ||||
| PIPE_FORMAT_COMP_B    = 2 | ||||
| PIPE_FORMAT_COMP_A    = 3 | ||||
| PIPE_FORMAT_COMP_0    = 4 | ||||
| PIPE_FORMAT_COMP_1    = 5 | ||||
| PIPE_FORMAT_COMP_Z    = 6 | ||||
| PIPE_FORMAT_COMP_S    = 7 | ||||
|  | ||||
| PIPE_FORMAT_TYPE_UNKNOWN = 0 | ||||
| PIPE_FORMAT_TYPE_FLOAT   = 1 | ||||
| PIPE_FORMAT_TYPE_UNORM   = 2 | ||||
| PIPE_FORMAT_TYPE_SNORM   = 3 | ||||
| PIPE_FORMAT_TYPE_USCALED = 4 | ||||
| PIPE_FORMAT_TYPE_SSCALED = 5 | ||||
| PIPE_FORMAT_TYPE_SRGB    = 6 | ||||
| PIPE_FORMAT_TYPE_FIXED   = 7 | ||||
|  | ||||
| def _PIPE_FORMAT_RGBAZS( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, EXP2, TYPE ): | ||||
|    return ((PIPE_FORMAT_LAYOUT_RGBAZS << 0) |\ | ||||
|    ((SWZ) << 2) |\ | ||||
|    ((SIZEX) << 14) |\ | ||||
|    ((SIZEY) << 17) |\ | ||||
|    ((SIZEZ) << 20) |\ | ||||
|    ((SIZEW) << 23) |\ | ||||
|    ((EXP2) << 26) |\ | ||||
|    ((TYPE) << 29) ) | ||||
|  | ||||
| def _PIPE_FORMAT_SWZ( SWZX, SWZY, SWZZ, SWZW ): | ||||
| 	return (((SWZX) << 0) | ((SWZY) << 3) | ((SWZZ) << 6) | ((SWZW) << 9)) | ||||
|  | ||||
| def _PIPE_FORMAT_RGBAZS_1( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, TYPE ): | ||||
| 	return _PIPE_FORMAT_RGBAZS( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, 0, TYPE ) | ||||
|  | ||||
| def _PIPE_FORMAT_RGBAZS_2( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, TYPE ): | ||||
|     _PIPE_FORMAT_RGBAZS( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, 1, TYPE ) | ||||
|  | ||||
| def _PIPE_FORMAT_RGBAZS_8( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, TYPE ): | ||||
| 	return _PIPE_FORMAT_RGBAZS( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, 3, TYPE ) | ||||
|  | ||||
| def _PIPE_FORMAT_RGBAZS_64( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, TYPE ): | ||||
| 	return _PIPE_FORMAT_RGBAZS( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, 6, TYPE ) | ||||
|  | ||||
| def _PIPE_FORMAT_MIXED( SWZ, SIZEX, SIZEY, SIZEZ, SIZEW, SIGNX, SIGNY, SIGNZ, SIGNW, NORMALIZED, SCALE8 ): | ||||
|     return ((PIPE_FORMAT_LAYOUT_MIXED << 0) |\ | ||||
|     ((SWZ) << 2) |\ | ||||
|     ((SIZEX) << 14) |\ | ||||
|     ((SIZEY) << 17) |\ | ||||
|     ((SIZEZ) << 20) |\ | ||||
|     ((SIZEW) << 23) |\ | ||||
|     ((SIGNX) << 26) |\ | ||||
|     ((SIGNY) << 27) |\ | ||||
|     ((SIGNZ) << 28) |\ | ||||
|     ((SIGNW) << 29) |\ | ||||
|     ((NORMALIZED) << 30) |\ | ||||
|     ((SCALE8) << 31) ) | ||||
|  | ||||
|  | ||||
| _PIPE_FORMAT_R001 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_1 ) | ||||
| _PIPE_FORMAT_RG01 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_1 ) | ||||
| _PIPE_FORMAT_RGB1 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_1 ) | ||||
| _PIPE_FORMAT_RGBA = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_A ) | ||||
| _PIPE_FORMAT_ARGB = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_A, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B ) | ||||
| _PIPE_FORMAT_ABGR = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_A, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_R ) | ||||
| _PIPE_FORMAT_BGRA = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_A ) | ||||
| _PIPE_FORMAT_1RGB = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_1, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_B ) | ||||
| _PIPE_FORMAT_1BGR = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_1, PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_R ) | ||||
| _PIPE_FORMAT_BGR1 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_B, PIPE_FORMAT_COMP_G, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_1 ) | ||||
| _PIPE_FORMAT_0000 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 ) | ||||
| _PIPE_FORMAT_000R = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_R ) | ||||
| _PIPE_FORMAT_RRR1 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_1 ) | ||||
| _PIPE_FORMAT_RRRR = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R ) | ||||
| _PIPE_FORMAT_RRRG = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_R, PIPE_FORMAT_COMP_G ) | ||||
| _PIPE_FORMAT_Z000 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_Z, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 ) | ||||
| _PIPE_FORMAT_0Z00 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_Z, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 ) | ||||
| _PIPE_FORMAT_SZ00 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_S, PIPE_FORMAT_COMP_Z, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 ) | ||||
| _PIPE_FORMAT_ZS00 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_Z, PIPE_FORMAT_COMP_S, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 ) | ||||
| _PIPE_FORMAT_S000 = _PIPE_FORMAT_SWZ( PIPE_FORMAT_COMP_S, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0, PIPE_FORMAT_COMP_0 ) | ||||
|  | ||||
| def _PIPE_FORMAT_YCBCR( REV ): | ||||
|    return ((PIPE_FORMAT_LAYOUT_YCBCR << 0) |\ | ||||
|    ((REV) << 2) ) | ||||
|  | ||||
| def _PIPE_FORMAT_DXT( LEVEL, RSIZE, GSIZE, BSIZE, ASIZE ): | ||||
|     return ((PIPE_FORMAT_LAYOUT_DXT << 0) | \ | ||||
|     ((LEVEL) << 2) | \ | ||||
|     ((RSIZE) << 5) | \ | ||||
|     ((GSIZE) << 8) | \ | ||||
|     ((BSIZE) << 11) | \ | ||||
|     ((ASIZE) << 14) ) | ||||
|  | ||||
| PIPE_FORMAT_NONE                  = _PIPE_FORMAT_RGBAZS_1 ( _PIPE_FORMAT_0000, 0, 0, 0, 0, PIPE_FORMAT_TYPE_UNKNOWN ) | ||||
| PIPE_FORMAT_A8R8G8B8_UNORM        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_ARGB, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_X8R8G8B8_UNORM        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_1RGB, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_B8G8R8A8_UNORM        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_BGRA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_B8G8R8X8_UNORM        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_BGR1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_A1R5G5B5_UNORM        = _PIPE_FORMAT_RGBAZS_1 ( _PIPE_FORMAT_ARGB, 1, 5, 5, 5, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_A4R4G4B4_UNORM        = _PIPE_FORMAT_RGBAZS_1 ( _PIPE_FORMAT_ARGB, 4, 4, 4, 4, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R5G6B5_UNORM          = _PIPE_FORMAT_RGBAZS_1 ( _PIPE_FORMAT_RGB1, 5, 6, 5, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_A2B10G10R10_UNORM     = _PIPE_FORMAT_RGBAZS_2 ( _PIPE_FORMAT_ABGR, 1, 5, 5, 5, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_L8_UNORM              = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRR1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_A8_UNORM              = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_000R, 0, 0, 0, 1, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_I8_UNORM              = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRRR, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_A8L8_UNORM            = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRRG, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_L16_UNORM             = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRR1, 2, 2, 2, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_YCBCR                 = _PIPE_FORMAT_YCBCR( 0 ) | ||||
| PIPE_FORMAT_YCBCR_REV             = _PIPE_FORMAT_YCBCR( 1 ) | ||||
| PIPE_FORMAT_Z16_UNORM             = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_Z000, 2, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_Z32_UNORM             = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_Z000, 4, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_Z32_FLOAT             = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_Z000, 4, 0, 0, 0, PIPE_FORMAT_TYPE_FLOAT ) | ||||
| PIPE_FORMAT_S8Z24_UNORM           = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_SZ00, 1, 3, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_Z24S8_UNORM           = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_ZS00, 3, 1, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_X8Z24_UNORM           = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_0Z00, 1, 3, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_Z24X8_UNORM           = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_Z000, 3, 1, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_S8_UNORM              = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_S000, 1, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R64_FLOAT             = _PIPE_FORMAT_RGBAZS_64( _PIPE_FORMAT_R001, 1, 0, 0, 0, PIPE_FORMAT_TYPE_FLOAT ) | ||||
| PIPE_FORMAT_R64G64_FLOAT          = _PIPE_FORMAT_RGBAZS_64( _PIPE_FORMAT_RG01, 1, 1, 0, 0, PIPE_FORMAT_TYPE_FLOAT ) | ||||
| PIPE_FORMAT_R64G64B64_FLOAT       = _PIPE_FORMAT_RGBAZS_64( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_FLOAT ) | ||||
| PIPE_FORMAT_R64G64B64A64_FLOAT    = _PIPE_FORMAT_RGBAZS_64( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_FLOAT ) | ||||
| PIPE_FORMAT_R32_FLOAT             = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_FLOAT ) | ||||
| PIPE_FORMAT_R32G32_FLOAT          = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_FLOAT ) | ||||
| PIPE_FORMAT_R32G32B32_FLOAT       = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_FLOAT ) | ||||
| PIPE_FORMAT_R32G32B32A32_FLOAT    = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_FLOAT ) | ||||
| PIPE_FORMAT_R32_UNORM             = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R32G32_UNORM          = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R32G32B32_UNORM       = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R32G32B32A32_UNORM    = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R32_USCALED           = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R32G32_USCALED        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R32G32B32_USCALED     = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R32G32B32A32_USCALED  = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R32_SNORM             = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R32G32_SNORM          = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R32G32B32_SNORM       = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R32G32B32A32_SNORM    = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R32_SSCALED           = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R32G32_SSCALED        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R32G32B32_SSCALED     = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R32G32B32A32_SSCALED  = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R16_UNORM             = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 2, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R16G16_UNORM          = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 2, 2, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R16G16B16_UNORM       = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 2, 2, 2, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R16G16B16A16_UNORM    = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 2, 2, 2, 2, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R16_USCALED           = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 2, 0, 0, 0, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R16G16_USCALED        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 2, 2, 0, 0, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R16G16B16_USCALED     = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 2, 2, 2, 0, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R16G16B16A16_USCALED  = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 2, 2, 2, 2, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R16_SNORM             = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 2, 0, 0, 0, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R16G16_SNORM          = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 2, 2, 0, 0, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R16G16B16_SNORM       = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 2, 2, 2, 0, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R16G16B16A16_SNORM    = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 2, 2, 2, 2, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R16_SSCALED           = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 2, 0, 0, 0, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R16G16_SSCALED        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 2, 2, 0, 0, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R16G16B16_SSCALED     = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 2, 2, 2, 0, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R16G16B16A16_SSCALED  = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 2, 2, 2, 2, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R8_UNORM              = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 1, 0, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R8G8_UNORM            = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 1, 1, 0, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R8G8B8_UNORM          = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R8G8B8A8_UNORM        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R8G8B8X8_UNORM        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_UNORM ) | ||||
| PIPE_FORMAT_R8_USCALED            = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 1, 0, 0, 0, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R8G8_USCALED          = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 1, 1, 0, 0, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R8G8B8_USCALED        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R8G8B8A8_USCALED      = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R8G8B8X8_USCALED      = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_USCALED ) | ||||
| PIPE_FORMAT_R8_SNORM              = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 1, 0, 0, 0, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R8G8_SNORM            = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 1, 1, 0, 0, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R8G8B8_SNORM          = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R8G8B8A8_SNORM        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R8G8B8X8_SNORM        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_B6G5R5_SNORM          = _PIPE_FORMAT_RGBAZS_1 ( _PIPE_FORMAT_BGR1, 6, 5, 5, 0, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_A8B8G8R8_SNORM        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_BGRA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_X8B8G8R8_SNORM        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SNORM ) | ||||
| PIPE_FORMAT_R8_SSCALED            = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 1, 0, 0, 0, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R8G8_SSCALED          = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 1, 1, 0, 0, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R8G8B8_SSCALED        = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R8G8B8A8_SSCALED      = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R8G8B8X8_SSCALED      = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SSCALED ) | ||||
| PIPE_FORMAT_R32_FIXED             = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_R001, 4, 0, 0, 0, PIPE_FORMAT_TYPE_FIXED ) | ||||
| PIPE_FORMAT_R32G32_FIXED          = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RG01, 4, 4, 0, 0, PIPE_FORMAT_TYPE_FIXED ) | ||||
| PIPE_FORMAT_R32G32B32_FIXED       = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 4, 4, 4, 0, PIPE_FORMAT_TYPE_FIXED ) | ||||
| PIPE_FORMAT_R32G32B32A32_FIXED    = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 4, 4, 4, 4, PIPE_FORMAT_TYPE_FIXED ) | ||||
| PIPE_FORMAT_L8_SRGB               = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRR1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_SRGB ) | ||||
| PIPE_FORMAT_A8_L8_SRGB            = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RRRG, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SRGB ) | ||||
| PIPE_FORMAT_R8G8B8_SRGB           = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 0, PIPE_FORMAT_TYPE_SRGB ) | ||||
| PIPE_FORMAT_R8G8B8A8_SRGB         = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGBA, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SRGB ) | ||||
| PIPE_FORMAT_R8G8B8X8_SRGB         = _PIPE_FORMAT_RGBAZS_8 ( _PIPE_FORMAT_RGB1, 1, 1, 1, 1, PIPE_FORMAT_TYPE_SRGB ) | ||||
| PIPE_FORMAT_X8UB8UG8SR8S_NORM     = _PIPE_FORMAT_MIXED( _PIPE_FORMAT_1BGR, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1 ) | ||||
| PIPE_FORMAT_B6UG5SR5S_NORM        = _PIPE_FORMAT_MIXED( _PIPE_FORMAT_BGR1, 6, 5, 5, 0, 0, 1, 1, 0, 1, 0 ) | ||||
| PIPE_FORMAT_DXT1_RGB              = _PIPE_FORMAT_DXT( 1, 8, 8, 8, 0 ) | ||||
| PIPE_FORMAT_DXT1_RGBA             = _PIPE_FORMAT_DXT( 1, 8, 8, 8, 8 ) | ||||
| PIPE_FORMAT_DXT3_RGBA             = _PIPE_FORMAT_DXT( 3, 8, 8, 8, 8 ) | ||||
| PIPE_FORMAT_DXT5_RGBA             = _PIPE_FORMAT_DXT( 5, 8, 8, 8, 8 ) | ||||
|  | ||||
|  | ||||
| formats = {} | ||||
| for name, value in globals().items(): | ||||
|     if name.startswith("PIPE_FORMAT_") and isinstance(value, int): | ||||
|         formats[value] = name | ||||
|  | ||||
|  | ||||
| def clip(g): | ||||
| 	return min(max(g, 0), 255) | ||||
|  | ||||
|  | ||||
| def yuv2rgb(y, u, v): | ||||
| 	C = y - 16 | ||||
| 	D = u - 128 | ||||
| 	E = v - 128 | ||||
|  | ||||
| 	r = clip(( 298 * C           + 409 * E + 128) >> 8) | ||||
| 	g = clip(( 298 * C - 100 * D - 208 * E + 128) >> 8) | ||||
| 	b = clip(( 298 * C + 516 * D           + 128) >> 8) | ||||
| 	 | ||||
| 	return r, g, b | ||||
|  | ||||
| 	 | ||||
| def translate_r5g6b5(data): | ||||
| 	value, = struct.unpack_from("H", data) | ||||
| 	r = ((value >> 11) & 0x1f)*0xff/0x1f | ||||
| 	g = ((value >>  5) & 0x3f)*0xff/0x3f | ||||
| 	b = ((value >>  0) & 0x1f)*0xff/0x1f | ||||
| 	a = 255 | ||||
| 	return [[(r, g, b, a)]] | ||||
|  | ||||
| def translate_a8r8g8b8(data): | ||||
|     b, g, r, a = struct.unpack_from("BBBB", data) | ||||
|     return [[(r, g, b, a)]] | ||||
|  | ||||
|  | ||||
| def translate_x8r8g8b8(data): | ||||
|     b, g, r, x = struct.unpack_from("BBBB", data) | ||||
|     a = 255 | ||||
|     return [[(r, g, b, a)]] | ||||
|  | ||||
| def translate_r8g8b8a8(data): | ||||
| 	r, g, b, a = struct.unpack_from("BBBB", data) | ||||
| 	return [[(r, g, b, a)]] | ||||
|  | ||||
| def translate_ycbcr(data): | ||||
| 	y1, u, y2, v = struct.unpack_from("BBBB", data) | ||||
| 	r1, g1, b1 = yuv2rgb(y1, u, v) | ||||
| 	r2, g2, b2 = yuv2rgb(y1, u, v) | ||||
| 	return [[(r1, g1, b1, 255), (r2, g2, b2, 255)]] | ||||
|  | ||||
| def translate_ycbcr_rev(data): | ||||
|     v, y2, u, y1 = struct.unpack_from("BBBB", data) | ||||
|     r1, g1, b1 = yuv2rgb(y1, u, v) | ||||
|     r2, g2, b2 = yuv2rgb(y1, u, v) | ||||
|     return [[(r1, g1, b1, 255), (r2, g2, b2, 255)]] | ||||
|  | ||||
| def translate_x8z24(data): | ||||
|     value, = struct.unpack_from("I", data) | ||||
|     r = g = b = (value & 0xffffff)*0xff/0xffffff | ||||
|     a = 255 | ||||
|     return [[(r, g, b, a)]] | ||||
|  | ||||
| def translate_s8z24(data): | ||||
|     value, = struct.unpack_from("I", data) | ||||
|     r = (value & 0xffffff)*0xff/0xffffff | ||||
|     g = value >> 24 | ||||
|     b = 0 | ||||
|     a = 255 | ||||
|     return [[(r, g, b, a)]] | ||||
|  | ||||
|  | ||||
| translate = { | ||||
| 	PIPE_FORMAT_A8R8G8B8_UNORM: (4, 1, 1, translate_a8r8g8b8), | ||||
| 	PIPE_FORMAT_X8R8G8B8_UNORM: (4, 1, 1, translate_x8r8g8b8), | ||||
| 	PIPE_FORMAT_B8G8R8A8_UNORM: (4, 1, 1, translate_r8g8b8a8), | ||||
| 	PIPE_FORMAT_B8G8R8X8_UNORM: (4, 1, 1, translate_r8g8b8a8), | ||||
| 	PIPE_FORMAT_A8B8G8R8_SNORM: (4, 1, 1, translate_r8g8b8a8), | ||||
| 	PIPE_FORMAT_R5G6B5_UNORM: (2, 1, 1, translate_r5g6b5), | ||||
| 	PIPE_FORMAT_YCBCR: (4, 2, 1, translate_ycbcr), | ||||
| 	PIPE_FORMAT_YCBCR_REV: (4, 2, 1, translate_ycbcr_rev), | ||||
|     PIPE_FORMAT_S8Z24_UNORM: (4, 1, 1, translate_s8z24), | ||||
|     PIPE_FORMAT_X8Z24_UNORM: (4, 1, 1, translate_x8z24), | ||||
| } | ||||
|  | ||||
| def read_header(infile): | ||||
| 	header_fmt = "IIII" | ||||
| 	header = infile.read(struct.calcsize(header_fmt)) | ||||
| 	return struct.unpack_from(header_fmt, header) | ||||
|  | ||||
| def process(infilename, outfilename): | ||||
| 	sys.stderr.write("%s -> %s\n" % (infilename, outfilename)) | ||||
| 	infile = open(infilename, "rb") | ||||
| 	format, cpp, width, height = read_header(infile) | ||||
| 	sys.stderr.write("  %ux%ux%ubpp %s\n" % (width, height, cpp*8, formats[format])) | ||||
| 	outimage = Image.new( | ||||
| 	mode='RGB', | ||||
| 	size=(width, height), | ||||
| 	color=(0,0,0)) | ||||
| 	outpixels = outimage.load() | ||||
| 	try: | ||||
| 		bsize, bwidth, bheight, translate_func = translate[format] | ||||
| 	except KeyError: | ||||
| 		sys.stderr.write('error: unsupported format %s\n' % formats[format]) | ||||
| 		return | ||||
| 	for y in range(0, height, bheight): | ||||
| 		for x in range(0, width, bwidth): | ||||
| 			indata = infile.read(bsize) | ||||
| 			outdata = translate_func(indata) | ||||
| 			for j in range(bheight): | ||||
| 				for i in range(bwidth): | ||||
| 					r, g, b, a = outdata[j][i] | ||||
| 					outpixels[x+i, y+j] = r, g, b | ||||
| 	outimage.save(outfilename, "PNG") | ||||
|  | ||||
|  | ||||
| def main(): | ||||
| 	if sys.platform == 'win32': | ||||
| 		# wildcard expansion | ||||
| 		from glob import glob | ||||
| 		args = [] | ||||
| 		for arg in sys.argv[1:]: | ||||
| 			args.extend(glob(arg)) | ||||
| 	else: | ||||
| 		args = sys.argv[1:] | ||||
| 	for infilename in args: | ||||
| 		root, ext = os.path.splitext(infilename) | ||||
| 		outfilename = root + ".png" | ||||
| 		process(infilename, outfilename) | ||||
|  | ||||
|  | ||||
| if __name__ == '__main__': | ||||
| 	main() | ||||
| @@ -1,23 +0,0 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # This script is used to generate the list of changes that | ||||
| # appears in the release notes files, with HTML formatting. | ||||
|  | ||||
|  | ||||
| typeset -i in_log=0 | ||||
|  | ||||
| git shortlog $* | while read l | ||||
| do | ||||
|     if [ $in_log -eq 0 ]; then | ||||
| 	echo '<p>'$l'</p>' | ||||
| 	echo '<ul>' | ||||
| 	in_log=1 | ||||
|     elif echo "$l" | egrep -q '^$' ; then | ||||
| 	echo '</ul>' | ||||
| 	echo | ||||
| 	in_log=0 | ||||
|     else | ||||
|         mesg=$(echo $l | sed 's/ (cherry picked from commit [0-9a-f]\+)//;s/\&/&/g;s/</\</g;s/>/\>/g') | ||||
| 	echo '  <li>'${mesg}'</li>' | ||||
|     fi | ||||
| done | ||||
							
								
								
									
										17
									
								
								bin/version.mk
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										17
									
								
								bin/version.mk
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| #!/usr/bin/make -sf | ||||
| # Print the various Mesa version fields. This is mostly used to add the | ||||
| # version to configure. | ||||
|  | ||||
| # This reflects that this script is usually called from the toplevel | ||||
| TOP = . | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| version: | ||||
| 	@echo $(MESA_VERSION) | ||||
| major: | ||||
| 	@echo $(MESA_MAJOR) | ||||
| minor: | ||||
| 	@echo $(MESA_MINOR) | ||||
| tiny: | ||||
| 	@echo $(MESA_TINY) | ||||
							
								
								
									
										84
									
								
								common.py
									
									
									
									
									
								
							
							
						
						
									
										84
									
								
								common.py
									
									
									
									
									
								
							| @@ -3,27 +3,20 @@ | ||||
|  | ||||
| import os | ||||
| import os.path | ||||
| import re | ||||
| import subprocess | ||||
| import sys | ||||
| import platform as _platform | ||||
|  | ||||
| import SCons.Script.SConscript | ||||
|  | ||||
|  | ||||
| ####################################################################### | ||||
| # Defaults | ||||
|  | ||||
| host_platform = _platform.system().lower() | ||||
| if host_platform.startswith('cygwin'): | ||||
|     host_platform = 'cygwin' | ||||
| _platform_map = { | ||||
| 	'linux2': 'linux', | ||||
| 	'win32': 'winddk', | ||||
| } | ||||
|  | ||||
| # Search sys.argv[] for a "platform=foo" argument since we don't have | ||||
| # an 'env' variable at this point. | ||||
| if 'platform' in SCons.Script.ARGUMENTS: | ||||
|     target_platform = SCons.Script.ARGUMENTS['platform'] | ||||
| else: | ||||
|     target_platform = host_platform | ||||
| default_platform = sys.platform | ||||
| default_platform = _platform_map.get(default_platform, default_platform) | ||||
|  | ||||
| _machine_map = { | ||||
| 	'x86': 'x86', | ||||
| @@ -31,44 +24,21 @@ _machine_map = { | ||||
| 	'i486': 'x86', | ||||
| 	'i586': 'x86', | ||||
| 	'i686': 'x86', | ||||
| 	'BePC': 'x86', | ||||
| 	'Intel': 'x86', | ||||
| 	'ppc' : 'ppc', | ||||
| 	'BeBox': 'ppc', | ||||
| 	'BeMac': 'ppc', | ||||
| 	'AMD64': 'x86_64', | ||||
| 	'x86_64': 'x86_64', | ||||
| 	'sparc': 'sparc', | ||||
| 	'sun4u': 'sparc', | ||||
| } | ||||
|  | ||||
|  | ||||
| # find host_machine value | ||||
| if 'PROCESSOR_ARCHITECTURE' in os.environ: | ||||
| 	host_machine = os.environ['PROCESSOR_ARCHITECTURE'] | ||||
| 	default_machine = os.environ['PROCESSOR_ARCHITECTURE'] | ||||
| else: | ||||
| 	host_machine = _platform.machine() | ||||
| host_machine = _machine_map.get(host_machine, 'generic') | ||||
| 	default_machine = _platform.machine() | ||||
| default_machine = _machine_map.get(default_machine, 'generic') | ||||
|  | ||||
| default_machine = host_machine | ||||
| default_toolchain = 'default' | ||||
|  | ||||
| if target_platform == 'windows' and host_platform != 'windows': | ||||
|     default_machine = 'x86' | ||||
|     default_toolchain = 'crossmingw' | ||||
|  | ||||
|  | ||||
| # find default_llvm value | ||||
| if 'LLVM' in os.environ: | ||||
|     default_llvm = 'yes' | ||||
| if default_platform in ('linux', 'freebsd'): | ||||
| 	default_dri = 'yes' | ||||
| elif default_platform in ('winddk', 'windows', 'wince', 'darwin'): | ||||
| 	default_dri = 'no' | ||||
| else: | ||||
|     default_llvm = 'no' | ||||
|     try: | ||||
|         if target_platform != 'windows' and \ | ||||
|            subprocess.call(['llvm-config', '--version'], stdout=subprocess.PIPE) == 0: | ||||
|             default_llvm = 'yes' | ||||
|     except: | ||||
|         pass | ||||
| 	default_dri = 'no' | ||||
|  | ||||
|  | ||||
| ####################################################################### | ||||
| @@ -83,21 +53,15 @@ def AddOptions(opts): | ||||
| 		from SCons.Variables.EnumVariable import EnumVariable as EnumOption | ||||
| 	except ImportError: | ||||
| 		from SCons.Options.EnumOption import EnumOption | ||||
| 	opts.Add(EnumOption('build', 'build type', 'debug', | ||||
| 	                  allowed_values=('debug', 'checked', 'profile', 'release'))) | ||||
| 	opts.Add(BoolOption('verbose', 'verbose output', 'no')) | ||||
| 	opts.Add(BoolOption('debug', 'debug build', 'no')) | ||||
| 	opts.Add(BoolOption('profile', 'profile build', 'no')) | ||||
| 	opts.Add(BoolOption('quiet', 'quiet command lines', 'yes')) | ||||
| 	opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine, | ||||
| 											 allowed_values=('generic', 'ppc', 'x86', 'x86_64'))) | ||||
| 	opts.Add(EnumOption('platform', 'target platform', host_platform, | ||||
| 											 allowed_values=('cygwin', 'darwin', 'freebsd', 'haiku', 'linux', 'sunos', 'windows'))) | ||||
| 	opts.Add(BoolOption('embedded', 'embedded build', 'no')) | ||||
| 	opts.Add('toolchain', 'compiler toolchain', default_toolchain) | ||||
| 	opts.Add(BoolOption('gles', 'EXPERIMENTAL: enable OpenGL ES support', 'no')) | ||||
| 	opts.Add(BoolOption('llvm', 'use LLVM', default_llvm)) | ||||
| 	opts.Add(BoolOption('openmp', 'EXPERIMENTAL: compile with openmp (swrast)', 'no')) | ||||
| 	opts.Add(BoolOption('debug', 'DEPRECATED: debug build', 'yes')) | ||||
| 	opts.Add(BoolOption('profile', 'DEPRECATED: profile build', 'no')) | ||||
| 	opts.Add(BoolOption('quiet', 'DEPRECATED: profile build', 'yes')) | ||||
| 	opts.Add(BoolOption('texture_float', 'enable floating-point textures and renderbuffers', 'no')) | ||||
| 	if host_platform == 'windows': | ||||
| 		opts.Add(EnumOption('MSVS_VERSION', 'MS Visual C++ version', None, allowed_values=('7.1', '8.0', '9.0'))) | ||||
| 	opts.Add(EnumOption('platform', 'target platform', default_platform, | ||||
| 											 allowed_values=('linux', 'cell', 'windows', 'winddk', 'wince', 'darwin'))) | ||||
| 	opts.Add(EnumOption('toolchain', 'compiler toolchain', 'default', | ||||
| 											 allowed_values=('default', 'crossmingw', 'winsdk', 'winddk'))) | ||||
| 	opts.Add(BoolOption('llvm', 'use LLVM', 'no')) | ||||
| 	opts.Add(BoolOption('dri', 'build DRI drivers', default_dri)) | ||||
|  | ||||
|   | ||||
							
								
								
									
										30
									
								
								configs/aix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								configs/aix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| # Configuration for AIX, dynamic libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = aix | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = xlC | ||||
|  | ||||
| CFLAGS = -O -DAIXV3 -DPTHREADS | ||||
| CXXFLAGS = -O -DAIXV3 -DPTHREADS | ||||
|  | ||||
| # Misc tools and flags | ||||
| MKLIB_OPTIONS = | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| GL_LIB_DEPS = -lX11 -lXext -lpthread -lm | ||||
| GLU_LIB_DEPS = -L$(TOP)/lib -l$(GL_LIB) -lm -lC | ||||
| GLUT_LIB_DEPS = -L$(TOP)/lib -l$(GLU_LIB) -l$(GL_LIB) -lXi -lXmu -lX11 -lm | ||||
| GLW_LIB_DEPS = -L$(TOP)/lib -l$(GL_LIB) -lXm -lXt -lX11 | ||||
| OSMESA_LIB_DEPS = -L$(TOP)/lib -l$(GL_LIB) | ||||
| APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lpthread -lm -lC | ||||
|  | ||||
							
								
								
									
										27
									
								
								configs/aix-64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								configs/aix-64
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| # Configuration for AIX 64-bit, dynamic libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = aix-64 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = xlc | ||||
| CXX = xlC | ||||
|  | ||||
| CFLAGS = -q64 -qmaxmem=16384 -O -DAIXV3 -DPTHREADS | ||||
| CXXFLAGS = -q64 -qmaxmem=16384 -O -DAIXV3 -DPTHREADS | ||||
| LIB_DIR = lib64 | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| GL_LIB_DEPS = -lX11 -lXext -lm -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lC | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lXi -lXmu -lX11 -lm | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXm -lXt -lX11 | ||||
| APP_LIB_DEPS = -L$(TOP)/lib64 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm -lpthread -lC | ||||
|  | ||||
							
								
								
									
										25
									
								
								configs/aix-64-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								configs/aix-64-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| # Configuration for AIX, static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = aix-64-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = xlC | ||||
|  | ||||
| CFLAGS = -q64 -O -DAIXV3 -DPTHREADS | ||||
| CXXFLAGS = -q64 -O -DAIXV3 -DPTHREADS | ||||
| MKLIB_OPTIONS = -static | ||||
| LIB_DIR = lib64 | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| APP_LIB_DEPS = -q64 -L$(TOP)/$(LIB_DIR)  -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) \ | ||||
|                -lX11 -lXext -lXmu -lXi -lm -lpthread -lC | ||||
|  | ||||
							
								
								
									
										23
									
								
								configs/aix-gcc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								configs/aix-gcc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| # Configuration for AIX with gcc | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = aix-gcc | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
|  | ||||
| CFLAGS = -O2 -DAIXV3 | ||||
| CXXFLAGS = -O2 -DAIXV3 | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| MKLIB_OPTIONS = -arch aix-gcc | ||||
| GL_LIB_DEPS = -lX11 -lXext -lm | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lXi -lXmu | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -Wl,-brtl -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lX11 -lXext -lXmu -lXi | ||||
|  | ||||
							
								
								
									
										25
									
								
								configs/aix-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								configs/aix-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| # Configuration for AIX, static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = aix-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = xlC | ||||
|  | ||||
| CFLAGS = -O -DAIXV3 -DPTHREADS | ||||
| CXXFLAGS = -O -DAIXV3 -DPTHREADS | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) \ | ||||
|                -lX11 -lXext -lXmu -lXi -lm -lpthread -lC | ||||
|  | ||||
|  | ||||
							
								
								
									
										148
									
								
								configs/autoconf.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										148
									
								
								configs/autoconf.in
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,148 @@ | ||||
| # Autoconf configuration | ||||
|  | ||||
| # Pull in the defaults | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| # This is generated by configure | ||||
| CONFIG_NAME = autoconf | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = @CC@ | ||||
| CXX = @CXX@ | ||||
| OPT_FLAGS = @OPT_FLAGS@ | ||||
| ARCH_FLAGS = @ARCH_FLAGS@ | ||||
| ASM_FLAGS = @ASM_FLAGS@ | ||||
| PIC_FLAGS = @PIC_FLAGS@ | ||||
| DEFINES = @DEFINES@ | ||||
| CFLAGS = @CPPFLAGS@ @CFLAGS@ \ | ||||
| 	$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) | ||||
| CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ \ | ||||
| 	$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) | ||||
| LDFLAGS = @LDFLAGS@ | ||||
| EXTRA_LIB_PATH = @EXTRA_LIB_PATH@ | ||||
| RADEON_CFLAGS = @RADEON_CFLAGS@ | ||||
| RADEON_LDFLAGS = @RADEON_LDFLAGS@ | ||||
|  | ||||
| # Assembler | ||||
| MESA_ASM_SOURCES = @MESA_ASM_SOURCES@ | ||||
| GLAPI_ASM_SOURCES = @GLAPI_ASM_SOURCES@ | ||||
|  | ||||
| # Misc tools and flags | ||||
| MAKE = @MAKE@ | ||||
| SHELL = @SHELL@ | ||||
| MKLIB_OPTIONS = @MKLIB_OPTIONS@ | ||||
| MKDEP = @MKDEP@ | ||||
| MKDEP_OPTIONS = @MKDEP_OPTIONS@ | ||||
| INSTALL = @INSTALL@ | ||||
|  | ||||
| # Python and flags (generally only needed by the developers) | ||||
| PYTHON2 = python | ||||
| PYTHON_FLAGS = -t -O -O | ||||
|  | ||||
| # Library names (base name) | ||||
| GL_LIB = GL | ||||
| GLU_LIB = GLU | ||||
| GLUT_LIB = glut | ||||
| GLW_LIB = GLw | ||||
| OSMESA_LIB = @OSMESA_LIB@ | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = @GL_LIB_NAME@ | ||||
| GLU_LIB_NAME = @GLU_LIB_NAME@ | ||||
| GLUT_LIB_NAME = @GLUT_LIB_NAME@ | ||||
| GLW_LIB_NAME = @GLW_LIB_NAME@ | ||||
| OSMESA_LIB_NAME = @OSMESA_LIB_NAME@ | ||||
|  | ||||
| # Globs used to install the lib and all symlinks | ||||
| GL_LIB_GLOB = @GL_LIB_GLOB@ | ||||
| GLU_LIB_GLOB = @GLU_LIB_GLOB@ | ||||
| GLUT_LIB_GLOB = @GLUT_LIB_GLOB@ | ||||
| GLW_LIB_GLOB = @GLW_LIB_GLOB@ | ||||
| OSMESA_LIB_GLOB = @OSMESA_LIB_GLOB@ | ||||
|  | ||||
| # Directories to build | ||||
| LIB_DIR = @LIB_DIR@ | ||||
| SRC_DIRS = @SRC_DIRS@ | ||||
| GLU_DIRS = @GLU_DIRS@ | ||||
| DRIVER_DIRS = @DRIVER_DIRS@ | ||||
| GALLIUM_DIRS = @GALLIUM_DIRS@ | ||||
| GALLIUM_AUXILIARY_DIRS = @GALLIUM_AUXILIARY_DIRS@ | ||||
| GALLIUM_DRIVERS_DIRS = @GALLIUM_DRIVERS_DIRS@ | ||||
| GALLIUM_WINSYS_DIRS = @GALLIUM_WINSYS_DIRS@ | ||||
| GALLIUM_WINSYS_DRM_DIRS = @GALLIUM_WINSYS_DRM_DIRS@ | ||||
| GALLIUM_STATE_TRACKERS_DIRS = @GALLIUM_STATE_TRACKERS_DIRS@ | ||||
| GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a) | ||||
| GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a) | ||||
|  | ||||
| # Which subdirs under $(TOP)/progs/ to enter: | ||||
| PROGRAM_DIRS = @PROGRAM_DIRS@ | ||||
|  | ||||
| # Driver specific build vars | ||||
| DRI_DIRS = @DRI_DIRS@  | ||||
| WINDOW_SYSTEM = @WINDOW_SYSTEM@ | ||||
| USING_EGL = @USING_EGL@ | ||||
|  | ||||
| # Dependencies | ||||
| X11_INCLUDES = @X11_INCLUDES@ | ||||
|  | ||||
| # GLw motif setup | ||||
| GLW_SOURCES = @GLW_SOURCES@ | ||||
| MOTIF_CFLAGS = @MOTIF_CFLAGS@ | ||||
|  | ||||
| # Library/program dependencies | ||||
| GL_LIB_DEPS = $(EXTRA_LIB_PATH) @GL_LIB_DEPS@ | ||||
| OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @OSMESA_MESA_DEPS@ \ | ||||
| 	$(EXTRA_LIB_PATH) @OSMESA_LIB_DEPS@ | ||||
| EGL_LIB_DEPS = $(EXTRA_LIB_PATH) @EGL_LIB_DEPS@ | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLU_MESA_DEPS@ \ | ||||
| 	$(EXTRA_LIB_PATH) @GLU_LIB_DEPS@ | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLUT_MESA_DEPS@ \ | ||||
| 	$(EXTRA_LIB_PATH) @GLUT_LIB_DEPS@ | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLW_MESA_DEPS@ \ | ||||
| 	$(EXTRA_LIB_PATH) @GLW_LIB_DEPS@ | ||||
| APP_LIB_DEPS = $(EXTRA_LIB_PATH) @APP_LIB_DEPS@ | ||||
|  | ||||
| # DRI dependencies | ||||
| DRI_LIB_DEPS = $(EXTRA_LIB_PATH) @DRI_LIB_DEPS@ | ||||
| LIBDRM_CFLAGS = @LIBDRM_CFLAGS@ | ||||
| LIBDRM_LIB = @LIBDRM_LIBS@ | ||||
| DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@ | ||||
| EXPAT_INCLUDES = @EXPAT_INCLUDES@ | ||||
|  | ||||
| # Autoconf directories | ||||
| prefix = @prefix@ | ||||
| exec_prefix = @exec_prefix@ | ||||
| libdir = @libdir@ | ||||
| includedir = @includedir@ | ||||
|  | ||||
| # Installation directories (for make install) | ||||
| INSTALL_DIR = $(prefix) | ||||
| INSTALL_LIB_DIR = $(libdir) | ||||
| INSTALL_INC_DIR = $(includedir) | ||||
|  | ||||
| # DRI installation directories | ||||
| DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@ | ||||
|  | ||||
| # Where libGL will look for DRI hardware drivers | ||||
| DRI_DRIVER_SEARCH_DIR = @DRI_DRIVER_SEARCH_DIR@ | ||||
|  | ||||
| # Xorg driver install directory (for xorg state-tracker) | ||||
| XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@ | ||||
|  | ||||
| # pkg-config substitutions | ||||
| GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@ | ||||
| GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@ | ||||
| GL_PC_CFLAGS = @GL_PC_CFLAGS@ | ||||
| DRI_PC_REQ_PRIV = @DRI_PC_REQ_PRIV@ | ||||
| GLU_PC_REQ = @GLU_PC_REQ@ | ||||
| GLU_PC_REQ_PRIV = @GLU_PC_REQ_PRIV@ | ||||
| GLU_PC_LIB_PRIV = @GLU_PC_LIB_PRIV@ | ||||
| GLU_PC_CFLAGS = @GLU_PC_CFLAGS@ | ||||
| GLUT_PC_REQ_PRIV = @GLUT_PC_REQ_PRIV@ | ||||
| GLUT_PC_LIB_PRIV = @GLUT_PC_LIB_PRIV@ | ||||
| GLUT_PC_CFLAGS = @GLUT_PC_CFLAGS@ | ||||
| GLW_PC_REQ_PRIV = @GLW_PC_REQ_PRIV@ | ||||
| GLW_PC_LIB_PRIV = @GLW_PC_LIB_PRIV@ | ||||
| GLW_PC_CFLAGS = @GLW_PC_CFLAGS@ | ||||
| OSMESA_PC_REQ = @OSMESA_PC_REQ@ | ||||
| OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@ | ||||
							
								
								
									
										104
									
								
								configs/beos
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										104
									
								
								configs/beos
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,104 @@ | ||||
| # Configuration for BeOS | ||||
| # Written by Philippe Houdoin | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = beos | ||||
|  | ||||
|  | ||||
| DEFINES = 	\ | ||||
| 	-DBEOS_THREADS  | ||||
|  | ||||
| MACHINE=$(shell uname -m) | ||||
| ifeq ($(MACHINE), BePC) | ||||
| 	CPU = x86 | ||||
| else | ||||
| 	CPU = ppc | ||||
| endif | ||||
|  | ||||
| ifeq ($(CPU), x86) | ||||
| 	# BeOS x86 settings | ||||
|  | ||||
| 	DEFINES += \ | ||||
| 		-DGNU_ASSEMBLER \ | ||||
| 		-DUSE_X86_ASM \ | ||||
| 		-DUSE_MMX_ASM \ | ||||
| 		-DUSE_3DNOW_ASM \ | ||||
| 		-DUSE_SSE_ASM | ||||
| 	 | ||||
| 	MESA_ASM_SOURCES = $(X86_SOURCES) | ||||
| 	GLAPI_ASM_SOURCES = $(X86_API) | ||||
|  | ||||
| 	CC = gcc | ||||
| 	CXX = g++ | ||||
| 	LD = gcc | ||||
| 	 | ||||
| 	CFLAGS = \ | ||||
| 		-Wall -Wno-multichar -Wno-ctor-dtor-privacy \ | ||||
| 		$(DEFINES) | ||||
|  | ||||
| 	CXXFLAGS = $(CFLAGS) | ||||
|  | ||||
| 	# Work around aliasing bugs - developers should comment this out | ||||
| 	CFLAGS += -fno-strict-aliasing | ||||
| 	CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| 	LDFLAGS += -Xlinker | ||||
|  | ||||
| 	ifdef DEBUG | ||||
| 		CFLAGS   += -g -O0 | ||||
| 		LDFLAGS += -g | ||||
| 		DEFINES += -DDEBUG | ||||
| 	else | ||||
| 		CFLAGS   += -O3 | ||||
| 	endif | ||||
|  | ||||
| 	GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| else | ||||
| 	# BeOS PPC settings | ||||
|  | ||||
| 	CC = mwcc | ||||
| 	CXX = $(CC) | ||||
| 	LD = mwldppc | ||||
|  | ||||
| 	CFLAGS = \ | ||||
| 		-w on -requireprotos \ | ||||
| 		$(DEFINES) | ||||
|  | ||||
| 	CXXFLAGS = $(CFLAGS) | ||||
|  | ||||
| 	LDFLAGS += \ | ||||
| 		-export pragma \ | ||||
| 		-init _init_routine_ \ | ||||
| 		-term _term_routine_ \ | ||||
| 		-lroot \ | ||||
| 		/boot/develop/lib/ppc/glue-noinit.a \ | ||||
| 		/boot/develop/lib/ppc/init_term_dyn.o \ | ||||
| 		/boot/develop/lib/ppc/start_dyn.o  | ||||
|  | ||||
| 	ifdef DEBUG | ||||
| 		CFLAGS   += -g -O0 | ||||
| 		CXXFLAGS += -g -O0 | ||||
| 		LDFLAGS += -g | ||||
| 	else | ||||
| 		CFLAGS   += -O7 | ||||
| 		CXXFLAGS += -O7 | ||||
| 	endif | ||||
|  | ||||
| 	GLUT_CFLAGS = -fexceptions | ||||
| endif | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = gallium mesa glu glut/beos glew | ||||
| GLU_DIRS = sgi | ||||
| DRIVER_DIRS = beos | ||||
| PROGRAM_DIRS = beos samples redbook demos tests | ||||
|  | ||||
| # Library/program dependencies | ||||
| GL_LIB_DEPS =  | ||||
| OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) | ||||
| GLU_LIB_DEPS =   | ||||
| GLUT_LIB_DEPS = -lgame -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) | ||||
| APP_LIB_DEPS = -lbe -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -l$(GLUT_LIB) | ||||
|  | ||||
							
								
								
									
										33
									
								
								configs/bluegene-osmesa
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								configs/bluegene-osmesa
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| # Configuration for building only libOSMesa on BlueGene, no Xlib driver | ||||
| # This doesn't really have a lot of dependencies, so it should be usable | ||||
| # on other (gcc-based) systems too. | ||||
| # It uses static linking and disables multithreading. | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = bluegene-osmesa | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc | ||||
| CXX = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-g++ | ||||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURC | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS = osdemos | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| OSMESA_LIB_DEPS = -lm | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) | ||||
| APP_LIB_DEPS = -lOSMesa -lGLU -lm | ||||
							
								
								
									
										29
									
								
								configs/bluegene-xlc-osmesa
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								configs/bluegene-xlc-osmesa
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| # Configuration for building only libOSMesa on BlueGene using the IBM xlc compiler | ||||
| # This doesn't really have a lot of dependencies, so it should be usable | ||||
| # on similar systems too. | ||||
| # It uses static linking and disables multithreading. | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = bluegene-osmesa | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc | ||||
| CXX = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlC | ||||
| CFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
| CXXFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS = osdemos | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| OSMESA_LIB_DEPS = -lm | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) | ||||
| APP_LIB_DEPS = -lOSMesa -lGLU -lm | ||||
							
								
								
									
										32
									
								
								configs/catamount-osmesa-pgi
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								configs/catamount-osmesa-pgi
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| # Configuration for building only libOSMesa on Cray Xt3 | ||||
| # for the compute nodes running Catamount using the  | ||||
| # Portland Group compiler. The Portland Group toolchain has to be  | ||||
| # enabled before using "module switch PrgEnv-gnu PrgEnv-pgi" . | ||||
| # This doesn't really have a lot of dependencies, so it should be usable | ||||
| # on other similar systems too. | ||||
| # It uses static linking and disables multithreading. | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = catamount-osmesa-pgi | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = CC | ||||
| CFLAGS = -target=catamount -fastsse -O3 -Mnontemporal -Mprefetch=distance:8,nta   -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
| CXXFLAGS = -target=catamount -fastsse -O3 -Mnontemporal -Mprefetch=distance:8,nta -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS = osdemos | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| OSMESA_LIB_DEPS = -lm | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) | ||||
| APP_LIB_DEPS = -lOSMesa -lGLU -lm | ||||
							
								
								
									
										42
									
								
								configs/config.mgw
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								configs/config.mgw
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| # MinGW config include file updated for Mesa 7.0 | ||||
| # | ||||
| #  Updated : by Heromyth, on 2007-7-21 | ||||
| #  Email   : zxpmyth@yahoo.com.cn | ||||
| #  Bugs    : 1) All the default settings work fine. But the setting X86=1 can't work.  | ||||
| #            The others havn't been tested yet. | ||||
| #            2) The generated DLLs are *not* compatible with the ones built | ||||
| #            with the other compilers like VC8, especially for GLUT.  | ||||
| #            3) Although more tests are needed, it can be used individually! | ||||
|  | ||||
| # The generated DLLs by MingW with STDCALL are not totally compatible  | ||||
| # with the ones linked by Microsoft's compilers. | ||||
| # | ||||
| # xxx_USING_STDCALL = 1          Compiling MESA with __stdcall. This is default! | ||||
| #  | ||||
| # xxx_USING_STDCALL = 0          Compiling MESA without __stdcall. I like this:) | ||||
| #   | ||||
|  | ||||
| # In fact, GL_USING_STDCALL and GLUT_USING_STDCALL can be | ||||
| # different. For example: | ||||
| # | ||||
| #   GL_USING_STDCALL = 0 | ||||
| #   GLUT_USING_STDCALL = 1 | ||||
| #  | ||||
| # Suggested setting: | ||||
| # | ||||
| #     ALL_USING_STDCALL = 1 | ||||
| # | ||||
| # That's default! | ||||
| # | ||||
|  | ||||
|  | ||||
| ALL_USING_STDCALL = 1 | ||||
|  | ||||
|  | ||||
| ifeq ($(ALL_USING_STDCALL),1) | ||||
|   GL_USING_STDCALL = 1 | ||||
|   GLUT_USING_STDCALL = 1 | ||||
| else | ||||
|   GL_USING_STDCALL = 0 | ||||
|   GLUT_USING_STDCALL = 0 | ||||
| endif | ||||
| @@ -1,222 +0,0 @@ | ||||
| # Autoconf configuration | ||||
|  | ||||
| # Pull in the defaults | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| # This is generated by configure | ||||
| CONFIG_NAME = autoconf | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = @CC@ | ||||
| CXX = @CXX@ | ||||
| PIC_FLAGS = @PIC_FLAGS@ | ||||
| DEFINES = @DEFINES@ | ||||
| API_DEFINES = @API_DEFINES@ | ||||
| SHARED_GLAPI = @SHARED_GLAPI@ | ||||
| CFLAGS_NOVISIBILITY = @CPPFLAGS@ @CFLAGS@ \ | ||||
| 	$(PIC_FLAGS) $(DEFINES) | ||||
| CXXFLAGS_NOVISIBILITY = @CPPFLAGS@ @CXXFLAGS@ \ | ||||
| 	$(PIC_FLAGS) $(DEFINES) | ||||
| CFLAGS = $(CFLAGS_NOVISIBILITY) @VISIBILITY_CFLAGS@ | ||||
| CXXFLAGS = $(CXXFLAGS_NOVISIBILITY) @VISIBILITY_CXXFLAGS@ | ||||
| LDFLAGS = @LDFLAGS@ | ||||
| RADEON_CFLAGS = @RADEON_CFLAGS@ | ||||
| RADEON_LIBS = @RADEON_LIBS@ | ||||
| NOUVEAU_CFLAGS = @NOUVEAU_CFLAGS@ | ||||
| NOUVEAU_LIBS = @NOUVEAU_LIBS@ | ||||
| INTEL_LIBS = @INTEL_LIBS@ | ||||
| INTEL_CFLAGS = @INTEL_CFLAGS@ | ||||
| X11_LIBS = @X11_LIBS@ | ||||
| X11_CFLAGS = @X11_CFLAGS@ | ||||
| LLVM_BINDIR = @LLVM_BINDIR@ | ||||
| LLVM_CFLAGS = @LLVM_CFLAGS@ | ||||
| LLVM_CPPFLAGS = @LLVM_CPPFLAGS@ | ||||
| LLVM_CXXFLAGS = @LLVM_CXXFLAGS@ | ||||
| LLVM_LDFLAGS = @LLVM_LDFLAGS@ | ||||
| LLVM_LIBDIR = @LLVM_LIBDIR@ | ||||
| LLVM_LIBS = @LLVM_LIBS@ | ||||
| LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@ | ||||
| GLW_CFLAGS = @GLW_CFLAGS@ | ||||
| GLX_TLS = @GLX_TLS@ | ||||
|  | ||||
| # dlopen | ||||
| DLOPEN_LIBS = @DLOPEN_LIBS@ | ||||
|  | ||||
| # Source selection | ||||
| MESA_ASM_FILES = @MESA_ASM_FILES@ | ||||
|  | ||||
| # Misc tools and flags | ||||
| MAKE = @MAKE@ | ||||
| SHELL = @SHELL@ | ||||
| MKLIB_OPTIONS = @MKLIB_OPTIONS@ | ||||
| MKDEP = @MKDEP@ | ||||
| MKDEP_OPTIONS = @MKDEP_OPTIONS@ | ||||
| INSTALL = @INSTALL@ | ||||
| AWK = @AWK@ | ||||
| GREP = @GREP@ | ||||
| NM = @NM@ | ||||
|  | ||||
| # Perl | ||||
| PERL = @PERL@ | ||||
|  | ||||
| # Indent (used for generating dispatch tables) | ||||
| INDENT = @INDENT@ | ||||
| INDENT_FLAGS = @INDENT_FLAGS@ | ||||
|  | ||||
| # Python and flags (generally only needed by the developers) | ||||
| PYTHON2 = @PYTHON2@ | ||||
| PYTHON_FLAGS = -t -O -O | ||||
|  | ||||
| # Flex and Bison for GLSL compiler | ||||
| FLEX = @LEX@ | ||||
| BISON = @YACC@ | ||||
|  | ||||
| # Library names (base name) | ||||
| GL_LIB = @GL_LIB@ | ||||
| GLU_LIB = @GLU_LIB@ | ||||
| GLW_LIB = GLw | ||||
| OSMESA_LIB = @OSMESA_LIB@ | ||||
| GLESv1_CM_LIB = GLESv1_CM | ||||
| GLESv2_LIB = GLESv2 | ||||
| VG_LIB = OpenVG | ||||
| GLAPI_LIB = glapi | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = @GL_LIB_NAME@ | ||||
| GLU_LIB_NAME = @GLU_LIB_NAME@ | ||||
| GLW_LIB_NAME = @GLW_LIB_NAME@ | ||||
| OSMESA_LIB_NAME = @OSMESA_LIB_NAME@ | ||||
| EGL_LIB_NAME = @EGL_LIB_NAME@ | ||||
| GLESv1_CM_LIB_NAME = @GLESv1_CM_LIB_NAME@ | ||||
| GLESv2_LIB_NAME = @GLESv2_LIB_NAME@ | ||||
| VG_LIB_NAME = @VG_LIB_NAME@ | ||||
| GLAPI_LIB_NAME = @GLAPI_LIB_NAME@ | ||||
|  | ||||
| # Globs used to install the lib and all symlinks | ||||
| GL_LIB_GLOB = @GL_LIB_GLOB@ | ||||
| GLU_LIB_GLOB = @GLU_LIB_GLOB@ | ||||
| GLW_LIB_GLOB = @GLW_LIB_GLOB@ | ||||
| EGL_LIB_GLOB = @EGL_LIB_GLOB@ | ||||
| GLESv1_CM_LIB_GLOB = @GLESv1_CM_LIB_GLOB@ | ||||
| GLESv2_LIB_GLOB = @GLESv2_LIB_GLOB@ | ||||
| VG_LIB_GLOB = @VG_LIB_GLOB@ | ||||
| GLAPI_LIB_GLOB = @GLAPI_LIB_GLOB@ | ||||
|  | ||||
| # Directories to build | ||||
| LIB_DIR = @LIB_DIR@ | ||||
| SRC_DIRS = @SRC_DIRS@ | ||||
| DRIVER_DIRS = @DRIVER_DIRS@ | ||||
| GALLIUM_DIRS = @GALLIUM_DIRS@ | ||||
| GALLIUM_DRIVERS_DIRS = @GALLIUM_DRIVERS_DIRS@ | ||||
| GALLIUM_WINSYS_DIRS = @GALLIUM_WINSYS_DIRS@ | ||||
| GALLIUM_TARGET_DIRS = @GALLIUM_TARGET_DIRS@ | ||||
| GALLIUM_STATE_TRACKERS_DIRS = @GALLIUM_STATE_TRACKERS_DIRS@ | ||||
| GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a | ||||
| GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a) | ||||
|  | ||||
| # Driver specific build vars | ||||
| DRI_DIRS = @DRI_DIRS@ | ||||
| EGL_PLATFORMS = @EGL_PLATFORMS@ | ||||
| EGL_CLIENT_APIS = @EGL_CLIENT_APIS@ | ||||
|  | ||||
| # Dependencies | ||||
| X11_INCLUDES = @X11_INCLUDES@ | ||||
|  | ||||
| # GLw motif setup | ||||
| GLW_SOURCES = @GLW_SOURCES@ | ||||
| MOTIF_CFLAGS = @MOTIF_CFLAGS@ | ||||
|  | ||||
| # Library/program dependencies | ||||
| GL_LIB_DEPS = @GL_LIB_DEPS@ | ||||
| OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @OSMESA_MESA_DEPS@ \ | ||||
| 	@OSMESA_LIB_DEPS@ | ||||
| EGL_LIB_DEPS = @EGL_LIB_DEPS@ | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLU_MESA_DEPS@ \ | ||||
| 	@GLU_LIB_DEPS@ | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLW_MESA_DEPS@ \ | ||||
| 	@GLW_LIB_DEPS@ | ||||
| GLESv1_CM_LIB_DEPS = @GLESv1_CM_LIB_DEPS@ | ||||
| GLESv2_LIB_DEPS = @GLESv2_LIB_DEPS@ | ||||
| VG_LIB_DEPS = @VG_LIB_DEPS@ | ||||
| GLAPI_LIB_DEPS = @GLAPI_LIB_DEPS@ | ||||
|  | ||||
| # DRI dependencies | ||||
| DRI_LIB_DEPS = @DRI_LIB_DEPS@ | ||||
| GALLIUM_DRI_LIB_DEPS = @GALLIUM_DRI_LIB_DEPS@ | ||||
| LIBDRM_CFLAGS = @LIBDRM_CFLAGS@ | ||||
| LIBDRM_LIBS = @LIBDRM_LIBS@ | ||||
| DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@ | ||||
| GLPROTO_CFLAGS = @GLPROTO_CFLAGS@ | ||||
| EXPAT_INCLUDES = @EXPAT_INCLUDES@ | ||||
|  | ||||
| # Autoconf directories | ||||
| prefix = @prefix@ | ||||
| exec_prefix = @exec_prefix@ | ||||
| libdir = @libdir@ | ||||
| includedir = @includedir@ | ||||
|  | ||||
| # Installation directories (for make install) | ||||
| INSTALL_DIR = $(prefix) | ||||
| INSTALL_LIB_DIR = $(libdir) | ||||
| INSTALL_INC_DIR = $(includedir) | ||||
|  | ||||
| # DRI installation directories | ||||
| DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@ | ||||
|  | ||||
| # Where libGL will look for DRI hardware drivers | ||||
| DRI_DRIVER_SEARCH_DIR = @DRI_DRIVER_SEARCH_DIR@ | ||||
|  | ||||
| # EGL driver install directory | ||||
| EGL_DRIVER_INSTALL_DIR = @EGL_DRIVER_INSTALL_DIR@ | ||||
|  | ||||
| # XVMC library install directory | ||||
| XVMC_LIB_INSTALL_DIR=@XVMC_LIB_INSTALL_DIR@ | ||||
|  | ||||
| # VDPAU library install directory | ||||
| VDPAU_LIB_INSTALL_DIR=@VDPAU_LIB_INSTALL_DIR@ | ||||
|  | ||||
| # VA library install directory | ||||
| VA_LIB_INSTALL_DIR=@VA_LIB_INSTALL_DIR@ | ||||
|  | ||||
| # Xorg driver install directory (for xorg state-tracker) | ||||
| XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@ | ||||
|  | ||||
| # Path to OpenCL C library libclc | ||||
| LIBCLC_INCLUDEDIR = @LIBCLC_INCLUDEDIR@ | ||||
| LIBCLC_LIBEXECDIR = @LIBCLC_LIBEXECDIR@ | ||||
|  | ||||
| # pkg-config substitutions | ||||
| GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@ | ||||
| GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@ | ||||
| GL_PC_CFLAGS = @GL_PC_CFLAGS@ | ||||
| DRI_PC_REQ_PRIV = @DRI_PC_REQ_PRIV@ | ||||
| GLU_PC_REQ = @GLU_PC_REQ@ | ||||
| GLU_PC_REQ_PRIV = @GLU_PC_REQ_PRIV@ | ||||
| GLU_PC_LIB_PRIV = @GLU_PC_LIB_PRIV@ | ||||
| GLU_PC_CFLAGS = @GLU_PC_CFLAGS@ | ||||
| GLW_PC_REQ_PRIV = @GLW_PC_REQ_PRIV@ | ||||
| GLW_PC_LIB_PRIV = @GLW_PC_LIB_PRIV@ | ||||
| GLW_PC_CFLAGS = @GLW_PC_CFLAGS@ | ||||
| OSMESA_PC_REQ = @OSMESA_PC_REQ@ | ||||
| OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@ | ||||
| GLESv1_CM_PC_LIB_PRIV = @GLESv1_CM_PC_LIB_PRIV@ | ||||
| GLESv2_PC_LIB_PRIV = @GLESv2_PC_LIB_PRIV@ | ||||
| EGL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@ | ||||
| EGL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@ | ||||
| EGL_PC_CFLAGS = @GL_PC_CFLAGS@ | ||||
|  | ||||
| XCB_DRI2_CFLAGS = @XCB_DRI2_CFLAGS@ | ||||
| XCB_DRI2_LIBS = @XCB_DRI2_LIBS@ | ||||
| LIBUDEV_CFLAGS = @LIBUDEV_CFLAGS@ | ||||
| LIBUDEV_LIBS = @LIBUDEV_LIBS@ | ||||
| WAYLAND_CFLAGS = @WAYLAND_CFLAGS@ | ||||
| WAYLAND_LIBS = @WAYLAND_LIBS@ | ||||
|  | ||||
| MESA_LLVM = @MESA_LLVM@ | ||||
|  | ||||
| LLVM_VERSION = @LLVM_VERSION@ | ||||
|  | ||||
| HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@ | ||||
|  | ||||
| GALLIUM_PIPE_LOADER_DEFINES = @GALLIUM_PIPE_LOADER_DEFINES@ | ||||
| GALLIUM_PIPE_LOADER_LIBS = @GALLIUM_PIPE_LOADER_LIBS@ | ||||
							
								
								
									
										57
									
								
								configs/darwin
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								configs/darwin
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,57 @@ | ||||
| # Configuration for Darwin / MacOS X, making dynamic libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = darwin | ||||
|  | ||||
| INSTALL_DIR = /usr/X11 | ||||
|  | ||||
| X11_DIR = $(INSTALL_DIR) | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
| PIC_FLAGS = -fPIC | ||||
| DEFINES =  -D_DARWIN_C_SOURCE -DPTHREADS -D_GNU_SOURCE \ | ||||
| 	   -DGLX_ALIAS_UNSUPPORTED -DGLX_INDIRECT_RENDERING | ||||
|  | ||||
| # -D_GNU_SOURCE          - for src/mesa/main ... | ||||
| # -DGLX_DIRECT_RENDERING - pulls in libdrm stuff in glx/x11 | ||||
| # -DGLX_USE_APPLEGL      - supposed to be used with GLX_DIRECT_RENDERING to use AGL rather than DRM, but doesn't compile | ||||
| # -DIN_DRI_DRIVER | ||||
|  | ||||
| ARCH_FLAGS += $(RC_CFLAGS) | ||||
|  | ||||
| CFLAGS =  -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing \ | ||||
| 	-I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) | ||||
| CXXFLAGS =  -ggdb3 -Os -Wall -fno-strict-aliasing \ | ||||
| 	-I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.dylib | ||||
| GLU_LIB_NAME = libGLU.dylib | ||||
| GLUT_LIB_NAME = libglut.dylib | ||||
| GLW_LIB_NAME = libGLw.dylib | ||||
| OSMESA_LIB_NAME = libOSMesa.dylib | ||||
|  | ||||
| # globs used to install the lib and all symlinks | ||||
| GL_LIB_GLOB = libGL.*dylib | ||||
| GLU_LIB_GLOB = libGLU.*dylib | ||||
| GLUT_LIB_GLOB = libglut.*dylib | ||||
| GLW_LIB_GLOB = libGLw.*dylib | ||||
| OSMESA_LIB_GLOB = libOSMesa.*dylib | ||||
|  | ||||
| GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXext -lm -lpthread | ||||
| OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB)  -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXi -lXext | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXt | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXt -lXi -lm | ||||
|  | ||||
| # omit glw lib for now: | ||||
| SRC_DIRS = glx/x11 mesa gallium glu glut/glx glew | ||||
| GLU_DIRS = sgi | ||||
| DRIVER_DIRS = osmesa | ||||
| #DRIVER_DIRS = dri | ||||
| DRI_DIRS = swrast | ||||
| PROGRAM_DIRS = xdemos | ||||
							
								
								
									
										7
									
								
								configs/darwin-fat-32bit
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/darwin-fat-32bit
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # Configuration for Darwin / MacOS X, making 32bit fat dynamic libs | ||||
|  | ||||
| RC_CFLAGS=-arch ppc -arch i386 | ||||
|  | ||||
| include $(TOP)/configs/darwin | ||||
|  | ||||
| CONFIG_NAME = darwin-fat-32bit | ||||
							
								
								
									
										7
									
								
								configs/darwin-fat-all
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/darwin-fat-all
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # Configuration for Darwin / MacOS X, making 32bit and 64bit fat dynamic libs | ||||
|  | ||||
| RC_CFLAGS=-arch ppc -arch i386 -arch ppc64 -arch x86_64 | ||||
|  | ||||
| include $(TOP)/configs/darwin | ||||
|  | ||||
| CONFIG_NAME = darwin-fat-all | ||||
							
								
								
									
										33
									
								
								configs/darwin-x86ppc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								configs/darwin-x86ppc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| # Configuration for Darwin / MacOS X, making dynamic libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = darwin | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = cc | ||||
| CFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ | ||||
|          -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | ||||
| CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ | ||||
|          -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | ||||
|  | ||||
| MKLIB_OPTIONS = -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk" | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.dylib | ||||
| GLU_LIB_NAME = libGLU.dylib | ||||
| GLUT_LIB_NAME = libglut.dylib | ||||
| GLW_LIB_NAME = libGLw.dylib | ||||
| OSMESA_LIB_NAME = libOSMesa.dylib | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread | ||||
| OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXmu -lXi -lXext | ||||
| GLW_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXt $(TOP)/lib/GL.dylib | ||||
| APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm | ||||
|  | ||||
| # omit glw lib for now: | ||||
| SRC_DIRS = gallium mesa glu glut/glx glew | ||||
|  | ||||
							
								
								
									
										110
									
								
								configs/default
									
									
									
									
									
								
							
							
						
						
									
										110
									
								
								configs/default
									
									
									
									
									
								
							| @@ -8,9 +8,9 @@ | ||||
| CONFIG_NAME = default | ||||
|  | ||||
| # Version info | ||||
| MESA_MAJOR=9 | ||||
| MESA_MINOR=0 | ||||
| MESA_TINY=3 | ||||
| MESA_MAJOR=7 | ||||
| MESA_MINOR=7 | ||||
| MESA_TINY=1 | ||||
| MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY) | ||||
|  | ||||
| # external projects.  This should be useless now that we use libdrm. | ||||
| @@ -19,11 +19,12 @@ DRM_SOURCE_PATH=$(TOP)/../drm | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = CC | ||||
| HOST_CC = $(CC) | ||||
| CFLAGS = -O | ||||
| CXXFLAGS = -O | ||||
| LDFLAGS = | ||||
| HOST_CFLAGS = $(CFLAGS) | ||||
| GLU_CFLAGS =  | ||||
| GLX_TLS = no | ||||
|  | ||||
| # Compiler for building demos/tests/etc | ||||
| APP_CC = $(CC) | ||||
| @@ -36,9 +37,6 @@ MKLIB_OPTIONS = | ||||
| MKDEP = makedepend | ||||
| MKDEP_OPTIONS = -fdepend | ||||
| MAKE = make | ||||
| FLEX = flex | ||||
| BISON = bison | ||||
| PKG_CONFIG = pkg-config | ||||
|  | ||||
| # Use MINSTALL for installing libraries, INSTALL for everything else | ||||
| MINSTALL = $(SHELL) $(TOP)/bin/minstall | ||||
| @@ -53,37 +51,29 @@ INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool | ||||
| # Library names (base name) | ||||
| GL_LIB = GL | ||||
| GLU_LIB = GLU | ||||
| GLUT_LIB = glut | ||||
| GLEW_LIB = GLEW | ||||
| GLW_LIB = GLw | ||||
| OSMESA_LIB = OSMesa | ||||
| EGL_LIB = EGL | ||||
| GLESv1_CM_LIB = GLESv1_CM | ||||
| GLESv2_LIB = GLESv2 | ||||
| VG_LIB = OpenVG | ||||
| GLAPI_LIB = glapi | ||||
|  | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = lib$(GL_LIB).so | ||||
| GLU_LIB_NAME = lib$(GLU_LIB).so | ||||
| GLUT_LIB_NAME = lib$(GLUT_LIB).so | ||||
| GLEW_LIB_NAME = lib$(GLEW_LIB).a | ||||
| GLW_LIB_NAME = lib$(GLW_LIB).so | ||||
| OSMESA_LIB_NAME = lib$(OSMESA_LIB).so | ||||
| EGL_LIB_NAME = lib$(EGL_LIB).so | ||||
| GLESv1_CM_LIB_NAME = lib$(GLESv1_CM_LIB).so | ||||
| GLESv2_LIB_NAME = lib$(GLESv2_LIB).so | ||||
| VG_LIB_NAME = lib$(VG_LIB).so | ||||
| GLAPI_LIB_NAME = lib$(GLAPI_LIB).so | ||||
|  | ||||
| # globs used to install the lib and all symlinks | ||||
| GL_LIB_GLOB = $(GL_LIB_NAME)* | ||||
| GLU_LIB_GLOB = $(GLU_LIB_NAME)* | ||||
| GLUT_LIB_GLOB = $(GLUT_LIB_NAME)* | ||||
| GLW_LIB_GLOB = $(GLW_LIB_NAME)* | ||||
| EGL_LIB_GLOB = $(EGL_LIB_NAME)* | ||||
| GLESv1_CM_LIB_GLOB = $(GLESv1_CM_LIB_NAME)* | ||||
| GLESv2_LIB_GLOB = $(GLESv2_LIB_NAME)* | ||||
| VG_LIB_GLOB = $(VG_LIB_NAME)* | ||||
| GLAPI_LIB_GLOB = $(GLAPI_LIB_NAME)* | ||||
| OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)* | ||||
|  | ||||
| # Optional assembly language optimization files for libGL | ||||
| MESA_ASM_FILES = | ||||
| MESA_ASM_SOURCES =  | ||||
|  | ||||
| # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in | ||||
| # order to build the Motif widget too) | ||||
| @@ -93,39 +83,39 @@ MOTIF_CFLAGS = -I/usr/include/Motif1.2 | ||||
|  | ||||
| # Directories to build | ||||
| LIB_DIR = lib | ||||
| SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \ | ||||
| 	gallium egl gallium/winsys gallium/targets | ||||
| SRC_DIRS = mesa gallium egl gallium/winsys glu glut/glx glew glw | ||||
| GLU_DIRS = sgi | ||||
| DRIVER_DIRS = x11 osmesa | ||||
| # Which subdirs under $(TOP)/progs/ to enter: | ||||
| PROGRAM_DIRS = demos redbook samples glsl objviewer xdemos | ||||
|  | ||||
| # Gallium directories and | ||||
| # EGL directories | ||||
| EGL_DRIVERS_DIRS = demo | ||||
|  | ||||
| # Gallium directories and  | ||||
| GALLIUM_DIRS = auxiliary drivers state_trackers | ||||
| GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a | ||||
| GALLIUM_DRIVERS_DIRS = softpipe trace rbug noop identity galahad i915 svga r300 nvfx nv50 | ||||
| GALLIUM_AUXILIARY_DIRS = rbug draw translate cso_cache pipebuffer tgsi sct rtasm util indices vl | ||||
| GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a) | ||||
| GALLIUM_DRIVERS_DIRS = softpipe failover svga i915 trace identity | ||||
| GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a) | ||||
| GALLIUM_WINSYS_DIRS = sw sw/xlib | ||||
| GALLIUM_TARGET_DIRS = libgl-xlib | ||||
| GALLIUM_STATE_TRACKERS_DIRS = glx vega | ||||
| GALLIUM_WINSYS_DIRS = xlib egl_xlib | ||||
| GALLIUM_WINSYS_DRM_DIRS = | ||||
| GALLIUM_STATE_TRACKERS_DIRS = glx | ||||
|  | ||||
| # native platforms EGL should support | ||||
| EGL_PLATFORMS = x11 | ||||
| EGL_CLIENT_APIS = $(GL_LIB) | ||||
|  | ||||
| # Library dependencies | ||||
| #EXTRA_LIB_PATH ?= | ||||
| GL_LIB_DEPS     = -lX11 -lXext -lm -lpthread | ||||
| EGL_LIB_DEPS    = -ldl -lpthread | ||||
| OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) | ||||
| GLU_LIB_DEPS    = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm | ||||
| GLW_LIB_DEPS    = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11 | ||||
| GLESv1_CM_LIB_DEPS = -lpthread | ||||
| GLESv2_LIB_DEPS = -lpthread | ||||
| VG_LIB_DEPS    = -lpthread | ||||
| GLAPI_LIB_DEPS = -lpthread | ||||
| GL_LIB_DEPS     = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread | ||||
| EGL_LIB_DEPS    = $(EXTRA_LIB_PATH) -ldl -lpthread | ||||
| OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) | ||||
| GLU_LIB_DEPS    = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm | ||||
| GLUT_LIB_DEPS   = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm | ||||
| GLW_LIB_DEPS    = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11 | ||||
| APP_LIB_DEPS    = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm | ||||
|  | ||||
| # Program dependencies - specific GL libraries added in Makefiles | ||||
| X11_LIBS = -lX11 | ||||
| # Program dependencies - specific GL/glut libraries added in Makefiles | ||||
| APP_LIB_DEPS = -lm | ||||
|  | ||||
| DLOPEN_LIBS = -ldl | ||||
|  | ||||
| # Installation directories (for make install) | ||||
| INSTALL_DIR = /usr/local | ||||
| @@ -136,9 +126,6 @@ DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri | ||||
| # Where libGL will look for DRI hardware drivers | ||||
| DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR) | ||||
|  | ||||
| # EGL driver install directory | ||||
| EGL_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/egl | ||||
|  | ||||
| # Xorg driver install directory (for xorg state-tracker) | ||||
| XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers | ||||
|  | ||||
| @@ -151,30 +138,11 @@ GLU_PC_REQ = gl | ||||
| GLU_PC_REQ_PRIV = | ||||
| GLU_PC_LIB_PRIV = | ||||
| GLU_PC_CFLAGS = | ||||
| GLUT_PC_REQ_PRIV = | ||||
| GLUT_PC_LIB_PRIV = | ||||
| GLUT_PC_CFLAGS = | ||||
| GLW_PC_REQ_PRIV = | ||||
| GLW_PC_LIB_PRIV = | ||||
| GLW_PC_CFLAGS = | ||||
| OSMESA_PC_REQ = | ||||
| OSMESA_PC_LIB_PRIV = | ||||
| GLESv1_CM_PC_REQ_PRIV = | ||||
| GLESv1_CM_PC_LIB_PRIV = | ||||
| GLESv1_CM_PC_CFLAGS = | ||||
| GLESv2_PC_REQ_PRIV = | ||||
| GLESv2_PC_LIB_PRIV = | ||||
| GLESv2_PC_CFLAGS = | ||||
| VG_PC_REQ_PRIV = | ||||
| VG_PC_LIB_PRIV = | ||||
| VG_PC_CFLAGS = | ||||
|  | ||||
| # default targets | ||||
| # this helps reduce the mismatch between our automake Makefiles and the old | ||||
| # custom Makefiles while we transition. | ||||
|  | ||||
| all: default | ||||
|  | ||||
| am--refresh: | ||||
|  | ||||
| distclean: clean | ||||
|  | ||||
| check: | ||||
| test: | ||||
|   | ||||
							
								
								
									
										31
									
								
								configs/freebsd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								configs/freebsd
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| # Configuration for FreeBSD | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = FreeBSD | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = c++ | ||||
| MAKE = gmake | ||||
|  | ||||
| OPT_FLAGS  = -O2 | ||||
| PIC_FLAGS  = -fPIC | ||||
|  | ||||
| DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM \ | ||||
| 	-DHZ=100 | ||||
|  | ||||
| X11_INCLUDES = -I/usr/local/include | ||||
|  | ||||
| CFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) -ffast-math -pedantic | ||||
|  | ||||
| CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) | ||||
|  | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| EXTRA_LIB_PATH = -L/usr/local/lib | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm | ||||
							
								
								
									
										55
									
								
								configs/freebsd-dri
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								configs/freebsd-dri
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,55 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for freebsd-dri: FreeBSD DRI hardware drivers | ||||
|  | ||||
| include $(TOP)/configs/freebsd | ||||
|  | ||||
| CONFIG_NAME = freebsd-dri | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
| WARN_FLAGS = -Wall | ||||
| OPT_FLAGS = -O -g | ||||
|  | ||||
| EXPAT_INCLUDES = -I/usr/local/include | ||||
| X11_INCLUDES = -I/usr/local/include | ||||
| DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \ | ||||
| 	-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \ | ||||
| 	-DHAVE_ALIAS | ||||
|  | ||||
| CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) -Wmissing-prototypes -std=c99 -Wundef -ffast-math \ | ||||
| 	$(ASM_FLAGS) $(X11_INCLUDES) $(DEFINES) | ||||
|  | ||||
| CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) -Wall -ansi -pedantic $(ASM_FLAGS) $(X11_INCLUDES)  | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| ASM_SOURCES =  | ||||
| MESA_ASM_SOURCES =  | ||||
|  | ||||
| # Library/program dependencies | ||||
| LIBDRM_CFLAGS = `pkg-config --cflags libdrm` | ||||
| LIBDRM_LIB = `pkg-config --libs libdrm` | ||||
| DRI_LIB_DEPS = -L/usr/local/lib -lm -pthread -lexpat $(LIBDRM_LIB) | ||||
| GL_LIB_DEPS = -L/usr/local/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \ | ||||
| 	-lm -pthread $(LIBDRM_LIB) | ||||
|  | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGL -lXt -lX11 | ||||
|  | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = glx/x11 gallium mesa glu glut/glx glew glw | ||||
| DRIVER_DIRS = dri | ||||
| PROGRAM_DIRS =  | ||||
| WINDOW_SYSTEM=dri | ||||
|  | ||||
| DRM_SOURCE_PATH=$(TOP)/../drm | ||||
|  | ||||
| # ffb and gamma are missing because they have not been converted to use the new | ||||
| # interface. | ||||
| DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \ | ||||
| 	   unichrome savage sis | ||||
|  | ||||
							
								
								
									
										10
									
								
								configs/freebsd-dri-amd64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								configs/freebsd-dri-amd64
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for freebsd-dri-amd64: FreeBSD DRI hardware drivers | ||||
|  | ||||
| include $(TOP)/configs/freebsd-dri | ||||
|  | ||||
| CONFIG_NAME = freebsd-dri-x86-64 | ||||
|  | ||||
| ASM_FLAGS = -DUSE_X86_64_ASM | ||||
| MESA_ASM_SOURCES = $(X86-64_SOURCES) | ||||
| GLAPI_ASM_SOURCES = $(X86-64_API) | ||||
							
								
								
									
										13
									
								
								configs/freebsd-dri-x86
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								configs/freebsd-dri-x86
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for freebsd-dri: FreeBSD DRI hardware drivers | ||||
|  | ||||
| include $(TOP)/configs/freebsd-dri | ||||
|  | ||||
| CONFIG_NAME = freebsd-dri-x86 | ||||
|  | ||||
| # Unnecessary on x86, generally. | ||||
| PIC_FLAGS =  | ||||
|  | ||||
| ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM | ||||
| MESA_ASM_SOURCES = $(X86_SOURCES) | ||||
| GLAPI_ASM_SOURCES = $(X86_API) | ||||
							
								
								
									
										14
									
								
								configs/hpux10
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								configs/hpux10
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| # Configuration for HPUX v10, shared libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux10 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = aCC | ||||
|  | ||||
| CFLAGS = -O +DAportable +z -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM | ||||
| CXXFLAGS = -O +DAportable +Z -Ae -D_HPUX_SOURCE | ||||
|  | ||||
| APP_LIB_DEPS = -$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm | ||||
							
								
								
									
										20
									
								
								configs/hpux10-gcc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								configs/hpux10-gcc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| # Configuration for HPUX v10, with gcc | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux10-gcc | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
|  | ||||
| CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include  -DUSE_XSHM | ||||
| CXXFLAGS = -ansi -O3 -D_HPUX_SOURCE | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm | ||||
|  | ||||
							
								
								
									
										30
									
								
								configs/hpux10-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								configs/hpux10-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| # Configuration for HPUX v10, static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux10-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = aCC | ||||
|  | ||||
| CFLAGS = -O +DAportable +z -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM | ||||
| CXXFLAGS = -O +DAportable +Z -Ae -D_HPUX_SOURCE | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Library/program dependencies (static libs don't have dependencies) | ||||
| GL_LIB_DEPS =  | ||||
| OSMESA_LIB_DEPS =  | ||||
| GLU_LIB_DEPS =  | ||||
| GLUT_LIB_DEPS =  | ||||
| GLW_LIB_DEPS =  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lpthread -lm -lstdc++ | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm -lstdc++ | ||||
							
								
								
									
										30
									
								
								configs/hpux11-32
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								configs/hpux11-32
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| # Configuration for HPUX v11 | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux11-32 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = aCC | ||||
|  | ||||
| CFLAGS = +z -Ae -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS | ||||
|  | ||||
| CXXFLAGS = +z -Ae -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS | ||||
|  | ||||
| MKLIB_OPTIONS = | ||||
|  | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Library/program dependencies | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) | ||||
| GL_LIB_DEPS = -L/usr/lib/X11R6/ -L/usr/contrib/X11R6/lib/ -lXext -lXt -lXi -lX11 -lm -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCsup -lcl | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(GL_LIB_DEPS) | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(GL_LIB_DEPS) | ||||
							
								
								
									
										27
									
								
								configs/hpux11-32-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								configs/hpux11-32-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| # Configuration for HPUX v11, static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux11-32-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = aCC | ||||
|  | ||||
| CFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS | ||||
|  | ||||
| CXXFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Library/program dependencies | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/lib/X11R6/ -L/usr/contrib/X11R6/lib/ -lXext -lXmu -lXt -lXi -lX11 -lm -lpthread -lCsup -lcl | ||||
|  | ||||
							
								
								
									
										26
									
								
								configs/hpux11-32-static-nothreads
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								configs/hpux11-32-static-nothreads
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| # Configuration for HPUX v11, static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux11-32-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = aCC | ||||
|  | ||||
| CFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM | ||||
|  | ||||
| CXXFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Library/program dependencies | ||||
| APP_LIB_DEPS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm | ||||
							
								
								
									
										31
									
								
								configs/hpux11-64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								configs/hpux11-64
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| # Configuration for HPUX v11, 64-bit | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux11-64 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = aCC | ||||
|  | ||||
| CFLAGS = +z -Ae +DD64 -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS | ||||
|  | ||||
| CXXFLAGS = +z -Ae +DD64 -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS | ||||
|  | ||||
| MKLIB_OPTIONS = | ||||
|  | ||||
| LIB_DIR = lib64 | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Library/program dependencies | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) | ||||
| GL_LIB_DEPS = -L/usr/lib/X11R6/pa20_64 -L/usr/contrib/X11R6/lib/pa20_64 -lXext -lXmu -lXt -lXi -lX11 -lm -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCsup -lcl | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(GL_LIB_DEPS) | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(GL_LIB_DEPS) | ||||
							
								
								
									
										27
									
								
								configs/hpux11-64-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								configs/hpux11-64-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| # Configuration for HPUX v11, 64-bit, static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux11-64-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = aCC | ||||
|  | ||||
| CFLAGS = -O +DA2.0W -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS | ||||
|  | ||||
| CXXFLAGS = -O +DA2.0W -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| LIB_DIR = lib64 | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Library/program dependencies | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/lib/X11R6/pa20_64 -L/usr/contrib/X11R6/lib/pa20_64 -lXext -lXmu -lXt -lXi -lX11 -lm -lpthread -lCsup -lcl | ||||
							
								
								
									
										30
									
								
								configs/hpux11-ia64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								configs/hpux11-ia64
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| # Configuration for HPUX IA64 v11, 64-bit | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux11-ia64 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = aCC | ||||
|  | ||||
| CFLAGS = +z -Ae +DD64 -O +DSmckinley -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS | ||||
|  | ||||
| CXXFLAGS = +z -Ae +DD64 -O +DSmckinley -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS | ||||
|  | ||||
| MKLIB_OPTIONS = | ||||
|  | ||||
| LIB_DIR = lib64 | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.so | ||||
| GLU_LIB_NAME = libGLU.so | ||||
| GLUT_LIB_NAME = libglut.so | ||||
| GLW_LIB_NAME = libGLw.so | ||||
| OSMESA_LIB_NAME = libOSMesa.so | ||||
|  | ||||
| # Library/program dependencies | ||||
| GL_LIB_DEPS = -L/usr/lib/X11R6/ -L/usr/contrib/X11R6/lib/ -lXext -lXmu -lXt -lXi -lX11 -lm -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCsup -lcl | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(GL_LIB_DEPS) | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(GL_LIB_DEPS) | ||||
							
								
								
									
										27
									
								
								configs/hpux11-ia64-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								configs/hpux11-ia64-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| # Configuration for HPUX v11, 64-bit, static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux11-ia64-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = aCC | ||||
|  | ||||
| CFLAGS = -O +DD64 -Ae -D_HPUX_SOURCE +DSmckinley -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS | ||||
|  | ||||
| CXXFLAGS = -O +DD64 -Ae -D_HPUX_SOURCE +DSmckinley -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| LIB_DIR = lib64 | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Library/program dependencies | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lXt -lX11 -lpthread -lm -lCsup -lcl | ||||
							
								
								
									
										16
									
								
								configs/hpux9
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								configs/hpux9
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| # Configuration for HPUX v9, shared libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux9 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| # XXX fix this | ||||
| CXX = c++ | ||||
|  | ||||
| CFLAGS = +z -O +Olibcalls +ESlit -Ae +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5 -DUSE_XSHM | ||||
| CXXFLAGS = +z -O +Olibcalls +ESlit -Ae +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5 | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R5 -s -Wl,+s,-B,nonfatal,-B,immediate -lXext -lXmu -lXi -lX11 -lm | ||||
|  | ||||
							
								
								
									
										14
									
								
								configs/hpux9-gcc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								configs/hpux9-gcc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| # Configuration for HPUX v10, shared libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = hpux9-gcc | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = aCC | ||||
|  | ||||
| CFLAGS = -O +DAportable +z -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM | ||||
| CXXFLAGS = -O +DAportable +Z -Ae -D_HPUX_SOURCE | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm | ||||
							
								
								
									
										17
									
								
								configs/irix6-64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								configs/irix6-64
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| # Configuration for IRIX 6.x, make n64 DSOs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = irix6-64 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = CC | ||||
| CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DUSE_XSHM -DPTHREADS | ||||
| CXXFLAGS = -64 -O3 -ansi -woff 1174 -DPTHREADS | ||||
|  | ||||
| GLW_SOURCES = GLwDrawA.c GLwMDrawA.c | ||||
|  | ||||
| LIB_DIR = lib64 | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -64 -rpath $(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lpthread -lm | ||||
							
								
								
									
										26
									
								
								configs/irix6-64-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								configs/irix6-64-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| # Configuration for IRIX 6.x, make n64 static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = irix6-64-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = CC | ||||
| CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DUSE_XSHM -DPTHREADS | ||||
| CXXFLAGS = -64 -O3 -ansi -woff 1174 -DPTHREADS | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| GLW_SOURCES = GLwDrawA.c GLwMDrawA.c | ||||
|  | ||||
| LIB_DIR = lib64 | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -64 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lpthread -lm -lC | ||||
|  | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
|  | ||||
							
								
								
									
										17
									
								
								configs/irix6-n32
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								configs/irix6-n32
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| # Configuration for IRIX 6.x, make n32 DSOs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = irix6-n32 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = CC | ||||
| CFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1521,1552 -DUSE_XSHM -DPTHREADS | ||||
| CXXFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1552 -DPTHREADS | ||||
|  | ||||
| GLW_SOURCES = GLwDrawA.c GLwMDrawA.c | ||||
|  | ||||
| LIB_DIR = lib32 | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -n32 -rpath $(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lfpe -lpthread -lm | ||||
							
								
								
									
										25
									
								
								configs/irix6-n32-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								configs/irix6-n32-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| # Configuration for IRIX 6.x, make n32 static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = irix6-n32-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = CC | ||||
| CFLAGS = -n32 -mips2 -O2 -ansi -woff 1521,1552 -DUSE_XSHM -DPTHREADS | ||||
| CXXFLAGS = -n32 -mips2 -O2 -ansi -woff 3262,3666 -DPTHREADS | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| GLW_SOURCES = GLwDrawA.c GLwMDrawA.c | ||||
|  | ||||
| LIB_DIR = lib32 | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -n32 -glut -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lpthread -lm -lC | ||||
|  | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
							
								
								
									
										18
									
								
								configs/irix6-o32
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								configs/irix6-o32
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| # Configuration for IRIX 6.x, make o32 DSOs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = irix6-o32 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = CC | ||||
| CFLAGS = -32 -mips2 -O2 -ansi -woff 1521,1552 -DUSE_XSHM | ||||
| CXXFLAGS = -32 -mips2 -O2 -ansi -woff 3262,3666 | ||||
|  | ||||
| GLW_SOURCES = GLwDrawA.c GLwMDrawA.c | ||||
|  | ||||
| LIB_DIR = lib32 | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -32 -rpath $(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm | ||||
|  | ||||
							
								
								
									
										25
									
								
								configs/irix6-o32-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								configs/irix6-o32-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| # Configuration for IRIX 6.x, make o32 static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = irix6-o32-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = CC | ||||
| CFLAGS = -32 -mips2 -O2 -ansi -woff 1521,1552 -DUSE_XSHM | ||||
| CXXFLAGS = -32 -mips2 -O2 -ansi -woff 3262,3666 | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| GLW_SOURCES = GLwDrawA.c GLwMDrawA.c | ||||
|  | ||||
| LIB_DIR = lib32 | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -32 -glut -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm -lC | ||||
|  | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
							
								
								
									
										38
									
								
								configs/linux
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								configs/linux
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| # Configuration for generic Linux | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
|  | ||||
| OPT_FLAGS  = -O3 -g | ||||
| PIC_FLAGS  = -fPIC | ||||
|  | ||||
| # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.  Add -m32 | ||||
| # to build properly on 64-bit platforms. | ||||
|  | ||||
| ARCH_FLAGS ?= | ||||
|  | ||||
| DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \ | ||||
| 	-D_BSD_SOURCE -D_GNU_SOURCE \ | ||||
| 	-DPTHREADS -DUSE_XSHM -DHAVE_POSIX_MEMALIGN | ||||
|  | ||||
| X11_INCLUDES = -I/usr/X11R6/include | ||||
|  | ||||
| CFLAGS = -Wall -Wmissing-prototypes -Wdeclaration-after-statement \ | ||||
| 	-Wpointer-arith $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \ | ||||
| 	$(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math | ||||
|  | ||||
| CXXFLAGS = -Wall -Wpointer-arith $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \ | ||||
| 	$(DEFINES) $(X11_INCLUDES) | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| EXTRA_LIB_PATH = -L/usr/X11R6/lib | ||||
							
								
								
									
										22
									
								
								configs/linux-alpha
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								configs/linux-alpha
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| # Configuration for Linux on Alpha | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-alpha | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
| CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE -DUSE_XSHM | ||||
| CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11 | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm | ||||
|  | ||||
							
								
								
									
										31
									
								
								configs/linux-alpha-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								configs/linux-alpha-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| # Configuration for Linux on Alpha, static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-alpha-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
| CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE -DUSE_XSHM | ||||
| CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE | ||||
| GLUT_CFLAGS = -fexceptions | ||||
| MKLIB_OPTIONS = -static | ||||
| PIC_FLAGS = | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11 | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -L/usr/X11R6/lib -lX11 -lm | ||||
							
								
								
									
										67
									
								
								configs/linux-cell
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								configs/linux-cell
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,67 @@ | ||||
| # linux-cell  (non-debug build) | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-cell | ||||
|  | ||||
|  | ||||
| # Omiting other gallium drivers: | ||||
| GALLIUM_DRIVERS_DIRS = cell softpipe trace | ||||
|  | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = ppu32-gcc | ||||
| CXX = ppu32-g++ | ||||
| HOST_CC = gcc | ||||
| APP_CC = gcc | ||||
| APP_CXX = g++ | ||||
|  | ||||
| OPT_FLAGS = -O3 | ||||
|  | ||||
| # Cell SDK location | ||||
| ## For SDK 2.1: (plus, remove -DSPU_MAIN_PARAM_LONG_LONG below) | ||||
| #SDK = /opt/ibm/cell-sdk/prototype/sysroot/usr | ||||
| ## For SDK 3.0: | ||||
| SDK = /opt/cell/sdk/usr | ||||
|  | ||||
|  | ||||
| CFLAGS = $(OPT_FLAGS) -Wall -Winline -Wmissing-prototypes \ | ||||
| 	-fPIC -m32 -std=c99 -mabi=altivec -maltivec \ | ||||
| 	-I. -I$(SDK)/include \ | ||||
| 	-DGALLIUM_CELL -DUSE_XSHM -D_BSD_SOURCE -D_SVID_SOURCE | ||||
|  | ||||
| CXXFLAGS = $(CFLAGS) | ||||
|  | ||||
| # Omitting glw here: | ||||
| SRC_DIRS = gallium mesa gallium/winsys glu glut/glx glew | ||||
|  | ||||
| # Build no traditional Mesa drivers: | ||||
| DRIVER_DIRS = | ||||
|  | ||||
|  | ||||
| MKDEP_OPTIONS = -fdepend -Y | ||||
|  | ||||
|  | ||||
| GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread \ | ||||
| 	-L$(SDK)/lib -m32 -Wl,-m,elf32ppc -R$(SDK)/lib -lspe2 | ||||
|  | ||||
|  | ||||
| CELL_SPU_LIB = $(TOP)/src/gallium/drivers/cell/spu/g3d_spu.a | ||||
|  | ||||
|  | ||||
| ### SPU stuff | ||||
|  | ||||
| SPU_CC = spu-gcc | ||||
|  | ||||
| SPU_CFLAGS = $(OPT_FLAGS) -W -Wall -Winline -Wmissing-prototypes -Wno-main \ | ||||
| 	-I. -I$(SDK)/spu/include -I$(TOP)/src/mesa/ $(INCLUDE_DIRS) \ | ||||
| 	-DSPU_MAIN_PARAM_LONG_LONG \ | ||||
| 	-include spu_intrinsics.h | ||||
|  | ||||
| SPU_LFLAGS = -L$(SDK)/spu/lib -Wl,-N -lmisc -lm | ||||
|  | ||||
| SPU_AR = ppu-ar | ||||
| SPU_AR_FLAGS = -qcs | ||||
|  | ||||
| SPU_EMBED = ppu32-embedspu | ||||
| SPU_EMBED_FLAGS = -m32 | ||||
							
								
								
									
										10
									
								
								configs/linux-cell-debug
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								configs/linux-cell-debug
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| # linux-cell-debug | ||||
|  | ||||
| include $(TOP)/configs/linux-cell | ||||
|  | ||||
| # just override name and OPT_FLAGS here: | ||||
|  | ||||
| CONFIG_NAME = linux-cell-debug | ||||
|  | ||||
| OPT_FLAGS = -g -DDEBUG | ||||
|  | ||||
							
								
								
									
										9
									
								
								configs/linux-debug
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								configs/linux-debug
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| # Configuration for debugging on Linux | ||||
|  | ||||
| include $(TOP)/configs/linux | ||||
|  | ||||
| CONFIG_NAME = linux-debug | ||||
|  | ||||
| OPT_FLAGS = -g | ||||
| CFLAGS += -ansi -pedantic | ||||
| DEFINES += -DDEBUG -DDEBUG_MATH | ||||
							
								
								
									
										38
									
								
								configs/linux-directfb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								configs/linux-directfb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| # Configuration for DirectFB | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-directfb | ||||
|  | ||||
| # Compiler and flags | ||||
| CC  = gcc | ||||
| CXX = g++ | ||||
|  | ||||
| CFLAGS   = -Wall -O3 -ffast-math -fPIC -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -D_SVID_SOURCE \ | ||||
|          -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DPTHREADS | ||||
|  | ||||
| CXXFLAGS = -Wall -O3 -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE    | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes) | ||||
| ifeq ($(HAVE_X86), yes) | ||||
|      CFLAGS   += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM | ||||
|      CXXFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM | ||||
|      MESA_ASM_SOURCES = $(X86_SOURCES) | ||||
|      GLAPI_ASM_SOURCES = $(X86_API) | ||||
| endif | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS     = gallium mesa glu glut/directfb glew | ||||
| GLU_DIRS     = sgi | ||||
| DRIVER_DIRS  = directfb | ||||
| PROGRAM_DIRS = demos directfb | ||||
|  | ||||
| # Library/program dependencies | ||||
| GL_LIB_DEPS   = -lm -lpthread | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -l$(GLU_LIB) | ||||
| APP_LIB_DEPS  = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -l$(GLU_LIB) -l$(GLUT_LIB) | ||||
|  | ||||
							
								
								
									
										67
									
								
								configs/linux-dri
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								configs/linux-dri
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,67 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-dri | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
|  | ||||
| #MKDEP = /usr/X11R6/bin/makedepend | ||||
| #MKDEP = gcc -M | ||||
| #MKDEP_OPTIONS = -MF depend | ||||
|  | ||||
| OPT_FLAGS  = -O2 -g | ||||
| PIC_FLAGS  = -fPIC | ||||
|  | ||||
| # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support. | ||||
| ARCH_FLAGS ?= | ||||
|  | ||||
| DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \ | ||||
| 	-D_BSD_SOURCE -D_GNU_SOURCE \ | ||||
| 	-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \ | ||||
| 	-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \ | ||||
| 	-DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN | ||||
|  | ||||
| X11_INCLUDES = -I/usr/X11R6/include | ||||
|  | ||||
| CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \ | ||||
| 	$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS) | ||||
|  | ||||
| CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) | ||||
|  | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| MESA_ASM_SOURCES =  | ||||
|  | ||||
| # Library/program dependencies | ||||
| EXTRA_LIB_PATH=-L/usr/X11R6/lib | ||||
|  | ||||
| LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm) | ||||
| LIBDRM_LIB = $(shell pkg-config --libs libdrm) | ||||
| DRI_LIB_DEPS  = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB) | ||||
| GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \ | ||||
| 		-lm -lpthread -ldl $(LIBDRM_LIB) | ||||
|  | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS := glx/x11 egl $(SRC_DIRS) | ||||
| PROGRAM_DIRS := egl $(PROGRAM_DIRS) | ||||
|  | ||||
| # EGL directories | ||||
| EGL_DRIVERS_DIRS = demo glx | ||||
|  | ||||
| DRIVER_DIRS = dri | ||||
| WINDOW_SYSTEM = dri | ||||
| GALLIUM_WINSYS_DIRS = drm | ||||
| GALLIUM_WINSYS_DRM_DIRS = vmware intel | ||||
| GALLIUM_STATE_TRACKERS_DIRS = egl | ||||
|  | ||||
| DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon \ | ||||
| 	savage sis tdfx unichrome ffb swrast | ||||
							
								
								
									
										16
									
								
								configs/linux-dri-debug
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								configs/linux-dri-debug
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for linux-dri-debug: Linux DRI hardware drivers for XFree86 & others | ||||
|  | ||||
| include $(TOP)/configs/linux-dri | ||||
|  | ||||
| CONFIG_NAME = linux-dri-debug | ||||
| OPT_FLAGS  = -O0 -g | ||||
| ARCH_FLAGS = -DDEBUG | ||||
|  | ||||
| # Helpful to reduce the amount of stuff that gets built sometimes: | ||||
| #DRI_DIRS = i915tex i915  | ||||
| #DRI_DIRS = i965 | ||||
| #DRI_DIRS = radeon r200 r300 | ||||
| #DRI_DIRS = unichrome sis | ||||
| #DRI_DIRS = i810 mga r128 tdfx | ||||
|  | ||||
							
								
								
									
										17
									
								
								configs/linux-dri-ppc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								configs/linux-dri-ppc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others | ||||
|  | ||||
| include $(TOP)/configs/linux-dri | ||||
|  | ||||
| CONFIG_NAME = linux-dri-ppc | ||||
|  | ||||
| OPT_FLAGS = -Os -mcpu=603 | ||||
| PIC_FLAGS = -fPIC | ||||
|  | ||||
| ASM_FLAGS = -DUSE_PPC_ASM -DUSE_VMX_ASM | ||||
| MESA_ASM_SOURCES = $(PPC_SOURCES) | ||||
|  | ||||
| # Build only the drivers for cards that exist on PowerPC.  At some point MGA | ||||
| # will be added, but not yet. | ||||
| DRI_DIRS = mach64 r128 r200 r300 radeon tdfx | ||||
|  | ||||
							
								
								
									
										13
									
								
								configs/linux-dri-x86
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								configs/linux-dri-x86
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others | ||||
|  | ||||
| include $(TOP)/configs/linux-dri | ||||
|  | ||||
| CONFIG_NAME = linux-dri-x86 | ||||
|  | ||||
| ARCH_FLAGS = -m32 -mmmx -msse -msse2 | ||||
|  | ||||
| ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM | ||||
| MESA_ASM_SOURCES = $(X86_SOURCES) | ||||
| GLAPI_ASM_SOURCES = $(X86_API) | ||||
|  | ||||
							
								
								
									
										24
									
								
								configs/linux-dri-x86-64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								configs/linux-dri-x86-64
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others | ||||
|  | ||||
| include $(TOP)/configs/linux-dri | ||||
|  | ||||
| CONFIG_NAME = linux-dri-x86-64 | ||||
|  | ||||
| ARCH_FLAGS = -m64 | ||||
|  | ||||
| ASM_FLAGS = -DUSE_X86_64_ASM | ||||
| MESA_ASM_SOURCES = $(X86-64_SOURCES) | ||||
| GLAPI_ASM_SOURCES = $(X86-64_API) | ||||
|  | ||||
| LIB_DIR = lib64 | ||||
|  | ||||
| # Library/program dependencies | ||||
| EXTRA_LIB_PATH=-L/usr/X11R6/lib64 | ||||
|  | ||||
| # ffb, gamma, and sis are missing because they have not be converted to use | ||||
| # the new interface.  i810 are missing because there is no x86-64 | ||||
| # system where they could *ever* be used. | ||||
| # | ||||
| DRI_DIRS = i915 i965 mach64 mga r128 r200 r300 radeon savage tdfx unichrome | ||||
|  | ||||
							
								
								
									
										72
									
								
								configs/linux-dri-xcb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								configs/linux-dri-xcb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,72 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-dri-xcb | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
|  | ||||
| #MKDEP = /usr/X11R6/bin/makedepend | ||||
| #MKDEP = gcc -M | ||||
| #MKDEP_OPTIONS = -MF depend | ||||
|  | ||||
| OPT_FLAGS  = -g | ||||
| PIC_FLAGS  = -fPIC | ||||
|  | ||||
| # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support. | ||||
| ARCH_FLAGS ?= | ||||
|  | ||||
| DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \ | ||||
| 	-D_BSD_SOURCE -D_GNU_SOURCE \ | ||||
| 	-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \ | ||||
| 	-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \ | ||||
|         -DHAVE_ALIAS -DUSE_XCB -DHAVE_POSIX_MEMALIGN | ||||
|  | ||||
| X11_INCLUDES = $(shell pkg-config --cflags-only-I x11) $(shell pkg-config --cflags-only-I xcb) $(shell pkg-config --cflags-only-I x11-xcb) $(shell pkg-config --cflags-only-I xcb-glx) | ||||
|  | ||||
| CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \ | ||||
| 	$(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math  | ||||
|  | ||||
| CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| MESA_ASM_SOURCES =  | ||||
|  | ||||
| # Library/program dependencies | ||||
| EXTRA_LIB_PATH=$(shell pkg-config --libs-only-L x11) | ||||
|  | ||||
| LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm) | ||||
| LIBDRM_LIB = $(shell pkg-config --libs libdrm) | ||||
| DRI_LIB_DEPS  = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB) | ||||
| GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \ | ||||
|                 $(LIBDRM_LIB) $(shell pkg-config --libs xcb) $(shell pkg-config --libs x11-xcb) $(shell pkg-config --libs xcb-glx) | ||||
|  | ||||
|  | ||||
| # This is now 0 by default since it seems to confuse the hell out of people | ||||
| # and generate a lot of extra noise on bugzilla.  If you need to build with | ||||
| # EGL, do 'make linux-dri USING_EGL=1' | ||||
|  | ||||
| USING_EGL=0 | ||||
|  | ||||
| # Directories | ||||
| ifeq ($(USING_EGL), 1) | ||||
| SRC_DIRS = egl glx/x11 gallium mesa glu glut/glx glew glw | ||||
| PROGRAM_DIRS = egl | ||||
| else | ||||
| SRC_DIRS = glx/x11 gallium mesa glu glut/glx glew glw | ||||
| PROGRAM_DIRS = xdemos | ||||
| endif | ||||
|  | ||||
| DRIVER_DIRS = dri | ||||
| WINDOW_SYSTEM=dri | ||||
|  | ||||
| # gamma are missing because they have not been converted to use the new | ||||
| # interface. | ||||
| DRI_DIRS = i810 i915 mach64 mga r128 r200 r300 radeon \ | ||||
| 	savage sis tdfx unichrome ffb  | ||||
							
								
								
									
										65
									
								
								configs/linux-egl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								configs/linux-egl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,65 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-dri | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
|  | ||||
| #MKDEP = /usr/X11R6/bin/makedepend | ||||
| #MKDEP = gcc -M | ||||
| #MKDEP_OPTIONS = -MF depend | ||||
|  | ||||
| OPT_FLAGS  = -O -g | ||||
| PIC_FLAGS  = -fPIC | ||||
|  | ||||
| # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support. | ||||
| ARCH_FLAGS ?= | ||||
|  | ||||
| DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \ | ||||
| 	-D_BSD_SOURCE -D_GNU_SOURCE \ | ||||
| 	-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \ | ||||
| 	-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \ | ||||
| 	-DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN | ||||
|  | ||||
| X11_INCLUDES = -I/usr/X11R6/include | ||||
|  | ||||
| CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \ | ||||
| 	$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS) | ||||
|  | ||||
| CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) | ||||
|  | ||||
|  | ||||
| MESA_ASM_SOURCES =  | ||||
|  | ||||
| # Library/program dependencies | ||||
| EXTRA_LIB_PATH=-L/usr/X11R6/lib | ||||
|  | ||||
| LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm) | ||||
| LIBDRM_LIB = $(shell pkg-config --libs libdrm) | ||||
| DRI_LIB_DEPS  = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB) | ||||
| GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \ | ||||
| 		-lm -lpthread -ldl \ | ||||
|                 $(LIBDRM_LIB) | ||||
|  | ||||
|  | ||||
| # This is now 0 by default since it seems to confuse the hell out of people | ||||
| # and generate a lot of extra noise on bugzilla.  If you need to build with | ||||
| # EGL, do 'make linux-dri USING_EGL=1' | ||||
|  | ||||
| USING_EGL=0 | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = gallium mesa gallium/winsys glu egl | ||||
| PROGRAM_DIRS = egl | ||||
|  | ||||
| DRIVER_DIRS = dri | ||||
| WINDOW_SYSTEM = dri | ||||
| GALLIUM_WINSYS_DIRS = egl_drm | ||||
|  | ||||
| # gamma are missing because they have not been converted to use the new | ||||
| # interface. | ||||
| DRI_DIRS = intel  | ||||
							
								
								
									
										19
									
								
								configs/linux-fbdev
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								configs/linux-fbdev
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| # Configuration for Linux fbdev interface | ||||
|  | ||||
| include $(TOP)/configs/linux | ||||
|  | ||||
| CONFIG_NAME = linux-fbdev | ||||
|  | ||||
| CFLAGS = -O3 -ffast-math -ansi -pedantic -fPIC -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS -DUSE_GLFBDEV_DRIVER | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| SRC_DIRS = gallium mesa glu glut/fbdev glew | ||||
| DRIVER_DIRS = fbdev osmesa | ||||
| PROGRAM_DIRS = fbdev demos redbook samples | ||||
|  | ||||
| GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread | ||||
| OSMESA_LIB_DEPS = -lm -lpthread | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lgpm -lm | ||||
|  | ||||
							
								
								
									
										23
									
								
								configs/linux-glide
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								configs/linux-glide
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| # Configuration for generic Linux with 3Dfx Glide driver | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-glide | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
|  | ||||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DFX -I/usr/include/glide -I/usr/local/glide/include | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library/program dependencies | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11 | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/local/glide/lib -lglide3x -lm | ||||
							
								
								
									
										21
									
								
								configs/linux-ia64-icc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								configs/linux-ia64-icc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| # Configuration for Linux with Intel C compiler | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-icc | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = icc | ||||
| CXX = icpc | ||||
| CFLAGS = -O3 -ansi -KPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include | ||||
| CXXFLAGS = -O3 -ansi -KPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include | ||||
| GLUT_CFLAGS = -fexceptions | ||||
| MKLIB_OPTIONS = -arch icc-istatic | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)  | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(GL_LIB_DEPS) | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) | ||||
|  | ||||
|  | ||||
							
								
								
									
										27
									
								
								configs/linux-ia64-icc-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								configs/linux-ia64-icc-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| # Configuration for Linux with Intel C compiler, static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-icc-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = icc | ||||
| CXX = icpc | ||||
| CFLAGS = -O3 -ansi -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include | ||||
| CXXFLAGS = -O3 -ansi -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include | ||||
| GLUT_CFLAGS = -fexceptions | ||||
| MKLIB_OPTIONS = -static -arch icc-istatic | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| GL_LIB_DEPS = | ||||
| GLU_LIB_DEPS = | ||||
| GLUT_LIB_DEPS = | ||||
| GLW_LIB_DEPS = | ||||
| APP_LIB_DEPS = -i-static -cxxlib-icc -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lpthread -lm -lcxa -lunwind | ||||
|  | ||||
							
								
								
									
										22
									
								
								configs/linux-icc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								configs/linux-icc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| # Configuration for Linux with Intel C compiler | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-icc | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = icc | ||||
| CXX = g++ | ||||
| CFLAGS = -O3 -tpp6 -axK -KPIC -D_GCC_LIMITS_H_ -D__GNUC__ -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -I/usr/X11R6/include | ||||
| CXXFLAGS = -O3 | ||||
| GLUT_CFLAGS = -fexceptions | ||||
| MKLIB_OPTIONS = -arch icc | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm | ||||
|  | ||||
| MESA_ASM_SOURCES = $(X86_SOURCES) | ||||
| GLAPI_ASM_SOURCES = $(X86_API) | ||||
|  | ||||
|  | ||||
							
								
								
									
										27
									
								
								configs/linux-icc-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								configs/linux-icc-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| # Configuration for Linux with Intel C compiler, static libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-icc-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = icc | ||||
| CXX = icpc | ||||
| CFLAGS = -O3 -tpp6 -axK -D_GCC_LIMITS_H_ -D__GNUC__ -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -I/usr/X11R6/include | ||||
| CXXFLAGS = -O3 -tpp6 -axK -DPTHREADS | ||||
| GLUT_CFLAGS = -fexceptions | ||||
| MKLIB_OPTIONS = -static -arch icc | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| GL_LIB_DEPS = | ||||
| GLUT_LIB_DEPS = | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm -lpthread -lcxa -lunwind | ||||
|  | ||||
| MESA_ASM_SOURCES = $(X86_SOURCES) | ||||
| GLAPI_ASM_SOURCES = $(X86_API) | ||||
							
								
								
									
										53
									
								
								configs/linux-indirect
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								configs/linux-indirect
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,53 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for linux-indirect: Builds a libGL capable of indirect | ||||
| # rendering, but *NOT* capable of direct rendering. | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-dri | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
|  | ||||
| #MKDEP = /usr/X11R6/bin/makedepend | ||||
| #MKDEP = gcc -M | ||||
| #MKDEP_OPTIONS = -MF depend | ||||
|  | ||||
| WARN_FLAGS = -Wall | ||||
| OPT_FLAGS  = -O -g | ||||
| PIC_FLAGS  = -fPIC | ||||
|  | ||||
| # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support. | ||||
| ARCH_FLAGS ?= | ||||
|  | ||||
| DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \ | ||||
| 	-D_BSD_SOURCE -D_GNU_SOURCE \ | ||||
| 	-DGLX_INDIRECT_RENDERING \ | ||||
| 	-DPTHREADS -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN | ||||
|  | ||||
| X11_INCLUDES = -I/usr/X11R6/include | ||||
|  | ||||
| CFLAGS   = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \ | ||||
| 	$(ASM_FLAGS) -std=c99 -ffast-math  | ||||
|  | ||||
| CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| MESA_ASM_SOURCES =  | ||||
|  | ||||
| # Library/program dependencies | ||||
| EXTRA_LIB_PATH=-L/usr/X11R6/lib | ||||
|  | ||||
| DRI_LIB_DEPS  = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl | ||||
| GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl | ||||
|  | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = glx/x11 glu glut/glx glew glw | ||||
| DRIVER_DIRS = | ||||
| PROGRAM_DIRS =  | ||||
| WINDOW_SYSTEM=dri | ||||
							
								
								
									
										42
									
								
								configs/linux-llvm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								configs/linux-llvm
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for Linux and LLVM with debugging info | ||||
| # Builds the llvmpipe gallium driver | ||||
|  | ||||
| include $(TOP)/configs/linux | ||||
|  | ||||
| CONFIG_NAME = linux-llvm | ||||
|  | ||||
| #GALLIUM_AUXILIARY_DIRS += gallivm | ||||
|  | ||||
| # Add llvmpipe driver | ||||
| GALLIUM_DRIVERS_DIRS += llvmpipe | ||||
|  | ||||
| OPT_FLAGS = -g -ansi -pedantic | ||||
| DEFINES += -DDEBUG -DDEBUG_MATH -DGALLIUM_LLVMPIPE -DHAVE_UDIS86 | ||||
|  | ||||
| # override -std=c99 | ||||
| CFLAGS += -std=gnu99 | ||||
|  | ||||
| LLVM_VERSION := $(shell llvm-config --version) | ||||
|  | ||||
| ifeq ($(LLVM_VERSION),) | ||||
|   $(warning Could not find LLVM! Make Sure 'llvm-config' is in the path) | ||||
|   MESA_LLVM=0 | ||||
| else | ||||
|   MESA_LLVM=1 | ||||
| #  $(info Using LLVM version: $(LLVM_VERSION)) | ||||
| endif | ||||
|  | ||||
| ifeq ($(MESA_LLVM),1) | ||||
| #  LLVM_CFLAGS=`llvm-config --cflags` | ||||
|   LLVM_CXXFLAGS=`llvm-config --cxxflags backend bitreader engine ipo interpreter instrumentation` -Wno-long-long | ||||
|   LLVM_LDFLAGS = $(shell llvm-config --ldflags backend bitreader engine ipo interpreter instrumentation) | ||||
|   LLVM_LIBS = $(shell llvm-config --libs backend bitreader engine ipo interpreter instrumentation) | ||||
|   MKLIB_OPTIONS=-cplusplus | ||||
| else | ||||
|   LLVM_CFLAGS= | ||||
|   LLVM_CXXFLAGS= | ||||
| endif | ||||
|  | ||||
| LD = g++ | ||||
| GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++ -ludis86 | ||||
							
								
								
									
										28
									
								
								configs/linux-osmesa
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								configs/linux-osmesa
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| # Configuration for building only libOSMesa on Linux, no Xlib driver | ||||
| # This doesn't really have any Linux dependencies, so it should be usable | ||||
| # on other (gcc-based) systems. | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-osmesa | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = gallium mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS = osdemos | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| OSMESA_LIB_DEPS = -lm -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) | ||||
| APP_LIB_DEPS = -lm -lpthread | ||||
							
								
								
									
										37
									
								
								configs/linux-osmesa-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								configs/linux-osmesa-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| # Configuration for building static libOSMesa.a on Linux, no Xlib driver | ||||
| # This doesn't really have any Linux dependencies, so it should be usable | ||||
| # on other (gcc-based) systems. | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-osmesa | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc -m32 | ||||
| CXX = g++ -m32 | ||||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS = osdemos | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| GL_LIB_DEPS = | ||||
| OSMESA_LIB_DEPS = | ||||
| GLU_LIB_DEPS = | ||||
| GLUT_LIB_DEPS = | ||||
| GLW_LIB_DEPS = | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) \ | ||||
|                $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm | ||||
							
								
								
									
										31
									
								
								configs/linux-osmesa16
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								configs/linux-osmesa16
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| # Configuration for 16 bits/channel OSMesa library on Linux | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-osmesa16 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31 | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names | ||||
| OSMESA_LIB = OSMesa16 | ||||
| OSMESA_LIB_NAME = libOSMesa16.so | ||||
|  | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = gallium mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS =  | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| OSMESA_LIB_DEPS = -lm -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) | ||||
| APP_LIB_DEPS = -lm -lpthread | ||||
							
								
								
									
										32
									
								
								configs/linux-osmesa16-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								configs/linux-osmesa16-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| # Configuration for 16 bits/channel OSMesa library on Linux | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-osmesa16-static | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
| CFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31 | ||||
| CXXFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
| MKLIB_OPTIONS = -static | ||||
| PIC_FLAGS = | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names | ||||
| OSMESA_LIB = OSMesa16 | ||||
| OSMESA_LIB_NAME = libOSMesa16.a | ||||
|  | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = gallium mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS =  | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| OSMESA_LIB_DEPS = -lm -lpthread | ||||
| APP_LIB_DEPS = -lm -lpthread | ||||
							
								
								
									
										31
									
								
								configs/linux-osmesa32
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								configs/linux-osmesa32
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| # Configuration for 32 bits/channel OSMesa library on Linux | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-osmesa32 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=32 -DDEFAULT_SOFTWARE_DEPTH_BITS=31 | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names | ||||
| OSMESA_LIB = OSMesa32 | ||||
| OSMESA_LIB_NAME = libOSMesa32.so | ||||
|  | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = gallium mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS =  | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| OSMESA_LIB_DEPS = -lm -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) | ||||
| APP_LIB_DEPS = -lm -lpthread | ||||
							
								
								
									
										9
									
								
								configs/linux-ppc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								configs/linux-ppc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| # Configuration for Linux on PPC | ||||
|  | ||||
| include $(TOP)/configs/linux | ||||
|  | ||||
| CONFIG_NAME = linux-ppc | ||||
|  | ||||
| OPT_FLAGS = -O3 -mcpu=603 -fsigned-char -funroll-loops | ||||
|  | ||||
| # FIXME: Use of PowerPC assembly should be enabled here. | ||||
							
								
								
									
										15
									
								
								configs/linux-ppc-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								configs/linux-ppc-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| # Configuration for Linux on PPC, static libs | ||||
|  | ||||
| include $(TOP)/configs/linux-ppc | ||||
|  | ||||
| CONFIG_NAME = linux-ppc-static | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
| PIC_FLAGS = | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
							
								
								
									
										8
									
								
								configs/linux-profile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								configs/linux-profile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # Configuration for profiling on Linux with gprof | ||||
|  | ||||
| include $(TOP)/configs/linux-static | ||||
|  | ||||
| CONFIG_NAME = linux-profile | ||||
|  | ||||
| OPT_FLAGS = -pg -g -O2 | ||||
| DEFINES += -DNDEBUG | ||||
							
								
								
									
										54
									
								
								configs/linux-solo
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								configs/linux-solo
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,54 @@ | ||||
| # Configuration for linux-solo: Linux DRI hardware drivers for fbdev | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = linux-solo | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = gcc | ||||
| CXX = g++ | ||||
|  | ||||
| WARN_FLAGS = -Wall -Wundef | ||||
| OPT_FLAGS  = -O3 -g | ||||
| PIC_FLAGS  = -fPIC | ||||
|  | ||||
| # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support. | ||||
| ARCH_FLAGS ?= | ||||
|  | ||||
| # DRM and pciaccess | ||||
| LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm) | ||||
| LIBDRM_LIB = $(shell pkg-config --libs libdrm) | ||||
| PCIACCESS_CFLAGS = $(shell pkg-config --cflags pciaccess) | ||||
| PCIACCESS_LIB = $(shell pkg-config --libs pciaccess) | ||||
|  | ||||
|  | ||||
| DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \ | ||||
| 	-D_BSD_SOURCE -D_GNU_SOURCE -DHAVE_POSIX_MEMALIGN \ | ||||
| 	-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \ | ||||
| 	-DHAVE_ALIAS | ||||
|  | ||||
| CFLAGS   = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \ | ||||
| 	$(ASM_FLAGS) -std=c99 -ffast-math  | ||||
|  | ||||
| CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| MESA_ASM_SOURCES =  | ||||
|  | ||||
| # Library/program dependencies | ||||
| DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl -L$(TOP)/$(LIB_DIR) $(PCIACCESS_LIB) | ||||
| GL_LIB_DEPS = -lm -lpthread -ldl | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lpthread | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = glx/mini gallium mesa glu glut/mini glew | ||||
| DRIVER_DIRS = dri | ||||
| PROGRAM_DIRS = miniglx | ||||
|  | ||||
| #DRI_DIRS = ffb gamma sis savage tdfx unichrome fb | ||||
| DRI_DIRS = i810 i915tex i915 mach64 mga r128 r200 radeon | ||||
							
								
								
									
										7
									
								
								configs/linux-solo-ia64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/linux-solo-ia64
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # Configuration for linux-solo-ia64: Linux DRI hardware drivers for fbdev | ||||
|  | ||||
| include $(TOP)/configs/linux-solo | ||||
|  | ||||
| CONFIG_NAME = linux-solo-ia64 | ||||
|  | ||||
| DRI_DIRS = fb mach64 mga r128 r200 radeon sis tdfx unichrome | ||||
							
								
								
									
										10
									
								
								configs/linux-solo-x86
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								configs/linux-solo-x86
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| # -*-makefile-*- | ||||
| # Configuration for linux-solo-x86: Linux hardware drivers for fbdev for x86 | ||||
|  | ||||
| include $(TOP)/configs/linux-solo | ||||
|  | ||||
| CONFIG_NAME = linux-solo-x86 | ||||
|  | ||||
| ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM | ||||
| MESA_ASM_SOURCES = $(X86_SOURCES) | ||||
| GLAPI_ASM_SOURCES = $(X86_API) | ||||
							
								
								
									
										9
									
								
								configs/linux-sparc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								configs/linux-sparc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| # Configuration for Linux on Sparc | ||||
|  | ||||
| include $(TOP)/configs/linux | ||||
|  | ||||
| CONFIG_NAME = linux-sparc | ||||
|  | ||||
| #ASM_FLAGS = -DUSE_SPARC_ASM | ||||
| #MESA_ASM_SOURCES = $(SPARC_SOURCES) | ||||
| #GLAPI_ASM_SOURCES = $(SPARC_API) | ||||
							
								
								
									
										7
									
								
								configs/linux-sparc5
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/linux-sparc5
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # Configuration for Linux on Sparc5 | ||||
|  | ||||
| include $(TOP)/configs/linux-sparc | ||||
|  | ||||
| CONFIG_NAME = linux-sparc5 | ||||
|  | ||||
| ARCH_FLAGS += -mcpu=ultrasparc | ||||
							
								
								
									
										26
									
								
								configs/linux-static
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								configs/linux-static
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| # Configuration for generic Linux, making static libs | ||||
|  | ||||
| include $(TOP)/configs/linux | ||||
|  | ||||
| CONFIG_NAME = linux-static | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
| PIC_FLAGS = | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
| GLW_LIB_NAME = libGLw.a | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Library/program dependencies (static libs don't have dependencies) | ||||
| GL_LIB_DEPS =  | ||||
| OSMESA_LIB_DEPS =  | ||||
| GLU_LIB_DEPS =  | ||||
| GLUT_LIB_DEPS =  | ||||
| GLW_LIB_DEPS =  | ||||
|  | ||||
| # Need to specify all libraries we may need | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) \ | ||||
| 	-l$(GL_LIB) -lm -L/usr/X11R6/lib/ -lX11 -lXext -lXmu -lXi -lpthread | ||||
							
								
								
									
										7
									
								
								configs/linux-ultrasparc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/linux-ultrasparc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # Configuration for Linux on UltraSparc | ||||
|  | ||||
| include $(TOP)/configs/linux-sparc | ||||
|  | ||||
| CONFIG_NAME = linux-ultrasparc | ||||
|  | ||||
| ARCH_FLAGS += -mv8 -mtune=ultrasparc | ||||
							
								
								
									
										11
									
								
								configs/linux-x86
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								configs/linux-x86
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| # Configuration for Linux with x86 optimizations | ||||
|  | ||||
| include $(TOP)/configs/linux | ||||
|  | ||||
| CONFIG_NAME = linux-x86 | ||||
|  | ||||
| ARCH_FLAGS = -m32 -mmmx -msse -msse2 | ||||
|  | ||||
| ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM | ||||
| MESA_ASM_SOURCES = $(X86_SOURCES) | ||||
| GLAPI_ASM_SOURCES = $(X86_API) | ||||
							
								
								
									
										7
									
								
								configs/linux-x86-32
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/linux-x86-32
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # To build Linux x86 32-bit in an x86-64 environment | ||||
|  | ||||
| include $(TOP)/configs/linux-x86 | ||||
|  | ||||
| CONFIG_NAME = linux-x86-32 | ||||
|  | ||||
| ARCH_FLAGS += -m32 | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user