Updated Makefile to work with sdl-config and ode-config batch files

git-svn-id: svn://anubis/dwscr/trunk@111 5bef9df8-b654-44bb-925b-0ff18baa8f8c
This commit is contained in:
josh 2008-12-16 19:29:24 +00:00
parent 943e1dade3
commit 3dc922c4ad

View File

@ -21,15 +21,13 @@ export CP := copy
export MV := rename
export CC := mingw32-gcc
export CXX := mingw32-g++
SDL_BASE := C:\apps\SDL-1.2.13
ODE_BASE := C:\apps\ode-0.9
export CPPFLAGS += -I$(SDL_BASE)\include -D_GNU_SOURCE=1 -Dmain=SDL_main
export CPPFLAGS += $(shell sdl-config --cflags)
ifndef WITHOUT_ODE
export CPPFLAGS += -I$(ODE_BASE)\include
export CPPFLAGS += $(shell ode-config --cflags)
endif
LDFLAGS += -L$(SDL_BASE)\lib -lopengl32 -lglu32 -lmingw32 -mwindows -lSDLmain -lSDL
LDFLAGS += -lopengl32 -lglu32 -lmingw32 $(shell sdl-config --libs)
ifndef WITHOUT_ODE
LDFLAGS += -L$(ODE_BASE)\lib\releasedll -lode
LDFLAGS += $(shell ode-config --libs)
endif
TARGET := $(TARGET).exe
SSNAME := dwscr.scr