SimpleSample_OpenGL now builds under Linux

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@448 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2009-07-17 21:26:00 +00:00
parent c50410f487
commit d7f7e40adb
2 changed files with 29 additions and 1 deletions

View File

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

View File

@ -0,0 +1,28 @@
# ---------------------------------------------------------------------------
# Makefile for assimp/Sample_SimpleOpenGL
# aramis_acg@users.sourceforge.net
#
# 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