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
This commit is contained in:
josh 2008-12-16 19:37:32 +00:00
parent 54975fd098
commit d082c4ce09

View File

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