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() {