Compare commits
	
		
			237 Commits
		
	
	
		
			pre-merge-
			...
			texman_0_1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					af6a480117 | ||
| 
						 | 
					14e9700621 | ||
| 
						 | 
					7fb177c367 | ||
| 
						 | 
					d65cda4ce3 | ||
| 
						 | 
					460a375d85 | ||
| 
						 | 
					c3c5652602 | ||
| 
						 | 
					e1998baef8 | ||
| 
						 | 
					3e980901b0 | ||
| 
						 | 
					14fe63a12b | ||
| 
						 | 
					fbd147c0b5 | ||
| 
						 | 
					7b7c54e94c | ||
| 
						 | 
					84dd9c8112 | ||
| 
						 | 
					bba85343e7 | ||
| 
						 | 
					6484b373c3 | ||
| 
						 | 
					245a3c54c7 | ||
| 
						 | 
					1266e633cc | ||
| 
						 | 
					86042f53f2 | ||
| 
						 | 
					068062f997 | ||
| 
						 | 
					c62af8e3b7 | ||
| 
						 | 
					8e5650d7f4 | ||
| 
						 | 
					65f1cf2cbf | ||
| 
						 | 
					f04f5e990a | ||
| 
						 | 
					1854ebe77e | ||
| 
						 | 
					3500f2e3c4 | ||
| 
						 | 
					cfeefc9b81 | ||
| 
						 | 
					3ad6adfb57 | ||
| 
						 | 
					8a126f1166 | ||
| 
						 | 
					6315aabcf2 | ||
| 
						 | 
					a8c2344364 | ||
| 
						 | 
					2929b2569b | ||
| 
						 | 
					f14790d7b0 | ||
| 
						 | 
					8fb2e61801 | ||
| 
						 | 
					b3c94f9d9d | ||
| 
						 | 
					5b889f7f2d | ||
| 
						 | 
					0f531b5b48 | ||
| 
						 | 
					c6482c0d41 | ||
| 
						 | 
					b71748efd1 | ||
| 
						 | 
					1c4b9edc41 | ||
| 
						 | 
					2b464d93d1 | ||
| 
						 | 
					497f80ac34 | ||
| 
						 | 
					2be748769b | ||
| 
						 | 
					45a1083ee7 | ||
| 
						 | 
					3a45baa70d | ||
| 
						 | 
					0bc3a7ac2e | ||
| 
						 | 
					08f0579176 | ||
| 
						 | 
					d689cd0715 | ||
| 
						 | 
					e957f39f67 | ||
| 
						 | 
					416f09d3e6 | ||
| 
						 | 
					40cc5d36fd | ||
| 
						 | 
					62f9613dbc | ||
| 
						 | 
					7f31255eb2 | ||
| 
						 | 
					78382b4bbe | ||
| 
						 | 
					bd8e90857c | ||
| 
						 | 
					b7cc448ff8 | ||
| 
						 | 
					0ea582acbe | ||
| 
						 | 
					05c824db87 | ||
| 
						 | 
					829f6909bd | ||
| 
						 | 
					34f1ebc72f | ||
| 
						 | 
					c6e586ee0c | ||
| 
						 | 
					9180d932c6 | ||
| 
						 | 
					95df1b67a2 | ||
| 
						 | 
					bc400c3f30 | ||
| 
						 | 
					3a3db0e9ec | ||
| 
						 | 
					613e395ab8 | ||
| 
						 | 
					86c5de8b85 | ||
| 
						 | 
					44c8c42ab9 | ||
| 
						 | 
					31a82a663c | ||
| 
						 | 
					dafdf6512e | ||
| 
						 | 
					9caacb015a | ||
| 
						 | 
					2887770534 | ||
| 
						 | 
					fb440c9f82 | ||
| 
						 | 
					576c9c310f | ||
| 
						 | 
					ec1db9db1f | ||
| 
						 | 
					e1f70cf5e2 | ||
| 
						 | 
					a7cdbf5c38 | ||
| 
						 | 
					fe37adfde3 | ||
| 
						 | 
					315396ac6c | ||
| 
						 | 
					a7252f42ae | ||
| 
						 | 
					bffc66109e | ||
| 
						 | 
					0089c7f4ee | ||
| 
						 | 
					54f435340b | ||
| 
						 | 
					66d887d605 | ||
| 
						 | 
					c6dc5cc8ab | ||
| 
						 | 
					e0412bb726 | ||
| 
						 | 
					cc5cbd1bca | ||
| 
						 | 
					93fbfa5781 | ||
| 
						 | 
					30709caad6 | ||
| 
						 | 
					a647198f65 | ||
| 
						 | 
					7ad6ea6ff2 | ||
| 
						 | 
					ceee2c45cd | ||
| 
						 | 
					26dc161fde | ||
| 
						 | 
					b176ef05f2 | ||
| 
						 | 
					6d6e7a08c7 | ||
| 
						 | 
					eb75ec2349 | ||
| 
						 | 
					2a8bd4e329 | ||
| 
						 | 
					c247268499 | ||
| 
						 | 
					b2cb8920c2 | ||
| 
						 | 
					af4d93f256 | ||
| 
						 | 
					c8dd839acb | ||
| 
						 | 
					e43c3c38fb | ||
| 
						 | 
					9194782fdc | ||
| 
						 | 
					ec36d5b537 | ||
| 
						 | 
					6e5da1a860 | ||
| 
						 | 
					21f6e8a2d0 | ||
| 
						 | 
					18772c9e88 | ||
| 
						 | 
					5df4283b53 | ||
| 
						 | 
					6734bab3b2 | ||
| 
						 | 
					0a5fea5f96 | ||
| 
						 | 
					9b2762d7b9 | ||
| 
						 | 
					571bf7a71b | ||
| 
						 | 
					4ab3b9aa76 | ||
| 
						 | 
					88c018ee47 | ||
| 
						 | 
					cead52ef68 | ||
| 
						 | 
					9cf0ed6059 | ||
| 
						 | 
					2c1c8dccf7 | ||
| 
						 | 
					b87f9f6056 | ||
| 
						 | 
					427bf0171d | ||
| 
						 | 
					98c5445c75 | ||
| 
						 | 
					15ffb3bbab | ||
| 
						 | 
					97b570b999 | ||
| 
						 | 
					e8e6374a16 | ||
| 
						 | 
					d9f31f16c0 | ||
| 
						 | 
					1173198f51 | ||
| 
						 | 
					01a56d23e6 | ||
| 
						 | 
					bf050799ac | ||
| 
						 | 
					3697eca493 | ||
| 
						 | 
					de2b3506ea | ||
| 
						 | 
					bfbe2eb6e9 | ||
| 
						 | 
					8bd395f601 | ||
| 
						 | 
					735925d15b | ||
| 
						 | 
					448a3456a9 | ||
| 
						 | 
					e176b11b74 | ||
| 
						 | 
					cdc8771893 | ||
| 
						 | 
					789399d3f4 | ||
| 
						 | 
					dfa8624e83 | ||
| 
						 | 
					36b64bbd4f | ||
| 
						 | 
					651985f813 | ||
| 
						 | 
					9f2b49a7b3 | ||
| 
						 | 
					05c6361b0b | ||
| 
						 | 
					9621817253 | ||
| 
						 | 
					7e2e4a6b1a | ||
| 
						 | 
					656c71ca3f | ||
| 
						 | 
					6ce7055dcc | ||
| 
						 | 
					c848a65b5e | ||
| 
						 | 
					1ff99fcd50 | ||
| 
						 | 
					67342052d2 | ||
| 
						 | 
					ccf52b6784 | ||
| 
						 | 
					78aa58c914 | ||
| 
						 | 
					4291f24abd | ||
| 
						 | 
					f4211722f1 | ||
| 
						 | 
					71380a1325 | ||
| 
						 | 
					33e55c6a7d | ||
| 
						 | 
					cd32164cc6 | ||
| 
						 | 
					7c1348ac8f | ||
| 
						 | 
					2560061cfe | ||
| 
						 | 
					0c047b8847 | ||
| 
						 | 
					c64a08c286 | ||
| 
						 | 
					bb409e88d8 | ||
| 
						 | 
					af69eefcba | ||
| 
						 | 
					d9c071adec | ||
| 
						 | 
					833d19c21d | ||
| 
						 | 
					7245757174 | ||
| 
						 | 
					3d96cb7d48 | ||
| 
						 | 
					f565ab2dd5 | ||
| 
						 | 
					7ad0c51f48 | ||
| 
						 | 
					fea684c533 | ||
| 
						 | 
					4e8845fc0c | ||
| 
						 | 
					ffcc1cdb41 | ||
| 
						 | 
					afc90075ba | ||
| 
						 | 
					79acea2708 | ||
| 
						 | 
					a12063a540 | ||
| 
						 | 
					9826d83439 | ||
| 
						 | 
					84f7ded925 | ||
| 
						 | 
					59dd8ad752 | ||
| 
						 | 
					4afd26982e | ||
| 
						 | 
					17e4a7ea17 | ||
| 
						 | 
					3d67655cce | ||
| 
						 | 
					b5d7c69884 | ||
| 
						 | 
					b6759e2be7 | ||
| 
						 | 
					af853b0da7 | ||
| 
						 | 
					8d349798da | ||
| 
						 | 
					4aea628194 | ||
| 
						 | 
					008ddf628a | ||
| 
						 | 
					716496f263 | ||
| 
						 | 
					b3b325e560 | ||
| 
						 | 
					382ce985ac | ||
| 
						 | 
					54b7eca7a0 | ||
| 
						 | 
					f74e06bf11 | ||
| 
						 | 
					9c02649d18 | ||
| 
						 | 
					2c34704e41 | ||
| 
						 | 
					85d0041ff0 | ||
| 
						 | 
					67ff8b354e | ||
| 
						 | 
					08e7957571 | ||
| 
						 | 
					9c1f7089d8 | ||
| 
						 | 
					5381ac5f11 | ||
| 
						 | 
					a6f78d4eee | ||
| 
						 | 
					ae695e3566 | ||
| 
						 | 
					c82c3335e1 | ||
| 
						 | 
					f8246f504b | ||
| 
						 | 
					499458bcdb | ||
| 
						 | 
					37a53fd6a0 | ||
| 
						 | 
					5ec38fb2ea | ||
| 
						 | 
					11c0215bf8 | ||
| 
						 | 
					6a13b6c346 | ||
| 
						 | 
					a103097ee5 | ||
| 
						 | 
					7efad0d84c | ||
| 
						 | 
					42c88cd072 | ||
| 
						 | 
					2541c54e79 | ||
| 
						 | 
					33529e3d8e | ||
| 
						 | 
					84c1b82081 | ||
| 
						 | 
					a97a1439ae | ||
| 
						 | 
					2fd2910010 | ||
| 
						 | 
					fbbda155e0 | ||
| 
						 | 
					a49c3c0fae | ||
| 
						 | 
					baf5998d59 | ||
| 
						 | 
					4c5acef241 | ||
| 
						 | 
					9839e272cf | ||
| 
						 | 
					b57e79ff14 | ||
| 
						 | 
					43824acb4e | ||
| 
						 | 
					d8f509e749 | ||
| 
						 | 
					eb91c93c2e | ||
| 
						 | 
					79de983b6f | ||
| 
						 | 
					fdb3acf016 | ||
| 
						 | 
					2807d1f58a | ||
| 
						 | 
					93f913926e | ||
| 
						 | 
					33ca04f379 | ||
| 
						 | 
					398cb30c72 | ||
| 
						 | 
					f67bb30314 | ||
| 
						 | 
					4578d7b9f0 | ||
| 
						 | 
					dcdfc154c3 | ||
| 
						 | 
					696ba32779 | ||
| 
						 | 
					dcfe55539f | ||
| 
						 | 
					ff84b1f1b2 | ||
| 
						 | 
					3bca9c47f4 | ||
| 
						 | 
					d4d7fdb43b | ||
| 
						 | 
					d65dab5777 | ||
| 
						 | 
					638ca019ef | 
							
								
								
									
										8
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,8 +0,0 @@
 | 
			
		||||
*~
 | 
			
		||||
*.a
 | 
			
		||||
*.o
 | 
			
		||||
*.so
 | 
			
		||||
depend
 | 
			
		||||
depend.bak
 | 
			
		||||
lib
 | 
			
		||||
lib64
 | 
			
		||||
							
								
								
									
										55
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										55
									
								
								Makefile
									
									
									
									
									
								
							@@ -33,9 +33,8 @@ realclean:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
install:
 | 
			
		||||
	@for dir in $(SUBDIRS) ; do \
 | 
			
		||||
		(cd $$dir ; $(MAKE) install) || exit 1 ; \
 | 
			
		||||
	done
 | 
			
		||||
	@echo "Installing"
 | 
			
		||||
	$(TOP)/bin/installmesa $(DESTDIR)
 | 
			
		||||
 | 
			
		||||
# DirectFBGL module installation
 | 
			
		||||
linux-directfb-install:
 | 
			
		||||
@@ -56,14 +55,11 @@ $(TOP)/configs/current:
 | 
			
		||||
# Rules to set/install a specific build configuration
 | 
			
		||||
aix \
 | 
			
		||||
aix-64 \
 | 
			
		||||
aix-64-static \
 | 
			
		||||
aix-gcc \
 | 
			
		||||
aix-static \
 | 
			
		||||
beos \
 | 
			
		||||
darwin \
 | 
			
		||||
darwin-static \
 | 
			
		||||
darwin-static-x86ppc \
 | 
			
		||||
darwin-x86ppc \
 | 
			
		||||
freebsd \
 | 
			
		||||
freebsd-dri \
 | 
			
		||||
freebsd-dri-amd64 \
 | 
			
		||||
@@ -76,8 +72,6 @@ hpux11-32-static \
 | 
			
		||||
hpux11-32-static-nothreads \
 | 
			
		||||
hpux11-64 \
 | 
			
		||||
hpux11-64-static \
 | 
			
		||||
hpux11-ia64 \
 | 
			
		||||
hpux11-ia64-static \
 | 
			
		||||
hpux9 \
 | 
			
		||||
hpux9-gcc \
 | 
			
		||||
irix6-64 \
 | 
			
		||||
@@ -95,15 +89,11 @@ linux-dri \
 | 
			
		||||
linux-dri-x86 \
 | 
			
		||||
linux-dri-x86-64 \
 | 
			
		||||
linux-dri-ppc \
 | 
			
		||||
linux-dri-xcb \
 | 
			
		||||
linux-indirect \
 | 
			
		||||
linux-fbdev \
 | 
			
		||||
linux-glide \
 | 
			
		||||
linux-ia64-icc \
 | 
			
		||||
linux-ia64-icc-static \
 | 
			
		||||
linux-icc \
 | 
			
		||||
linux-icc-static \
 | 
			
		||||
linux-osmesa \
 | 
			
		||||
linux-osmesa16 \
 | 
			
		||||
linux-osmesa16-static \
 | 
			
		||||
linux-osmesa32 \
 | 
			
		||||
@@ -123,57 +113,49 @@ linux-x86-32 \
 | 
			
		||||
linux-x86-64 \
 | 
			
		||||
linux-x86-64-debug \
 | 
			
		||||
linux-x86-64-static \
 | 
			
		||||
linux-x86-xcb \
 | 
			
		||||
linux-x86-glide \
 | 
			
		||||
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 \
 | 
			
		||||
ultrix-gcc:
 | 
			
		||||
	@ if [ -e 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
 | 
			
		||||
 | 
			
		||||
DIRECTORY = Mesa-6.5.2
 | 
			
		||||
LIB_NAME = MesaLib-6.5.2
 | 
			
		||||
DEMO_NAME = MesaDemos-6.5.2
 | 
			
		||||
GLUT_NAME = MesaGLUT-6.5.2
 | 
			
		||||
DIRECTORY = Mesa-6.5
 | 
			
		||||
LIB_NAME = MesaLib-6.5
 | 
			
		||||
DEMO_NAME = MesaDemos-6.5
 | 
			
		||||
GLUT_NAME = MesaGLUT-6.5
 | 
			
		||||
 | 
			
		||||
MAIN_FILES = \
 | 
			
		||||
	$(DIRECTORY)/Makefile*						\
 | 
			
		||||
	$(DIRECTORY)/descrip.mms					\
 | 
			
		||||
	$(DIRECTORY)/mms-config.					\
 | 
			
		||||
	$(DIRECTORY)/bin/mklib						\
 | 
			
		||||
	$(DIRECTORY)/bin/minstall					\
 | 
			
		||||
	$(DIRECTORY)/bin/installmesa					\
 | 
			
		||||
	$(DIRECTORY)/configs/[a-z]*					\
 | 
			
		||||
	$(DIRECTORY)/docs/*.html					\
 | 
			
		||||
	$(DIRECTORY)/docs/COPYING					\
 | 
			
		||||
	$(DIRECTORY)/docs/README.*					\
 | 
			
		||||
	$(DIRECTORY)/docs/RELNOTES*					\
 | 
			
		||||
	$(DIRECTORY)/docs/VERSIONS					\
 | 
			
		||||
	$(DIRECTORY)/docs/*.spec					\
 | 
			
		||||
	$(DIRECTORY)/include/GL/internal/glcore.h			\
 | 
			
		||||
	$(DIRECTORY)/include/GL/amesa.h					\
 | 
			
		||||
	$(DIRECTORY)/include/GL/dmesa.h					\
 | 
			
		||||
	$(DIRECTORY)/include/GL/directfbgl.h				\
 | 
			
		||||
	$(DIRECTORY)/include/GL/fxmesa.h				\
 | 
			
		||||
	$(DIRECTORY)/include/GL/ggimesa.h				\
 | 
			
		||||
	$(DIRECTORY)/include/GL/gl.h					\
 | 
			
		||||
@@ -184,7 +166,6 @@ MAIN_FILES = \
 | 
			
		||||
	$(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				\
 | 
			
		||||
@@ -204,35 +185,25 @@ MAIN_FILES = \
 | 
			
		||||
	$(DIRECTORY)/src/mesa/depend					\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/main/*.[chS]				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/main/descrip.mms				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/main/sources				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/glapi/*.[chS]				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/glapi/descrip.mms				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/glapi/sources				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/array_cache/*.[ch]			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/array_cache/descrip.mms			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/array_cache/sources			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/math/*.[ch]				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/math/descrip.mms				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/math/sources				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/shader/*.[ch]				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/shader/descrip.mms			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/shader/sources				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/shader/grammar/*.[ch]			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/shader/grammar/descrip.mms		\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/shader/grammar/sources			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/shader/slang/*.[ch]			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/shader/slang/descrip.mms			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/shader/slang/sources			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/shader/slang/library/*.[ch]		\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/swrast/*.[ch]				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/swrast/descrip.mms			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/swrast/sources				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/swrast_setup/*.[ch]			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/swrast_setup/descrip.mms			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/swrast_setup/sources			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/tnl/*.[chS]				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/tnl/descrip.mms				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/tnl/sources				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/tnl_dd/*.[ch]				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch]				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm			\
 | 
			
		||||
@@ -240,7 +211,6 @@ MAIN_FILES = \
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/beos/Makefile			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/common/*.[ch]			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/common/descrip.mms		\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/common/sources			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/directfb/*.[ch]			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/directfb/Makefile			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/dos/*.[chS]			\
 | 
			
		||||
@@ -261,7 +231,6 @@ MAIN_FILES = \
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch]			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/windows/*/*.def			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/x11/descrip.mms			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/x11/sources			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/drivers/x11/*.[ch]			\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/ppc/*.[ch]				\
 | 
			
		||||
	$(DIRECTORY)/src/mesa/sparc/*.[chS]				\
 | 
			
		||||
@@ -390,15 +359,11 @@ GLUT_FILES = \
 | 
			
		||||
	$(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)/windows/VC6/progs/glut/glut.dsp	\
 | 
			
		||||
	$(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										11
									
								
								Makefile.DJ
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								Makefile.DJ
									
									
									
									
									
								
							@@ -20,9 +20,9 @@
 | 
			
		||||
# 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.
 | 
			
		||||
 | 
			
		||||
# DOS/DJGPP makefile for Mesa
 | 
			
		||||
# DOS/DJGPP makefile v1.6 for Mesa
 | 
			
		||||
#
 | 
			
		||||
#  Author: Daniel Borca
 | 
			
		||||
#  Copyright (C) 2002 - Daniel Borca
 | 
			
		||||
#  Email : dborca@users.sourceforge.net
 | 
			
		||||
#  Web   : http://www.geocities.com/dborca
 | 
			
		||||
 | 
			
		||||
@@ -31,6 +31,9 @@
 | 
			
		||||
#  Available options:
 | 
			
		||||
#
 | 
			
		||||
#    Environment variables:
 | 
			
		||||
#	GLU=[mesa|sgi]	specify GLU directory; can be `sgi' (requires GNU/C++)
 | 
			
		||||
#			or `mesa'.
 | 
			
		||||
#			default = mesa
 | 
			
		||||
#	GLIDE		path to Glide3 SDK; used with FX.
 | 
			
		||||
#			default = $(TOP)/glide3
 | 
			
		||||
#	FX=1		build for 3dfx Glide3. Note that this disables
 | 
			
		||||
@@ -54,6 +57,8 @@
 | 
			
		||||
 | 
			
		||||
.PHONY : all libgl libglu libglut clean realclean
 | 
			
		||||
 | 
			
		||||
GLU ?= mesa
 | 
			
		||||
 | 
			
		||||
CFLAGS = -Wall -W -pedantic
 | 
			
		||||
CFLAGS += -O2 -ffast-math
 | 
			
		||||
 | 
			
		||||
@@ -70,7 +75,7 @@ all: libgl libglu libglut
 | 
			
		||||
libgl: lib
 | 
			
		||||
	$(MAKE) -f Makefile.DJ -C src/mesa
 | 
			
		||||
libglu: lib
 | 
			
		||||
	$(MAKE) -f Makefile.DJ -C src/glu/sgi
 | 
			
		||||
	$(MAKE) -f Makefile.DJ -C src/glu/$(GLU)
 | 
			
		||||
libglut: lib
 | 
			
		||||
	$(MAKE) -f Makefile.DJ -C src/glut/dos
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -53,8 +53,6 @@ if [ `uname` = "FreeBSD" ] ; then
 | 
			
		||||
	CP_FLAGS="-f"
 | 
			
		||||
elif [ `uname` = "Darwin" ] ; then
 | 
			
		||||
	CP_FLAGS="-f"
 | 
			
		||||
elif [ `uname` = "AIX" ] ; then
 | 
			
		||||
	CP_FLAGS="-fh"
 | 
			
		||||
else
 | 
			
		||||
	CP_FLAGS="-fd"
 | 
			
		||||
fi
 | 
			
		||||
@@ -62,10 +60,10 @@ fi
 | 
			
		||||
 | 
			
		||||
set -v
 | 
			
		||||
 | 
			
		||||
mkdir -p ${INCLUDE_DIR}
 | 
			
		||||
mkdir -p ${INCLUDE_DIR}/GL
 | 
			
		||||
# NOT YET: mkdir -p ${INCLUDE_DIR}/GLES
 | 
			
		||||
mkdir -p ${LIB_DIR}
 | 
			
		||||
mkdir ${INCLUDE_DIR}
 | 
			
		||||
mkdir ${INCLUDE_DIR}/GL
 | 
			
		||||
mkdir ${INCLUDE_DIR}/GLES
 | 
			
		||||
mkdir ${LIB_DIR}
 | 
			
		||||
cp -f ${TOP}/include/GL/*.h ${INCLUDE_DIR}/GL
 | 
			
		||||
cp -f ${TOP}/src/glw/*.h ${INCLUDE_DIR}/GL
 | 
			
		||||
# NOT YET: cp -f ${TOP}/include/GLES/*.h ${INCLUDE_DIR}/GLES
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										89
									
								
								bin/minstall
									
									
									
									
									
								
							
							
						
						
									
										89
									
								
								bin/minstall
									
									
									
									
									
								
							@@ -1,89 +0,0 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# A minimal replacement for 'install' that supports installing symbolic links.
 | 
			
		||||
# Only a limited number of options are supported:
 | 
			
		||||
# -d dir          Create a directory
 | 
			
		||||
# -m mode         Sets a file's mode when installing
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# If these commands aren't portable, we'll need some "if (arch)" type stuff
 | 
			
		||||
SYMLINK="ln -s"
 | 
			
		||||
MKDIR="mkdir -p"
 | 
			
		||||
RM="rm -f"
 | 
			
		||||
 | 
			
		||||
MODE=""
 | 
			
		||||
 | 
			
		||||
if [ "$1" = "-d" ] ; then
 | 
			
		||||
	# make a directory path
 | 
			
		||||
	$MKDIR "$2"
 | 
			
		||||
	exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ "$1" = "-m" ] ; then
 | 
			
		||||
	# set file mode
 | 
			
		||||
	MODE=$2
 | 
			
		||||
	shift 2
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# install file(s) into destination
 | 
			
		||||
if [ $# -ge 2 ] ; then
 | 
			
		||||
 | 
			
		||||
	# Last cmd line arg is the dest dir
 | 
			
		||||
	for FILE in $@ ; do
 | 
			
		||||
		DEST="$FILE"
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
	# Loop over args, moving them to DEST directory
 | 
			
		||||
	I=1
 | 
			
		||||
	for FILE in $@ ; do
 | 
			
		||||
		if [ $I = $# ] ; then
 | 
			
		||||
			# stop, don't want to install $DEST into $DEST
 | 
			
		||||
			exit 0
 | 
			
		||||
		fi
 | 
			
		||||
 | 
			
		||||
		# determine file's type
 | 
			
		||||
		if [ -h "$FILE" ] ; then
 | 
			
		||||
			#echo $FILE is a symlink
 | 
			
		||||
			# Unfortunately, cp -d isn't universal so we have to
 | 
			
		||||
			# use a work-around.
 | 
			
		||||
 | 
			
		||||
			# Use ls -l to find the target that the link points to
 | 
			
		||||
			LL=`ls -l "$FILE"`
 | 
			
		||||
			for L in $LL ; do
 | 
			
		||||
				TARGET=$L
 | 
			
		||||
			done
 | 
			
		||||
			#echo $FILE is a symlink pointing to $TARGET
 | 
			
		||||
 | 
			
		||||
			FILE=`basename "$FILE"`
 | 
			
		||||
			# Go to $DEST and make the link
 | 
			
		||||
			PWDSAVE="$PWD"
 | 
			
		||||
			cd "$DEST"        # pushd
 | 
			
		||||
				$RM "$FILE"
 | 
			
		||||
				$SYMLINK "$TARGET" "$FILE"
 | 
			
		||||
			cd "$PWDSAVE"     # popd
 | 
			
		||||
 | 
			
		||||
		elif [ -f "$FILE" ] ; then
 | 
			
		||||
			#echo "$FILE" is a regular file
 | 
			
		||||
			$RM "$DEST/`basename $FILE`"
 | 
			
		||||
			cp "$FILE" "$DEST"
 | 
			
		||||
			if [ $MODE ] ; then
 | 
			
		||||
				FILE=`basename "$FILE"`
 | 
			
		||||
				chmod $MODE "$DEST/$FILE"
 | 
			
		||||
			fi
 | 
			
		||||
		else
 | 
			
		||||
			echo "Unknown type of argument: " "$FILE"
 | 
			
		||||
			exit 1
 | 
			
		||||
		fi
 | 
			
		||||
 | 
			
		||||
		I=`expr $I + 1`
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
	exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# If we get here, we didn't find anything to do
 | 
			
		||||
echo "Usage:"
 | 
			
		||||
echo "  install -d dir                      Create named directory"
 | 
			
		||||
echo "  install [-m mode] file [...] dest   Install files in destination"
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										197
									
								
								bin/mklib
									
									
									
									
									
								
							
							
						
						
									
										197
									
								
								bin/mklib
									
									
									
									
									
								
							@@ -5,7 +5,7 @@
 | 
			
		||||
# Improvements/fixes are welcome.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Copyright (C) 1999-2006  Brian Paul   All Rights Reserved.
 | 
			
		||||
# Copyright (C) 1999-2005  Brian Paul   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"),
 | 
			
		||||
@@ -36,7 +36,6 @@ DEPS=""
 | 
			
		||||
LINK=""
 | 
			
		||||
CPLUSPLUS=0
 | 
			
		||||
STATIC=0
 | 
			
		||||
DLOPEN=0
 | 
			
		||||
INSTALLDIR="."
 | 
			
		||||
ARCH="auto"
 | 
			
		||||
ARCHOPT=""
 | 
			
		||||
@@ -65,7 +64,6 @@ do
 | 
			
		||||
	    echo '                Not observed on all systems at this time.'
 | 
			
		||||
	    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'
 | 
			
		||||
@@ -106,9 +104,6 @@ do
 | 
			
		||||
	'-static')
 | 
			
		||||
	    STATIC=1
 | 
			
		||||
	    ;;
 | 
			
		||||
	'-dlopen')
 | 
			
		||||
	    DLOPEN=1
 | 
			
		||||
	    ;;
 | 
			
		||||
	'-install')
 | 
			
		||||
	    shift 1;
 | 
			
		||||
	    INSTALLDIR=$1
 | 
			
		||||
@@ -180,7 +175,7 @@ fi
 | 
			
		||||
#
 | 
			
		||||
case $ARCH in
 | 
			
		||||
 | 
			
		||||
    'Linux' | 'OpenBSD' | 'GNU' | GNU/*)
 | 
			
		||||
    'Linux' | 'OpenBSD')
 | 
			
		||||
	# we assume gcc
 | 
			
		||||
 | 
			
		||||
	if [ "x$LINK" = "x" ] ; then
 | 
			
		||||
@@ -214,22 +209,18 @@ case $ARCH in
 | 
			
		||||
        elif [ $STATIC = 1 ] ; then
 | 
			
		||||
	    LIBNAME="lib${LIBNAME}"     # prefix with "lib"
 | 
			
		||||
            echo "mklib: Making" $ARCH "static library: " ${LIBNAME}.a
 | 
			
		||||
            LINK="ar"
 | 
			
		||||
            OPTS="-ru"
 | 
			
		||||
            # make lib
 | 
			
		||||
            ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
 | 
			
		||||
            rm -f ${LIBNAME}.a
 | 
			
		||||
            ar -ru ${LIBNAME}.a ${OBJECTS}
 | 
			
		||||
	    ranlib ${LIBNAME}.a
 | 
			
		||||
            # finish up
 | 
			
		||||
            FINAL_LIBS=${LIBNAME}.a
 | 
			
		||||
        else
 | 
			
		||||
	    LIBNAME="lib${LIBNAME}"     # prefix with "lib"
 | 
			
		||||
	    case $ARCH in 'Linux' | 'GNU' | GNU/*)
 | 
			
		||||
	    if [ $ARCH = 'Linux' ] ; then
 | 
			
		||||
		OPTS="-Xlinker -Bsymbolic -shared -Wl,-soname,${LIBNAME}.so.${MAJOR}"
 | 
			
		||||
	    ;;
 | 
			
		||||
	    *)
 | 
			
		||||
	    else
 | 
			
		||||
		OPTS="-shared -Wl,-soname,${LIBNAME}.so.${MAJOR}"
 | 
			
		||||
	    ;;
 | 
			
		||||
	    esac
 | 
			
		||||
	    fi
 | 
			
		||||
	    if [ $EXPORTS ] ; then
 | 
			
		||||
		#OPTS="${OPTS} -Xlinker --retain-symbols-file ${EXPORTS}"
 | 
			
		||||
		# Make the 'exptmp' file for --version-script option
 | 
			
		||||
@@ -283,11 +274,11 @@ case $ARCH in
 | 
			
		||||
	    ar -ruv ${LIBNAME} ${OBJECTS}
 | 
			
		||||
	    FINAL_LIBS=${LIBNAME}
 | 
			
		||||
	else
 | 
			
		||||
	    if [ $NOPREFIX = 0 ] ; then
 | 
			
		||||
		LIBNAME="lib${LIBNAME}.so"
 | 
			
		||||
	    fi
 | 
			
		||||
	    LIBNAME="lib${LIBNAME}.so"
 | 
			
		||||
	    echo "mklib: Making SunOS shared library: " ${LIBNAME}
 | 
			
		||||
 | 
			
		||||
	    # XXX OPTS for gcc should be -shared, but that doesn't work.
 | 
			
		||||
	    # Using -G does work though.
 | 
			
		||||
	    OPTS="-G"
 | 
			
		||||
	    if [ "x$LINK" = "x" ] ; then
 | 
			
		||||
		# -linker was not specified, choose default linker now
 | 
			
		||||
		if [ $CPLUSPLUS = 1 ] ; then
 | 
			
		||||
@@ -307,42 +298,10 @@ case $ARCH in
 | 
			
		||||
		    LINK="ld"
 | 
			
		||||
		fi
 | 
			
		||||
	    fi
 | 
			
		||||
 | 
			
		||||
	    # linker options
 | 
			
		||||
	    if [ ${LINK} = "ld" -o ${LINK} = "cc" -o ${LINK} = "CC" ] ; then
 | 
			
		||||
		# SunOS tools, -G to make shared libs
 | 
			
		||||
		OPTS="-G"
 | 
			
		||||
	    else
 | 
			
		||||
		# gcc linker
 | 
			
		||||
		# 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}" ] ; then
 | 
			
		||||
		    OPTS="-m32 -shared -Wl,-Bdynamic"
 | 
			
		||||
		else
 | 
			
		||||
		    OPTS="-m64 -shared -Wl,-Bdynamic"
 | 
			
		||||
		fi
 | 
			
		||||
	    fi
 | 
			
		||||
 | 
			
		||||
	    # Check if objects are SPARC v9
 | 
			
		||||
	    # file says: ELF 64-bit MSB relocatable SPARCV9 Version 1
 | 
			
		||||
	    set ${OBJECTS}
 | 
			
		||||
	    SPARCV9=`file $1 | grep SPARCV9`
 | 
			
		||||
	    if [ "${SPARCV9}" ] ; then
 | 
			
		||||
		OPTS="${OPTS} -xarch=v9"
 | 
			
		||||
	    fi
 | 
			
		||||
 | 
			
		||||
	    # for debug:
 | 
			
		||||
	    #echo "mklib: linker is" ${LINK} ${OPTS}
 | 
			
		||||
	    if [ $NOPREFIX = 1 ] ; then
 | 
			
		||||
		rm -f ${LIBNAME}
 | 
			
		||||
		${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
 | 
			
		||||
	    else
 | 
			
		||||
		rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
 | 
			
		||||
		${LINK} ${OPTS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
 | 
			
		||||
		ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
 | 
			
		||||
	    fi
 | 
			
		||||
	    echo "mklib: linker is" ${LINK} ${OPTS}
 | 
			
		||||
	    rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
 | 
			
		||||
	    ${LINK} ${OPTS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
 | 
			
		||||
	    ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
 | 
			
		||||
	    FINAL_LIBS="${LIBNAME}.${MAJOR} ${LIBNAME}"
 | 
			
		||||
	fi
 | 
			
		||||
	;;
 | 
			
		||||
@@ -409,33 +368,26 @@ case $ARCH in
 | 
			
		||||
	    FINAL_LIBS=${LIBNAME}
 | 
			
		||||
	else
 | 
			
		||||
	    LIBNAME="lib${LIBNAME}.so"  # prefix with "lib", suffix with ".so"
 | 
			
		||||
 | 
			
		||||
	    # examine first object to determine ABI
 | 
			
		||||
    	    set ${OBJECTS}
 | 
			
		||||
	    ABI_O32=`file $1 | grep 'ELF 32-bit'`
 | 
			
		||||
	    ABI_N32=`file $1 | grep 'ELF N32'`
 | 
			
		||||
	    ABI_N64=`file $1 | grep 'ELF 64-bit'`
 | 
			
		||||
	    if [ "${ABI_O32}" ] ; then
 | 
			
		||||
		OPTS="-32 -shared -all"
 | 
			
		||||
		ABI="o32-bit"
 | 
			
		||||
	    elif [ "${ABI_N32}" ] ; then
 | 
			
		||||
		OPTS="-n32 -shared -all"
 | 
			
		||||
		ABI="n32-bit"
 | 
			
		||||
	    elif [ "${ABI_N64}" ] ; then
 | 
			
		||||
	    # XXX we should run 'file' on the first object file to determine
 | 
			
		||||
	    # if it's o32, n32 or 64 format, as we do for Linux above.
 | 
			
		||||
	    if [ $ARCHOPT = "64" ] ; then
 | 
			
		||||
		# 64-bit ABI
 | 
			
		||||
		OPTS="-64 -shared -all"
 | 
			
		||||
		ABI="64-bit"
 | 
			
		||||
		echo "mklib: Making IRIX 64-bit shared library: " ${LIBNAME}
 | 
			
		||||
	    elif [ $ARCHOPT = "o32" ] ; then
 | 
			
		||||
		# old 32-bit ABI
 | 
			
		||||
		OPTS="-32 -shared -all"
 | 
			
		||||
		echo "mklib: Making IRIX o32-bit shared library: " ${LIBNAME}
 | 
			
		||||
	    else
 | 
			
		||||
		echo "Error: Unexpected IRIX ABI!"
 | 
			
		||||
		exit 1
 | 
			
		||||
		# new 32-bit ABI
 | 
			
		||||
		OPTS="-n32 -shared -all"
 | 
			
		||||
		echo "mklib: Making IRIX n32-bit shared library: " ${LIBNAME}
 | 
			
		||||
	    fi
 | 
			
		||||
 | 
			
		||||
	    if [ $CPLUSPLUS = 1 ] ; then
 | 
			
		||||
		LINK="CC"
 | 
			
		||||
	    else
 | 
			
		||||
		LINK="ld"
 | 
			
		||||
	    fi
 | 
			
		||||
 | 
			
		||||
	    echo "mklib: Making IRIX " ${ABI} " shared library: " ${LIBNAME}
 | 
			
		||||
	    ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
 | 
			
		||||
	    FINAL_LIBS=${LIBNAME}
 | 
			
		||||
	fi
 | 
			
		||||
@@ -457,10 +409,6 @@ case $ARCH in
 | 
			
		||||
	    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
 | 
			
		||||
	       MAJOR=2
 | 
			
		||||
	    fi
 | 
			
		||||
	    RUNLIB="lib${LIBNAME}.${MAJOR}"
 | 
			
		||||
	    DEVLIB="lib${LIBNAME}.sl"
 | 
			
		||||
	    echo "mklib: Making HP-UX shared library: " ${RUNLIB} ${DEVLIB}
 | 
			
		||||
@@ -470,27 +418,26 @@ case $ARCH in
 | 
			
		||||
	fi
 | 
			
		||||
	;;
 | 
			
		||||
 | 
			
		||||
    'AIX' )
 | 
			
		||||
	# examine first object to determine ABI
 | 
			
		||||
    	set ${OBJECTS}
 | 
			
		||||
	ABI_64=`file $1 | grep '64-bit'`
 | 
			
		||||
	if [ "${ABI_64}" ] ; then
 | 
			
		||||
    'AIX' | 'AIX64')
 | 
			
		||||
	if [ $ARCH = "AIX64" ] ; then
 | 
			
		||||
	    X64="-X64"
 | 
			
		||||
	    Q64="-q64"
 | 
			
		||||
	    OFILE=shr_64.o
 | 
			
		||||
	else
 | 
			
		||||
	    OFILE=shr.o  #Want to be consistent with the IBM libGL.a
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	if [ $STATIC = 1 ] ; then
 | 
			
		||||
	    LIBNAME="lib${LIBNAME}.a"
 | 
			
		||||
	    echo "mklib: Making AIX static library: " ${LIBNAME}
 | 
			
		||||
	    ar -ruv ${X64} ${LIBNAME} ${OBJECTS}
 | 
			
		||||
	    FINAL_LIBS=${LIBNAME}
 | 
			
		||||
	else
 | 
			
		||||
        if [ $STATIC = 1 ] ; then
 | 
			
		||||
            LIBNAME="lib${LIBNAME}.a"
 | 
			
		||||
            echo "mklib: Making AIX static library: " ${LIBNAME}
 | 
			
		||||
	    rm -f ${LIBNAME}
 | 
			
		||||
            ar -ruv ${X64} ${LIBNAME} ${OBJECTS}
 | 
			
		||||
            FINAL_LIBS=${LIBNAME}
 | 
			
		||||
        else
 | 
			
		||||
	    EXPFILE="lib${LIBNAME}.exp"
 | 
			
		||||
	    OFILE=shr.o  #Want to be consistent with the IBM libGL.a
 | 
			
		||||
	    LIBNAME="lib${LIBNAME}.a"  # shared objects are still stored in the .a libraries
 | 
			
		||||
	    OPTS="-bE:${EXPFILE} -bM:SRE -bnoentry ${Q64}"
 | 
			
		||||
	    if [ $ARCH = "AIX64" ] ; then
 | 
			
		||||
		OPTS="-bE:${EXPFILE} -bM:SRE -bnoentry -q64"
 | 
			
		||||
	    else
 | 
			
		||||
		OPTS="-bE:${EXPFILE} -bM:SRE -bnoentry"
 | 
			
		||||
	    fi
 | 
			
		||||
	    rm -f ${EXPFILE} ${OFILE}
 | 
			
		||||
	    NM="/bin/nm -eC ${X64}"
 | 
			
		||||
	    echo "#! /usr/lib/${LIBNAME}" > ${EXPFILE}
 | 
			
		||||
@@ -508,16 +455,8 @@ case $ARCH in
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	    }' | sort -u >> ${EXPFILE}
 | 
			
		||||
 | 
			
		||||
            # On AIX a shared library is linked differently when
 | 
			
		||||
            # you want to dlopen the file
 | 
			
		||||
	    if [ $DLOPEN = "1" ] ; then
 | 
			
		||||
		cc -G ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
 | 
			
		||||
	    else
 | 
			
		||||
		cc ${OPTS} -o ${OFILE} ${OBJECTS} ${DEPS}
 | 
			
		||||
		ar ${X64} -r ${LIBNAME} ${OFILE}
 | 
			
		||||
	    fi
 | 
			
		||||
 | 
			
		||||
	    cc ${OPTS} -o ${OFILE} ${OBJECTS} ${DEPS}
 | 
			
		||||
	    ar ${X64} -r ${LIBNAME} ${OFILE}
 | 
			
		||||
            FINAL_LIBS="${LIBNAME}"
 | 
			
		||||
        fi
 | 
			
		||||
        ;;
 | 
			
		||||
@@ -559,46 +498,20 @@ case $ARCH in
 | 
			
		||||
            LIBNAME="lib${LIBNAME}.a"
 | 
			
		||||
            echo "mklib: Making Darwin static library: " ${LIBNAME}
 | 
			
		||||
            LINK="ar"
 | 
			
		||||
            OPTS="-ruvs"
 | 
			
		||||
            OPTS="-ruv"
 | 
			
		||||
            ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
 | 
			
		||||
            FINAL_LIBS=${LIBNAME}
 | 
			
		||||
        else
 | 
			
		||||
            # On Darwin a .bundle is used for a library that you want to dlopen
 | 
			
		||||
            if [ $DLOPEN = "1" ] ; then
 | 
			
		||||
                LIBSUFFIX="bundle"
 | 
			
		||||
                OPTS="${ARCHOPT} -bundle -multiply_defined suppress"
 | 
			
		||||
            else
 | 
			
		||||
		LIBSUFFIX="dylib"
 | 
			
		||||
                OPTS="${ARCHOPT} -dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0 -install_name lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
 | 
			
		||||
            fi
 | 
			
		||||
            LINKNAME="lib${LIBNAME}.${LIBSUFFIX}"
 | 
			
		||||
            LIBNAME="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
 | 
			
		||||
 | 
			
		||||
	    # examine first object to determine ABI
 | 
			
		||||
    	    set ${OBJECTS}
 | 
			
		||||
	    ABI_PPC=`file $1 | grep 'object ppc'`
 | 
			
		||||
	    ABI_I386=`file $1 | grep 'object i386'`
 | 
			
		||||
	    if [ "${ABI_PPC}" ] ; then
 | 
			
		||||
		OPTS="${OPTS} -arch ppc"
 | 
			
		||||
	    fi
 | 
			
		||||
	    if [ "${ABI_I386}" ] ; then
 | 
			
		||||
		OPTS="${OPTS} -arch i386"
 | 
			
		||||
	    fi
 | 
			
		||||
 | 
			
		||||
	    # XXX can we always add -isysroot /Developer/SDKs/MacOSX10.4u.sdk
 | 
			
		||||
	    # to OPTS here?
 | 
			
		||||
 | 
			
		||||
	    # determine linker
 | 
			
		||||
            LIBNAME="lib${LIBNAME}.dylib"
 | 
			
		||||
            echo "mklib: Making Darwin shared library: " ${LIBNAME}
 | 
			
		||||
            FLAGS="-dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0"
 | 
			
		||||
	    if [ $CPLUSPLUS = 1 ] ; then
 | 
			
		||||
		LINK="g++"
 | 
			
		||||
	    else
 | 
			
		||||
		LINK="cc"
 | 
			
		||||
	    fi
 | 
			
		||||
 | 
			
		||||
            echo "mklib: Making Darwin shared library: " ${LIBNAME}
 | 
			
		||||
            ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
 | 
			
		||||
            ln -s ${LIBNAME} ${LINKNAME}
 | 
			
		||||
            FINAL_LIBS="${LIBNAME} ${LINKNAME}"
 | 
			
		||||
            ${LINK} ${FLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
 | 
			
		||||
            FINAL_LIBS=${LIBNAME}
 | 
			
		||||
        fi
 | 
			
		||||
        ;;
 | 
			
		||||
 | 
			
		||||
@@ -640,7 +553,7 @@ case $ARCH in
 | 
			
		||||
	FINAL_LIBS="${LIBNAME}"
 | 
			
		||||
	;;
 | 
			
		||||
 | 
			
		||||
    'icc' | 'icc-istatic')
 | 
			
		||||
    'icc')
 | 
			
		||||
	# Intel C compiler
 | 
			
		||||
	# This should get merged into the Linux code, above, since this isn't
 | 
			
		||||
	# really a different architecture.
 | 
			
		||||
@@ -655,16 +568,12 @@ case $ARCH in
 | 
			
		||||
            # finish up
 | 
			
		||||
            FINAL_LIBS="${LIBNAME}.a"
 | 
			
		||||
        else
 | 
			
		||||
            if [ $ARCH = icc-istatic ] ; then
 | 
			
		||||
                 OPTS="-shared -i-static -cxxlib-icc"
 | 
			
		||||
            else
 | 
			
		||||
                 OPTS="-shared"
 | 
			
		||||
            fi
 | 
			
		||||
            OPTS="-shared"
 | 
			
		||||
            VERSION="${MAJOR}.${MINOR}.${PATCH}"
 | 
			
		||||
            echo "mklib: Making Intel ICC shared library: " ${LIBNAME}.so.${VERSION}
 | 
			
		||||
 | 
			
		||||
            if [ $CPLUSPLUS = 1 ] ; then
 | 
			
		||||
                LINK="icpc"
 | 
			
		||||
                LINK="icc"
 | 
			
		||||
            else
 | 
			
		||||
                LINK="icc"
 | 
			
		||||
            fi
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								configs/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								configs/.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1 +0,0 @@
 | 
			
		||||
current
 | 
			
		||||
							
								
								
									
										12
									
								
								configs/aix
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								configs/aix
									
									
									
									
									
								
							@@ -8,10 +8,8 @@ CONFIG_NAME = aix
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = xlC
 | 
			
		||||
 | 
			
		||||
CFLAGS = -O -DAIXV3 -DPTHREADS
 | 
			
		||||
CXXFLAGS = -O -DAIXV3 -DPTHREADS
 | 
			
		||||
 | 
			
		||||
# Misc tools and flags
 | 
			
		||||
CFLAGS = -O -DAIXV3
 | 
			
		||||
CXXFLAGS = -O -DAIXV3
 | 
			
		||||
MKLIB_OPTIONS =
 | 
			
		||||
 | 
			
		||||
# Library names (actual file names)
 | 
			
		||||
@@ -21,10 +19,10 @@ GLUT_LIB_NAME = libglut.a
 | 
			
		||||
GLW_LIB_NAME = libGLw.a
 | 
			
		||||
OSMESA_LIB_NAME = libOSMesa.a
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -lX11 -lXext -lpthread -lm
 | 
			
		||||
GL_LIB_DEPS = -lX11 -lXext -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
 | 
			
		||||
GLW_LIB_DEPS = -L$(TOP)/lib -l$(GL_LIB) -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
 | 
			
		||||
APP_LIB_DEPS = -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm -lC
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -8,9 +8,9 @@ CONFIG_NAME = aix-64
 | 
			
		||||
CC = xlc
 | 
			
		||||
CXX = xlC
 | 
			
		||||
 | 
			
		||||
CFLAGS = -q64 -qmaxmem=16384 -O -DAIXV3 -DPTHREADS
 | 
			
		||||
CXXFLAGS = -q64 -qmaxmem=16384 -O -DAIXV3 -DPTHREADS
 | 
			
		||||
LIB_DIR = lib64
 | 
			
		||||
CFLAGS = -q64 -qmaxmem=16384 -O -DAIXV3
 | 
			
		||||
CXXFLAGS = -q64 -qmaxmem=16384 -O -DAIXV3
 | 
			
		||||
MKLIB_OPTIONS = -arch AIX64
 | 
			
		||||
 | 
			
		||||
# Library names (actual file names)
 | 
			
		||||
GL_LIB_NAME = libGL.a
 | 
			
		||||
@@ -19,9 +19,10 @@ 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
 | 
			
		||||
GL_LIB_DEPS = -lX11 -lXext -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) -lXt -lX11
 | 
			
		||||
OSMESA_LIB_DEPS = -L$(TOP)/lib -l$(GL_LIB)
 | 
			
		||||
APP_LIB_DEPS = -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm -lC
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,25 +0,0 @@
 | 
			
		||||
# 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
 | 
			
		||||
 | 
			
		||||
@@ -13,7 +13,7 @@ CXXFLAGS = -O2 -DAIXV3
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR -l$(GLU_LIB) -l$(GL_LIB) -lXi -lXmu
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -Wl,-brtl -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lX11 -lXext -lXmu -lXi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -8,8 +8,8 @@ CONFIG_NAME = aix-static
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = xlC
 | 
			
		||||
 | 
			
		||||
CFLAGS = -O -DAIXV3 -DPTHREADS
 | 
			
		||||
CXXFLAGS = -O -DAIXV3 -DPTHREADS
 | 
			
		||||
CFLAGS = -O -DAIXV3
 | 
			
		||||
CXXFLAGS = -O -DAIXV3
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
 | 
			
		||||
# Library names (actual file names)
 | 
			
		||||
@@ -19,7 +19,5 @@ 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
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -93,8 +93,8 @@ PROGRAM_DIRS = beos samples redbook demos tests
 | 
			
		||||
 | 
			
		||||
# Library/program dependencies
 | 
			
		||||
GL_LIB_DEPS = 
 | 
			
		||||
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
 | 
			
		||||
OSMESA_LIB_DEPS = -L$(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)
 | 
			
		||||
GLUT_LIB_DEPS = -lgame -L$(LIB_DIR) -l$(GL_LIB)
 | 
			
		||||
APP_LIB_DEPS = -lbe -L$(LIB_DIR) -l$(GL_LIB) -l$(GLUT_LIB)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,11 +5,13 @@ include $(TOP)/configs/default
 | 
			
		||||
CONFIG_NAME = darwin
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = cc
 | 
			
		||||
CC = c++
 | 
			
		||||
CXX = c++
 | 
			
		||||
CFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
 | 
			
		||||
CXXFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
 | 
			
		||||
 | 
			
		||||
MKLIB_OPTIONS = -cplusplus
 | 
			
		||||
 | 
			
		||||
# Library names (actual file names)
 | 
			
		||||
GL_LIB_NAME = libGL.dylib
 | 
			
		||||
GLU_LIB_NAME = libGLU.dylib
 | 
			
		||||
@@ -18,9 +20,9 @@ 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
 | 
			
		||||
OSMESA_LIB_DEPS = -L$(LIB_DIR) -lGL
 | 
			
		||||
GLU_LIB_DEPS = -L$(LIB_DIR) -lGL
 | 
			
		||||
GLUT_LIB_DEPS = -L$(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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -16,9 +16,9 @@ GLUT_LIB_NAME = libglut.a
 | 
			
		||||
GLW_LIB_NAME = libGLw.a
 | 
			
		||||
OSMESA_LIB_NAME = libOSMesa.a
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS =
 | 
			
		||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
 | 
			
		||||
OSMESA_LIB_DEPS = 
 | 
			
		||||
GLU_LIB_DEPS = 
 | 
			
		||||
GLUT_LIB_DEPS = 
 | 
			
		||||
GLW_LIB_DEPS = 
 | 
			
		||||
APP_LIB_DEPS = -Wl,-search_paths_first -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lstdc++ -lgcc_s.1 -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -1,26 +0,0 @@
 | 
			
		||||
# Configuration for Darwin / MacOS X, making static libs
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/darwin
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = darwin-static
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
 | 
			
		||||
         -I/usr/X11R6/include -O3 -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 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
 | 
			
		||||
MKLIB_OPTIONS = -static -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
 | 
			
		||||
 | 
			
		||||
# 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 =
 | 
			
		||||
OSMESA_LIB_DEPS = 
 | 
			
		||||
GLU_LIB_DEPS = 
 | 
			
		||||
GLUT_LIB_DEPS = 
 | 
			
		||||
GLW_LIB_DEPS = 
 | 
			
		||||
APP_LIB_DEPS = -Wl,-search_paths_first -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lstdc++ -lgcc_s.1 -lm
 | 
			
		||||
@@ -1,33 +0,0 @@
 | 
			
		||||
# 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 = mesa glu glut/glx
 | 
			
		||||
 | 
			
		||||
@@ -2,18 +2,13 @@
 | 
			
		||||
 | 
			
		||||
# This is included by other config files which may override some
 | 
			
		||||
# of these variables.
 | 
			
		||||
# Think of this as a base class from which configs are derived.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = default
 | 
			
		||||
 | 
			
		||||
# Version info
 | 
			
		||||
MESA_MAJOR=6
 | 
			
		||||
MESA_MINOR=5
 | 
			
		||||
MESA_TINY=2
 | 
			
		||||
 | 
			
		||||
# external projects.  This should be useless now that we use libdrm.
 | 
			
		||||
DRM_SOURCE_PATH=$(TOP)/../drm
 | 
			
		||||
MESA_TINY=0
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = cc
 | 
			
		||||
@@ -27,7 +22,6 @@ MKLIB_OPTIONS =
 | 
			
		||||
MKDEP = makedepend
 | 
			
		||||
MKDEP_OPTIONS = -fdepend
 | 
			
		||||
MAKE = make
 | 
			
		||||
INSTALL = $(TOP)/bin/minstall
 | 
			
		||||
 | 
			
		||||
# Python and flags (generally only needed by the developers)
 | 
			
		||||
PYTHON2 = python
 | 
			
		||||
@@ -57,8 +51,9 @@ ASM_SOURCES =
 | 
			
		||||
GLW_SOURCES = GLwDrawA.c
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Directories to build
 | 
			
		||||
LIB_DIR = lib
 | 
			
		||||
# Directories
 | 
			
		||||
LIB_DIR = $(TOP)/lib
 | 
			
		||||
INSTALL_PREFIX = /usr/local
 | 
			
		||||
SRC_DIRS = mesa glu glut/glx glw
 | 
			
		||||
GLU_DIRS = sgi
 | 
			
		||||
DRIVER_DIRS = x11 osmesa
 | 
			
		||||
@@ -67,20 +62,10 @@ PROGRAM_DIRS = demos redbook samples xdemos
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Library/program dependencies
 | 
			
		||||
#EXTRA_LIB_PATH ?=
 | 
			
		||||
EXTRA_LIB_PATH ?=
 | 
			
		||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
 | 
			
		||||
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
 | 
			
		||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Installation directories (for make install)
 | 
			
		||||
INSTALL_DIR = /usr/local
 | 
			
		||||
DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri
 | 
			
		||||
 | 
			
		||||
# Where libGL will look for DRI hardware drivers
 | 
			
		||||
DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
 | 
			
		||||
 | 
			
		||||
OSMESA_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB)
 | 
			
		||||
GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -5,23 +5,13 @@ include $(TOP)/configs/default
 | 
			
		||||
CONFIG_NAME = FreeBSD
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = c++
 | 
			
		||||
CC = gcc
 | 
			
		||||
CXX = g++
 | 
			
		||||
MAKE = gmake
 | 
			
		||||
 | 
			
		||||
OPT_FLAGS  = -O2
 | 
			
		||||
PIC_FLAGS  = -fPIC
 | 
			
		||||
 | 
			
		||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM \
 | 
			
		||||
	-DHZ=100 -DHAVE_POSIX_MEMALIGN
 | 
			
		||||
 | 
			
		||||
X11_INCLUDES = -I/usr/X11R6/include
 | 
			
		||||
 | 
			
		||||
CFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) -ffast-math -pedantic
 | 
			
		||||
 | 
			
		||||
CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES)
 | 
			
		||||
 | 
			
		||||
CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DUSE_XSHM -DHZ=100 \
 | 
			
		||||
	$(ASM_FLAGS)
 | 
			
		||||
CXXFLAGS = -O2 -fPIC -pedantic
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
 | 
			
		||||
EXTRA_LIB_PATH = -L/usr/X11R6/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
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -14,25 +14,20 @@ OPT_FLAGS = -O
 | 
			
		||||
EXPAT_INCLUDES = -I/usr/local/include
 | 
			
		||||
X11_INCLUDES = -I/usr/X11R6/include
 | 
			
		||||
DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
 | 
			
		||||
	-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
 | 
			
		||||
	-DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
 | 
			
		||||
 | 
			
		||||
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) 
 | 
			
		||||
	-DGLX_DIRECT_RENDERING -DHAVE_ALIAS
 | 
			
		||||
CFLAGS = $(DEFINES) -Wmissing-prototypes -g -std=c99  -Wundef -fPIC \
 | 
			
		||||
	-ffast-math $(ASM_FLAGS) $(X11_INCLUDES)
 | 
			
		||||
CXXFLAGS = $(DEFINES) -Wall -g -ansi -pedantic -fPIC
 | 
			
		||||
 | 
			
		||||
ASM_SOURCES = 
 | 
			
		||||
 | 
			
		||||
# Library/program dependencies
 | 
			
		||||
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
 | 
			
		||||
LIBDRM_LIB = `pkg-config --libs libdrm`
 | 
			
		||||
LIBDRM_LIB = `pkg-config --libs libdrm` -ldrm
 | 
			
		||||
DRI_LIB_DEPS = -L/usr/local/lib -lm -lpthread -lexpat $(LIBDRM_LIB)
 | 
			
		||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
 | 
			
		||||
	-lm -lpthread $(LIBDRM_LIB)
 | 
			
		||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lm -lpthread $(LIBDRM_LIB)
 | 
			
		||||
 | 
			
		||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lGL -lXt -lX11
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGL -lXt -lXm -lX11
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Directories
 | 
			
		||||
@@ -45,6 +40,6 @@ 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 \
 | 
			
		||||
DRI_DIRS = i810 i830 i915 mach64 mga r128 r200 r300 radeon tdfx \
 | 
			
		||||
	   unichrome savage sis
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@ CONFIG_NAME = hpux10
 | 
			
		||||
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
 | 
			
		||||
CFLAGS = +O3 +DAportable +z -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = +O3 +DAportable +Z -Aa -D_HPUX_SOURCE
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
APP_LIB_DEPS = -$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -12,5 +12,5 @@ CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/incl
 | 
			
		||||
CXXFLAGS = -ansi -O3 -D_HPUX_SOURCE
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -8,8 +8,8 @@ CONFIG_NAME = hpux10-static
 | 
			
		||||
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
 | 
			
		||||
CFLAGS = +O3 +DAportable +z -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = +O3 +DAportable +Z -Aa -D_HPUX_SOURCE
 | 
			
		||||
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
 | 
			
		||||
@@ -26,5 +26,5 @@ 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++
 | 
			
		||||
APP_LIB_DEPS = -L$(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$(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++
 | 
			
		||||
 
 | 
			
		||||
@@ -8,9 +8,9 @@ CONFIG_NAME = hpux11-32
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = aCC
 | 
			
		||||
 | 
			
		||||
CFLAGS = +z -Ae -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
 | 
			
		||||
CFLAGS = +z -Ae +O2 +Onolimit +Oaggressive -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
 | 
			
		||||
CXXFLAGS = +z -Aa +O2 +Onolimit +Oaggressive -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include
 | 
			
		||||
 | 
			
		||||
MKLIB_OPTIONS =
 | 
			
		||||
 | 
			
		||||
@@ -23,8 +23,4 @@ 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)
 | 
			
		||||
APP_LIB_DEPS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -8,9 +8,9 @@ CONFIG_NAME = hpux11-32-static
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = aCC
 | 
			
		||||
 | 
			
		||||
CFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
 | 
			
		||||
CFLAGS = +O3 +DA2.0 -Aa -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
 | 
			
		||||
CXXFLAGS = +O3 +DA2.0 -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include
 | 
			
		||||
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
 | 
			
		||||
@@ -23,5 +23,4 @@ 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
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -8,9 +8,9 @@ CONFIG_NAME = hpux11-32-static
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = aCC
 | 
			
		||||
 | 
			
		||||
CFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
 | 
			
		||||
CFLAGS = +O3 +DA2.0 -Aa -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
 | 
			
		||||
CXXFLAGS = +O3 +DA2.0 -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include
 | 
			
		||||
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -8,13 +8,13 @@ CONFIG_NAME = hpux11-64
 | 
			
		||||
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
 | 
			
		||||
CFLAGS = +z -Ae +DD64 +O2 +Onolimit +Oaggressive -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
 | 
			
		||||
CXXFLAGS = +z -Aa +DD64 +O2 +Onolimit +Oaggressive -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include
 | 
			
		||||
 | 
			
		||||
MKLIB_OPTIONS =
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib64
 | 
			
		||||
LIBDIR = $(TOP)/lib64
 | 
			
		||||
 | 
			
		||||
# Library names (actual file names)
 | 
			
		||||
GL_LIB_NAME = libGL.a
 | 
			
		||||
@@ -24,8 +24,4 @@ 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)
 | 
			
		||||
APP_LIB_DEPS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -8,13 +8,13 @@ CONFIG_NAME = hpux11-64-static
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = aCC
 | 
			
		||||
 | 
			
		||||
CFLAGS = -O +DA2.0W -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
 | 
			
		||||
CFLAGS = +O3 +DA2.0W -Aa -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
 | 
			
		||||
CXXFLAGS = +O3 +DA2.0W -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include
 | 
			
		||||
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib64
 | 
			
		||||
LIBDIR = $(TOP)/lib64
 | 
			
		||||
 | 
			
		||||
# Library names (actual file names)
 | 
			
		||||
GL_LIB_NAME = libGL.a
 | 
			
		||||
@@ -24,4 +24,4 @@ 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
 | 
			
		||||
APP_LIB_DEPS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -1,30 +0,0 @@
 | 
			
		||||
# 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)
 | 
			
		||||
@@ -1,27 +0,0 @@
 | 
			
		||||
# 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
 | 
			
		||||
@@ -9,8 +9,8 @@ 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
 | 
			
		||||
CFLAGS = +z +O3 +Olibcalls +ESlit -Aa +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5 -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = +z +O3 +Olibcalls +ESlit -Aa +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
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/lib/X11R5 -s -Wl,+s,-B,nonfatal,-B,immediate -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@ CONFIG_NAME = hpux9-gcc
 | 
			
		||||
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
 | 
			
		||||
CFLAGS = +O3 +DAportable +z -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = +O3 +DAportable +Z -Aa -D_HPUX_SOURCE
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -7,11 +7,12 @@ 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
 | 
			
		||||
CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -64 -O3 -ansi -woff 1174
 | 
			
		||||
MKLIB_OPTIONS = -archopt 64
 | 
			
		||||
 | 
			
		||||
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib64
 | 
			
		||||
LIB_DIR = $(TOP)/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
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -64 -rpath $(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -7,15 +7,15 @@ 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
 | 
			
		||||
CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -64 -O3 -ansi -woff 1174
 | 
			
		||||
MKLIB_OPTIONS = -archopt 64 -static
 | 
			
		||||
 | 
			
		||||
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib64
 | 
			
		||||
LIB_DIR = $(TOP)/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
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -64 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
 | 
			
		||||
GL_LIB_NAME = libGL.a
 | 
			
		||||
GLU_LIB_NAME = libGLU.a
 | 
			
		||||
@@ -23,4 +23,3 @@ GLUT_LIB_NAME = libglut.a
 | 
			
		||||
GLW_LIB_NAME = libGLw.a
 | 
			
		||||
OSMESA_LIB_NAME = libOSMesa.a
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -7,11 +7,12 @@ 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
 | 
			
		||||
CFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1521,1552 -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1552
 | 
			
		||||
MKLIB_OPTIONS = -archopt n32
 | 
			
		||||
 | 
			
		||||
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib32
 | 
			
		||||
LIB_DIR = $(TOP)/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
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -n32 -rpath $(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lfpe -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -7,15 +7,15 @@ 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
 | 
			
		||||
CFLAGS = -n32 -mips2 -O2 -ansi -woff 1521,1552 -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -n32 -mips2 -O2 -ansi -woff 3262,3666
 | 
			
		||||
MKLIB_OPTIONS = -archopt n32 -static
 | 
			
		||||
 | 
			
		||||
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib32
 | 
			
		||||
LIB_DIR = $(TOP)/lib32
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -n32 -glut -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lpthread -lm -lC
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -n32 -glut -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
 | 
			
		||||
GL_LIB_NAME = libGL.a
 | 
			
		||||
GLU_LIB_NAME = libGLU.a
 | 
			
		||||
 
 | 
			
		||||
@@ -9,10 +9,11 @@ CC = cc
 | 
			
		||||
CXX = CC
 | 
			
		||||
CFLAGS = -32 -mips2 -O2 -ansi -woff 1521,1552 -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -32 -mips2 -O2 -ansi -woff 3262,3666
 | 
			
		||||
MKLIB_OPTIONS = -archopt o32
 | 
			
		||||
 | 
			
		||||
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib32
 | 
			
		||||
LIB_DIR = $(TOP)/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
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -32 -rpath $(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,13 +9,13 @@ 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
 | 
			
		||||
MKLIB_OPTIONS = -archopt o32 -static
 | 
			
		||||
 | 
			
		||||
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib32
 | 
			
		||||
LIB_DIR = $(TOP)/lib32
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -32 -glut -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm -lC
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -32 -glut -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
 | 
			
		||||
GL_LIB_NAME = libGL.a
 | 
			
		||||
GLU_LIB_NAME = libGLU.a
 | 
			
		||||
 
 | 
			
		||||
@@ -17,8 +17,7 @@ PIC_FLAGS  = -fPIC
 | 
			
		||||
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
 | 
			
		||||
	-D_BSD_SOURCE -DPTHREADS -DUSE_XSHM
 | 
			
		||||
 | 
			
		||||
X11_INCLUDES = -I/usr/X11R6/include
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -22,6 +22,6 @@ 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
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -L/usr/X11R6/lib -lX11 -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -4,5 +4,5 @@ include $(TOP)/configs/linux
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = linux-debug
 | 
			
		||||
 | 
			
		||||
OPT_FLAGS = -g -ansi -pedantic
 | 
			
		||||
OPT_FLAGS = -g
 | 
			
		||||
DEFINES += -DDEBUG -DDEBUG_MATH
 | 
			
		||||
 
 | 
			
		||||
@@ -22,13 +22,9 @@ ifeq ($(HAVE_X86), yes)
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
# Directories
 | 
			
		||||
SRC_DIRS     = mesa glu glut/directfb
 | 
			
		||||
GLU_DIRS     = sgi
 | 
			
		||||
SRC_DIRS     = mesa glu
 | 
			
		||||
DRIVER_DIRS  = directfb
 | 
			
		||||
PROGRAM_DIRS = demos directfb
 | 
			
		||||
PROGRAM_DIRS = # disabled
 | 
			
		||||
 | 
			
		||||
# 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)
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS  = -lm -lpthread
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ CXX = g++
 | 
			
		||||
#MKDEP = gcc -M
 | 
			
		||||
#MKDEP_OPTIONS = -MF depend
 | 
			
		||||
 | 
			
		||||
OPT_FLAGS  = -O -g
 | 
			
		||||
OPT_FLAGS  = -g -march=pentium4 -fprefetch-loop-arrays
 | 
			
		||||
PIC_FLAGS  = -fPIC
 | 
			
		||||
 | 
			
		||||
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
 | 
			
		||||
@@ -22,13 +22,13 @@ 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
 | 
			
		||||
	-DDEBUG \
 | 
			
		||||
	-DGLX_DIRECT_RENDERING -DHAVE_ALIAS
 | 
			
		||||
 | 
			
		||||
X11_INCLUDES = -I/usr/X11R6/include
 | 
			
		||||
 | 
			
		||||
CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
 | 
			
		||||
	$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
 | 
			
		||||
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)
 | 
			
		||||
 | 
			
		||||
@@ -38,11 +38,9 @@ ASM_SOURCES =
 | 
			
		||||
# Library/program dependencies
 | 
			
		||||
EXTRA_LIB_PATH=-L/usr/X11R6/lib
 | 
			
		||||
 | 
			
		||||
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
 | 
			
		||||
LIBDRM_LIB = `pkg-config --libs libdrm`
 | 
			
		||||
LIBDRM_LIB = `pkg-config --libs libdrm` -ldrm
 | 
			
		||||
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 \
 | 
			
		||||
GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
 | 
			
		||||
                $(LIBDRM_LIB)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -66,5 +64,7 @@ WINDOW_SYSTEM=dri
 | 
			
		||||
 | 
			
		||||
# gamma are missing because they have not been converted to use the new
 | 
			
		||||
# interface.
 | 
			
		||||
DRI_DIRS = i810 i915tex i915 i965 mach64 mga r128 r200 r300 radeon s3v \
 | 
			
		||||
DRI_DIRS = i915 mach64 mga r128 r200 r300 radeon s3v \
 | 
			
		||||
	savage sis tdfx trident unichrome ffb
 | 
			
		||||
 | 
			
		||||
DRI_DIRS = i915 
 | 
			
		||||
 
 | 
			
		||||
@@ -1,16 +0,0 @@
 | 
			
		||||
# -*-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 trident
 | 
			
		||||
#DRI_DIRS = i810 mga r128 tdfx
 | 
			
		||||
 | 
			
		||||
@@ -11,14 +11,14 @@ ASM_FLAGS = -DUSE_X86_64_ASM
 | 
			
		||||
ASM_SOURCES = $(X86-64_SOURCES)
 | 
			
		||||
ASM_API = $(X86-64_API)
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib64
 | 
			
		||||
LIB_DIR = $(TOP)/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
 | 
			
		||||
# the new interface.  i810 and i830 are missing because there is no x86-64
 | 
			
		||||
# system where they could *ever* be used.
 | 
			
		||||
#
 | 
			
		||||
DRI_DIRS = i915tex i915 i965 mach64 mga r128 r200 radeon tdfx unichrome savage r300
 | 
			
		||||
DRI_DIRS = i915 mach64 mga r128 r200 radeon tdfx unichrome savage r300
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,68 +0,0 @@
 | 
			
		||||
# -*-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 -DHAVE_ALIAS -DUSE_XCB -DHAVE_POSIX_MEMALIGN
 | 
			
		||||
 | 
			
		||||
X11_INCLUDES = `pkg-config --cflags-only-I x11` `pkg-config --cflags-only-I xcb` `pkg-config --cflags-only-I x11-xcb` `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)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
ASM_SOURCES = 
 | 
			
		||||
 | 
			
		||||
# Library/program dependencies
 | 
			
		||||
EXTRA_LIB_PATH=`pkg-config --libs-only-L x11`
 | 
			
		||||
 | 
			
		||||
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
 | 
			
		||||
LIBDRM_LIB = `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) `pkg-config --libs xcb` `pkg-config --libs x11-xcb` `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 mesa glu glut/glx glw
 | 
			
		||||
PROGRAM_DIRS = egl
 | 
			
		||||
else
 | 
			
		||||
SRC_DIRS = glx/x11 mesa glu glut/glx glw
 | 
			
		||||
PROGRAM_DIRS =
 | 
			
		||||
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 s3v \
 | 
			
		||||
	savage sis tdfx trident unichrome ffb
 | 
			
		||||
@@ -3,14 +3,8 @@
 | 
			
		||||
include $(TOP)/configs/linux
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = linux-fbdev
 | 
			
		||||
DRIVER_DIRS = fbdev
 | 
			
		||||
 | 
			
		||||
CFLAGS = -O3 -ffast-math -ansi -pedantic -fPIC -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS -DUSE_GLFBDEV_DRIVER
 | 
			
		||||
 | 
			
		||||
SRC_DIRS = mesa glu glut/fbdev
 | 
			
		||||
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
 | 
			
		||||
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -DUSE_GLFBDEV_DRIVER
 | 
			
		||||
 | 
			
		||||
PROGRAM_DIRS = fbdev
 | 
			
		||||
 
 | 
			
		||||
@@ -15,6 +15,6 @@ GLUT_CFLAGS = -fexceptions
 | 
			
		||||
 | 
			
		||||
# 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
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/local/glide/lib -lglide3x -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -1,21 +0,0 @@
 | 
			
		||||
# 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)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -1,27 +0,0 @@
 | 
			
		||||
# 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
 | 
			
		||||
 | 
			
		||||
@@ -13,8 +13,8 @@ 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
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
 | 
			
		||||
ASM_SOURCES = $(X86_SOURCES)
 | 
			
		||||
ASM_API = $(X86_API)
 | 
			
		||||
 
 | 
			
		||||
@@ -6,9 +6,9 @@ CONFIG_NAME = linux-icc-static
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = icc
 | 
			
		||||
CXX = icpc
 | 
			
		||||
CXX = g++
 | 
			
		||||
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
 | 
			
		||||
CXXFLAGS = -O3
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
MKLIB_OPTIONS = -static -arch icc
 | 
			
		||||
 | 
			
		||||
@@ -19,9 +19,12 @@ 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
 | 
			
		||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
MKLIB_OPTIONS = -arch icc
 | 
			
		||||
 | 
			
		||||
ASM_SOURCES = $(X86_SOURCES)
 | 
			
		||||
ASM_API = $(X86_API)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@ CONFIG_NAME = linux-dri
 | 
			
		||||
CC = gcc
 | 
			
		||||
CXX = g++
 | 
			
		||||
 | 
			
		||||
#MKDEP = /usr/X11R6/bin/makedepend
 | 
			
		||||
MKDEP = /usr/X11R6/bin/makedepend
 | 
			
		||||
#MKDEP = gcc -M
 | 
			
		||||
#MKDEP_OPTIONS = -MF depend
 | 
			
		||||
 | 
			
		||||
@@ -23,8 +23,7 @@ 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
 | 
			
		||||
	-DPTHREADS -DHAVE_ALIAS
 | 
			
		||||
 | 
			
		||||
X11_INCLUDES = -I/usr/X11R6/include
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,25 +0,0 @@
 | 
			
		||||
# 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
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Directories
 | 
			
		||||
SRC_DIRS = 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 = -lOSMesa -lGLU
 | 
			
		||||
@@ -24,5 +24,4 @@ PROGRAM_DIRS =
 | 
			
		||||
 | 
			
		||||
# Dependencies
 | 
			
		||||
OSMESA_LIB_DEPS = -lm -lpthread
 | 
			
		||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
 | 
			
		||||
APP_LIB_DEPS = -lOSMesa16
 | 
			
		||||
 
 | 
			
		||||
@@ -24,5 +24,4 @@ PROGRAM_DIRS =
 | 
			
		||||
 | 
			
		||||
# Dependencies
 | 
			
		||||
OSMESA_LIB_DEPS = -lm -lpthread
 | 
			
		||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
 | 
			
		||||
APP_LIB_DEPS = -lOSMesa32
 | 
			
		||||
 
 | 
			
		||||
@@ -16,8 +16,8 @@ GLUT_CFLAGS = -fexceptions
 | 
			
		||||
 | 
			
		||||
# Need to have -L/usr/X11R6/lib in these:
 | 
			
		||||
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) -lXt -L/usr/X11R6/lib -lX11
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lXt -L/usr/X11R6/lib -lX11
 | 
			
		||||
 | 
			
		||||
# Need to make static libs for profiling:
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
@@ -26,4 +26,4 @@ GLU_LIB_NAME = lib$(GLU_LIB).a
 | 
			
		||||
GLUT_LIB_NAME = lib$(GLUT_LIB).a
 | 
			
		||||
GLW_LIB_NAME = lib$(GLW_LIB).a
 | 
			
		||||
OSMESA_LIB_NAME = lib$(OSMesa).a
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lpthread
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lpthread
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,7 @@ PIC_FLAGS  = -fPIC
 | 
			
		||||
ARCH_FLAGS ?=
 | 
			
		||||
 | 
			
		||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
 | 
			
		||||
	-D_BSD_SOURCE -D_GNU_SOURCE -DHAVE_POSIX_MEMALIGN \
 | 
			
		||||
	-D_BSD_SOURCE -D_GNU_SOURCE \
 | 
			
		||||
	-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DDRM_USE_MALLOC -DIN_DRI_DRIVER
 | 
			
		||||
 | 
			
		||||
CFLAGS   = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
 | 
			
		||||
@@ -28,11 +28,11 @@ CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
 | 
			
		||||
ASM_SOURCES = 
 | 
			
		||||
 | 
			
		||||
# Library/program dependencies
 | 
			
		||||
DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl -L$(TOP)/$(LIB_DIR) 
 | 
			
		||||
DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl -L$(LIB_DIR) 
 | 
			
		||||
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
 | 
			
		||||
GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lpthread
 | 
			
		||||
 | 
			
		||||
# Directories
 | 
			
		||||
SRC_DIRS = glx/mini mesa glu glut/mini
 | 
			
		||||
@@ -40,4 +40,4 @@ DRIVER_DIRS = dri
 | 
			
		||||
PROGRAM_DIRS = miniglx
 | 
			
		||||
 | 
			
		||||
#DRI_DIRS = ffb gamma sis savage
 | 
			
		||||
DRI_DIRS = i810 i915 mach64 mga r128 r200 radeon tdfx unichrome fb
 | 
			
		||||
DRI_DIRS = i810 i830 i915 mach64 mga r128 r200 radeon tdfx unichrome fb
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,30 @@
 | 
			
		||||
# Configuration for Linux on Sparc
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/linux
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = linux-sparc
 | 
			
		||||
 | 
			
		||||
#ASM_FLAGS = -DUSE_SPARC_ASM
 | 
			
		||||
#ASM_SOURCES = $(SPARC_SOURCES)
 | 
			
		||||
#ASM_API = $(SPARC_API)
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = gcc
 | 
			
		||||
CXX = g++
 | 
			
		||||
 | 
			
		||||
WARN_FLAGS = -Wall
 | 
			
		||||
OPT_FLAGS  = -O2
 | 
			
		||||
PIC_FLAGS  = -fPIC
 | 
			
		||||
 | 
			
		||||
DEFINES = -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM
 | 
			
		||||
 | 
			
		||||
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)
 | 
			
		||||
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
 | 
			
		||||
EXTRA_LIB_PATH=-L/usr/X11R6/lib
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,17 @@
 | 
			
		||||
# Configuration for Linux on Sparc5
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/linux-sparc
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = linux-sparc5
 | 
			
		||||
 | 
			
		||||
ARCH_FLAGS += -mcpu=ultrasparc
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = gcc
 | 
			
		||||
CXX = g++
 | 
			
		||||
CFLAGS = -mcpu=ultrasparc -O2 -ffast-math -ansi -pedantic -fPIC -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -mcpu=ultrasparc -O2 -ffast-math -ansi -pedantic -fPIC -D_SVID_SOURCE -D_BSD_SOURCE
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -19,8 +19,3 @@ 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 -lXmu -lXi -lpthread
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,17 @@
 | 
			
		||||
# Configuration for Linux on UltraSparc
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/linux-sparc
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = linux-ultrasparc
 | 
			
		||||
 | 
			
		||||
ARCH_FLAGS += -mv8 -mtune=ultrasparc
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = gcc
 | 
			
		||||
CXX = g++
 | 
			
		||||
CFLAGS = -mv8 -O2 -mtune=ultrasparc -ansi -pedantic -fPIC -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -mv8 -O2 -mtune=ultrasparc -ansi -pedantic -fPIC -D_SVID_SOURCE -D_BSD_SOURCE
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR)-l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -10,5 +10,5 @@ ASM_SOURCES = $(X86-64_SOURCES)
 | 
			
		||||
ASM_API = $(X86-64_API)
 | 
			
		||||
ASM_FLAGS = -DUSE_X86_64_ASM
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib64
 | 
			
		||||
LIB_DIR = $(TOP)/lib64
 | 
			
		||||
EXTRA_LIB_PATH = -L/usr/X11R6/lib64
 | 
			
		||||
 
 | 
			
		||||
@@ -19,5 +19,3 @@ 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
 | 
			
		||||
 
 | 
			
		||||
@@ -20,6 +20,6 @@ ASM_API = $(X86_API)
 | 
			
		||||
 | 
			
		||||
# 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
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/local/glide/lib -lglide3x -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -19,5 +19,3 @@ 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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										25
									
								
								configs/linux-x86-xcb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								configs/linux-x86-xcb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
# Configuration for Linux with x86 optimizations
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = linux-x86-xcb
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = gcc
 | 
			
		||||
CXX = g++
 | 
			
		||||
 | 
			
		||||
CFLAGS = -Wall -O3 -ansi -pedantic -fPIC -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 -DUSE_XCB -I/usr/X11R6/include
 | 
			
		||||
 | 
			
		||||
CXXFLAGS = -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XCB
 | 
			
		||||
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
ASM_SOURCES = $(X86_SOURCES)
 | 
			
		||||
ASM_API = $(X86_API)
 | 
			
		||||
 | 
			
		||||
# Library/program dependencies
 | 
			
		||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread -lXCB
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
@@ -10,5 +10,5 @@ CXX = g++
 | 
			
		||||
CFLAGS = -O2 -fPIC -DUSE_XSHM -I/usr/X11R6/include -DHZ=100
 | 
			
		||||
CXXFLAGS = -O2 -fPIC
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ CXXFLAGS = -O2 -fPIC -I/usr/X11R6/include -DHZ=100
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm
 | 
			
		||||
OSMESA_LIB_DEPS = -lm
 | 
			
		||||
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 -lXext -lXmu -lXt -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB)
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								configs/osf1
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								configs/osf1
									
									
									
									
									
								
							@@ -7,10 +7,10 @@ CONFIG_NAME = osf1
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = cxx
 | 
			
		||||
CFLAGS = -O0 -std1 -ieee_with_no_inexact -DUSE_XSHM -DPTHREADS -D_REENTRANT
 | 
			
		||||
CXXFLAGS = -O2 -std ansi -ieee -DPTHREADS -D_REENTRANT
 | 
			
		||||
CFLAGS = -O0 -std1 -ieee_with_no_inexact -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -O2 -std ansi -ieee
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -lX11 -lXext -lm -lpthread
 | 
			
		||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lpthread -lm
 | 
			
		||||
GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -1,17 +0,0 @@
 | 
			
		||||
# Configuration for OSF/1
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = osf1
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = cxx
 | 
			
		||||
CFLAGS = -O2 -std1 -ieee_with_no_inexact -DUSE_XSHM -DPTHREADS -D_REENTRANT
 | 
			
		||||
CXXFLAGS = -O2 -std ansi -ieee -DPTHREADS -D_REENTRANT
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS =
 | 
			
		||||
GLU_LIB_DEPS =
 | 
			
		||||
GLUT_LIB_DEPS =
 | 
			
		||||
APP_LIB_DEPS = -noso -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -so_archive -lX11 -lXext -lXmu -lXi -lpthread -lm -lcxx
 | 
			
		||||
@@ -9,7 +9,7 @@ CC = cc
 | 
			
		||||
CFLAGS = -Xa -xO3 -xpentium -KPIC -I/usr/openwin/include -DUSE_XSHM
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm -lglut -lGLU -lGL
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm -lglut -lGLU -lGL
 | 
			
		||||
 | 
			
		||||
GL_LIB_NAME = libGL.a
 | 
			
		||||
GLU_LIB_NAME = libGLU.a
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
# Configuration for Solaris on x86 with gcc, dynamic libs
 | 
			
		||||
# Configuration for Solaris on x86 with gcc, static libs
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
@@ -7,11 +7,18 @@ CONFIG_NAME = solaris-x86-gcc
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = gcc
 | 
			
		||||
CXX = g++
 | 
			
		||||
CFLAGS = -O3 -march=i486 -fPIC -I/usr/openwin/include -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -O3 -march=i486 -fPIC
 | 
			
		||||
CFLAGS = -O3 -m486 -fPIC -I/usr/openwin/include -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -O3 -m486 -fPIC
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
 | 
			
		||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -R/usr/openwin/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lX11 -lXext -lXi -lXmu
 | 
			
		||||
GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/openwin/lib -R/usr/openwin/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
 
 | 
			
		||||
@@ -1,24 +0,0 @@
 | 
			
		||||
# Configuration for Solaris on x86 with gcc, static libs
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = solaris-x86-gcc
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = gcc
 | 
			
		||||
CXX = g++
 | 
			
		||||
CFLAGS = -O3 -march=i486 -fPIC -I/usr/openwin/include -DUSE_XSHM
 | 
			
		||||
CXXFLAGS = -O3 -march=i486 -fPIC
 | 
			
		||||
GLUT_CFLAGS = -fexceptions
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
 | 
			
		||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -R/usr/openwin/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lX11 -lXext -lXi -lXmu
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
@@ -7,6 +7,6 @@ CONFIG_NAME = sunos4
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = acc
 | 
			
		||||
CFLAGS = -Kpic -O -I/usr/include/X11R5 -DUSE_XSHM -DSUNOS4
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R5 -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/lib/X11R5 -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,5 +11,5 @@ CFLAGS = -fPIC -O3 -I/usr/openwin/include -I/usr/include/X11R5 -I/usr/include/X1
 | 
			
		||||
CXXFLAGS = -fPIC -O3 -I/usr/openwin/include -DSUNOS4
 | 
			
		||||
GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -22,4 +22,4 @@ 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
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lpthread -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ CXXFLAGS = -KPIC -Xa -O -I/usr/openwin/include -I/usr/dt/include
 | 
			
		||||
GLUT_CFLAGS = -DSOLARIS_2_4_BUG
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -L/usr/openwin/lib -L/usr/dt/lib -lX11 -lXext -lXmu -lXi -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) -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lCrun -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -lCrun -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -1,11 +0,0 @@
 | 
			
		||||
# Configuration for 64-bit SunOS 5, with gcc
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/sunos5-gcc
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = sunos5-64-gcc
 | 
			
		||||
 | 
			
		||||
# only set vars that differ from sunos5-gcc config
 | 
			
		||||
 | 
			
		||||
OPT_FLAGS  = -O3 -m64 -mcpu=ultrasparc -mv8plus -mvis -g -fomit-frame-pointer -pipe
 | 
			
		||||
 | 
			
		||||
ARCH_FLAGS = -m64
 | 
			
		||||
@@ -32,5 +32,5 @@ GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
 | 
			
		||||
EXTRA_LIB_PATH=-L/usr/openwin/lib
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXi -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -12,8 +12,8 @@ CXXFLAGS = -KPIC -Xa -native -fast -xO5 -xlibmil -xsafe=mem -xdepend -I/usr/open
 | 
			
		||||
GLUT_CFLAGS = -DSOLARIS_2_4_BUG
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -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) -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lCrun
 | 
			
		||||
GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
 | 
			
		||||
GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lCrun
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,18 +0,0 @@
 | 
			
		||||
# Configuration for SunOS 5
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = sunos5-v8
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = CC
 | 
			
		||||
CFLAGS = -xarch=v8 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DUSE_XSHM -DPTHREADS
 | 
			
		||||
CXXFLAGS = -xarch=v8 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DPTHREADS
 | 
			
		||||
GLUT_CFLAGS = -DSOLARIS_2_4_BUG
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -L/usr/openwin/lib -L/usr/dt/lib -lX11 -lXext -lXmu -lXi -lm -lpthread
 | 
			
		||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCstd -lCrun
 | 
			
		||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
@@ -1,16 +0,0 @@
 | 
			
		||||
# Configuration for SunOS 5
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = sunos5-v8-static
 | 
			
		||||
 | 
			
		||||
MKLIB_OPTIONS = -static
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = CC
 | 
			
		||||
CFLAGS = -xarch=v8 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DUSE_XSHM -DPTHREADS
 | 
			
		||||
CXXFLAGS = -xarch=v8 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DPTHREADS
 | 
			
		||||
GLUT_CFLAGS = -DSOLARIS_2_4_BUG
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11 -lXext -lXmu -lXi -lpthread -lm -lCstd -lCrun
 | 
			
		||||
@@ -1,23 +0,0 @@
 | 
			
		||||
# Configuration for SunOS 5, SPARC V9
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = sunos5-v9
 | 
			
		||||
 | 
			
		||||
MKLIB_OPTIONS = -cplusplus
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib64
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = CC
 | 
			
		||||
CFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DUSE_XSHM -DPTHREADS
 | 
			
		||||
CXXFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DPTHREADS
 | 
			
		||||
GLUT_CFLAGS = -DSOLARIS_2_4_BUG
 | 
			
		||||
 | 
			
		||||
GL_LIB_DEPS = -L/usr/openwin/lib -L/usr/dt/lib -lX11 -lXext -lXmu -lXi -lm -lpthread
 | 
			
		||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCstd -lCrun
 | 
			
		||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 | 
			
		||||
 | 
			
		||||
@@ -1,18 +0,0 @@
 | 
			
		||||
# Configuration for SunOS 5, SPARC V9, static libs
 | 
			
		||||
 | 
			
		||||
include $(TOP)/configs/default
 | 
			
		||||
 | 
			
		||||
CONFIG_NAME = sunos5-v9-static
 | 
			
		||||
 | 
			
		||||
MKLIB_OPTIONS = -static -cplusplus
 | 
			
		||||
 | 
			
		||||
LIB_DIR = lib64
 | 
			
		||||
 | 
			
		||||
# Compiler and flags
 | 
			
		||||
CC = cc
 | 
			
		||||
CXX = CC
 | 
			
		||||
CFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DUSE_XSHM -DPTHREADS
 | 
			
		||||
CXXFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DPTHREADS
 | 
			
		||||
GLUT_CFLAGS = -DSOLARIS_2_4_BUG
 | 
			
		||||
 | 
			
		||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11 -lXext -lXmu -lXi -lpthread -lm -lCstd -lCrun
 | 
			
		||||
@@ -18,4 +18,4 @@ 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) -lXmu -lX11 -lXi -lm
 | 
			
		||||
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXmu -lX11 -lXi -lm
 | 
			
		||||
 
 | 
			
		||||
@@ -19,4 +19,4 @@ all :
 | 
			
		||||
	$(MMS)$(MMSQUALIFIERS)
 | 
			
		||||
	set default [-.xdemos]
 | 
			
		||||
	$(MMS)$(MMSQUALIFIERS)
 | 
			
		||||
	if f$search("[-]tests.DIR") .nes. "" then pipe set default [-.tests] ; $(MMS)$(MMSQUALIFIERS)
 | 
			
		||||
	if f$search("[-]test.DIR") .nes. "" then pipe set default [-.test] ; $(MMS)$(MMSQUALIFIERS)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,265 +0,0 @@
 | 
			
		||||
Name
 | 
			
		||||
 | 
			
		||||
    MESA_shader_debug
 | 
			
		||||
 | 
			
		||||
Name Strings
 | 
			
		||||
 | 
			
		||||
    GL_MESA_shader_debug
 | 
			
		||||
 | 
			
		||||
Contact
 | 
			
		||||
 | 
			
		||||
    Brian Paul (brian.paul 'at' tungstengraphics.com)
 | 
			
		||||
    Michal Krol (mjkrol 'at' gmail.com)
 | 
			
		||||
 | 
			
		||||
Status
 | 
			
		||||
 | 
			
		||||
    XXX - Not complete yet!!!
 | 
			
		||||
 | 
			
		||||
Version
 | 
			
		||||
 | 
			
		||||
    Last Modified Date: July 30, 2006
 | 
			
		||||
    Author Revision: 0.2
 | 
			
		||||
    $Date: 2006/07/30 14:28:38 $ $Revision: 1.2 $
 | 
			
		||||
 | 
			
		||||
Number
 | 
			
		||||
 | 
			
		||||
    TBD
 | 
			
		||||
 | 
			
		||||
Dependencies
 | 
			
		||||
 | 
			
		||||
    OpenGL 1.0 is required.
 | 
			
		||||
 | 
			
		||||
    The ARB_shader_objects extension is required.
 | 
			
		||||
 | 
			
		||||
    The ARB_shading_language_100 extension is required.
 | 
			
		||||
 | 
			
		||||
    The extension is written against the OpenGL 1.5 specification.
 | 
			
		||||
 | 
			
		||||
    The extension is written against the OpenGL Shading Language 1.10
 | 
			
		||||
    Specification.
 | 
			
		||||
 | 
			
		||||
Overview
 | 
			
		||||
 | 
			
		||||
    This extension introduces a debug object that can be attached to
 | 
			
		||||
    a program object to enable debugging. Vertex and/or fragment shader,
 | 
			
		||||
    during execution, issue diagnostic function calls that are logged
 | 
			
		||||
    to the debug object's log. A separate debug log for each shader type
 | 
			
		||||
    is maintained. A debug object can be attached, detached and queried
 | 
			
		||||
    at any time outside the Begin/End pair. Multiple debug objects can
 | 
			
		||||
    be attached to a single program object.
 | 
			
		||||
 | 
			
		||||
IP Status
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Issues
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
New Procedures and Functions
 | 
			
		||||
 | 
			
		||||
    handleARB CreateDebugObjectMESA(void)
 | 
			
		||||
    void ClearDebugLogMESA(handleARB obj, enum logType, enum shaderType)
 | 
			
		||||
    void GetDebugLogMESA(handleARB obj, enum logType, enum shaderType,
 | 
			
		||||
                         sizei maxLength, sizei *length,
 | 
			
		||||
                         charARB *debugLog)
 | 
			
		||||
    sizei GetDebugLogLengthMESA(handleARB obj, enum logType,
 | 
			
		||||
                                enum shaderType)
 | 
			
		||||
 | 
			
		||||
New Types
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
New Tokens
 | 
			
		||||
 | 
			
		||||
    Returned by the <params> parameter of GetObjectParameter{fi}vARB:
 | 
			
		||||
 | 
			
		||||
        DEBUG_OBJECT_MESA                               0x8759
 | 
			
		||||
 | 
			
		||||
    Accepted by the <logType> argument of ClearDebugLogMESA,
 | 
			
		||||
    GetDebugLogLengthMESA and GetDebugLogMESA:
 | 
			
		||||
 | 
			
		||||
        DEBUG_PRINT_MESA                                0x875A
 | 
			
		||||
        DEBUG_ASSERT_MESA                               0x875B
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 2 of the OpenGL 1.5 Specification
 | 
			
		||||
(OpenGL Operation)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 3 of the OpenGL 1.5 Specification (Rasterization)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 4 of the OpenGL 1.5 Specification (Per-Fragment
 | 
			
		||||
Operations and the Frame Buffer)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 5 of the OpenGL 1.5 Specification
 | 
			
		||||
(Special Functions)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 6 of the OpenGL 1.5 Specification (State and State
 | 
			
		||||
Requests)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Appendix A of the OpenGL 1.5 Specification (Invariance)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 1 of the OpenGL Shading Language 1.10 Specification
 | 
			
		||||
(Introduction)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 2 of the OpenGL Shading Language 1.10 Specification
 | 
			
		||||
(Overview of OpenGL Shading)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 3 of the OpenGL Shading Language 1.10 Specification
 | 
			
		||||
(Basics)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 4 of the OpenGL Shading Language 1.10 Specification
 | 
			
		||||
(Variables and Types)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 5 of the OpenGL Shading Language 1.10 Specification
 | 
			
		||||
(Operators and Expressions)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 6 of the OpenGL Shading Language 1.10 Specification
 | 
			
		||||
(Statements and Structure)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 7 of the OpenGL Shading Language 1.10 Specification
 | 
			
		||||
(Built-in Variables)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 8 of the OpenGL Shading Language 1.10 Specification
 | 
			
		||||
(Built-in Functions)
 | 
			
		||||
 | 
			
		||||
    Add a new section 8.10 "Debug Functions":
 | 
			
		||||
 | 
			
		||||
    Debug functions are available to both fragment and vertex shaders.
 | 
			
		||||
    They are used to track the execution of a shader by logging
 | 
			
		||||
    passed-in arguments to the debug object's log. Those values can be
 | 
			
		||||
    retrieved by the application for inspection after shader execution
 | 
			
		||||
    is complete.
 | 
			
		||||
 | 
			
		||||
    The text, if any, produced by any of these functions is appended
 | 
			
		||||
    to each debug object that is attached to the program object.
 | 
			
		||||
    There are different debug log types
 | 
			
		||||
 | 
			
		||||
    Add a new section 8.10.1 "Print Function":
 | 
			
		||||
 | 
			
		||||
    The following printMESA prototypes are available.
 | 
			
		||||
 | 
			
		||||
        void printMESA(const float value)
 | 
			
		||||
        void printMESA(const int value)
 | 
			
		||||
        void printMESA(const bool value)
 | 
			
		||||
        void printMESA(const vec2 value)
 | 
			
		||||
        void printMESA(const vec3 value)
 | 
			
		||||
        void printMESA(const vec4 value)
 | 
			
		||||
        void printMESA(const ivec2 value)
 | 
			
		||||
        void printMESA(const ivec3 value)
 | 
			
		||||
        void printMESA(const ivec4 value)
 | 
			
		||||
        void printMESA(const bvec2 value)
 | 
			
		||||
        void printMESA(const bvec3 value)
 | 
			
		||||
        void printMESA(const bvec4 value)
 | 
			
		||||
        void printMESA(const mat2 value)
 | 
			
		||||
        void printMESA(const mat3 value)
 | 
			
		||||
        void printMESA(const mat4 value)
 | 
			
		||||
        void printMESA(const sampler1D value)
 | 
			
		||||
        void printMESA(const sampler2D value)
 | 
			
		||||
        void printMESA(const sampler3D value)
 | 
			
		||||
        void printMESA(const samplerCube value)
 | 
			
		||||
        void printMESA(const sampler1DShadow value)
 | 
			
		||||
        void printMESA(const sampler2DShadow value)
 | 
			
		||||
 | 
			
		||||
    The printMESA function writes the argument <value> to the "debug
 | 
			
		||||
    print log" (XXX DEBUG_PRINT_MESA?). Each component is written in
 | 
			
		||||
    text format (XXX format!) and is delimited by a white space (XXX 1
 | 
			
		||||
    or more?).
 | 
			
		||||
 | 
			
		||||
    Add a new section 8.10.2 "Assert Function":
 | 
			
		||||
 | 
			
		||||
    The following assertMESA prototypes are available.
 | 
			
		||||
 | 
			
		||||
        void assertMESA(const bool condition)
 | 
			
		||||
        void assertMESA(const bool condition, const int cookie)
 | 
			
		||||
        void assertMESA(const bool condition, const int cookie,
 | 
			
		||||
                        const int file, const int line)
 | 
			
		||||
 | 
			
		||||
    The assertMESA function checks if the argument <condition> is
 | 
			
		||||
    true or false. If it is true, nothing happens. If it is false,
 | 
			
		||||
    a diagnostic message is written to the "debug assert log".
 | 
			
		||||
    The message contains the argument <file>, <line>, <cookie> and
 | 
			
		||||
    implementation dependent double-quoted string, each of this
 | 
			
		||||
    delimited by a white space. If the argument <cookie> is not present,
 | 
			
		||||
    it is meant as if it was of value 0. If the arguments <file> and
 | 
			
		||||
    <line> are not present, they are meant as if they were of values
 | 
			
		||||
    __FILE__ and __LINE__, respectively. The following three calls
 | 
			
		||||
    produce the same output, assuming they were issued from the same
 | 
			
		||||
    file and line.
 | 
			
		||||
 | 
			
		||||
        assertMESA (false);
 | 
			
		||||
        assertMESA (false, 0);
 | 
			
		||||
        assertMESA (false, 0, __FILE__, __LINE__);
 | 
			
		||||
 | 
			
		||||
    The diagnostic message examples follow.
 | 
			
		||||
 | 
			
		||||
        1 89 0 ""
 | 
			
		||||
        1 45 333 "all (lessThanEqual (fragColor, vec4 (1.0)))"
 | 
			
		||||
        1 66 1 "assertion failed in file 1, line 66, cookie 1"
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 9 of the OpenGL Shading Language 1.10 Specification
 | 
			
		||||
(Shading Language Grammar)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to Chapter 10 of the OpenGL Shading Language 1.10
 | 
			
		||||
Specification (Issues)
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Additions to the AGL/EGL/GLX/WGL Specifications
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
GLX Protocol
 | 
			
		||||
 | 
			
		||||
    None
 | 
			
		||||
 | 
			
		||||
Errors
 | 
			
		||||
 | 
			
		||||
    TBD
 | 
			
		||||
 | 
			
		||||
New State
 | 
			
		||||
 | 
			
		||||
    TBD
 | 
			
		||||
 | 
			
		||||
New Implementation Dependent State
 | 
			
		||||
 | 
			
		||||
    TBD
 | 
			
		||||
 | 
			
		||||
Sample Code
 | 
			
		||||
 | 
			
		||||
    TBD
 | 
			
		||||
 | 
			
		||||
Revision History
 | 
			
		||||
 | 
			
		||||
    29 May 2006
 | 
			
		||||
        Initial draft. (Michal Krol)
 | 
			
		||||
    30 July 2006
 | 
			
		||||
        Add Overview, New Procedures and Functions, New Tokens sections.
 | 
			
		||||
        Add sections 8.10.1, 8.10.2 to GLSL spec.
 | 
			
		||||
@@ -32,7 +32,7 @@ Dependencies
 | 
			
		||||
 | 
			
		||||
Overview
 | 
			
		||||
 | 
			
		||||
    This extension allows an application to determine what portion of the
 | 
			
		||||
    This extension allows an application to deterine what portion of the
 | 
			
		||||
    swap period has elapsed since the last swap operation completed.  The
 | 
			
		||||
    "usage" value is a floating point value on the range [0,max] which is
 | 
			
		||||
    calculated as follows:
 | 
			
		||||
@@ -59,7 +59,7 @@ Overview
 | 
			
		||||
    is taken from the completion of one swap to the issuance of the next.
 | 
			
		||||
    This representation may not be as useful as measuring between
 | 
			
		||||
    completions, as a significant amount of time may pass between the
 | 
			
		||||
    issuance of a swap and the swap actually occurring.
 | 
			
		||||
    issuance of a swap and the swap actually occuring.
 | 
			
		||||
 | 
			
		||||
    There is also a mechanism to determine whether a frame swap was
 | 
			
		||||
    missed.
 | 
			
		||||
@@ -110,7 +110,7 @@ Additions to Chapter 6 of the 1.4 GL Specification (State and State Requests)
 | 
			
		||||
Additions to the GLX 1.3 Specification
 | 
			
		||||
 | 
			
		||||
    The frame usage is measured as the percentage of the swap period elapsed
 | 
			
		||||
    between two buffer-swap operations being committed.  In unextended GLX the
 | 
			
		||||
    between two buffer-swap operations being commited.  In unextened GLX the
 | 
			
		||||
    swap period is the vertical refresh time.  If SGI_swap_control or
 | 
			
		||||
    MESA_swap_control are supported, the swap period is the vertical refresh
 | 
			
		||||
    time multiplied by the swap interval (or one if the swap interval is set
 | 
			
		||||
@@ -119,7 +119,7 @@ Additions to the GLX 1.3 Specification
 | 
			
		||||
    If OML_sync_control is supported, the swap period is the vertical
 | 
			
		||||
    refresh time multiplied by the divisor parameter to
 | 
			
		||||
    glXSwapBuffersMscOML.  The frame usage in this case is less than 1.0 if
 | 
			
		||||
    the swap is committed before target_msc, and is greater than or equal to
 | 
			
		||||
    the swap is commited before target_msc, and is greater than or equal to
 | 
			
		||||
    1.0 otherwise.  The actual usage value is based on the divisor and is
 | 
			
		||||
    never less than 0.0.
 | 
			
		||||
 | 
			
		||||
@@ -143,7 +143,7 @@ Additions to the GLX 1.3 Specification
 | 
			
		||||
 | 
			
		||||
    The current missed frame count and total number of swaps since
 | 
			
		||||
    the last call to glXBeginFrameTrackingMESA can be obtained by
 | 
			
		||||
    calling the following function:
 | 
			
		||||
    callling the following function:
 | 
			
		||||
 | 
			
		||||
       int glXQueryFrameTrackingMESA(Display *dpy,
 | 
			
		||||
                                     GLXDrawable drawable,
 | 
			
		||||
@@ -152,7 +152,7 @@ Additions to the GLX 1.3 Specification
 | 
			
		||||
                                     float *lastMissedUsage)
 | 
			
		||||
 | 
			
		||||
    The location pointed to by <swapCount> will be updated with the
 | 
			
		||||
    number of swaps that have been committed.  This value may not match the
 | 
			
		||||
    number of swaps that have been commited.  This value may not match the
 | 
			
		||||
    number of swaps that have been requested since swaps may be
 | 
			
		||||
    queued by the implementation.  This function can be called at any
 | 
			
		||||
    time and does not synchronize to vertical blank.
 | 
			
		||||
@@ -171,7 +171,7 @@ Additions to the GLX 1.3 Specification
 | 
			
		||||
    application can call glXQueryFrameTrackingMESA for a final swap and
 | 
			
		||||
    missed frame count.
 | 
			
		||||
 | 
			
		||||
    If these functions are successful, zero is returned.  If the context
 | 
			
		||||
    If these functions are succesful, zero is returned.  If the context
 | 
			
		||||
    associated with dpy and drawable is not a direct context,
 | 
			
		||||
    GLX_BAD_CONTEXT is returned.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
			Mesa 6.5 DOS/DJGPP Port v1.8
 | 
			
		||||
			Mesa 6.3 DOS/DJGPP Port v1.7
 | 
			
		||||
			~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -6,16 +6,17 @@
 | 
			
		||||
Description:
 | 
			
		||||
~~~~~~~~~~~~
 | 
			
		||||
 | 
			
		||||
Well, guess what... this is the DOS port of Mesa 6.5, for DJGPP fans... Whoa!
 | 
			
		||||
The driver uses OSMesa to draw off screen, and then blits the buffer.  This is
 | 
			
		||||
not terribly efficient, and has some drawbacks, but saves maintenance costs.
 | 
			
		||||
Well, guess what... this is the DOS port of Mesa 6.3, for DJGPP fans... Whoa!
 | 
			
		||||
The driver has its origins in ddsample.c, written by Brian Paul and found by me
 | 
			
		||||
in Mesa 3.4.2.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Legal:
 | 
			
		||||
~~~~~~
 | 
			
		||||
 | 
			
		||||
Mesa copyright applies.
 | 
			
		||||
Mesa copyright applies, provided this package is used within Mesa. For anything
 | 
			
		||||
else, see GPL.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -31,6 +32,9 @@ Available options:
 | 
			
		||||
     Environment variables:
 | 
			
		||||
	CPU		optimize for the given processor.
 | 
			
		||||
			default = pentium
 | 
			
		||||
	GLU=[mesa|sgi]	specify GLU directory; can be `sgi' (requires GNU/C++)
 | 
			
		||||
			or `mesa'.
 | 
			
		||||
			default = mesa
 | 
			
		||||
	GLIDE		path to Glide3 SDK; used with FX.
 | 
			
		||||
			default = $(TOP)/glide3
 | 
			
		||||
	FX=1		build for 3dfx Glide3. Note that this disables
 | 
			
		||||
@@ -52,9 +56,11 @@ Available options:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Tested on:
 | 
			
		||||
	Video card:	Radeon 9500
 | 
			
		||||
	DJGPP:		djdev 2.04 + gcc v4.1.0 + make v3.80
 | 
			
		||||
	OS:		DOS, Win98SE, WinXP (using Videoport driver)
 | 
			
		||||
	CPU:		AMD Athlon XP 1800+
 | 
			
		||||
	Mainboard:	GA-7VTXE w/ 512 MB DDRAM
 | 
			
		||||
	Video card:	Voodoo5 6000 AGP w/ 128 MB SDRAM
 | 
			
		||||
	DJGPP:		djdev 2.04 + gcc v3.4.3 + make v3.80
 | 
			
		||||
	OS:		DOS and Win98SE
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -92,7 +98,7 @@ FAQ:
 | 
			
		||||
   Q) DMesa is so SLOOOW! The Win32 OpenGL performs so much better...
 | 
			
		||||
   A) Is that a question? If you have a 3dfx Voodoo (any model), you're
 | 
			
		||||
      lucky (check http://sourceforge.net/projects/glide for the DJGPP port).
 | 
			
		||||
      If you haven't, sorry; everything is done in software.
 | 
			
		||||
      If you haven't, sorry; everything is done in software. Suggestions?
 | 
			
		||||
 | 
			
		||||
   Q) I tried to set refresh rate w/ DMesa, but without success.
 | 
			
		||||
   A) Refresh rate control works only for VESA 3.0 and the 3dfx driver (in
 | 
			
		||||
@@ -101,8 +107,7 @@ FAQ:
 | 
			
		||||
 | 
			
		||||
   Q) I made a simple application and it does nothing. It exits right away. Not
 | 
			
		||||
      even a blank screen.
 | 
			
		||||
   A) Software drivers (VESA/VGA/NUL) must to be constructed as single-buffered
 | 
			
		||||
      visuals.  However, DMesaSwapBuffers must be called to get any output.
 | 
			
		||||
   A) Pure software drivers (VESA/VGA/NUL) support only double-buffered modes.
 | 
			
		||||
   A) Another weird "feature" is that buffer width must be multiple of 8 (I'm a
 | 
			
		||||
      lazy programmer and I found that the easiest way to keep buffer handling
 | 
			
		||||
      at peak performance ;-).
 | 
			
		||||
@@ -260,11 +265,6 @@ v1.7 (???-2005)
 | 
			
		||||
	* no more GLX sources in DOS GLUT
 | 
			
		||||
	* made GLUT timer callbacks less accurate but safer
 | 
			
		||||
 | 
			
		||||
v1.8 (apr-2006)
 | 
			
		||||
	* killed lots of code, the driver is now a front-end to OSMesa
 | 
			
		||||
	* fixed problem with WinNT (http://www.volny.cz/martin.sulak/)
 | 
			
		||||
	- removed 3dfx Glide3 support (temporarily?)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Contact:
 | 
			
		||||
 
 | 
			
		||||
@@ -1,15 +1,15 @@
 | 
			
		||||
File: docs/README.WIN32
 | 
			
		||||
 | 
			
		||||
Last updated: Mar 31, 2006 - Karl Schultz - kschultz@users.sourceforge.net
 | 
			
		||||
Last updated: Jul 01, 2005 - Karl Schultz - kschultz@users.sourceforge.net
 | 
			
		||||
 | 
			
		||||
Quick Start
 | 
			
		||||
----- -----
 | 
			
		||||
 | 
			
		||||
Unzip the MesaLib, MesaGLUT, and MesaDemos ZIP files into the same
 | 
			
		||||
directory.  The libs and demos build separately, so if you do not care
 | 
			
		||||
about the demos or GLUT, you only need to unzip MesaLib.  If you unzip
 | 
			
		||||
more than one ZIP file, they all need to be unzipped into the same
 | 
			
		||||
directory.  Don't worry, you will not overwrite anything.
 | 
			
		||||
Unzip both ZIP files (MesaLib and MesaDemos) into the same directory.
 | 
			
		||||
The libs and demos build separately, so if you do not care about the
 | 
			
		||||
demos, you do not have to unzip that zip file.  But if you do, it does
 | 
			
		||||
need to be unzipped into the same directory as the lib zip file
 | 
			
		||||
because the demos depend on the libs.
 | 
			
		||||
 | 
			
		||||
The Windows build system uses Microsoft Visual Studio.  Project files
 | 
			
		||||
for a specific version of Visual Studio are in their own directory in
 | 
			
		||||
@@ -22,10 +22,6 @@ of Version 8 and it runs on 64-bit Windows.  If you want to try this,
 | 
			
		||||
start by importing the VC7 files and create the 64-bit targets in the
 | 
			
		||||
configuration manager.
 | 
			
		||||
 | 
			
		||||
It is likely that the new and free Visual Studio Express can be used
 | 
			
		||||
to build Mesa, but it hasn't been tried yet.  Start with the VC7
 | 
			
		||||
project files.
 | 
			
		||||
 | 
			
		||||
The project files to build the core Mesa library, Windows Mesa
 | 
			
		||||
drivers, OSMesa, and GLU are in the mesa directory.  The project files
 | 
			
		||||
to build GLUT and some demo programs are in the progs directory.
 | 
			
		||||
@@ -37,11 +33,10 @@ from the projects using Visual Studio.
 | 
			
		||||
Windows Drivers
 | 
			
		||||
------- -------
 | 
			
		||||
 | 
			
		||||
At this time, only the GDI driver is known to work.  Most of the demos
 | 
			
		||||
in progs/demos should work with this driver.
 | 
			
		||||
 | 
			
		||||
Source code also exists in the tree for other drivers in
 | 
			
		||||
src/mesa/drivers/windows, but the status of this code is unknown.
 | 
			
		||||
At this time, only the GDI driver is known to work, as it has been
 | 
			
		||||
ported and rewritten to the latest Mesa DD interfaces.  Source code
 | 
			
		||||
also exists in the tree for other drivers in src/mesa/drivers/windows,
 | 
			
		||||
but the status of this code is unknown.
 | 
			
		||||
 | 
			
		||||
The GDI driver operates basically by writing pixel spans into a DIB
 | 
			
		||||
section and then blitting the DIB to the window.  The driver was
 | 
			
		||||
@@ -91,14 +86,6 @@ simply run the demo executables from the demo directory.
 | 
			
		||||
If you want to run the demos from the Visual Studio, you may have to
 | 
			
		||||
change the startup directory and explicitly state where the executables are.
 | 
			
		||||
 | 
			
		||||
You may also build all the demo programs by using a makefile.  Go to
 | 
			
		||||
the progs/demos directory and make sure you have executed VCVARS32.BAT
 | 
			
		||||
or whatever setup script is appropriate for your compiler.  Then,
 | 
			
		||||
 | 
			
		||||
	nmake -f Makefile.win
 | 
			
		||||
 | 
			
		||||
should build all the demos.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Build System Notes
 | 
			
		||||
----- ------ -----
 | 
			
		||||
@@ -111,9 +98,6 @@ language files, without a lot of unnatural tweaking.  So, the VC6
 | 
			
		||||
build process uses custom build steps to compile these files in the
 | 
			
		||||
GLU library.
 | 
			
		||||
 | 
			
		||||
Two additional configurations are provided, Debug x86 and Release x86
 | 
			
		||||
that activate the shader code compilation by defining SLANG_86.  It is
 | 
			
		||||
unknown if and how this works.
 | 
			
		||||
 | 
			
		||||
VC7
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										314
									
								
								docs/README.X11
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										314
									
								
								docs/README.X11
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,314 @@
 | 
			
		||||
 | 
			
		||||
                          Mesa Unix/X11 Information
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Installation
 | 
			
		||||
============
 | 
			
		||||
 | 
			
		||||
There are two ways to compile Mesa on Unix/X11 systems:
 | 
			
		||||
 | 
			
		||||
1. The old way:
 | 
			
		||||
    First type 'make' alone to see the list of system
 | 
			
		||||
    configurations currently supported.  If you see your configuration on the
 | 
			
		||||
    list, type 'make <config>'.  Most popular Unix/X workstations are currently
 | 
			
		||||
    supported.
 | 
			
		||||
 | 
			
		||||
    If your system configuration is not listed by 'make', you'll have to modify
 | 
			
		||||
    the top-level Makefile and Make-config files.  There are instructions in
 | 
			
		||||
    each file.
 | 
			
		||||
 | 
			
		||||
    When finished, the Mesa libraries will be in the Mesa-x.y/lib/ directory.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
2. The new way:
 | 
			
		||||
    Type './configure' and then 'make'.  This uses GNU autoconfig.
 | 
			
		||||
    Run 'make check' to build the demos.
 | 
			
		||||
    See docs/INSTALL for more details.
 | 
			
		||||
    When finished, the Mesa libraries will be in the Mesa-x.y/src/.libs/,
 | 
			
		||||
    Mesa-x.y/si-glu/.libs, etc directories.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Notes on assembly language optimizations:
 | 
			
		||||
 | 
			
		||||
   When using the old-style Makefiles, you can specify a configuration
 | 
			
		||||
   that uses X86 assembly language optimizations (linux-3dnow for example).
 | 
			
		||||
 | 
			
		||||
   The detection of MMX, 3DNow!, PIII/SSE, etc capability is done at
 | 
			
		||||
   runtime.  That means you can compile Mesa for 3DNow! optimizations
 | 
			
		||||
   even if you don't have an AMD CPU.
 | 
			
		||||
 | 
			
		||||
   However, your Linux binutils and assembler must understand the
 | 
			
		||||
   special instructions in order to compile them.  If you have
 | 
			
		||||
   compilation problems, try upgrading your binutils.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Header and library files:
 | 
			
		||||
   After you've compiled Mesa and tried the demos I recommend the following
 | 
			
		||||
   procedure for "installing" Mesa.
 | 
			
		||||
 | 
			
		||||
   Copy the Mesa include/GL directory to /usr/local/include:
 | 
			
		||||
	cp -r include/GL /usr/local/include
 | 
			
		||||
 | 
			
		||||
   Copy the Mesa library files to /usr/local/lib:
 | 
			
		||||
	cp lib/* /usr/local/lib
 | 
			
		||||
 | 
			
		||||
	(actually, use "cp -d" on Linux to preserve symbolic links)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Xt/Motif widgets:
 | 
			
		||||
   If you want to use Mesa or OpenGL in your Xt/Motif program you can build
 | 
			
		||||
   the widgets found in either the widgets-mesa or widgets-sgi directories.
 | 
			
		||||
   The former were written for Mesa and the later are the original SGI
 | 
			
		||||
   widgets.  Look in those directories for more information.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Notes:
 | 
			
		||||
   HP users:  a Mesa user reports that the HP-UX 10.01 C compiler has
 | 
			
		||||
   a bug which effects glReadPixels.  A patch for the compiler (PHSS_5743) is
 | 
			
		||||
   available.  Otherwise be sure your compiler is version 10.13 or later.
 | 
			
		||||
 | 
			
		||||
   QNX users:  if you have problems running the demos try setting the
 | 
			
		||||
   stack size to 200K or larger with -N200K, for example.
 | 
			
		||||
 | 
			
		||||
   SunOS 5.x users:  The X shared memory extension may not work
 | 
			
		||||
   correctly.  If Mesa prints an error message to the effect of "Shared memory
 | 
			
		||||
   error" then you'll have to append the following three lines to the end of
 | 
			
		||||
   your /etc/system file then reboot:
 | 
			
		||||
      set shmsys:shminfo_shmmax = 0x2000000
 | 
			
		||||
      set shmsys:shminfo_shmmni = 0x1000
 | 
			
		||||
      set shmsys:shminfo_shmseg = 0x100
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Using the library
 | 
			
		||||
=================
 | 
			
		||||
 | 
			
		||||
Configuration options:
 | 
			
		||||
   The file src/mesa/main/config.h has many parameters which you can adjust
 | 
			
		||||
   such as maximum number of lights, clipping planes, maximum texture size,
 | 
			
		||||
   etc.  In particular, you may want to change DEPTH_BITS from 16 to 32
 | 
			
		||||
   if a 16-bit depth buffer isn't precise enough for your application.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Shared libraries:
 | 
			
		||||
   If you compile shared libraries you may have to set an environment
 | 
			
		||||
   variable to specify where the Mesa libraries are located.  On Linux and
 | 
			
		||||
   Sun systems for example, set the LD_LIBRARY_PATH variable to include
 | 
			
		||||
   /your-dir/Mesa-2.6/lib.   Otherwise, when you try to run a demo it
 | 
			
		||||
   may fail with a message saying that one or more libraries couldn't be
 | 
			
		||||
   found.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Remote display of OpenGL/GLX programs:
 | 
			
		||||
   As of version 1.2.3, Mesa's header files use the same GLenum and GLUenum
 | 
			
		||||
   values as SGI's (and most/all other vendor's) OpenGL headers.  This means
 | 
			
		||||
   you can freely mix object files compiled with OpenGL or Mesa headers.
 | 
			
		||||
   In fact, on systems with dynamic runtime linkers it's possible to dynam-
 | 
			
		||||
   ically link with Mesa or OpenGL shared libraries at runtime, without
 | 
			
		||||
   recompiling or relinking anything!
 | 
			
		||||
 | 
			
		||||
   Using IRIX 5.x as an example, you can run SGI's OpenGL demos with the
 | 
			
		||||
   Mesa shared libraries as follows.  Let's assume you're installing Mesa
 | 
			
		||||
   in /usr/local/Mesa and using the C-shell:
 | 
			
		||||
       % cd /usr/local/Mesa
 | 
			
		||||
       % make irix5-dso
 | 
			
		||||
       % setenv _RLD_LIST "/usr/local/Mesa/lib/libGL.so:DEFAULT"
 | 
			
		||||
       % /usr/demos/bin/ideas_ogl      // this is a test
 | 
			
		||||
 | 
			
		||||
   You can now run OpenGL executables on almost any X display!  There may
 | 
			
		||||
   be some problems from the fact that Mesa supports many X visual types
 | 
			
		||||
   that an OpenGL client may not expect (grayscale for example).  In this
 | 
			
		||||
   case the application may abort, print error messages, or just behave
 | 
			
		||||
   strangely.  You may have to experiment with the MESA_RGB_VISUAL envi-
 | 
			
		||||
   ronment variable.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Xt/Motif Widgets:
 | 
			
		||||
   Two versions of the Xt/Motif OpenGL drawing area widgets are included:
 | 
			
		||||
 | 
			
		||||
      widgets-sgi/	SGI's stock widgets
 | 
			
		||||
      widgets-mesa/	Mesa-tuned widgets
 | 
			
		||||
 | 
			
		||||
   Look in those directories for details
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Togl:
 | 
			
		||||
   Togl is an OpenGL/Mesa widget for Tcl/Tk.
 | 
			
		||||
   See http://togl.sourceforge.net for more information.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
X Display Modes:
 | 
			
		||||
   Mesa supports RGB(A) rendering into almost any X visual type and depth.
 | 
			
		||||
 | 
			
		||||
   The glXChooseVisual function tries its best to pick an appropriate visual
 | 
			
		||||
   for the given attribute list.  However, if this doesn't suit your needs
 | 
			
		||||
   you can force Mesa to use any X visual you want (any supported by your
 | 
			
		||||
   X server that is) by setting the MESA_RGB_VISUAL and MESA_CI_VISUAL
 | 
			
		||||
   environment variables.  When an RGB visual is requested, glXChooseVisual
 | 
			
		||||
   will first look if the MESA_RGB_VISUAL variable is defined.  If so, it
 | 
			
		||||
   will try to use the specified visual.  Similarly, when a color index
 | 
			
		||||
   visual is requested, glXChooseVisual will look for the MESA_CI_VISUAL
 | 
			
		||||
   variable.
 | 
			
		||||
 | 
			
		||||
   The format of accepted values is:  <visual-class> <depth>
 | 
			
		||||
   Here are some examples:
 | 
			
		||||
 | 
			
		||||
   using the C-shell:
 | 
			
		||||
	% setenv MESA_RGB_VISUAL "TrueColor 8"		// 8-bit TrueColor
 | 
			
		||||
	% setenv MESA_CI_VISUAL "PseudoColor 12"	// 12-bit PseudoColor
 | 
			
		||||
	% setenv MESA_RGB_VISUAL "PseudoColor 8"	// 8-bit PseudoColor
 | 
			
		||||
 | 
			
		||||
   using the KornShell:
 | 
			
		||||
	$ export MESA_RGB_VISUAL="TrueColor 8"
 | 
			
		||||
	$ export MESA_CI_VISUAL="PseudoColor 12"
 | 
			
		||||
	$ export MESA_RGB_VISUAL="PseudoColor 8"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Double buffering:
 | 
			
		||||
   Mesa can use either an X Pixmap or XImage as the backbuffer when in
 | 
			
		||||
   double buffer mode.  Using GLX, the default is to use an XImage.  The
 | 
			
		||||
   MESA_BACK_BUFFER environment variable can override this.  The valid
 | 
			
		||||
   values for MESA_BACK_BUFFER are:  Pixmap and XImage (only the first
 | 
			
		||||
   letter is checked, case doesn't matter).
 | 
			
		||||
 | 
			
		||||
   A pixmap is faster when drawing simple lines and polygons while an
 | 
			
		||||
   XImage is faster when Mesa has to do pixel-by-pixel rendering.  If you
 | 
			
		||||
   need depth buffering the XImage will almost surely be faster.  Exper-
 | 
			
		||||
   iment with the MESA_BACK_BUFFER variable to see which is faster for
 | 
			
		||||
   your application.  
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Colormaps:
 | 
			
		||||
   When using Mesa directly or with GLX, it's up to the application writer
 | 
			
		||||
   to create a window with an appropriate colormap.  The aux, tk, and GLUT
 | 
			
		||||
   toolkits try to minimize colormap "flashing" by sharing colormaps when
 | 
			
		||||
   possible.  Specifically, if the visual and depth of the window matches
 | 
			
		||||
   that of the root window, the root window's colormap will be shared by
 | 
			
		||||
   the Mesa window.  Otherwise, a new, private colormap will be allocated.
 | 
			
		||||
 | 
			
		||||
   When sharing the root colormap, Mesa may be unable to allocate the colors
 | 
			
		||||
   it needs, resulting in poor color quality.  This can happen when a
 | 
			
		||||
   large number of colorcells in the root colormap are already allocated.
 | 
			
		||||
   To prevent colormap sharing in aux, tk and GLUT, define the environment
 | 
			
		||||
   variable MESA_PRIVATE_CMAP.  The value isn't significant.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Gamma correction:
 | 
			
		||||
   To compensate for the nonlinear relationship between pixel values
 | 
			
		||||
   and displayed intensities, there is a gamma correction feature in
 | 
			
		||||
   Mesa.  Some systems, such as Silicon Graphics, support gamma
 | 
			
		||||
   correction in hardware (man gamma) so you won't need to use Mesa's
 | 
			
		||||
   gamma facility.  Other systems, however, may need gamma adjustment
 | 
			
		||||
   to produce images which look correct.  If in the past you thought
 | 
			
		||||
   Mesa's images were too dim, read on.
 | 
			
		||||
 | 
			
		||||
   Gamma correction is controlled with the MESA_GAMMA environment
 | 
			
		||||
   variable.  Its value is of the form "Gr Gg Gb" or just "G" where
 | 
			
		||||
   Gr is the red gamma value, Gg is the green gamma value, Gb is the
 | 
			
		||||
   blue gamma value and G is one gamma value to use for all three
 | 
			
		||||
   channels.  Each value is a positive real number typically in the
 | 
			
		||||
   range 1.0 to 2.5.  The defaults are all 1.0, effectively disabling
 | 
			
		||||
   gamma correction.  Examples using csh:
 | 
			
		||||
 | 
			
		||||
	% setenv MESA_GAMMA "2.3 2.2 2.4"	// separate R,G,B values
 | 
			
		||||
	% setenv MESA_GAMMA "2.0"		// same gamma for R,G,B
 | 
			
		||||
 | 
			
		||||
   The demos/gamma.c program may help you to determine reasonable gamma
 | 
			
		||||
   value for your display.  With correct gamma values, the color intensities
 | 
			
		||||
   displayed in the top row (drawn by dithering) should nearly match those
 | 
			
		||||
   in the bottom row (drawn as grays).
 | 
			
		||||
 | 
			
		||||
   Alex De Bruyn reports that gamma values of 1.6, 1.6 and 1.9 work well
 | 
			
		||||
   on HP displays using the HP-ColorRecovery technology.
 | 
			
		||||
 | 
			
		||||
   Mesa implements gamma correction with a lookup table which translates
 | 
			
		||||
   a "linear" pixel value to a gamma-corrected pixel value.  There is a
 | 
			
		||||
   small performance penalty.  Gamma correction only works in RGB mode.
 | 
			
		||||
   Also be aware that pixel values read back from the frame buffer will
 | 
			
		||||
   not be "un-corrected" so glReadPixels may not return the same data
 | 
			
		||||
   drawn with glDrawPixels.
 | 
			
		||||
 | 
			
		||||
   For more information about gamma correction see:
 | 
			
		||||
   http://www.inforamp.net/~poynton/notes/colour_and_gamma/GammaFAQ.html
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Overlay Planes
 | 
			
		||||
 | 
			
		||||
   Overlay planes in the frame buffer are supported by Mesa but require
 | 
			
		||||
   hardware and X server support.  To determine if your X server has
 | 
			
		||||
   overlay support you can test for the SERVER_OVERLAY_VISUALS property:
 | 
			
		||||
 | 
			
		||||
	xprop -root | grep SERVER_OVERLAY_VISUALS
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
HPCR glClear(GL_COLOR_BUFFER_BIT) dithering
 | 
			
		||||
 | 
			
		||||
   If you set the MESA_HPCR_CLEAR environment variable then dithering
 | 
			
		||||
   will be used when clearing the color buffer.  This is only applicable
 | 
			
		||||
   to HP systems with the HPCR (Color Recovery) system.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Extensions
 | 
			
		||||
==========
 | 
			
		||||
   There are three Mesa-specific GLX extensions at this time.
 | 
			
		||||
 | 
			
		||||
   GLX_MESA_pixmap_colormap 
 | 
			
		||||
 | 
			
		||||
      This extension adds the GLX function:
 | 
			
		||||
 | 
			
		||||
         GLXPixmap glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visual,
 | 
			
		||||
                                           Pixmap pixmap, Colormap cmap )
 | 
			
		||||
 | 
			
		||||
      It is an alternative to the standard glXCreateGLXPixmap() function.
 | 
			
		||||
      Since Mesa supports RGB rendering into any X visual, not just True-
 | 
			
		||||
      Color or DirectColor, Mesa needs colormap information to convert RGB
 | 
			
		||||
      values into pixel values.  An X window carries this information but a
 | 
			
		||||
      pixmap does not.  This function associates a colormap to a GLX pixmap.
 | 
			
		||||
      See the xdemos/glxpixmap.c file for an example of how to use this
 | 
			
		||||
      extension.
 | 
			
		||||
 | 
			
		||||
   GLX_MESA_release_buffers
 | 
			
		||||
 | 
			
		||||
      Mesa associates a set of ancillary (depth, accumulation, stencil and
 | 
			
		||||
      alpha) buffers with each X window it draws into.  These ancillary
 | 
			
		||||
      buffers are allocated for each X window the first time the X window
 | 
			
		||||
      is passed to glXMakeCurrent().  Mesa, however, can't detect when an
 | 
			
		||||
      X window has been destroyed in order to free the ancillary buffers.
 | 
			
		||||
 | 
			
		||||
      The best it can do is to check for recently destroyed windows whenever
 | 
			
		||||
      the client calls the glXCreateContext() or glXDestroyContext()
 | 
			
		||||
      functions.  This may not be sufficient in all situations though.
 | 
			
		||||
 | 
			
		||||
      The GLX_MESA_release_buffers extension allows a client to explicitly
 | 
			
		||||
      deallocate the ancillary buffers by calling glxReleaseBuffersMESA()
 | 
			
		||||
      just before an X window is destroyed.  For example:
 | 
			
		||||
 | 
			
		||||
         #ifdef GLX_MESA_release_buffers
 | 
			
		||||
            glXReleaseBuffersMESA( dpy, window );
 | 
			
		||||
         #endif
 | 
			
		||||
         XDestroyWindow( dpy, window );
 | 
			
		||||
 | 
			
		||||
      This extension is new in Mesa 2.0.
 | 
			
		||||
 | 
			
		||||
   GLX_MESA_copy_sub_buffer
 | 
			
		||||
 | 
			
		||||
      This extension adds the glXCopySubBufferMESA() function.  It works
 | 
			
		||||
      like glXSwapBuffers() but only copies a sub-region of the window
 | 
			
		||||
      instead of the whole window.
 | 
			
		||||
 | 
			
		||||
      This extension is new in Mesa version 2.6
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Summary of X-related environment variables:
 | 
			
		||||
   MESA_RGB_VISUAL - specifies the X visual and depth for RGB mode (X only)
 | 
			
		||||
   MESA_CI_VISUAL - specifies the X visual and depth for CI mode (X only)
 | 
			
		||||
   MESA_BACK_BUFFER - specifies how to implement the back color buffer (X only)
 | 
			
		||||
   MESA_PRIVATE_CMAP - force aux/tk libraries to use private colormaps (X only)
 | 
			
		||||
   MESA_GAMMA - gamma correction coefficients (X only)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
----------------------------------------------------------------------
 | 
			
		||||
$Id: README.X11,v 3.11 2003/12/17 15:14:31 brianp Exp $
 | 
			
		||||
@@ -6,7 +6,7 @@ Requirements
 | 
			
		||||
============
 | 
			
		||||
 | 
			
		||||
  To build Mesa with DirectFB (DirectFBGL) support you need:
 | 
			
		||||
     - DirectFB at least 1.0.0 (http://directfb.org)
 | 
			
		||||
     - DirectFB at least 0.9.21 (http://directfb.org)
 | 
			
		||||
     - pkg-config at least 0.9 (http://pkgconfig.sf.net)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										74
									
								
								docs/RELNOTES-6.5
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								docs/RELNOTES-6.5
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,74 @@
 | 
			
		||||
 | 
			
		||||
                       Mesa 6.5 Release Notes
 | 
			
		||||
 | 
			
		||||
                           month, day, 2005
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Introduction
 | 
			
		||||
------------
 | 
			
		||||
 | 
			
		||||
Mesa uses an even/odd version number scheme like the Linux kernel.
 | 
			
		||||
Odd numbered versions (such as 6.5) designate new developmental releases.
 | 
			
		||||
Even numbered versions (such as 6.4) designate stable releases.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
New Features
 | 
			
		||||
------------
 | 
			
		||||
 | 
			
		||||
GL_EXT_timer_query  - used to get elapsed time information from the renderer.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Driver Interface Changes
 | 
			
		||||
------------------------
 | 
			
		||||
 | 
			
		||||
Stencil: The Driver.StencilOp/Func/Mask() functions have been replaced by
 | 
			
		||||
the two-sided versions: Driver.Stencil*Separate().
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
To Do
 | 
			
		||||
-----
 | 
			
		||||
Fix linux-glide target/driver.
 | 
			
		||||
Fix lambda calculation for frag progs.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Removed Extensions
 | 
			
		||||
------------------
 | 
			
		||||
 | 
			
		||||
The following extensions have been removed:
 | 
			
		||||
 | 
			
		||||
  GL_HP_occlusion_test - this is superceded by GL_ARB_occlusion_query.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
To Do (someday) items
 | 
			
		||||
---------------------
 | 
			
		||||
 Switch to freeglut
 | 
			
		||||
 Increase MAX_DRAWBUFFERS
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Driver			Status
 | 
			
		||||
----------------------	----------------------
 | 
			
		||||
DRI drivers		varies with the driver
 | 
			
		||||
XMesa (Xlib)		implements OpenGL 1.5
 | 
			
		||||
OSMesa (off-screen)	implements OpenGL 1.5
 | 
			
		||||
Glide (3dfx Voodoo1/2)	implements OpenGL 1.3
 | 
			
		||||
SVGA			implements OpenGL 1.3
 | 
			
		||||
Wind River UGL		implements OpenGL 1.3
 | 
			
		||||
Windows/Win32		implements OpenGL 1.5
 | 
			
		||||
DJGPP			implements OpenGL 1.5
 | 
			
		||||
GGI			implements OpenGL 1.3
 | 
			
		||||
BeOS			implements OpenGL 1.5
 | 
			
		||||
Allegro			needs updating
 | 
			
		||||
D3D			needs updating
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
----------------------------------------------------------------------
 | 
			
		||||
$Id: RELNOTES-6.5,v 3.1 2005/09/14 14:34:54 brianp Exp $
 | 
			
		||||
@@ -1407,42 +1407,10 @@ Mesa Version History
 | 
			
		||||
	- fragment programs that wrote result.depth.z didn't work
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
6.4.1  November 30, 2005
 | 
			
		||||
    Bug fixes:
 | 
			
		||||
	- redefining a vertex program string didn't take effect in TNL module
 | 
			
		||||
	- fixed occasional segfault upon vertex/fragment parsing error
 | 
			
		||||
	- vertex program LIT instruction didn't handle 0^0=1 correctly
 | 
			
		||||
	- fragment program fog option didn't work with glDrawPixels, glBitmap
 | 
			
		||||
	- USE_MGL_NAMESPACE didn't work for x86-64
 | 
			
		||||
	- OSMesa demos were missing from previous release tarballs
 | 
			
		||||
	- fixed problem with float->ushort conversion in glClear (bug 4992)
 | 
			
		||||
	- popping of GL_EYE_PLANE texgen state was broken (bug 4996)
 | 
			
		||||
	- popping of GL_SPOT_DIRECTION light state was broken (bug 5005)
 | 
			
		||||
	- fixed occasional triangle color interpolation problem on VMS
 | 
			
		||||
	- work around invalid free() call (bug 5131)
 | 
			
		||||
	- fixed BSD X server compilation problem by including stdint.h
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
6.4.2  February 2, 2006
 | 
			
		||||
6.5  month, day, 2005
 | 
			
		||||
    New:
 | 
			
		||||
	- added OSMesaColorClamp() function/feature
 | 
			
		||||
	- added wglGetExtensionStringARB() function
 | 
			
		||||
    Bug fixes:
 | 
			
		||||
	- fixed some problems when building on Windows
 | 
			
		||||
	- GLw header files weren't installed by installmesa script (bug 5396)
 | 
			
		||||
	- GL/glfbdev.h file was missing from tarballs
 | 
			
		||||
	- fixed TNL initialization bug which could lead to crash (bug 5791)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
6.5  March 31, 2006
 | 
			
		||||
    New:
 | 
			
		||||
	- OpenGL Shading Language support through GL_ARB_shader_objects,
 | 
			
		||||
	  GL_ARB_shading_language_100, GL_ARB_vertex_shader and
 | 
			
		||||
	  GL_ARB_fragment_shader (done by Michal Krol)
 | 
			
		||||
	- GL_EXT_packed_depth_stencil extension
 | 
			
		||||
	- GL_EXT_timer_query extension
 | 
			
		||||
	- GL_EXT_framebuffer_blit extension
 | 
			
		||||
	- GL_ARB_half_float_pixel
 | 
			
		||||
	- reflect demo improved to support multiple windows
 | 
			
		||||
	- singlebuffer demo (shows no/little-flicker single-buffered rendering)
 | 
			
		||||
	- r200: enable GL_ARB_texture_env_crossbar, separate the texture
 | 
			
		||||
@@ -1452,63 +1420,8 @@ Mesa Version History
 | 
			
		||||
	- radeon: add support for all 3 tmus, GL_ARB_texture_cube_map
 | 
			
		||||
	  and GL_EXT_fog_coord
 | 
			
		||||
	- MESA_GLX_ALPHA_BITS env var for xlib driver
 | 
			
		||||
	- many DRI driver updates (including screen rotation support
 | 
			
		||||
	  for the Intel DRI driver)
 | 
			
		||||
    Changes:
 | 
			
		||||
	- removed GL_HP_occlusion_test (use GL_ARB_occlusion_query instead)
 | 
			
		||||
	- removed GL_SGIX/SGIS_pixel_texture extensions
 | 
			
		||||
    Bug fixes:
 | 
			
		||||
	- fixed glxcontextmodes.c datatype problem (bug 5835)
 | 
			
		||||
	- fixed aix-gcc build/install bugs (bug 5874)
 | 
			
		||||
	- fixed some bugs in texture env program generation
 | 
			
		||||
	- glXCopyContext() didn't handle texture object bindings properly
 | 
			
		||||
	- glXCopyContext() didn't copy all lighting state
 | 
			
		||||
	- fixed FreeBSD config (Pedro Giffuni)
 | 
			
		||||
	- fixed some minor framebuffer object bugs
 | 
			
		||||
	- replaced dprintf() with _glu_printf() in GLU (bug 6244)
 | 
			
		||||
	- fixed a number of thread safety bugs/regressions
 | 
			
		||||
	- fixed a number of GLU tesselator bugs (John Shell, bug 6339)
 | 
			
		||||
	- paletted texturing was broken w/ floating point palettes (K. Schultz)
 | 
			
		||||
	- lots of assorted framebuffer object bug fixes
 | 
			
		||||
 | 
			
		||||
6.5.1  August 31, 2006
 | 
			
		||||
    New:
 | 
			
		||||
	- Intel i965 DRI driver
 | 
			
		||||
	- GL_APPLE_vertex_array_object extension (Ian Romanick)
 | 
			
		||||
	- GL_EXT_texture_sRGB extension
 | 
			
		||||
	- GL_EXT_gpu_program_parameters (Ian Romanick)
 | 
			
		||||
	- "engine" demo
 | 
			
		||||
	- updated fbdev driver and GLUT for fbdev (Sean D'Epagnier)
 | 
			
		||||
	- many updates to the DRI drivers
 | 
			
		||||
    Changes:
 | 
			
		||||
	- The glVertexAttribARB functions no longer alias the conventional
 | 
			
		||||
	  vertex attributes.
 | 
			
		||||
	- glxinfo program prints more info with -l option
 | 
			
		||||
	- GL_FRAGMENT_PROGRAM_NV and GL_FRAGMENT_PROGRAM_ARB are now
 | 
			
		||||
	  compatible, in terms of glBindProgramARB()
 | 
			
		||||
    Bug fixes:
 | 
			
		||||
	- fixed broken texture border handling for depth textures (bug 6498)
 | 
			
		||||
	- removed the test for duplicated framebuffer attachments, per
 | 
			
		||||
	  version 117 of the GL_EXT_framebuffer_object specification
 | 
			
		||||
	- fixed a few render-to-texture bugs, including render to depth texture
 | 
			
		||||
	- clipping of lines against user-defined clip planes was broken (6512)
 | 
			
		||||
	- assembly language dispatch for SPARC was broken (bug 6484)
 | 
			
		||||
	- assorted compilation fixes on various Unix platforms (Dan Schikore)
 | 
			
		||||
	- glPopAttrib could restore an invalid value for GL_DRAW_BUFFER
 | 
			
		||||
	- assorted minor fixes for 16 and 32 bit/channel modes
 | 
			
		||||
	- fixed assorted bugs in texture compression paths
 | 
			
		||||
	- fixed indirect rendering vertex array crashes (bug 6863)
 | 
			
		||||
	- glDrawPixels GL_INDEX_OFFSET didn't always work
 | 
			
		||||
	- fixed convolution memory leak (bug 7077)
 | 
			
		||||
	- rectangular depth textures didn't work
 | 
			
		||||
	- invalid mode to glBegin didn't generate an error (bug 7142)
 | 
			
		||||
	- 'normalized' parameter to glVertexAttribPointerARB didn't work
 | 
			
		||||
	- disable bogus GLX_SGI_video_sync extension in xlib driver
 | 
			
		||||
	- fixed R128 driver locking bug (Martijn van Oosterhout)
 | 
			
		||||
	- using evaluators with vertex programs caused crashes (bug 7564)
 | 
			
		||||
	- fragment.position wasn't set correctly for point/line primitives
 | 
			
		||||
	- fixed parser bug for scalar sources for GL_NV_fragment_program
 | 
			
		||||
	- max fragment program length was incorrectly 128, now 1024
 | 
			
		||||
	- writes to result.depth in fragment programs weren't clamped to [0,1]
 | 
			
		||||
	- fixed potential dangling pointer bug in glBindProgram()
 | 
			
		||||
	- fixed some memory leaks (and potential crashes) in Xlib driver
 | 
			
		||||
 
 | 
			
		||||
@@ -28,6 +28,7 @@ a:visited {
 | 
			
		||||
<li><a href="systems.html" target="MainFrame">Platforms and Drivers</a>
 | 
			
		||||
<li><a href="license.html" target="MainFrame">License & Copyright</a>
 | 
			
		||||
<li><a href="faq.html" target="MainFrame">FAQ</a>
 | 
			
		||||
<li><a href="VERSIONS" target="MainFrame">Version History</a>
 | 
			
		||||
<li><a href="relnotes.html" target="MainFrame">Release Notes</a>
 | 
			
		||||
<li><a href="thanks.html" target="MainFrame">Acknowledgements</a>
 | 
			
		||||
<li><a href="conform.html" target="MainFrame">Conformance Testing</a>
 | 
			
		||||
@@ -63,7 +64,8 @@ a:visited {
 | 
			
		||||
<b>Developer Topics</b>
 | 
			
		||||
<ul>
 | 
			
		||||
<li><a href="http://sourceforge.net/projects/mesa3d" target="_parent">SourceForge homepage</a>
 | 
			
		||||
<li><a href="repository.html" target="MainFrame">Source Code Repository</a>
 | 
			
		||||
<li><a href="cvs_access.html" target="MainFrame">CVS Access</a>
 | 
			
		||||
<li><a href="cvs_branches.html" target="MainFrame">CVS Branch Info</a>
 | 
			
		||||
<li><a href="utilities.html" target="MainFrame">Utilities</a>
 | 
			
		||||
<li><a href="helpwanted.html" target="MainFrame">Help Wanted</a>
 | 
			
		||||
<li><a href="devinfo.html" target="MainFrame">Development Notes</a>
 | 
			
		||||
@@ -72,7 +74,6 @@ a:visited {
 | 
			
		||||
<li><a href="fbdev-dri.html" target="MainFrame">fbdev/DRI Environment</a>
 | 
			
		||||
<li><a href="glfbdev-driver.html" target="MainFrame">glFBDev Driver</a>
 | 
			
		||||
<LI><A HREF="custom.html" target="MainFrame">Custom Development</A>
 | 
			
		||||
<LI><A HREF="dispatch.html" target="MainFrame">GL Dispatch</A>
 | 
			
		||||
</ul>
 | 
			
		||||
 | 
			
		||||
<b>Links</b>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										106
									
								
								docs/cvs_access.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										106
									
								
								docs/cvs_access.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,106 @@
 | 
			
		||||
<HTML>
 | 
			
		||||
 | 
			
		||||
<TITLE>CVS Access</TITLE>
 | 
			
		||||
 | 
			
		||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
 | 
			
		||||
 | 
			
		||||
<BODY>
 | 
			
		||||
 | 
			
		||||
<h1>CVS Access</h1>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
Mesa's CVS repository (code management system) is hosted on
 | 
			
		||||
<a href="http://www.freedesktop.org" target="_parent">freedesktop.org</a>.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
You may access the repository either as an
 | 
			
		||||
<a href="#anonymous">anonymous user</a> (read-only) or as a
 | 
			
		||||
<a href="#developer">developer</a>
 | 
			
		||||
(read/write).
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
You may also 
 | 
			
		||||
<a href="http://freedesktop.org/cgi-bin/viewcvs.cgi/mesa/Mesa/"
 | 
			
		||||
target="_parent">browse the CVS repository</a>.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<a name="anonymous">
 | 
			
		||||
<H2>Anonymous CVS Access</H2>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
Anonymous, public, read-only access to the CVS repository is available.
 | 
			
		||||
Here are the basic instructions for Unix systems:
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<ol>
 | 
			
		||||
<li>Install CVS client software on your computer if needed.
 | 
			
		||||
    Version 1.9.28 is known to work.
 | 
			
		||||
<li>Login as an anonymous user:
 | 
			
		||||
    <pre>
 | 
			
		||||
    cvs -d:pserver:anonymous@pdx.freedesktop.org:/cvs/mesa login
 | 
			
		||||
    </pre>
 | 
			
		||||
    Just press Enter/Return when prompted for a password.
 | 
			
		||||
    <br>
 | 
			
		||||
    <br>
 | 
			
		||||
<li>Check out the code:
 | 
			
		||||
    <pre>
 | 
			
		||||
    cvs -d:pserver:anonymous@pdx.freedesktop.org:/cvs/mesa co Mesa
 | 
			
		||||
    </pre>
 | 
			
		||||
</ol>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<p>To update your Mesa CVS source to the latest CVS source:</p>
 | 
			
		||||
 | 
			
		||||
<ol>
 | 
			
		||||
<li><code>cd Mesa</code>
 | 
			
		||||
<li><code>cvs -z3 -d:pserver:anonymous@pdx.freedesktop.org:/cvs/mesa update</code>
 | 
			
		||||
</ol>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<a name="developer">
 | 
			
		||||
<H2>Developer CVS Access</H2>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
Mesa developers working with the Mesa CVS repository need to first
 | 
			
		||||
have an account on <a href="http://www.freedesktop.org" target="_parent">
 | 
			
		||||
freedesktop.org</a>.
 | 
			
		||||
To get an account, please ask Brian or the other Mesa developers for
 | 
			
		||||
permission.
 | 
			
		||||
Then, if there are no objections, follow this
 | 
			
		||||
<a href="http://www.freedesktop.org/wiki/AccountRequests" target="_parent">
 | 
			
		||||
procedure</a>.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
Once your account is established, you can check out the Mesa CVS tree
 | 
			
		||||
with:
 | 
			
		||||
<pre>
 | 
			
		||||
   setenv CVS_RSH ssh        (if using a csh-like shell)
 | 
			
		||||
</pre>
 | 
			
		||||
<em>OR</em>
 | 
			
		||||
<pre>
 | 
			
		||||
   export CVS_RSH=rsh        (if using a bash-like shell)
 | 
			
		||||
</pre>
 | 
			
		||||
followed by:
 | 
			
		||||
<pre>
 | 
			
		||||
   cvs -d:ext:yourusername@pdx.freedesktop.org:/cvs/mesa co Mesa
 | 
			
		||||
</pre>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
Of course, replace <em>yourusername</em> with your actual login name.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
Subsequent updates should only require:
 | 
			
		||||
</p>
 | 
			
		||||
<pre>
 | 
			
		||||
   cvs update
 | 
			
		||||
</pre>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										80
									
								
								docs/cvs_branches.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										80
									
								
								docs/cvs_branches.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,80 @@
 | 
			
		||||
<HTML>
 | 
			
		||||
 | 
			
		||||
<TITLE>CVS Branches</TITLE>
 | 
			
		||||
 | 
			
		||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
 | 
			
		||||
 | 
			
		||||
<BODY>
 | 
			
		||||
 | 
			
		||||
<H1>CVS Branch Information</H1>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
At any given time, there may be several active branches in Mesa's
 | 
			
		||||
CVS repository.
 | 
			
		||||
 | 
			
		||||
Generally, the CVS trunk contains the latest development (unstable)
 | 
			
		||||
code while a CVS branch has the latest stable code.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
Currently (Oct 2004), the trunk is the Mesa 6.3 development code
 | 
			
		||||
while the mesa_6_2_branch branch has the stable Mesa 6.2.x code.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
Mesa releases use an even/odd numbering scheme to represent stable/development
 | 
			
		||||
releases.
 | 
			
		||||
 | 
			
		||||
For example, Mesa 6.2 (0 is considered even) is a stable release while
 | 
			
		||||
Mesa 6.3 is a development release.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
To checkout a specific CVS branch pass <code>-r</code> and
 | 
			
		||||
the branch tag after your CVS command.
 | 
			
		||||
 | 
			
		||||
For example <code>cvs checkout -r mesa_6_2_branch Mesa</code> will
 | 
			
		||||
checkout the 6.2 branch and <code>cvs update -r
 | 
			
		||||
mesa_6_2_branch</code> will convert your current CVS tree to the 6.2
 | 
			
		||||
branch.
 | 
			
		||||
 | 
			
		||||
Consult <a href="http://www.durak.org/cvswebsites/doc/cvs_5.php3#SEC54"
 | 
			
		||||
target="_parent">http://www.durak.org/cvswebsites/doc/cvs_5.php3#SEC54</a>
 | 
			
		||||
for more on branching in CVS.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
To see a list of all the CVS branches run <code>cvs log README</code> (or any
 | 
			
		||||
other file) and look for the section labeled <code>symbolic names</code>.
 | 
			
		||||
You'll see something like this:
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<pre>  symbolic names:
 | 
			
		||||
        mesa_4_0: 1.3
 | 
			
		||||
        mesa_4_0_branch: 1.3.0.6
 | 
			
		||||
        mesa_3_5: 1.3
 | 
			
		||||
        mesa_3_4_2: 1.3
 | 
			
		||||
        mesa_3_4_1: 1.3
 | 
			
		||||
        mesa_3_4: 1.3
 | 
			
		||||
        mesa_3_4_branch: 1.3.0.4
 | 
			
		||||
        mesa_3_3: 1.3
 | 
			
		||||
        mesa_3_2_1: 1.1.1.1
 | 
			
		||||
        mesa_3_3_texture_env_combine2: 1.3.0.2
 | 
			
		||||
        mesa_3_2: 1.1.1.1
 | 
			
		||||
        mesa_3_2_beta_1: 1.1.1.1
 | 
			
		||||
        mesa_3_1: 1.1.1.1
 | 
			
		||||
        mesa_3_2_dev: 1.1.1.1.0.2
 | 
			
		||||
        mesa_3_1_beta_3: 1.1.1.1
 | 
			
		||||
        start: 1.1.1.1
 | 
			
		||||
        mesa: 1.1.1
 | 
			
		||||
</pre>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
Most will be obsolete branches.  Generally, the newer branches are at
 | 
			
		||||
the top.  Ask on the mesa3d-dev mailing list to learn which branches
 | 
			
		||||
are active.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
@@ -34,15 +34,11 @@ To add a new GL extension to Mesa you have to do at least the following.
 | 
			
		||||
   corresponding Python scripts.
 | 
			
		||||
</li>
 | 
			
		||||
<li>
 | 
			
		||||
   Add a new entry to the <code>gl_extensions</code> struct in mtypes.h
 | 
			
		||||
</li>
 | 
			
		||||
<li>
 | 
			
		||||
   Update the <code>extensions.c</code> file.
 | 
			
		||||
</li>
 | 
			
		||||
<li>
 | 
			
		||||
   From this point, the best way to proceed is to find another extension,
 | 
			
		||||
   similar to the new one, that's already implemented in Mesa and use it
 | 
			
		||||
   as an example.
 | 
			
		||||
   Find an existing extension that's similar to the new one and search
 | 
			
		||||
   the sources for code related to that extension.
 | 
			
		||||
   Implement new code as needed.
 | 
			
		||||
   In general, new state variables will be added to mtypes.h.  If the
 | 
			
		||||
   extension is rather large, try to implement it in a new source file.
 | 
			
		||||
</li>
 | 
			
		||||
<li>
 | 
			
		||||
   If the new extension adds new GL state, the functions in get.c, enable.c
 | 
			
		||||
@@ -87,7 +83,7 @@ Brace example:
 | 
			
		||||
Here's the GNU indent command which will best approximate my preferred style:
 | 
			
		||||
</p>
 | 
			
		||||
<pre>
 | 
			
		||||
	indent -br -i3 -npcs --no-tabs infile.c -o outfile.c
 | 
			
		||||
	indent -br -i3 -npcs infile.c -o outfile.c
 | 
			
		||||
</pre>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -149,7 +145,7 @@ DEMO_NAME are correct.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
Update the docs/news.html file and docs/download.html files.
 | 
			
		||||
Update the docs/news.html file and docs/contents.html files.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
 
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user