added TOPLEVEL to recursively find includes relative to the top level directory
git-svn-id: svn://anubis/anaglym/trunk@92 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
a984a625cd
commit
580788097d
5
Makefile
5
Makefile
@ -33,11 +33,14 @@ ifeq ($(WINDOWS),1)
|
||||
GLLIBS := -lopengl32 -lglu32
|
||||
WINDOWSLIBS := -lmingw32
|
||||
TARGET := $(TARGET).exe
|
||||
TOPLEVEL := $(shell cd)
|
||||
else
|
||||
GLLIBS := -lGL -lGLU
|
||||
TOPLEVEL := $(shell pwd)
|
||||
endif
|
||||
|
||||
export CFLAGS := $(LUAINCLUDE) $(SDLINCLUDE) $(ODEINCLUDE) -O2 -Wall
|
||||
export CPPFLAGS := $(LUAINCLUDE) $(SDLINCLUDE) $(ODEINCLUDE) -I$(TOPLEVEL)
|
||||
export CFLAGS := $(CPPFLAGS) -O2 -Wall
|
||||
export CXXFLAGS := $(CFLAGS)
|
||||
export LDFLAGS := $(LUALIBS) $(ODELIBS) $(GLLIBS) $(WINDOWSLIBS) $(SDLLIBS)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user