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 MV := rename
|
||||||
export CC := mingw32-gcc
|
export CC := mingw32-gcc
|
||||||
export CXX := mingw32-g++
|
export CXX := mingw32-g++
|
||||||
SDL_BASE := C:\apps\SDL-1.2.13
|
export CPPFLAGS += $(shell sdl-config --cflags)
|
||||||
ODE_BASE := C:\apps\ode-0.9
|
|
||||||
export CPPFLAGS += -I$(SDL_BASE)\include -D_GNU_SOURCE=1 -Dmain=SDL_main
|
|
||||||
ifndef WITHOUT_ODE
|
ifndef WITHOUT_ODE
|
||||||
export CPPFLAGS += -I$(ODE_BASE)\include
|
export CPPFLAGS += $(shell ode-config --cflags)
|
||||||
endif
|
endif
|
||||||
LDFLAGS += -L$(SDL_BASE)\lib -lopengl32 -lglu32 -lmingw32 -mwindows -lSDLmain -lSDL
|
LDFLAGS += -lopengl32 -lglu32 -lmingw32 $(shell sdl-config --libs)
|
||||||
ifndef WITHOUT_ODE
|
ifndef WITHOUT_ODE
|
||||||
LDFLAGS += -L$(ODE_BASE)\lib\releasedll -lode
|
LDFLAGS += $(shell ode-config --libs)
|
||||||
endif
|
endif
|
||||||
TARGET := $(TARGET).exe
|
TARGET := $(TARGET).exe
|
||||||
SSNAME := dwscr.scr
|
SSNAME := dwscr.scr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user