aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c26fd2d..539d8ff 100644
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,23 @@ luacpath = $(libdir)/lua/5.2
LUAC = $(prefix)/bin/luac
+# backwards compatibile install paths
+ifneq ($(origin lua52include), undefined)
+luainclude = $(lua52include)
+endif
+
+ifneq ($(origin lua52path), undefined)
+luapath = $(lua52path)
+endif
+
+ifneq ($(origin lua52cpath), undefined)
+luacpath = $(lua52cpath)
+endif
+
+
VENDOR.OS = $(shell ../mk/vendor.os)
VENDOR.CC = $(shell env CC="${CC}" ../mk/vendor.cc)
-
CPPFLAGS = -I$(luainclude)
ifeq ($(VENDOR.CC), sunpro)