comparison src/Make_vms.mms @ 15517:2ad5f0ffaa2e v8.1.0766

patch 8.1.0766: various problems when using Vim on VMS commit https://github.com/vim/vim/commit/88c86eb751de9e7e410b405084d35b32fafc2a24 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 17 17:13:30 2019 +0100 patch 8.1.0766: various problems when using Vim on VMS Problem: Various problems when using Vim on VMS. Solution: Various fixes. Define long_long_T. (Zoltan Arpadffy)
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Jan 2019 17:15:06 +0100
parents a6330a49e036
children 08604d82fc9e
comparison
equal deleted inserted replaced
15516:f9d855fe7971 15517:2ad5f0ffaa2e
1 # 1 #
2 # Makefile for Vim on OpenVMS 2 # Makefile for Vim on OpenVMS
3 # 3 #
4 # Maintainer: Zoltan Arpadffy <arpadffy@polarhome.com> 4 # Maintainer: Zoltan Arpadffy <arpadffy@polarhome.com>
5 # Last change: 2017 Nov 18 5 # Last change: 2019 Jan 17
6 # 6 #
7 # This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64 7 # This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64
8 # with MMS and MMK 8 # with MMS and MMK
9 # 9 #
10 # The following could be built: 10 # The following could be built:
41 GUI = YES 41 GUI = YES
42 42
43 # GUI with GTK 43 # GUI with GTK
44 # If you have GTK installed you might want to enable this option. 44 # If you have GTK installed you might want to enable this option.
45 # NOTE: you will need to properly define GTK_DIR below 45 # 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 # GTK = YES 48 # GTK = YES
47 49
48 # GUI/Motif with XPM 50 # GUI/Motif with XPM
49 # If you have XPM installed you might want to build Motif version with toolbar 51 # If you have XPM installed you might want to build Motif version with toolbar
50 # XPM = YES 52 # XPM = YES
162 .IFDEF GTK 164 .IFDEF GTK
163 # NOTE: you need to set up your GTK_DIR (GTK root directory), because it is 165 # NOTE: you need to set up your GTK_DIR (GTK root directory), because it is
164 # unique on every system - logicals are not accepted 166 # unique on every system - logicals are not accepted
165 # please note: directory should end with . in order to /trans=conc work 167 # please note: directory should end with . in order to /trans=conc work
166 # This value for GTK_DIR is an example. 168 # This value for GTK_DIR is an example.
167 GTK_DIR = $1$DGA104:[USERS.ZAY.WORK.GTK1210.] 169 GTK_DIR = DKA0:[WORK.GTK1210.]
168 DEFS = "HAVE_CONFIG_H","FEAT_GUI_GTK" 170 DEFS = "HAVE_CONFIG_H","FEAT_GUI_GTK"
169 LIBS = ,OS_VMS_GTK.OPT/OPT 171 LIBS = ,OS_VMS_GTK.OPT/OPT
170 GUI_FLAG = /name=(as_is,short)/float=ieee/ieee=denorm 172 GUI_FLAG = /name=(as_is,short)/float=ieee/ieee=denorm
171 GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_gtk_x11.c gui_beval.c pty.c 173 GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_gtk_x11.c gui_beval.c pty.c
172 GUI_OBJ = gui.obj gui_gtk.obj gui_gtk_f.obj gui_gtk_x11.obj gui_beval.obj pty.obj 174 GUI_OBJ = gui.obj gui_gtk.obj gui_gtk_f.obj gui_gtk_x11.obj gui_beval.obj pty.obj
176 GUI_INC_VER= ,\""/gtk_root/gtk\"",\""/gtk_root/glib\"" 178 GUI_INC_VER= ,\""/gtk_root/gtk\"",\""/gtk_root/glib\""
177 .ELSE 179 .ELSE
178 MOTIF = YES 180 MOTIF = YES
179 .IFDEF XPM 181 .IFDEF XPM
180 DEFS = "HAVE_CONFIG_H","FEAT_GUI_MOTIF","HAVE_XPM" 182 DEFS = "HAVE_CONFIG_H","FEAT_GUI_MOTIF","HAVE_XPM"
183 XPM_INC = ,[.xpm.include]
181 .ELSE 184 .ELSE
182 DEFS = "HAVE_CONFIG_H","FEAT_GUI_MOTIF" 185 DEFS = "HAVE_CONFIG_H","FEAT_GUI_MOTIF"
186 XPM_INC =
183 .ENDIF 187 .ENDIF
184 LIBS = ,OS_VMS_MOTIF.OPT/OPT 188 LIBS = ,OS_VMS_MOTIF.OPT/OPT
185 GUI_FLAG = 189 GUI_FLAG =
186 GUI_SRC = gui.c gui_motif.c gui_x11.c gui_beval.c gui_xmdlg.c gui_xmebw.c 190 GUI_SRC = gui.c gui_motif.c gui_x11.c gui_beval.c gui_xmdlg.c gui_xmebw.c
187 GUI_OBJ = gui.obj gui_motif.obj gui_x11.obj gui_beval.obj gui_xmdlg.obj gui_xmebw.obj 191 GUI_OBJ = gui.obj gui_motif.obj gui_x11.obj gui_beval.obj gui_xmdlg.obj gui_xmebw.obj
267 .IFDEF VIM_ICONV 271 .IFDEF VIM_ICONV
268 # ICONV related setup 272 # ICONV related setup
269 ICONV_DEF = ,"USE_ICONV" 273 ICONV_DEF = ,"USE_ICONV"
270 .ENDIF 274 .ENDIF
271 275
276 # XDIFF related setup.
277 XDIFF_SRC = xdiffi.c,xemit.c,xprepare.c,xutils.c,xhistogram.c,xpatience.c
278 XDIFF_OBJ = xdiffi.obj,xemit.obj,xprepare.obj,xutils.obj,xhistogram.obj,xpatience.obj
279 XDIFF_INC = ,[.xdiff]
280
272 ###################################################################### 281 ######################################################################
273 # End of configuration section. 282 # End of configuration section.
274 # Please, do not change anything below without programming experience. 283 # Please, do not change anything below without programming experience.
275 ###################################################################### 284 ######################################################################
276 285
281 VIMHOST = "''F$TRNLNM("SYS$NODE")'''F$TRNLNM("UCX$INET_HOST")'.''F$TRNLNM("UCX$INET_DOMAIN")'" 290 VIMHOST = "''F$TRNLNM("SYS$NODE")'''F$TRNLNM("UCX$INET_HOST")'.''F$TRNLNM("UCX$INET_DOMAIN")'"
282 291
283 .SUFFIXES : .obj .c 292 .SUFFIXES : .obj .c
284 293
285 ALL_CFLAGS = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) - 294 ALL_CFLAGS = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
286 $(TCL_DEF)$(RUBY_DEF)$(XIM_DEF)$(HANGULIN_DEF)$(TAG_DEF)$(MZSCH_DEF)$(ICONV_DEF)) - 295 $(TCL_DEF)$(RUBY_DEF)$(XIM_DEF)$(HANGULIN_DEF)$(TAG_DEF)$(MZSCH_DEF) -
296 $(ICONV_DEF)) -
287 $(CFLAGS)$(GUI_FLAG) - 297 $(CFLAGS)$(GUI_FLAG) -
288 /include=($(C_INC)$(GUI_INC_DIR)$(GUI_INC)$(PERL_INC)$(PYTHON_INC)$(TCL_INC)) 298 /include=($(C_INC)$(GUI_INC_DIR)$(GUI_INC)$(PERL_INC)$(PYTHON_INC) -
299 $(TCL_INC)$(XDIFF_INC)$(XPM_INC))
289 300
290 # CFLAGS displayed in :ver information 301 # CFLAGS displayed in :ver information
291 # It is specially formated for correct display of unix like includes 302 # It is specially formated for correct display of unix like includes
292 # as $(GUI_INC) - replaced with $(GUI_INC_VER) 303 # as $(GUI_INC) - replaced with $(GUI_INC_VER)
293 # Otherwise should not be any other difference. 304 # Otherwise should not be any other difference.
294 ALL_CFLAGS_VER = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) - 305 ALL_CFLAGS_VER = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
295 $(TCL_DEF)$(RUBY_DEF)$(XIM_DEF)$(HANGULIN_DEF)$(TAG_DEF)$(MZSCH_DEF)$(ICONV_DEF)) - 306 $(TCL_DEF)$(RUBY_DEF)$(XIM_DEF)$(HANGULIN_DEF)$(TAG_DEF)$(MZSCH_DEF) -
307 $(ICONV_DEF)) -
296 $(CFLAGS)$(GUI_FLAG) - 308 $(CFLAGS)$(GUI_FLAG) -
297 /include=($(C_INC)$(GUI_INC_DIR)$(GUI_INC_VER)$(PERL_INC)$(PYTHON_INC)$(TCL_INC)) 309 /include=($(C_INC)$(GUI_INC_DIR)$(GUI_INC_VER)$(PERL_INC)$(PYTHON_INC) -
310 $(TCL_INC)$(XDIFF_INC)$(XPM_INC))
298 311
299 ALL_LIBS = $(LIBS) $(GUI_LIB_DIR) $(GUI_LIB) \ 312 ALL_LIBS = $(LIBS) $(GUI_LIB_DIR) $(GUI_LIB) \
300 $(PERL_LIB) $(PYTHON_LIB) $(TCL_LIB) $(RUBY_LIB) 313 $(PERL_LIB) $(PYTHON_LIB) $(TCL_LIB) $(RUBY_LIB)
301 314
302 SRC = arabic.c beval.obj blowfish.c buffer.c charset.c crypt.c crypt_zip.c dict.c diff.c digraph.c edit.c eval.c evalfunc.c \ 315 SRC = arabic.c beval.obj blowfish.c buffer.c charset.c crypt.c crypt_zip.c dict.c diff.c digraph.c edit.c eval.c evalfunc.c \
303 ex_cmds.c ex_cmds2.c ex_docmd.c ex_eval.c ex_getln.c if_cscope.c if_xcmdsrv.c farsi.c fileio.c fold.c getchar.c \ 316 ex_cmds.c ex_cmds2.c ex_docmd.c ex_eval.c ex_getln.c if_cscope.c if_xcmdsrv.c farsi.c fileio.c fold.c getchar.c \
304 hardcopy.c hashtab.c json.c list.c main.c mark.c menu.c mbyte.c memfile.c memline.c message.c misc1.c \ 317 hardcopy.c hashtab.c json.c list.c main.c mark.c menu.c mbyte.c memfile.c memline.c message.c misc1.c \
305 misc2.c move.c normal.c ops.c option.c popupmnu.c quickfix.c regexp.c search.c sha256.c sign.c \ 318 misc2.c move.c normal.c ops.c option.c popupmnu.c quickfix.c regexp.c search.c sha256.c sign.c \
306 spell.c spellfile.c syntax.c tag.c term.c termlib.c ui.c undo.c userfunc.c version.c screen.c \ 319 spell.c spellfile.c syntax.c tag.c term.c termlib.c textprop.c ui.c undo.c userfunc.c version.c screen.c \
307 window.c os_unix.c os_vms.c pathdef.c \ 320 window.c os_unix.c os_vms.c pathdef.c \
308 $(GUI_SRC) $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) \ 321 $(GUI_SRC) $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) \
309 $(RUBY_SRC) $(HANGULIN_SRC) $(MZSCH_SRC) 322 $(RUBY_SRC) $(HANGULIN_SRC) $(MZSCH_SRC) $(XDIFF_SRC)
310 323
311 OBJ = arabic.obj beval.obj blowfish.obj buffer.obj charset.obj crypt.obj crypt_zip.obj dict.obj diff.obj digraph.obj edit.obj eval.obj \ 324 OBJ = arabic.obj beval.obj blowfish.obj buffer.obj charset.obj crypt.obj crypt_zip.obj dict.obj diff.obj digraph.obj edit.obj eval.obj \
312 evalfunc.obj ex_cmds.obj ex_cmds2.obj ex_docmd.obj ex_eval.obj ex_getln.obj if_cscope.obj \ 325 evalfunc.obj ex_cmds.obj ex_cmds2.obj ex_docmd.obj ex_eval.obj ex_getln.obj if_cscope.obj \
313 if_xcmdsrv.obj farsi.obj fileio.obj fold.obj getchar.obj hardcopy.obj hashtab.obj json.obj list.obj main.obj mark.obj \ 326 if_xcmdsrv.obj farsi.obj fileio.obj fold.obj getchar.obj hardcopy.obj hashtab.obj json.obj list.obj main.obj mark.obj \
314 menu.obj memfile.obj memline.obj message.obj misc1.obj misc2.obj \ 327 menu.obj memfile.obj memline.obj message.obj misc1.obj misc2.obj \
315 move.obj mbyte.obj normal.obj ops.obj option.obj popupmnu.obj quickfix.obj \ 328 move.obj mbyte.obj normal.obj ops.obj option.obj popupmnu.obj quickfix.obj \
316 regexp.obj search.obj sha256.obj sign.obj spell.obj spellfile.obj syntax.obj tag.obj term.obj termlib.obj \ 329 regexp.obj search.obj sha256.obj sign.obj spell.obj spellfile.obj syntax.obj tag.obj term.obj termlib.obj textprop.obj \
317 ui.obj undo.obj userfunc.obj screen.obj version.obj window.obj os_unix.obj \ 330 ui.obj undo.obj userfunc.obj screen.obj version.obj window.obj os_unix.obj \
318 os_vms.obj pathdef.obj if_mzsch.obj\ 331 os_vms.obj pathdef.obj if_mzsch.obj\
319 $(GUI_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(TCL_OBJ) \ 332 $(GUI_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(TCL_OBJ) \
320 $(RUBY_OBJ) $(HANGULIN_OBJ) $(MZSCH_OBJ) 333 $(RUBY_OBJ) $(HANGULIN_OBJ) $(MZSCH_OBJ) $(XDIFF_OBJ)
321 334
322 # Default target is making the executable 335 # Default target is making the executable
323 all : [.auto]config.h mmk_compat motif_env gtk_env perl_env python_env tcl_env ruby_env $(TARGET) 336 all : [.auto]config.h mmk_compat motif_env gtk_env perl_env python_env tcl_env ruby_env $(TARGET)
324 ! $@ 337 ! $@
325 338
700 term.obj : term.c vim.h [.auto]config.h feature.h os_unix.h \ 713 term.obj : term.c vim.h [.auto]config.h feature.h os_unix.h \
701 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \ 714 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
702 [.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \ 715 [.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
703 arabic.h 716 arabic.h
704 termlib.obj : termlib.c vim.h [.auto]config.h feature.h os_unix.h \ 717 termlib.obj : termlib.c vim.h [.auto]config.h feature.h os_unix.h \
718 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
719 [.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
720 arabic.h
721 textprop.obj : textprop.c vim.h [.auto]config.h feature.h os_unix.h \
705 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \ 722 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
706 [.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \ 723 [.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
707 arabic.h 724 arabic.h
708 ui.obj : ui.c vim.h [.auto]config.h feature.h os_unix.h \ 725 ui.obj : ui.c vim.h [.auto]config.h feature.h os_unix.h \
709 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \ 726 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
826 globals.h farsi.h arabic.h integration.h 843 globals.h farsi.h arabic.h integration.h
827 netbeans.obj : netbeans.c vim.h [.auto]config.h feature.h os_unix.h \ 844 netbeans.obj : netbeans.c vim.h [.auto]config.h feature.h os_unix.h \
828 ascii.h keymap.h term.h macros.h structs.h regexp.h \ 845 ascii.h keymap.h term.h macros.h structs.h regexp.h \
829 gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \ 846 gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
830 globals.h farsi.h arabic.h version.h 847 globals.h farsi.h arabic.h version.h
831 gui_xmdlg.obj : gui_xmdlg.c 848 gui_xmdlg.obj : gui_xmdlg.c [.auto]config.h vim.h feature.h os_unix.h
832 gui_xmebw.obj : gui_xmebw.c 849 gui_xmebw.obj : gui_xmebw.c [.auto]config.h vim.h feature.h os_unix.h
850 xdiffi.obj : [.xdiff]xdiffi.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h
851 xemit.obj : [.xdiff]xemit.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h
852 xprepare.obj : [.xdiff]xprepare.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h
853 xutils.obj : [.xdiff]xutils.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h
854 xhistogram.obj : [.xdiff]xhistogram.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h
855 xpatience.obj : [.xdiff]xpatience.c [.xdiff]xinclude.h [.auto]config.h vim.h feature.h os_unix.h