diff --git a/Makefile b/Makefile index 29fd734..a37dd7b 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,8 @@ PROJECT=graphgame CXX=g++ -CXXFLAGS=-DDEBUG -g -LDFLAGS=-lSDL +CXXFLAGS=-DDEBUG -g `sdl-config --cflags` +LDFLAGS=`sdl-config --libs` OBJECTS=drawutils.o gamecore.o graph.o main.o mainevent.o mathutils.o gamedata.o sdlrenderer.o all: $(PROJECT) diff --git a/drawutils.h b/drawutils.h index 10e9aed..9a1557b 100644 --- a/drawutils.h +++ b/drawutils.h @@ -3,7 +3,7 @@ #ifndef _DRAWUTILS_H_ #define _DRAWUTILS_H_ -#include +#include #include using std::string; diff --git a/gamecore.cpp b/gamecore.cpp index 35881ac..08035dd 100644 --- a/gamecore.cpp +++ b/gamecore.cpp @@ -1,7 +1,7 @@ #include "gamecore.h" #include "mathutils.h" #include "debug.h" -#include +#include int GameCore::MAX_MOVE_DISTANCE = 100; int GameCore::NODE_RADIUS = 12; @@ -34,7 +34,7 @@ int GameCore::execute() bool GameCore::init() { if (SDL_Init(SDL_INIT_EVERYTHING) < 0) return false; - + SDL_WM_SetCaption("TreeWars","TreeWars"); return renderer.init(); } diff --git a/mainevent.h b/mainevent.h index d0e01f9..85092e1 100644 --- a/mainevent.h +++ b/mainevent.h @@ -10,7 +10,7 @@ #ifndef _MAINEVENT_H_ #define _MAINEVENT_H_ -#include +#include class MainEvent {