-PLATFORM ?= x86_64-linux-gnu
+#PLATFORM ?= x86_64-linux-gnu
+PLATFORM ?= x86_64-w64-mingw32
+
+CC ::= x86_64-w64-mingw32-cc
BUILDDIR ?= target/$(PLATFORM)
SRCDIR ?= src
#else
# binext ::=
#endif
-binary ::= $(BUILDDIR)/shadowclad #$(binext)
+binary ::= $(BUILDDIR)/shadowclad.exe
+#binary ::= $(BUILDDIR)/shadowclad #$(binext)
# ######
# Main build rules
-#include <GL/glxew.h>
-#include <GL/glut.h>
+//#include <GL/glxew.h>
+#include <GL/freeglut_std.h>
#include "engine/logger.h"
#include "engine/performance.h"
glutCreateWindow("shadowclad");
logInfo("OpenGL %s", (const char*) glGetString(GL_VERSION));
- logInfo("GLSL %s", (const char*) glGetString(GL_SHADING_LANGUAGE_VERSION));
+ //logInfo("GLSL %s", (const char*) glGetString(GL_SHADING_LANGUAGE_VERSION));
logInfo("%s", (const char*) glGetString(GL_RENDERER));
-
+ /*
GLenum glewInitStatus = glewInit();
if (glewInitStatus != GLEW_OK) {
logError("GLEW init failed: %s", (const char*) glewGetErrorString(glewInitStatus));
else {
logWarning("Could not enable vsync (extensions not supported)");
}
-
+ */
glutDisplayFunc(renderFrame);
glutReshapeFunc(resizeStage);
//glutKeyboardFunc(key_pressed);