From d082c4ce0981f1cb5afb1d2870f021afec988489 Mon Sep 17 00:00:00 2001 From: josh Date: Tue, 16 Dec 2008 19:37:32 +0000 Subject: [PATCH] modified Makefile to work on Windows with sdl-config batch script git-svn-id: svn://anubis/sdl-opengl-bare@4 486f0dac-8830-0410-96c3-f050bc5976a0 --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)