# Configuration data for Linux/PPC # with GCC: CC = gcc CXX = g++ MAKEDEPEND = gcc -M PROFLAGS = # -pg # for profiling DEBUGFLAGS = -g # # for debugging # # Tested just on G3 with 750 processor. Consult GCC manual # (at http://gcc.gnu.org/onlinedocs/gcc_toc.html for example) for # machine-dependent omptimization options. # OPTFLAGS = -O3 -Wall -pedantic -mpowerpc-gpopt -mpowerpc-gfxopt -mcpu=750 CXXFLAGS = # C++ specific flags # no ranlib command on Linux. Use 'touch' instead. RANLIB = touch # See 0COMPILATIONFLAGS to see what flags you can set if you care. EXTRAFLAGS = -DSOFT_ID_RENDERING -DDEFAULT_GAMMA=1.7 ################################################################ # directory where to install RenderPark with make install. INSTALLDIR = /usr/local/graphics BINDIR = ${INSTALLDIR}/bin DATADIR = ${INSTALLDIR}/lib/rpk ################################################################ # 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. POOLFLAGS = -DPOOL_ALIGN=4 # -DSANITY_CHECKS ################################################################ # OpenGL/Mesa DRIVER = opengl # Mesa (free OpenGL-like library: www.mesa3d.org) MESAHOME = /usr DRIVERFLAGS = -I$(MESAHOME)/include $(HWFLAGS) # on recent systems, 'MesaGL' is installed as 'GL' and 'MesaGLU' as 'GLU' # (it does not matter whether you have Mesa or a GL/GLU library from some # commercial vendor installed: RenderPark works well with all) #DRIVERLIBS = -L$(MESAHOME)/lib -lMesaGLU -lMesaGL $(HWLIBS) DRIVERLIBS = -L$(MESAHOME)/lib -lGLU -lGL $(HWLIBS) # specific flags for hardware supported by Mesa # Glide driver (3dfx graphics boards) #HWFLAGS = #GLIDELIBDIR = # directory where glide libs are installed #HWLIBS = $(GLIDELIBDIR) -lglide2x -ltexus ################################################################ # X window system flags and files: X11HOME = /usr/X11R6 XINCLUDES = -I$(X11HOME)/include XLIBS = -L$(X11HOME)/lib -lXt -lXmu -lX11 $(CCMALLOCLIB) # CCMALLOCLIB = -lccmalloc -ldl MOTIFHOME = MOTIFINCLUDES = # -lXpm library necessary for Motif >=2.0, not for Motif <2.0 # -lXp necessary for Motif 2.1 MOTIFLIBS = -lXm -lXpm -lXp ################################################################ # TIFF support # TIFFHOME = /usr/local/graphics # 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 = -DOLD_TIFF -I$(TIFFHOME)/include # Some tiff installation require that you also link with the jpeg and # zlib libraries. TIFFLIB = -L$(TIFFHOME)/lib -ltiff -ljpeg -lz ##################################################################### # VRML INPUT support (VRML output is always supported) # if you don't want VRML input, compile with -DNO_VRML and uncomment the # following lines. VRMLFLAGS = -DNO_VRML # VRMLDIR = ~/VRML # VRMLFLAGS = -I$(VRMLDIR)/include # VRMLLIB = -L$(VRMLDIR)/lib -lvrml # # PPC GCC complains abpout using -c and -o at once. This rule # redefines the (implicit) *.c -> *.o rule. # %.o: %.c $(CC) $(CFLAGS) $(CPPFLAGS) -c $<