aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar William Ahern <william@server.local> 2013-02-27 11:43:34 -0800
committerLibravatarLibravatar William Ahern <william@server.local> 2013-02-27 11:43:34 -0800
commitf9c6bc791e165cf0695e707633e022aa76b8310a (patch)
tree8da4e29f46ecd740c0e8abf2bbf1abd0591fd93f
parent5992af860900214bbb7427fc3ce2ae90d539cc5a (diff)
downloadluaossl-f9c6bc791e165cf0695e707633e022aa76b8310a.tar.gz
luaossl-f9c6bc791e165cf0695e707633e022aa76b8310a.tar.bz2
luaossl-f9c6bc791e165cf0695e707633e022aa76b8310a.zip
-n
more Makefile work
-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)