glut: build and link into libGL

This commit is contained in:
Alexander von Gluck IV
2012-01-11 16:55:15 -06:00
parent 8e4cdaae8d
commit 7b2c1ed631
4 changed files with 14 additions and 1 deletions
+4 -1
View File
@@ -38,13 +38,16 @@ LINKFLAGS on libGL.so = [ on libGL.so return $(LINKFLAGS) ]
if $(HAIKU_GCC_VERSION[1]) < 3 { if $(HAIKU_GCC_VERSION[1]) < 3 {
SubDirC++Flags --no-warnings ; SubDirC++Flags --no-warnings ;
} }
SharedLibrary libGL.so : $(sources) : SharedLibrary libGL.so : $(sources) :
# Mesa libraries (from Mesa optional package): # Mesa libraries (from Mesa optional package):
$(HAIKU_MESA_LIBS) $(HAIKU_MESA_LIBS)
# Glut
<opengl>glut.o
# External libraries: # External libraries:
be be
game # BWindowScreen needed by BGLScreen stub class game # BWindowScreen needed by BGLScreen stub class
+8
View File
@@ -1,4 +1,5 @@
SubDir HAIKU_TOP src libs glut ; SubDir HAIKU_TOP src libs glut ;
SubDirSysHdrs $(HAIKU_MESA_HEADERS) ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
@@ -7,6 +8,13 @@ if $(TARGET_PLATFORM) != haiku {
# We need our public GL headers also when not compiling for Haiku. # We need our public GL headers also when not compiling for Haiku.
} }
# For GCC2
if $(HAIKU_GCC_VERSION[1]) < 3 {
SubDirC++Flags --no-warnings ;
}
MergeObject <opengl>glut.o : MergeObject <opengl>glut.o :
# C++ sources # C++ sources
glutBlocker.cpp glutBlocker.cpp
+1
View File
@@ -19,6 +19,7 @@
#include "glutState.h" #include "glutState.h"
#include "glutBlocker.h" #include "glutBlocker.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#define MOUSE_WHEEL_UP 3 #define MOUSE_WHEEL_UP 3
#define MOUSE_WHEEL_DOWN 4 #define MOUSE_WHEEL_DOWN 4
+1
View File
@@ -14,6 +14,7 @@
#include <GL/glut.h> #include <GL/glut.h>
#include <String.h> #include <String.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
// GlutGameMode class // GlutGameMode class