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:
parent
54975fd098
commit
d082c4ce09
8
Makefile
8
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user