Mercurial > vim
comparison Makefile @ 5128:3dafc80e781b v7.3.1307
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.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 04 Jul 2013 22:35:01 +0200 |
parents | 58f47e17ba15 |
children | 6ec6b7ff2d43 |
comparison
equal
deleted
inserted
replaced
5127:053a3d1ebc58 | 5128:3dafc80e781b |
---|---|
126 # - "make amirt", "make amibin". | 126 # - "make amirt", "make amibin". |
127 # | 127 # |
128 # PC: | 128 # PC: |
129 # - Run make on Unix to update the ".mo" files. | 129 # - Run make on Unix to update the ".mo" files. |
130 # - "make dossrc" and "make dosrt". Unpack the archives on a PC. | 130 # - "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". | |
146 # Win32 console version: | 131 # Win32 console version: |
147 # - Set environment for Visual C++ 2008, e.g.: | 132 # - Set environment for Visual C++ 2008, e.g.: "msvc2008.bat" Or: |
148 # "E:\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat". Or, when using the | 133 # "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat". |
149 # Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the paths when necessary). | 134 # Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the |
150 # For Windows 98/ME the 2003 version is required, but then it won't work on | 135 # paths when necessary). |
151 # Windows 7 and 64 bit. | 136 # For Windows 98/ME the 2003 version is required, but then the executable |
152 # - "nmake -f Make_mvc.mak" | 137 # won't work on Windows 7 and 64 bit. |
138 # - "nmake -f Make_mvc.mak" (use the same path as for vcvars32.bat) | |
153 # - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output. | 139 # - "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. |
155 # - Rename vim.pdb to vimw32.pdb. | 141 # - Rename vim.pdb to vimw32.pdb. |
156 # - When building the Win32s version later, delete vimrun.exe, install.exe and | 142 # - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe. |
157 # uninstal.exe. Otherwise rename executables to installw32.exe and | |
158 # uninstalw32.exe. | |
159 # Win32 GUI version: | 143 # Win32 GUI version: |
160 # - "nmake -f Make_mvc.mak GUI=yes. | 144 # - "nmake -f Make_mvc.mak GUI=yes" |
161 # - move "gvim.exe" to here (otherwise the OLE version will overwrite it). | 145 # - move "gvim.exe" to here (otherwise the OLE version will overwrite it). |
162 # - Move gvim.pdb to here. | 146 # - Move gvim.pdb to here. |
163 # - Delete vimrun.exe, install.exe and uninstal.exe. | 147 # - Delete vimrun.exe, install.exe and uninstal.exe. |
164 # - Copy "GvimExt/gvimext.dll" to here. | 148 # - Copy "GvimExt/gvimext.dll" to here. |
165 # Win32 GUI version with OLE, PERL, TCL, PYTHON and dynamic IME: | 149 # Win32 GUI version with OLE, PERL, TCL, PYTHON and dynamic IME: |
166 # - Run src/bigvim.bat ("nmake -f Make_mvc.mak GUI=yes OLE=yes IME=yes ...) | 150 # - Run src/bigvim.bat ("nmake -f Make_mvc.mak GUI=yes OLE=yes IME=yes ...) |
167 # - Rename "gvim.exe" to "gvim_ole.exe". | 151 # - Rename "gvim.exe" to "gvim_ole.exe". |
168 # - Rename gvim.pdb to "gvim_ole.pdb". | 152 # - Rename gvim.pdb to "gvim_ole.pdb". |
169 # - Delete install.exe and uninstal.exe. | 153 # - 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. | |
180 # Create the archives: | 154 # Create the archives: |
181 # - Copy all the "*.exe" files to where this Makefile is. | 155 # - Copy all the "*.exe" files to where this Makefile is. |
182 # - Copy all the "*.pdb" files to where this Makefile is. | 156 # - Copy all the "*.pdb" files to where this Makefile is. |
183 # - "make dosbin". | 157 # - "make dosbin". |
184 # NSIS self installing exe: | 158 # NSIS self installing exe: |
185 # - To get NSIS see http://nsis.sourceforge.net | 159 # - 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, |
187 # uninstalw32.exe and xxdw32.exe have been build as mentioned above. | 161 # uninstalw32.exe and xxdw32.exe have been build as mentioned above. |
188 # - copy these files (get them from a binary archive or build them): | 162 # - copy these files (get them from a binary archive or build them): |
189 # gvimext.dll in src/GvimExt | 163 # gvimext.dll in src/GvimExt |
190 # gvimext64.dll in src/GvimExt | 164 # gvimext64.dll in src/GvimExt |
191 # VisVim.dll in src/VisVim | 165 # VisVim.dll in src/VisVim |
194 # It is part of vim72.zip as vim72/gvimext.dll. | 168 # It is part of vim72.zip as vim72/gvimext.dll. |
195 # - make sure there is a diff.exe two levels up | 169 # - make sure there is a diff.exe two levels up |
196 # - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes). | 170 # - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes). |
197 # - Copy gvim##.exe to the dist directory. | 171 # - Copy gvim##.exe to the dist directory. |
198 # | 172 # |
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) | |
200 # - Unpack the Unix archive. | 211 # - Unpack the Unix archive. |
201 # - "make -f Make_os2.mak". | 212 # - "make -f Make_os2.mak". |
202 # - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy | 213 # - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy |
203 # them to here. | 214 # them to here. |
204 # - "make os2bin". | 215 # - "make os2bin". |
293 $(SRC_DOS_UNIX) \ | 304 $(SRC_DOS_UNIX) \ |
294 $(EXTRA) \ | 305 $(EXTRA) \ |
295 $(LANG_SRC) \ | 306 $(LANG_SRC) \ |
296 | (cd dist/$(VIMRTDIR); tar xf -) | 307 | (cd dist/$(VIMRTDIR); tar xf -) |
297 # Need to use a "distclean" config.mk file | 308 # 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. | |
298 cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk | 311 cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk |
299 # Create an empty config.h file, make dependencies require it | 312 # Create an empty config.h file, make dependencies require it |
300 touch dist/$(VIMRTDIR)/src/auto/config.h | 313 touch dist/$(VIMRTDIR)/src/auto/config.h |
301 # Make sure configure is newer than config.mk to force it to be generated | 314 # Make sure configure is newer than config.mk to force it to be generated |
302 touch dist/$(VIMRTDIR)/src/configure | 315 touch dist/$(VIMRTDIR)/src/configure |