building with SDL

git-svn-id: svn://anubis/anaglym/trunk@15 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2009-09-19 16:57:19 +00:00
parent 99d01b9f26
commit c9875f53b4
2 changed files with 7 additions and 2 deletions

View File

@ -19,8 +19,11 @@ ifeq ($(strip $(LUALIBS)),)
LUALIBS := -llua5.1 LUALIBS := -llua5.1
endif endif
CPPFLAGS := $(LUAINCLUDE) SDLINCLUDE := `sdl-config --cflags`
LDFLAGS := $(LUALIBS) -lGL -lGLU SDLLIBS := `sdl-config --libs`
CPPFLAGS := $(LUAINCLUDE) $(SDLINCLUDE)
LDFLAGS := $(LUALIBS) $(SDLLIBS) -lGL -lGLU
All: $(TARGET) All: $(TARGET)

2
sdl.cc
View File

@ -1,6 +1,8 @@
#include "sdl.h" #include "sdl.h"
#include <SDL/SDL.h> #include <SDL/SDL.h>
#include <iostream>
using namespace std;
void video_init() void video_init()
{ {