# Configuration data for Solaris with IrisGL/OpenGL

# with GCC (preferred):
CC = gcc
CXX = g++
MAKEDEPEND = gcc -M
PROFLAGS = # -pg 		# for profiling
DEBUGFLAGS = -g 		# for debugging
OPTFLAGS = -O3 -Wall -pedantic
CXXFLAGS = 

# with SUN's cc:
#CC = cc -Xa
#CXX = CC -Dbool=int -Dfalse=0 -Dtrue=1
##MAKEDEPEND = cc -xM1
#MAKEDEPEND = gcc -M		# handles both C and C++ files unlike cc.
#PROFLAGS = # -xpg
#DEBUGFLAGS = # -g
#OPTFLAGS = -fast -native

RANLIB = touch	     # replace by touch if ranlib doesn't exists on your system

# -DSUNFIX fixes some problems with missing function prototypes on SUN/gcc
EXTRAFLAGS = -DDEFAULT_GAMMA=1 -DSUNFIX
EXTRASRCS = bzero.c

################################################################
# directory where to install RenderPark
INSTALLDIR = /localhost/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

################################################################
# NPGL (commercial IrisGL clone from Portable Graphics inc.)
# DRIVER = gl
#
# NPGLHOME = /opt/npgl/sun5
# XGLHOME = /opt/SUNWits/Graphics-sw/xgl-3.0
#
# DRIVERFLAGS = -DNPGL_CONST=const -I$(NPGLHOME)/include -I$(XGLHOME)/include 
# DRIVERLIBS = -R$(NPGLHOME)/lib -R$(XGLHOME)/lib \
#	     -L$(NPGLHOME)/lib -L$(XGLHOME)/lib -lnpgl_ansi -lw -lxgl

################################################################
# OpenGL/Mesa
#
#
# OpenGL from TGS/g5g: add -ldga to DRIVERLIBS + don't forget to set the 
# OGLHOME environment variable
# to the root of the installed OpenGL directory before running the program
# in order the pasword file to be found. Also set the TGS_OGL_HINT environment
# variable to the right value in order to take advantage of 3D graphics
# hardware (LEO in my case).
#
# Mesa: make symbolics links libGL.a and libGLU.a to libMesaGL.a
# and libMesaGLU.a in the directory where the Mesa libraries reside.
#
# SUNs OpenGL on Ultra/Creator3D is in /usr/openwin. You don't have to
# specify -I or -R or -L options: they are the same as for the X stuff.
# (SUNs OpenGL on Solaris 2.6 didn't work for me: something wrong with
# Z-buffer. Actually, most of the glut or mesa demos didn't work either., PhB dec-97)
#
DRIVER = opengl

OGLHOME = /cw/graphics/solaris
# OGLHOME = /usr/openwin
DRIVERFLAGS = -I$(OGLHOME)/include
DRIVERLIBS = -R$(OGLHOME)/lib -L$(OGLHOME)/lib -lGLU -lGL

################################################################
X11HOME = /usr/local/X11
# X11HOME = /usr/openwin
XINCLUDES = # -I$(X11HOME)/include 
XLIBS = -R$(X11HOME)/lib -L$(X11HOME)/lib \
	-lXt -lSM -lICE -lXext -lXi -lXmu -lX11 -lnsl -lgen -lsocket 

# MOTIFHOME = /usr/openwin
MOTIFHOME = /usr/local/X11
MOTIFINCLUDES = -I$(MOTIFHOME)/include
# -lXpm library necessary for Motif >=2.0, not for Motif <2.0
# -lXp necessary for Motif 2.1
MOTIFLIBS = -R$(MOTIFHOME)/lib -L$(MOTIFHOME)/lib -lXm # -lXpm -lXp

