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:
parent
943e1dade3
commit
3dc922c4ad
10
Makefile
10
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user