--- Makefile.orig 2008-12-31 00:42:35.000000000 +0000 +++ Makefile 2009-01-31 03:45:32.000000000 +0000 @@ -2,13 +2,12 @@ #append -DWITH_WIIUSE to compile with WIIUSE support! #append -DNOSOUND to compile WITHOUT sound support -CC=g++ -DDATADIR="\"$(DATADIR)\"" -CFLAGS+=-c -Wall `sdl-config --cflags` +CFLAGS+=-Wall `${SDL_CONFIG} --cflags` -DDATADIR="\"$(DATADIR)\"" #append -lwiiuse to compile with WIIUSE support #remove -lSDL_mixer if compiling with -DNOSOUND -LIBS+=-lGL -lGLU `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer +LIBS+=-lGL -lGLU `${SDL_CONFIG} --libs` -lSDL_image -lSDL_ttf -lSDL_mixer SOURCES=main.cpp OBJECTS=$(SOURCES:.cpp=.o) @@ -18,7 +17,7 @@ all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) - $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@ + $(CC) $(CFLAGS) $(SOURCES) $(LIBS) -o $@ .cpp.o: $(CC) $(CFLAGS) $< -o $@