summaryrefslogtreecommitdiff
path: root/src/imlua5.mak
diff options
context:
space:
mode:
Diffstat (limited to 'src/imlua5.mak')
-rw-r--r--src/imlua5.mak11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/imlua5.mak b/src/imlua5.mak
index 554b701..031595d 100644
--- a/src/imlua5.mak
+++ b/src/imlua5.mak
@@ -1,8 +1,9 @@
PROJNAME = im
-LIBNAME = imlua51
+LIBNAME = imlua
OPT = YES
+USE_LOH_SUBDIR = Yes
LOHDIR = lua5/loh
SRC = lua5/imlua.c lua5/imlua_aux.c lua5/imlua_convert.c lua5/imlua_file.c lua5/imlua_image.c lua5/imlua_palette.c lua5/imlua_util.c
DEF_FILE = lua5/imlua.def
@@ -12,7 +13,13 @@ SRCLUADIR = lua5
INCLUDES = lua5
+ifdef USE_LUA52
+ LIBNAME := $(LIBNAME)52
+else
+ USE_LUA51 = Yes
+ LIBNAME := $(LIBNAME)51
+endif
+
USE_IM = YES
-USE_LUA51 = YES
NO_LUALINK = Yes
IM = ..