From d7f7e40adb808acb7013daf0d9e122bda0de6640 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Fri, 17 Jul 2009 21:26:00 +0000 Subject: [PATCH] SimpleSample_OpenGL now builds under Linux git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@448 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- samples/SimpleOpenGL/Sample_SimpleOpenGL.c | 2 +- samples/SimpleOpenGL/makefile | 28 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 samples/SimpleOpenGL/makefile diff --git a/samples/SimpleOpenGL/Sample_SimpleOpenGL.c b/samples/SimpleOpenGL/Sample_SimpleOpenGL.c index 1f5caede4..26ac625ed 100644 --- a/samples/SimpleOpenGL/Sample_SimpleOpenGL.c +++ b/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" diff --git a/samples/SimpleOpenGL/makefile b/samples/SimpleOpenGL/makefile new file mode 100644 index 000000000..d8c7425e4 --- /dev/null +++ b/samples/SimpleOpenGL/makefile @@ -0,0 +1,28 @@ + +# --------------------------------------------------------------------------- +# Makefile for assimp/Sample_SimpleOpenGL +# aramis_acg@users.sourceforge.net +# +# Usage: make + +# 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