updated Makefile to handle different environments
git-svn-id: svn://anubis/anaglym/trunk@12 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
917991df34
commit
7ad767dab0
14
Makefile
14
Makefile
@ -6,8 +6,18 @@ OBJS := $(COBJS) $(CXXOBJS)
|
||||
CDEPS := $(COBJS:.o=.dep)
|
||||
CXXDEPS := $(CXXOBJS:.o=.dep)
|
||||
DEPS := $(CDEPS) $(CXXDEPS)
|
||||
CPPFLAGS := -I/usr/include/lua5.1
|
||||
LDFLAGS := -llua5.1 -lGL -lGLU
|
||||
|
||||
LUAINCLUDE := $(shell which lua-config >/dev/null 2>&1; if [[ $$? == 0 ]]; then lua-config --include; fi)
|
||||
ifeq ($(LUA_INCLUDE),)
|
||||
LUA_INCLUDE := -I/usr/include/lua5.1
|
||||
endif
|
||||
LUALIBS := $(shell which lua-config >/dev/null 2>&1; if [[ $$? == 0 ]]; then lua-config --libs; fi)
|
||||
ifeq ($(LUALIBS),)
|
||||
LUALIBS := -llua5.1
|
||||
endif
|
||||
|
||||
CPPFLAGS := $(LUAINCLUDE)
|
||||
LDFLAGS := $(LUALIBS) -lGL -lGLU
|
||||
|
||||
All: $(TARGET)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user