updated build systems/GPU_physics for Mac OS X
This commit is contained in:
@@ -88,15 +88,16 @@
|
||||
#include <float.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <GL/glew.h>
|
||||
|
||||
#if defined(GPUP_MAC_OSX) && !defined (VMDMESA)
|
||||
#include <OpenGL/gl.h>
|
||||
#include <OpenGL/glu.h>
|
||||
#include <GLUT/glut.h>
|
||||
#include <OpenGL/glext.h>
|
||||
#else
|
||||
#include <GL/glut.h>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glew.h>
|
||||
#endif
|
||||
|
||||
#ifdef DISABLE_GL_ERROR_CHECKS
|
||||
|
||||
@@ -164,7 +164,10 @@ void initGLcontext ( int argc, char **argv,
|
||||
glutKeyboardFunc ( keybd ) ;
|
||||
glutReshapeFunc ( reshape ) ;
|
||||
|
||||
#if defined(GPUP_MAC_OSX) && !defined (VMDMESA)
|
||||
#else
|
||||
glewInit () ;
|
||||
#endif
|
||||
|
||||
checkVertexTextureSupport ( disableVertexTextureSupport ) ;
|
||||
}
|
||||
|
||||
@@ -6,18 +6,16 @@ if $(GLUT.AVAILABLE) = "yes"
|
||||
rule GPUDemo
|
||||
{
|
||||
Application $(<) : $(>) : noinstall console nomanifest ;
|
||||
LinkWith $(<) : GLUT ;
|
||||
# LinkWith $(<) : GLUT ;
|
||||
CFlags $(<) :
|
||||
[ FIncludes $(TOP)/Demos/OpenGL ]
|
||||
[ FIncludes $(TOP)/Extras/PhysicsInterface/CcdPhysics ]
|
||||
[ FIncludes $(TOP)/Extras/PhysicsInterface/Common ]
|
||||
;
|
||||
MsvcIncDirs $(<) :
|
||||
"../../Demos/OpenGL"
|
||||
"../../Extras/PhysicsInterface/CcdPhysics"
|
||||
"../../Extras/PhysicsInterface/Common" ;
|
||||
ExternalLibs $(<) : GLUT GLEW ;
|
||||
|
||||
|
||||
ExternalLibs GPUphysics : GLUT ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ HDRS = fboSupport.h shaderSupport.h
|
||||
OBJS = GPU_physics_demo.o fboSupport.o shaderSupport.o clock.o
|
||||
|
||||
all: ${OBJS}
|
||||
g++ -framework GLUT -framework OpenGL -L"/System/Library/Frameworks/OpenGL.framework/Libraries" -lGL -lGLU -o GPU_physics_demo ${OBJS} -L"/System/Library/Frameworks/OpenGL.framework/Libraries" -lGLU -lGLEW -lGL -lGLU -lobjc
|
||||
g++ -framework GLUT -framework OpenGL -L"/System/Library/Frameworks/OpenGL.framework/Libraries" -lGL -lGLU -o GPU_physics_demo ${OBJS} -L"/System/Library/Frameworks/OpenGL.framework/Libraries" -lGLU -lGL -lGLU -lobjc
|
||||
|
||||
shaderSupport.o : shaderSupport.cpp ${HDRS}
|
||||
g++ -c shaderSupport.cpp
|
||||
|
||||
Reference in New Issue
Block a user