diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-14 23:23:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-14 23:23:17 +0200 |
commit | 0ba042961f929ff43f977c2ebdba9368f42d9c52 (patch) | |
tree | 59220f91eb954e7400bf8846ae8010dd22532029 /src/Make_bc5.mak | |
parent | 26dcc7e8df8f0f1852752b9107ba4b0408061554 (diff) | |
download | vim-git-0ba042961f929ff43f977c2ebdba9368f42d9c52.tar.gz |
Added Lua interfae. (Luis Carvalho)
Diffstat (limited to 'src/Make_bc5.mak')
-rw-r--r-- | src/Make_bc5.mak | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/Make_bc5.mak b/src/Make_bc5.mak index 1373b4eb5..c3ddf00f6 100644 --- a/src/Make_bc5.mak +++ b/src/Make_bc5.mak @@ -35,6 +35,9 @@ # LINK name of the linker ($(BOR)\bin\ilink if OSTYPE is DOS16, # $(BOR)\bin\ilink32 otherwise) # GUI no or yes: set to yes if you want the GUI version (yes) +# LUA define to path to Lua dir to get Lua support (not defined) +# LUA_VER define to version of Lua being used (51) +# DYNAMIC_LUA no or yes: set to yes to load the Lua DLL dynamically (no) # PERL define to path to Perl dir to get Perl support (not defined) # PERL_VER define to version of Perl being used (56) # DYNAMIC_PERL no or yes: set to yes to load the Perl DLL dynamically (no) @@ -129,6 +132,9 @@ CSCOPE = yes NETBEANS = yes !endif +### LUA: uncomment this line if you want lua support in vim +# LUA=c:\lua + ### PERL: uncomment this line if you want perl support in vim # PERL=c:\perl @@ -199,6 +205,7 @@ ALIGN = 4 # Incompatible when calling external functions (like MSVC-compiled DLLs), so # don't use FASTCALL when linking with external libs. !if ("$(FASTCALL)"=="") && \ + ("$(LUA)"=="") && \ ("$(PYTHON)"=="") && \ ("$(PERL)"=="") && \ ("$(TCL)"=="") && \ @@ -292,6 +299,18 @@ INCLUDE = $(BOR)\include;.;proto DEFINES = -DFEAT_$(FEATURES) -DWIN32 -DHAVE_PATHDEF \ -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) +!ifdef LUA +INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_LUA +INCLUDE = $(LUA)\include;$(INCLUDE) +! ifndef LUA_VER +LUA_VER = 51 +! endif +! if ("$(DYNAMIC_LUA)" == "yes") +INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\" +LUA_LIB_FLAG = /nodefaultlib: +! endif +!endif + !ifdef PERL INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_PERL INCLUDE = $(PERL)\lib\core;$(INCLUDE) @@ -584,6 +603,11 @@ vimobj = $(vimobj) \ $(OBJDIR)\if_ole.obj !endif +!ifdef LUA +vimobj = $(vimobj) \ + $(OBJDIR)\if_lua.obj +!endif + !ifdef PERL vimobj = $(vimobj) \ $(OBJDIR)\if_perl.obj @@ -692,6 +716,12 @@ MSG = $(MSG) NETBEANS !ifdef XPM MSG = $(MSG) XPM !endif +!ifdef LUA +MSG = $(MSG) LUA +! if "$(DYNAMIC_LUA)" == "yes" +MSG = $(MSG)(dynamic) +! endif +!endif !ifdef PERL MSG = $(MSG) PERL ! if "$(DYNAMIC_PERL)" == "yes" @@ -788,6 +818,9 @@ clean: -@del *.ilf -@del *.ils -@del *.tds +!ifdef LUA + -@del lua.lib +!endif !ifdef PERL -@del perl.lib !endif @@ -825,6 +858,9 @@ $(DLLTARGET): $(OBJDIR) $(vimdllobj) !endif !if ($(OSTYPE)==WIN32) import32.lib+ +!ifdef LUA + $(LUA_LIB_FLAG)lua.lib+ +!endif !ifdef PERL $(PERL_LIB_FLAG)perl.lib+ !endif @@ -874,6 +910,9 @@ $(TARGET): $(OBJDIR) $(vimobj) $(OBJDIR)\$(RESFILE) ole2w32.lib + !endif import32.lib+ +!ifdef LUA + $(LUA_LIB_FLAG)lua.lib+ +!endif !ifdef PERL $(PERL_LIB_FLAG)perl.lib+ !endif @@ -912,6 +951,9 @@ $(OBJDIR)\ex_eval.obj: ex_eval.c ex_cmds.h $(OBJDIR)\if_ole.obj: if_ole.cpp +$(OBJDIR)\if_lua.obj: if_lua.c lua.lib + $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_lua.c + $(OBJDIR)\if_perl.obj: if_perl.c perl.lib $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_perl.c @@ -966,6 +1008,9 @@ char_u *compiled_user = (char_u *)"$(USERNAME)"; char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; | auto\pathdef.c +lua.lib: $(LUA)\lib\lua$(LUA_VER).lib + coff2omf $(LUA)\lib\lua$(LUA_VER).lib $@ + perl.lib: $(PERL)\lib\CORE\perl$(PERL_VER).lib coff2omf $(PERL)\lib\CORE\perl$(PERL_VER).lib $@ |