#	LablGL and Togl configuration file
#
# Please have a look at the config/Makefile in the Objective Caml distribution,
# or at the labltklink script to get the information needed here
#

##### Adjust these always

# Uncomment if you have the fast ".opt" compilers
CAMLC = ocamlc.opt
CAMLOPT = ocamlopt.opt
LIBRARIAN = ocamlmklib -verbose -ocamlc ocamlc -ocamlopt ocamlopt

# Where to put the lablgl script
OCAMLDIR = c:/Program Files/Objective Caml MSVC
BINDIR = $(OCAMLDIR)/bin
DLLDIR = $(OCAMLDIR)/lib/stublibs
INSTALLDIR = $(OCAMLDIR)/lib/lablGL

# Where to find X headers
XINCLUDES = -I/usr/X11R6/include
# X libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0)
#XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lX11

# Where to find Tcl/Tk headers
# This must the same version as for LablTk
TK_ROOT = C:/Tcl
TKINCLUDES = -I$(TK_ROOT)/include
# Tcl/Tk libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0)
TKLIBS0 = -L$(TK_ROOT)/lib tk84.lib tcl84.lib gdi32.lib user32.lib
TKLIBS = -ldopt "$(TKLIBS0)" -cclib "$(TKLIBS0)"

# Where to find OpenGL/Mesa/Glut headers and libraries
GLINCLUDES =
GLLIBS0 = opengl32.lib glu32.lib
GLLIBS = -ldopt "$(GLLIBS0)" -cclib "$(GLLIBS0)"
GLUTLIBS0 = glut32.lib
GLUTLIBS = -ldopt "$(GLUTLIBS0)" -cclib "$(GLUTLIBS0)"
# The following libraries may be required (try to add them one at a time)
#GLLIBS = -lGL -lGLU -lXmu -lXext -lXi -lcipher -lpthread

# How to index a library after installing (ranlib required on MacOSX)
RANLIB = :
#RANLIB = ranlib

##### Uncomment these for windows
#TOOLCHAIN = msvc
XA = .lib
XB = .bat
XE = .exe
XO = .obj
XS = .dll

##### Adjust these if non standard

# The Objective Caml library directory
#LIBDIR = `ocamlc -where`

# Where to put dlls (if dynamic loading available)
#DLLDIR = `ocamlc -where`/stublibs

# Where to put LablGL (standard)
#INSTALLDIR = $(LIBDIR)/lablGL

# Where is Togl (default)
#TOGLDIR = Togl

# Togl Window System
# Should be one of TOGL_X11, TOGL_WGL (windows), TOGL_AGL (macosx)
# TOGL_AGL isn't supported currently
TOGL_WS = TOGL_WGL

# C Compiler options
COPTS = -c
