Glut.cf
上传用户:xk288cn
上传日期:2007-05-28
资源大小:4876k
文件大小:8k
- XCOMM Copyright (c) Mark J. Kilgard, 1994, 1997, 1998.
- XCOMM Glut.cf - GLUT distribution Imakefile configuration info
- /* LINUX USERS: Remove the "/* " characters in the #define line
- below this comment in order to use Linux shared objects. */
- /* #define UseSharedObjects 1 /**/
- /* MESA USERS: Remove the "/* " characters in the #define line
- below this comment and change the "#define MesaDir" line to
- match the top-level directory of your Mesa source tree. */
- /* #define UseMesa 1 /**/
- #define MesaDir /usr/Mesa-3.0 /* UPDATE ME! */
- #ifdef UseMesa
- XCOMM using Mesa (the freeware OpenGL implementation) by Brian Paul
- MESA_DIR = MesaDir
- MESA_INCLUDE = -I$(MESA_DIR)/include
- MESA_LIB = -L$(MESA_DIR)/lib
- MESAGL = $(MESA_LIB) -lMesaGL
- MESAGLU = $(MESA_LIB) -lMesaGLU
- #endif
- #ifndef MathLibrary /* introduced with X11R6 */
- #define MathLibrary -lm
- #endif
- #ifndef SaberProgramTarget /* in X11R5 but removed in X11R6 */
- #define SaberProgramTarget(program,srclist,objlist,locallibs,syslibs)
- #endif
- #ifdef SunArchitecture
- /*
- * Solaris has a non-standard way of placing libraries
- * and header files. This should work for Template Graphics Systems'
- * OpenGL implementation, assuming your OGLHOME and OPENWINHOME
- * environment variables are set correctly.
- */
- EXTRA_INCLUDES = -I$(TOP)/include -I$(OGLHOME)/include -I$(OPENWINHOME)/include $(MESA_INCLUDE)
- #ifdef UseMesa
- OPENGL = $(MESAGL)
- GLU = $(MESAGLU)
- #else
- OPENGL = -L$(OGLHOME)/lib -lGL -L$(OPENWINHOME) -ldga
- GLU = -L$(OGLHOME)/lib -lGLU
- #endif
- /* XXX Is this right, Template?? */
- INVENTOR = -L$(OGLHOME)/lib -lInventor
- GLUT_DEPLIBS = $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- GLUT_LIBS = $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- MUI_DEPLIBS = $(DEPMUI) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- MUI_LIBS = $(MUI) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- GLE_DEPLIBS = $(DEPGLE) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- GLE_LIBS = $(GLE) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- GLSMAP_DEPLIBS = $(DEPGLSMAP) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- GLSMAP_LIBS = $(GLSMAP) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- #else /* Everybody but Sun... */
- #ifdef AlphaArchitecture
- /* Alpha suggestions from Andrej Panjkov (mataap@pop.latrobe.edu.au). */
- /* Andrej writes: There is a bug in one of the imake configuration
- files supplied with Digital Unix 3.2c that will cause the build to
- fail. In the file /usr/lib/X11/config/osflib.tmpl, the reference to
- libXi.a should be changed to libXi.so (which is in the correct
- directory /usr/shlib). Root access is needed to fix this bug. I
- don't know if the bug persists in later versions of DU. */
- #if 0 /* Not using now. */
- /*
- * Digital puts all Imake symbols for use with OpenGL in OpenGL.tmpl, so use
- * the contents of that file instead of the definitions here.
- */
- #include <OpenGL.tmpl>
- EXTRA_INCLUDES = GLUTInclude $(MESA_INCLUDE)
- #else
- EXTRA_INCLUDES = -I$(TOP)/include $(MESA_INCLUDE)
- #endif
- INVENTOR = -lInventor
- /* Suggested by Andrej Panjkov (mataap@pop.latrobe.edu.au) */
- DEPGLUTLIB = $(TOP)/lib/glut/libglut.a
- GLUTLIB = $(TOP)/lib/glut/libglut.a
- GLUT_LIBS = $(GLUTLIB) $(GLULIB) $(GLLIB) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- GLUT_DEPLIBS = $(DEPGLUTLIB) $(DEPGLULIB) $(DEPGLLIB) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- MUI_LIBS = $(MUI) $(GLUTLIB) $(GLULIB) $(GLLIB) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- MUI_DEPLIBS = $(DEPMUI) $(DEPGLUTLIB) $(DEPGLULIB) $(DEPGLLIB) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- GLE_LIBS = $(GLE) $(GLUTLIB) $(GLULIB) $(GLLIB) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- GLE_DEPLIBS = $(DEPGLE) $(DEPGLUTLIB) $(DEPGLULIB) $(DEPGLLIB) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- GLSMAP_LIBS = $(GLSMAP) $(GLUTLIB) $(GLULIB) $(GLLIB) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- GLSMAP_DEPLIBS = $(DEPGLSMAP) $(DEPGLUTLIB) $(DEPGLULIB) $(DEPGLLIB) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- #else /* Everybody but Sun or DEC Alpha... */
- /*
- * This should work for normal vendors that put their OpenGL and X
- * libraries and headers in standard places (or at least where
- * imake configuration files know where they are).
- */
- #ifdef HPArchitecture
- /* Nate Robbins (E&S) reports that HP does not have its Xmu.h header in
- the standard place. */
- XMU_HEADERS = /usr/contrib/X11R5/include/
- EXTRA_INCLUDES = -I$(TOP)/include -I$(XMU_HEADERS) $(MESA_INCLUDE)
- #else
- EXTRA_INCLUDES = -I$(TOP)/include $(MESA_INCLUDE)
- #endif
- GLUT_DEPLIBS = $(DEPGLUT) $(DEPXMULIB) $(DEPXLIB)
- GLUT_LIBS = $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XLIB) MathLibrary
- #ifdef UseMesa
- OPENGL = $(MESAGL)
- GLU = $(MESAGLU)
- #else
- OPENGL = -lGL
- GLU = -lGLU
- #endif
- INVENTOR = -lInventor
- GLUT_DEPLIBS = $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- GLUT_LIBS = $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- MUI_DEPLIBS = $(DEPMUI) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- MUI_LIBS = $(MUI) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- GLE_DEPLIBS = $(DEPGLE) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- GLE_LIBS = $(GLE) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- GLSMAP_DEPLIBS = $(DEPGLSMAP) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
- GLSMAP_LIBS = $(GLSMAP) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
- #endif
- #endif
- #ifdef UseSharedObjects
- # for Linux shared objects
- #ifndef AlphaArchitecture
- DEPGLUT = $(TOP)/lib/glut/libglut.so /* from PFM 6/31/96 */
- GLUT = $(TOP)/lib/glut/libglut.so /* from PFM 6/31/96 */
- #endif
- DEPMUI = $(TOP)/lib/mui/libmui.so
- MUI = $(TOP)/lib/mui/libmui.so
- DEPGLE = $(TOP)/lib/gle/libgle.so
- GLE = $(TOP)/lib/gle/libgle.so
- DEPGLSMAP = $(TOP)/lib/glsmap/libglsmap.so
- GLSMAP = $(TOP)/lib/glsmap/libglsmap.so
- #else
- # for static objects
- #ifndef AlphaArchitecture
- DEPGLUT = $(TOP)/lib/glut/libglut.a
- GLUT = $(TOP)/lib/glut/libglut.a
- #endif
- DEPMUI = $(TOP)/lib/mui/libmui.a
- MUI = $(TOP)/lib/mui/libmui.a
- DEPGLE = $(TOP)/lib/gle/libgle.a
- GLE = $(TOP)/lib/gle/libgle.a
- DEPGLSMAP = $(TOP)/lib/glsmap/libglsmap.a
- GLSMAP = $(TOP)/lib/glsmap/libglsmap.a
- #endif
- CXXEXTRA_INCLUDES = -I/usr/include/CC $(EXTRA_INCLUDES) $(MESA_INCLUDE)
- GLUT_INVENTOR_DEPLIBS = $(GLUT_DEPLIBS)
- GLUT_INVENTOR_LIBS = $(INVENTOR) $(GLUT_LIBS)
- #ifdef SGIArchitecture
- /* For SGI C++ compiler, need to search extra dirs in make depend */
- #undef CplusplusDependIncludes
- #define CplusplusDependIncludes -I$(ROOT)/usr/include/CC
- #endif
- #ifndef NullParameter
- /*
- * NullParameter should be #define'ed to nothing in Imake.rules, but it has
- * been reported to me that this is not always the case. If not, let
- * Glut.cf #define it to nothing.
- */
- #define NullParameter
- #endif
- #define GlutTestProgramTarget(name) NormalProgramTarget(name,name.o,$(GLUT_DEPLIBS),$(GLUT_LIBS),NullParameter)
- #define MuiTestProgramTarget(name) NormalProgramTarget(name,name.o,$(MUI_DEPLIBS),$(MUI_LIBS),NullParameter)
- #define SimpleGlutProgramTarget(name) NormalProgramTarget(name,name.o,$(GLUT_DEPLIBS),$(GLUT_LIBS),NullParameter)
- #define NormalGlutProgramTarget(name,objs) NormalProgramTarget(name,objs,$(GLUT_DEPLIBS),$(GLUT_LIBS),NullParameter)
- #define SimpleMuiProgramTarget(name) NormalProgramTarget(name,name.o,$(MUI_DEPLIBS),$(MUI_LIBS),NullParameter)
- #define NormalMuiProgramTarget(name,objs) NormalProgramTarget(name,objs,$(MUI_DEPLIBS),$(MUI_LIBS),NullParameter)
- #define SimpleGleProgramTarget(name) NormalProgramTarget(name,name.o,$(GLE_DEPLIBS),$(GLE_LIBS),NullParameter)
- #define NormalGleProgramTarget(name,objs) NormalProgramTarget(name,objs,$(GLE_DEPLIBS),$(GLE_LIBS),NullParameter)
- #define SimpleGlsmapProgramTarget(name) NormalProgramTarget(name,name.o,$(GLSMAP_DEPLIBS),$(GLSMAP_LIBS),NullParameter)
- #define NormalGlsmapProgramTarget(name,objs) NormalProgramTarget(name,objs,$(GLSMAP_DEPLIBS),$(GLSMAP_LIBS),NullParameter)
- #define SimpleGlutInventorProgramTarget(name) NormalCplusplusProgramTarget(name,name.o,$(GLUT_INVENTOR_DEPLIBS),$(GLUT_INVENTOR_LIBS),NullParameter)
- #define NormalGlutInventorProgramTarget(name,objs) NormalCplusplusProgramTarget(name,objs,$(GLUT_INVENTOR_DEPLIBS),$(GLUT_INVENTOR_LIBS),NullParameter)
- XCOMM end Glut.cf - GLUT distribution Imakefile configuration info