diff options
-rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -8,10 +8,23 @@ luacpath = $(libdir)/lua/5.2 | |||
8 | 8 | ||
9 | LUAC = $(prefix)/bin/luac | 9 | LUAC = $(prefix)/bin/luac |
10 | 10 | ||
11 | # backwards compatibile install paths | ||
12 | ifneq ($(origin lua52include), undefined) | ||
13 | luainclude = $(lua52include) | ||
14 | endif | ||
15 | |||
16 | ifneq ($(origin lua52path), undefined) | ||
17 | luapath = $(lua52path) | ||
18 | endif | ||
19 | |||
20 | ifneq ($(origin lua52cpath), undefined) | ||
21 | luacpath = $(lua52cpath) | ||
22 | endif | ||
23 | |||
24 | |||
11 | VENDOR.OS = $(shell ../mk/vendor.os) | 25 | VENDOR.OS = $(shell ../mk/vendor.os) |
12 | VENDOR.CC = $(shell env CC="${CC}" ../mk/vendor.cc) | 26 | VENDOR.CC = $(shell env CC="${CC}" ../mk/vendor.cc) |
13 | 27 | ||
14 | |||
15 | CPPFLAGS = -I$(luainclude) | 28 | CPPFLAGS = -I$(luainclude) |
16 | 29 | ||
17 | ifeq ($(VENDOR.CC), sunpro) | 30 | ifeq ($(VENDOR.CC), sunpro) |