Procházet zdrojové kódy

SimpleSample_OpenGL now builds under Linux

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@448 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg před 16 roky
rodič
revize
d7f7e40adb

+ 1 - 1
samples/SimpleOpenGL/Sample_SimpleOpenGL.c

@@ -11,7 +11,7 @@
 // have this configuration built.
 // ----------------------------------------------------------------------------
 
-#include "Gl/glut.h"
+#include "GL/glut.h"
 
 // assimp include files. These three are usually needed.
 #include "assimp.h"

+ 28 - 0
samples/SimpleOpenGL/makefile

@@ -0,0 +1,28 @@
+
+# ---------------------------------------------------------------------------
+# Makefile for assimp/Sample_SimpleOpenGL
+# [email protected]
+#
+# Usage: make <target> <macros>
+
+# TARGETS:
+#   all                  Build the sample + assimp itself
+#   clean                Cleanup all object files
+# ---------------------------------------------------------------------------
+
+VPATH = ./usr/include/

+# Include flags for gcc
+INCLUDEFLAGS = -I../../include 
+
+# Library flags for gcc
+LIBFLAGS = -L../../bin/gcc
+
+# Output name of executable
+OUTPUT = samplegl
+
+all:	$(OBJECTS)
+	cd ../../code/ && $(MAKE) static 
+	gcc -o $(OUTPUT) $(INCLUDEFLAGS) -s Sample_SimpleOpenGL.c $(LIBFLAGS) -Wl,-Bstatic -lassimp -Wl,-Bdynamic -lstdc++ -lglut
+.PHONY: clean
+clean:
+	-rm *.o