22# Makefile for Vim on OpenVMS
33#
44# Maintainer: Zoltan Arpadffy <
[email protected] >
5- # Last change: 2020 Dec 30
5+ # Last change: 2021 Jan 04
66#
77# This script has been tested on VMS 6.2 to 8.4 on DEC Alpha, VAX and IA64
88# with MMS and MMK
@@ -38,18 +38,18 @@ MODEL = HUGE
3838# GUI or terminal mode executable.
3939# Comment out if you want just the character terminal mode only.
4040# GUI with Motif
41- GUI = YES
41+ # GUI = YES
4242
4343# GUI with GTK
4444# If you have GTK installed you might want to enable this option.
4545# NOTE: you will need to properly define GTK_DIR below
46- # NOTE: since Vim 7.3 GTK 2+ is used that is not ported to VMS,
47- # therefore this option should not be used
46+ # NOTE: since Vim 7.3 GTK 2+ is used that is not ported to VMS,
47+ # therefore this option should not be used
4848# GTK = YES
4949
5050# GUI/Motif with XPM
5151# If you have XPM installed you might want to build Motif version with toolbar
52- XPM = YES
52+ # XPM = YES
5353
5454# Comment out if you want the compiler version with :ver command.
5555# NOTE: This part can make some complications if you're using some
@@ -59,7 +59,7 @@ CCVER = YES
5959
6060# Uncomment if want a debug version. Resulting executable is DVIM.EXE
6161# Development purpose only! Normally, it should not be defined. !!!
62- # DEBUG = YES
62+ # DEBUG = YES
6363
6464# Languages support for Perl, Python, TCL etc.
6565# If you don't need it really, leave them behind the comment.
@@ -68,6 +68,7 @@ CCVER = YES
6868# VIM_PERL = YES
6969# VIM_PYTHON = YES
7070# VIM_RUBY = YES
71+ # VIM_LUA = YES
7172
7273# X Input Method. For entering special languages like chinese and
7374# Japanese.
@@ -180,7 +181,7 @@ XPM_INC = ,[.xpm.include]
180181XPM_LIB = ,OS_VMS_XPM.OPT/OPT
181182.ELSE
182183DEFS = "HAVE_CONFIG_H","FEAT_GUI_MOTIF"
183- XPM_INC =
184+ XPM_INC =
184185.ENDIF
185186LIBS = ,OS_VMS_MOTIF.OPT/OPT
186187GUI_FLAG =
@@ -237,6 +238,15 @@ RUBY_LIB = ,OS_VMS_RUBY.OPT/OPT
237238RUBY_INC =
238239.ENDIF
239240
241+ .IFDEF VIM_LUA
242+ # LUA related setup.
243+ LUA_DEF = ,"FEAT_LUA"
244+ LUA_SRC = if_lua.c
245+ LUA_OBJ = if_lua.obj
246+ LUA_LIB = ,OS_VMS_LUA.OPT/OPT
247+ LUA_INC = ,LUA$ROOT:[INCLUDE]
248+ .ENDIF
249+
240250.IFDEF VIM_XIM
241251# XIM related setup.
242252.IFDEF GUI
@@ -247,7 +257,7 @@ XIM_DEF = ,"FEAT_XIM"
247257.IFDEF VIM_MZSCHEME
248258# MZSCHEME related setup
249259MZSCH_DEF = ,"FEAT_MZSCHEME"
250- MZSCH_SRC = if_mzsch.c
260+ MZSCH_SRC = if_mzsch.c
251261MZSCH_OBJ = if_mzsch.obj
252262.ENDIF
253263
@@ -258,7 +268,7 @@ ICONV_DEF = ,"USE_ICONV"
258268
259269# XDIFF related setup.
260270XDIFF_SRC = xdiffi.c,xemit.c,xprepare.c,xutils.c,xhistogram.c,xpatience.c
261- XDIFF_OBJ = xdiffi.obj,xemit.obj,xprepare.obj,xutils.obj,xhistogram.obj,xpatience.obj
271+ XDIFF_OBJ = xdiffi.obj,xemit.obj,xprepare.obj,xutils.obj,xhistogram.obj,xpatience.obj
262272XDIFF_INC = ,[.xdiff]
263273
264274######################################################################
@@ -275,7 +285,7 @@ VIMHOST = "''F$TRNLNM("SYS$NODE")'''F$TRNLNM("UCX$INET_HOST")'.''F$TRNLNM("UCX$I
275285.SUFFIXES : .obj .c
276286
277287ALL_CFLAGS = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
278- $(TCL_DEF)$(RUBY_DEF)$(XIM_DEF)$(TAG_DEF)$(MZSCH_DEF) -
288+ $(TCL_DEF)$(RUBY_DEF)$(LUA_DEF)$( XIM_DEF)$(TAG_DEF)$(MZSCH_DEF) -
279289 $(ICONV_DEF)) -
280290 $(CFLAGS)$(GUI_FLAG) -
281291 /include=($(C_INC)$(GUI_INC_DIR)$(GUI_INC)$(PERL_INC)$(PYTHON_INC) -
@@ -286,14 +296,14 @@ ALL_CFLAGS = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
286296# as $(GUI_INC) - replaced with $(GUI_INC_VER)
287297# Otherwise should not be any other difference.
288298ALL_CFLAGS_VER = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
289- $(TCL_DEF)$(RUBY_DEF)$(XIM_DEF)$(TAG_DEF)$(MZSCH_DEF) -
299+ $(TCL_DEF)$(RUBY_DEF)$(LUA_DEF)$( XIM_DEF)$(TAG_DEF)$(MZSCH_DEF) -
290300 $(ICONV_DEF)) -
291301 $(CFLAGS)$(GUI_FLAG) -
292302 /include=($(C_INC)$(GUI_INC_DIR)$(GUI_INC_VER)$(PERL_INC)$(PYTHON_INC) -
293303 $(TCL_INC)$(XDIFF_INC)$(XPM_INC))
294304
295305ALL_LIBS = $(LIBS) $(GUI_LIB_DIR) $(GUI_LIB) $(XPM_LIB)\
296- $(PERL_LIB) $(PYTHON_LIB) $(TCL_LIB) $(RUBY_LIB)
306+ $(PERL_LIB) $(PYTHON_LIB) $(TCL_LIB) $(RUBY_LIB) $(LUA_LIB)
297307
298308SRC = \
299309 arabic.c \
@@ -408,6 +418,7 @@ SRC = \
408418 $(PYTHON_SRC) \
409419 $(TCL_SRC) \
410420 $(RUBY_SRC) \
421+ $(LUA_SRC) \
411422 $(MZSCH_SRC) \
412423 $(XDIFF_SRC)
413424
@@ -525,11 +536,12 @@ OBJ = \
525536 $(PYTHON_OBJ) \
526537 $(TCL_OBJ) \
527538 $(RUBY_OBJ) \
539+ $(LUA_OBJ) \
528540 $(MZSCH_OBJ) \
529541 $(XDIFF_OBJ)
530542
531543# Default target is making the executable
532- all : [.auto]config.h mmk_compat motif_env gtk_env perl_env python_env tcl_env ruby_env $(TARGET)
544+ all : [.auto]config.h mmk_compat motif_env gtk_env perl_env python_env tcl_env ruby_env lua_env $(TARGET)
533545 ! $@
534546
535547[.auto]config.h : $(CONFIG_H)
@@ -611,7 +623,7 @@ motif_env :
611623.ENDIF
612624.IFDEF MMSIA64
613625 -@ write opt_file "[.xpm.vms.ia64]libxpm.olb/lib"
614- .ENDIF
626+ .ENDIF
615627 -@ close opt_file
616628.ELSE
617629 -@ write sys$output "using DECW/Motif environment."
@@ -709,11 +721,24 @@ ruby_env :
709721 -@ !
710722.ENDIF
711723
724+ .IFDEF VIM_LUA
725+ lua_env :
726+ -@ write sys$output "using LUA environment:"
727+ -@ write sys$output " include path: ""$(LUA_INC)"""
728+ -@ write sys$output "creating OS_VMS_LUA.OPT file."
729+ -@ open/write opt_file OS_VMS_LUA.OPT
730+ -@ write opt_file "LUA$ROOT:[LIB]LUA$SHR.EXE /share"
731+ -@ close opt_file
732+ .ELSE
733+ lua_env :
734+ -@ !
735+ .ENDIF
736+
712737arabic.obj : arabic.c vim.h
713738arglist.obj : arglist.c vim.h [.auto]config.h feature.h os_unix.h
714739autocmd.obj : autocmd.c vim.h [.auto]config.h feature.h os_unix.h
715740blowfish.obj : blowfish.c vim.h [.auto]config.h feature.h os_unix.h
716- blob.obj : blob.c vim.h [.auto]config.h feature.h os_unix.h
741+ blob.obj : blob.c vim.h [.auto]config.h feature.h os_unix.h
717742buffer.obj : buffer.c vim.h [.auto]config.h feature.h os_unix.h \
718743 ascii.h keymap.h term.h macros.h structs.h regexp.h \
719744 gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
@@ -873,7 +898,7 @@ if_xcmdsrv.obj : if_xcmdsrv.c vim.h [.auto]config.h feature.h os_unix.h \
873898if_mzsch.obj : if_mzsch.c vim.h [.auto]config.h feature.h os_unix.h \
874899 ascii.h keymap.h term.h macros.h option.h structs.h \
875900 regexp.h gui.h beval.h [.proto]gui_beval.pro ex_cmds.h proto.h \
876- errors.h globals.h if_mzsch.h
901+ errors.h globals.h if_mzsch.h
877902indent.obj : indent.c vim.h [.auto]config.h feature.h os_unix.h
878903insexpand.obj : insexpand.c vim.h [.auto]config.h feature.h os_unix.h
879904json.obj : json.c vim.h [.auto]config.h feature.h os_unix.h \
@@ -1167,6 +1192,8 @@ if_ruby.obj : if_ruby.c vim.h [.auto]config.h feature.h os_unix.h \
11671192 ascii.h keymap.h term.h macros.h structs.h regexp.h \
11681193 gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
11691194 errors.h globals.h version.h
1195+ if_lua.obj : if_lua.c vim.h [.auto]config.h feature.h os_unix.h \
1196+ errors.h globals.h version.h
11701197beval.obj : beval.c vim.h [.auto]config.h feature.h os_unix.h \
11711198 ascii.h keymap.h term.h macros.h structs.h regexp.h \
11721199 gui.h beval.h option.h ex_cmds.h proto.h \
@@ -1186,4 +1213,4 @@ xemit.obj : [.xdiff]xemit.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h o
11861213xprepare.obj : [.xdiff]xprepare.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h
11871214xutils.obj : [.xdiff]xutils.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h
11881215xhistogram.obj : [.xdiff]xhistogram.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h
1189- xpatience.obj : [.xdiff]xpatience.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h
1216+ xpatience.obj : [.xdiff]xpatience.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h
0 commit comments