diff --git a/src/Make_ming.mak b/src/Make_ming.mak --- a/src/Make_ming.mak +++ b/src/Make_ming.mak @@ -180,6 +180,18 @@ endif +# Lua interface: +# LUA=[Path to LUA directory] +# LUA_VER=[LUA version, eg 51] (default is 51) +#LUA=c:/Lua +ifdef LUA +ifndef LUA_VER +LUA_VER = 51 +endif +LUAINC += -I$(LUA)/include +endif + + # Ruby interface: # RUBY=[Path to Ruby directory] # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically) @@ -303,6 +315,10 @@ ifeq (yes, $(DYNAMIC_TCL)) CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\" endif +endif + +ifdef LUA +CFLAGS += -DFEAT_LUA $(LUAINC) endif ifeq ($(POSTSCRIPT),yes) @@ -420,6 +436,9 @@ ifdef TCL OBJ += $(OUTDIR)/if_tcl.o endif +ifdef LUA +OBJ += $(OUTDIR)/if_lua.o +endif ifeq ($(CSCOPE),yes) OBJ += $(OUTDIR)/if_cscope.o endif @@ -482,6 +501,10 @@ else LIB += -ltcl$(TCL_VER) endif +endif + +ifdef LUA +LIB += $(LUA)/bin/lua$(LUA_VER).dll endif ifeq (yes, $(OLE))