# Config.common: platform independent configuration data + defaults for
# platform dependent parameters.
# #####################################################################

# The following variables define what radiance and raytracing methods 
# are to be offered.

# world-space radiance computation methods:
includeGalerkinRadiosity = true
includeMonteCarloRadiosity = true
includeDensityEstimation = false
includePhotonMap = true
includeHURA = false

# the following require includeMonteCarloRadiosity to be true
includeRandomWalkRadiosity = true
includeStochasticRelaxationRadiosity = true

# pixel-based radiance computation methods (raytracing methods):
includeStochasticRayTracing = true
includeBidirectionalPathTracing = true


#####################################################################
# compilation flags common to all platforms
GLOBALFLAGS = -DRGBCOLORS -DNOPOOLS


#####################################################################
# The remainder of this file contains default for platform specific
# configuration parameters. 
#
# THE DEFAULT VALUES BELOW MAY BE OVERRIDEN IN THE Config.site FILE !!!
#
# (One day, we will make a configure script that will find out everything
# for you.)

#####################################################################
# Default web browser and URL where to find RenderPark home page
# and online documentation.

WEBBROWSER="\"netscape %s &\""
RPKHOME="\"http://www.cs.kuleuven.ac.be/cwis/research/graphics/RENDERPARK/\""
RPKHTMLDOC="\"http://www.cs.kuleuven.ac.be/cwis/research/graphics/RENDERPARK/DOC/\""

#####################################################################
# compiler and other programs. Again: these are defaults that might
# be overriden in the platform-dependent Config.site file
CXX = CC
CC = cc
MAKEDEPEND = gcc -M
PROFLAGS =
DEBUGFLAGS =
OPTFLAGS =
CXXFLAGS =

RM = rm
TOUCH = touch
YACC = yacc -d
LEX = lex
SYMLINK = ln -sf
AR = ar rcu
RANLIB = ranlib
INSTALL = cp
UNINSTALL = -$(RM)

EXTRAFLAGS = -DDEFAULT_GAMMA=1.3 # -DWMP_WEIGHTS

# WMP_WEIGHTS must be set for using Galerkin direct & indirect
# and bidirectional path tracing together

EXTRASRCS =

################################################################
# directory where to install RenderPark
INSTALLDIR = /usr/local
BINDIR = ${INSTALLDIR}/bin
INCDIR = ${INSTALLDIR}/include
LIBDIR = ${INSTALLDIR}/lib
DATADIR = ${INSTALLDIR}/lib/vrml

# directory containing this file
TOPDIR = `pwd`

################################################################
# 3D graphics driver: three drivers are supported:
# opengl	: OpenGL driver (default and recommended)
# gl 		: old IrisGL and clones on SGI and SUN
# starbase 	: on HP
# The driver name corresponds to the name of a .c file implementing
# the routines defined in render.h: a symbolic link 'render.c' 
# to $(DRIVER).c will be made.
#
# Each of these needs its own compile flags (e.g. for including
# header files -I<path>) and libraries (including path -L<path> where to
# find the library and possibly run-time library path -R<path> on
# Solaris or -rpath <path> on SGI if the library is a shared library
# that is not in a default place).
DRIVER = opengl
DRIVERFLAGS =
DRIVERLIBS = -lGLU -lGL

################################################################
# X/Motif stuff
XINCLUDES =
# some people need to link with -lXmu, -lXext or other libraries
# such as '-lnsl -lgen -lsocket' on SUN or '-lPW -ldld' on HP.
XLIBS = -lXt -lX11

MOTIFINCLUDES = 
# -lXpm is needed for Motif >=2.0, -lXp is needed for Motif >=2.1
MOTIFLIBS = -lXm

#####################################################################
# VRML INPUT support (VRML output is always supported)
VRMLFLAGS = -DNO_VRML
VRMLLIB =

#####################################################################
# TIFF support:
# You need Sam Lefflers TIFF library if you want to be able to write
# TIFF image output. You can obtain this library from
# ftp://ftp.sgi.com/graphics/

# If you don't want TIFF support, uncomment the following line
TIFFLAGS = -DNO_TIFF

# If you want TIFF support, uncomment the following lines instead
# (you might need to specify a path to the include files and library)
# TIFFLIB = -ltiff
# TIFFLAGS =

# Define -DOLD_TIFF if you have a pre-3.4beta037 (august 1997)
# version of the TIFF library. You won't be able to write your raytraced
# images in high-dynamic range (LogLuv) TIFF format.
# TIFFLAGS = -DOLD_TIFF


#####################################################################
# There should be no need to change anything here below
MKDEPFLAGS = ${THISDIRFLAGS} ${EXTRAFLAGS} $(GLOBALFLAGS) ${VRMLFLAGS} $(MOTIFINCLUDES) $(XINCLUDES) $(CMDCFLAGS)
CFLAGS = ${MKDEPFLAGS} ${PROFLAGS} ${DEBUGFLAGS} ${OPTFLAGS}
LDFLAGS = ${THISDIRLDFLAGS} ${PROFLAGS} ${DEBUGFLAGS} ${OPTFLAGS}
LIBS = ${THISDIRLIBS} $(TIFFLIB) $(VRMLLIB) $(DRIVERLIBS) $(MOTIFLIBS) $(XLIBS) -lm


# default rule
default: all

.C.o:
	$(CXX) -c $(CFLAGS) $(CXXFLAGS) $(CPPFLAGS) $*.C

# cleaning commands common to all directories
cleangen:
	-$(RM) -rf core *.o *~ *% ii_files trash_heap deps
	-$(TOUCH) deps
