# Configuration data for Irix/SGI OpenGL # 05/17/97 Oskar Itzinger (oskar@opec.org) # 08/28/98 Philippe Bekaert (Philippe.Bekaert@cs.kuleuven.ac.be) ## SGI C compiler: CXX = CC # -Dtrue=1 -Dfalse=0 -Dbool=int CC = cc MAKEDEPEND = gcc -M # MipsPRO 7.2 cc doesn't like C++ sources and CC # hates C sources, while we mix C and C++ sources. # Fortunately, gcc likes both C and C++. # Take care however not to include gcc-incompatible # flags in CFLAGS !! PROFLAGS = DEBUGFLAGS = # -g WARNFLAGS = -fullwarn -woff 1174 -woff 3201 OPTFLAGS = -O3 -n32 $(WARNFLAGS) # Change -n32 to -64 if you want to use the 64 bit ABI, which lets you # use more than 2GB of RAM (also change POOL_ALIGN below to 8 then). #OPTFLAGS = -Ofast=IP30 $(WARNFLAGS) # the fastest on our Octane #OPTFLAGS = -Ofast=IP28 $(WARNFLAGS) # R10000 Indigo^2 #OPTFLAGS = -Ofast=IP27 -64 $(WARNFLAGS) # R12000 Onyx w/ >2GB RAM #OPTFLAGS = -O3 -n32 -mips4 -r10000 $(WARNFLAGS) # linking is much faster #OPTFLAGS = -g3 -n32 -mips4 -r10000 $(WARNFLAGS) # debugging + optimisations #OPTFLAGS = -g -n32 -mips4 -r10000 $(WARNFLAGS) # debugging without opt. CXXFLAGS = ## GCC: #CXX = g++ #CC = gcc #MAKEDEPEND = gcc -M #PROFLAGS = # -pg # for profiling #DEBUGFLAGS = -g # for debugging #OPTFLAGS = -O3 -pedantic -Wall -ansi -mips4 -mabi=n32 -mcpu=r8000 #CXXFLAGS = RANLIB = touch # See 0COMPILATIONFLAGS to see what flags you can set if you care. EXTRAFLAGS = -DDEFAULT_GAMMA=1 -DNOPOOLS ################################################################ # shared library generation - comment out for static libraries #MKLIB = mklib.irix6-n32 #LIBEXT = so #MKLIBFLAGS = # or for 64-bit shared libraries: #MKLIB = mklib.irix6-64 #LIBEXT = so #MKLIBFLAGS = ################################################################ # directory where to install XRML INSTALL = /opt/gnu/bin/cp -v INSTALL_LIB = /opt/gnu/bin/cp -av # copies links as links INSTALLDIR = /usr/local RPATHFLAGS = -rpath $(INSTALLDIR)/lib ################################################################ # Flags for the POOLS library: # Cells will be aligned to a POOL_ALIGN boundary if defined, or an # 8-byte boundary if not defined. If the program mysteriously crashes # when starting up when porting to a new architecture, let # the following empty. # CHANGE to 8 if you want 64-bit ABI (for using more than 2GB RAM e.g.)!!! # NOTE: you don't want to use POOLS anymore. It's buggy and the memory # management in recent UNIX systems got unbeatable anyways. # Compile with -DNOPOOLS POOLFLAGS = -DPOOL_ALIGN=4 # -DSANITY_CHECKS ################################################################ # SGI/OpenGL --- The Right Thing DRIVER = opengl # OpenGL DRIVERFLAGS = DRIVERLIBS = -L/usr/lib/X11 -lGLU -lGL # Mesa. Define OSMESA if you want off-screen rendering with MESA. #MESAHOME = /localhost/graphics #DRIVERFLAGS = -DOSMESA -I$(MESAHOME)/include #DRIVERLIBS = -L$(MESAHOME)/lib -rpath $(MESAHOME)/lib -lMesaGLU -lMesaGL ################################################################ X11HOME = XINCLUDES = -I/usr/include/X11 XLIBS = -L/usr/lib/X11 -lXt -lX11 MOTIFHOME = MOTIFINCLUDES = MOTIFLIBS = -lXm ################################################################ # TIFF support # if you don't want/need TIFF support, uncomment all the following lines #TIFFHOME = /usr/local/graphics TIFFHOME = /usr # flags: -DNO_TIFF if you have no TIFF library, # -DOLD_TIFF if you have an old TIFF library without the high dynamic # range LOGLuv encoding (version prior to 3.4beta037) # omit -DOLD_TIFF if you have a recent TIFF library with the HDR # encoding # With the old tiff library, you will not be able to save computed images in # high dynamic range format (by using the .logluv file suffix). The regular # RGB low dynamic range TIFF format can be written still however. # If you are impatient to check and don't care about high dynamic range # images, specify -DOLD_TIFF. TIFFLAGS = -I$(TIFFHOME)/include # Some tiff installation require that you also link with the jpeg and # zlib libraries. #TIFFLIB = -L$(TIFFHOME)/lib -ltiff -ljpeg -lz TIFFLIB = -L$(TIFFHOME)/lib32 -ltiff