Skip to content

Commit 6f81f10

Browse files
committed
updated for version 7.3.1307
Problem: MS-Windows build instructions are outdated. Solution: Adjust for building on Windows 7. Drop Windows 95/98/ME support.
1 parent 6f80b40 commit 6f81f10

File tree

3 files changed

+56
-42
lines changed

3 files changed

+56
-42
lines changed

Makefile

Lines changed: 51 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -128,36 +128,20 @@ DOSBIN_S = dosbin_s
128128
# PC:
129129
# - Run make on Unix to update the ".mo" files.
130130
# - "make dossrc" and "make dosrt". Unpack the archives on a PC.
131-
# 16 bit DOS version: (OBSOLETE, 16 bit version doesn't build)
132-
# - Set environment for compiling with Borland C++ 3.1.
133-
# - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that
134-
# case set environment for compiling with Borland C++ 4.0 and do
135-
# "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe").
136-
# NOTE: this currently fails because Vim is too big.
137-
# - "make test" and check the output.
138-
# - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and
139-
# "uninstald16.exe".
140-
# 32 bit DOS version:
141-
# - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak".
142-
# - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for
143-
# "ALL DONE".
144-
# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
145-
# "uninstald32.exe".
146131
# Win32 console version:
147-
# - Set environment for Visual C++ 2008, e.g.:
148-
# "E:\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat". Or, when using the
149-
# Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the paths when necessary).
150-
# For Windows 98/ME the 2003 version is required, but then it won't work on
151-
# Windows 7 and 64 bit.
152-
# - "nmake -f Make_mvc.mak"
132+
# - Set environment for Visual C++ 2008, e.g.: "msvc2008.bat" Or:
133+
# "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat".
134+
# Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the
135+
# paths when necessary).
136+
# For Windows 98/ME the 2003 version is required, but then the executable
137+
# won't work on Windows 7 and 64 bit.
138+
# - "nmake -f Make_mvc.mak" (use the same path as for vcvars32.bat)
153139
# - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output.
154-
# - Rename the executables to "vimw32.exe", "xxdw32.exe".
140+
# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
155141
# - Rename vim.pdb to vimw32.pdb.
156-
# - When building the Win32s version later, delete vimrun.exe, install.exe and
157-
# uninstal.exe. Otherwise rename executables to installw32.exe and
158-
# uninstalw32.exe.
142+
# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
159143
# Win32 GUI version:
160-
# - "nmake -f Make_mvc.mak GUI=yes.
144+
# - "nmake -f Make_mvc.mak GUI=yes"
161145
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
162146
# - Move gvim.pdb to here.
163147
# - Delete vimrun.exe, install.exe and uninstal.exe.
@@ -167,23 +151,13 @@ DOSBIN_S = dosbin_s
167151
# - Rename "gvim.exe" to "gvim_ole.exe".
168152
# - Rename gvim.pdb to "gvim_ole.pdb".
169153
# - Delete install.exe and uninstal.exe.
170-
# - If building the Win32s version delete vimrun.exe.
171-
# Win32s GUI version:
172-
# - Set environment for Visual C++ 4.1 (requires a new console window):
173-
# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
174-
# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
175-
# - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
176-
# - Rename "gvim.exe" to "gvim_w32s.exe".
177-
# - Rename "install.exe" to "installw32.exe"
178-
# - Rename "uninstal.exe" to "uninstalw32.exe"
179-
# - The produced uninstalw32.exe and vimrun.exe are used.
180154
# Create the archives:
181155
# - Copy all the "*.exe" files to where this Makefile is.
182156
# - Copy all the "*.pdb" files to where this Makefile is.
183157
# - "make dosbin".
184158
# NSIS self installing exe:
185159
# - To get NSIS see http://nsis.sourceforge.net
186-
# - Make sure gvim_ole.exe, vimd32.exe, vimw32.exe, installw32.exe,
160+
# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe,
187161
# uninstalw32.exe and xxdw32.exe have been build as mentioned above.
188162
# - copy these files (get them from a binary archive or build them):
189163
# gvimext.dll in src/GvimExt
@@ -196,7 +170,44 @@ DOSBIN_S = dosbin_s
196170
# - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
197171
# - Copy gvim##.exe to the dist directory.
198172
#
199-
# OS/2: (OBSOLETE, OS/2 version is no longer distributed)
173+
# 64 bit builds (these are not in the normal distribution, the 32 bit build
174+
# works just fine on 64 bit systems).
175+
# Like the console and GUI version, but first run vcvars64.bat or
176+
# "..\VC\vcvarsall.bat x86_amd64".
177+
# - "nmake -f Make_mvc.mak"
178+
# - "nmake -f Make_mvc.mak GUI=yes"
179+
# Or run src/bigvim64.bat for an OLE version.
180+
#
181+
# OBSOLETE systems: You can build this if you have an appropriate system.
182+
#
183+
# 16 bit DOS version: (doesn't build anywhere)
184+
# - Set environment for compiling with Borland C++ 3.1.
185+
# - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that
186+
# case set environment for compiling with Borland C++ 4.0 and do
187+
# "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe").
188+
# NOTE: this currently fails because Vim is too big.
189+
# - "make test" and check the output.
190+
# - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and
191+
# "uninstald16.exe".
192+
#
193+
# 32 bit DOS version: (requires Windows XP or earlier)
194+
# - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak".
195+
# - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for
196+
# "ALL DONE".
197+
# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
198+
# "uninstald32.exe".
199+
#
200+
# Win32s GUI version: (requires very old compiler)
201+
# - Set environment for Visual C++ 4.1 (requires a new console window):
202+
# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
203+
# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
204+
# - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
205+
# - Rename "gvim.exe" to "gvim_w32s.exe".
206+
# - Rename "install.exe" to "installw32.exe"
207+
# - Rename "uninstal.exe" to "uninstalw32.exe"
208+
# - The produced uninstalw32.exe and vimrun.exe are used.
209+
#
210+
# OS/2: (requires an OS/2 system)
200211
# - Unpack the Unix archive.
201212
# - "make -f Make_os2.mak".
202213
# - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy
@@ -295,6 +306,8 @@ unixall: dist prepare
295306
$(LANG_SRC) \
296307
| (cd dist/$(VIMRTDIR); tar xf -)
297308
# Need to use a "distclean" config.mk file
309+
# Note: this file is not included in the repository to avoid problems, but it's
310+
# OK to put it in the archive.
298311
cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk
299312
# Create an empty config.h file, make dependencies require it
300313
touch dist/$(VIMRTDIR)/src/auto/config.h

nsis/gvim.nsi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# WARNING: if you make changes to this script, look out for $0 to be valid,
66
# because uninstall deletes most files in $0.
77

8-
# Location of gvim_ole.exe, vimd32.exe, GvimExt/*, etc.
8+
# Location of gvim_ole.exe, vimw32.exe, GvimExt/*, etc.
99
!define VIMSRC "..\src"
1010

1111
# Location of runtime files
@@ -247,11 +247,10 @@ Section "Vim console program (vim.exe)"
247247
ReadRegStr $R0 HKLM \
248248
"SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
249249
IfErrors 0 lbl_winnt
250-
# Windows 95/98/ME
251-
File /oname=vim.exe ${VIMSRC}\vimd32.exe
250+
# Windows 95/98/ME: not supported
252251
Goto lbl_done
253252
lbl_winnt:
254-
# Windows NT/2000/XT
253+
# Windows NT/2000/XT and later
255254
File /oname=vim.exe ${VIMSRC}\vimw32.exe
256255
lbl_done:
257256
StrCpy $2 "$2 vim view vimdiff"

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ static char *(features[]) =
728728

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
1307,
731733
/**/
732734
1306,
733735
/**/

0 commit comments

Comments
 (0)