updated Makefile to use pkg-config for lua5.1 instead of lua-config

git-svn-id: svn://anubis/anaglym/trunk@286 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2010-06-23 14:13:03 +00:00
parent 1705af029d
commit cfffe1873c

View File

@ -15,14 +15,8 @@ CDEPS := $(COBJS:.o=.dep)
CXXDEPS := $(CXXOBJS:.o=.dep)
DEPS := $(CDEPS) $(CXXDEPS)
LUAINCLUDE := $(shell which lua-config >/dev/null 2>&1; if [ $$? -eq 0 ]; then lua-config --include; fi)
ifeq ($(strip $(LUAINCLUDE)),)
LUAINCLUDE := -I/usr/include/lua5.1
endif
LUALIBS := $(shell which lua-config >/dev/null 2>&1; if [ $$? -eq 0 ]; then lua-config --libs; fi)
ifeq ($(strip $(LUALIBS)),)
LUALIBS := -llua5.1
endif
LUAINCLUDE := $(shell pkg-config --cflags lua5.1)
LUALIBS := $(shell pkg-config --libs lua5.1)
FTGLINCLUDE := $(shell pkg-config --cflags ftgl)
FTGLLIBS := $(shell pkg-config --libs ftgl)