From c9875f53b4a4606d5fe02afb2f7371c50b18dc5c Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 19 Sep 2009 16:57:19 +0000 Subject: [PATCH] building with SDL git-svn-id: svn://anubis/anaglym/trunk@15 99a6e188-d820-4881-8870-2d33a10e2619 --- Makefile | 7 +++++-- sdl.cc | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 87b4c91..65bb00f 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,11 @@ ifeq ($(strip $(LUALIBS)),) LUALIBS := -llua5.1 endif -CPPFLAGS := $(LUAINCLUDE) -LDFLAGS := $(LUALIBS) -lGL -lGLU +SDLINCLUDE := `sdl-config --cflags` +SDLLIBS := `sdl-config --libs` + +CPPFLAGS := $(LUAINCLUDE) $(SDLINCLUDE) +LDFLAGS := $(LUALIBS) $(SDLLIBS) -lGL -lGLU All: $(TARGET) diff --git a/sdl.cc b/sdl.cc index 76d5666..65380bf 100644 --- a/sdl.cc +++ b/sdl.cc @@ -1,6 +1,8 @@ #include "sdl.h" #include +#include +using namespace std; void video_init() {