diff --git a/Makefile b/Makefile index 73702da..4556254 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ FILE := sdl_tmplt TARGET := $(FILE) +CFLAGS := $(shell sdl-config --cflags) ifdef WIN32 -CFLAGS := -IC:\apps\SDL-1.2.13\include -D_GNU_SOURCE=1 -Dmain=SDL_main -LDFLAGS := -lopengl32 -lglu32 -LC:\apps\SDL-1.2.13\lib -lmingw32 -lSDLmain -lSDL -mwindows +LIBS := -lopengl32 -lglu32 -lmingw32 CC := mingw32-gcc TARGET := $(TARGET).exe else -CFLAGS := `sdl-config --cflags` -LDFLAGS := -lGL -lGLU `sdl-config --libs` +LIBS := -lGL -lGLU `sdl-config --libs` endif +LDFLAGS := $(LIBS) $(shell sdl-config --libs) all: $(TARGET)