diff --git a/Makefile b/Makefile index 13f9d0e..5efb8d9 100644 --- a/Makefile +++ b/Makefile @@ -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)