Mercurial > vim
annotate src/Make_mvc.mak @ 8019:d685893d852e v7.4.1304
commit https://github.com/vim/vim/commit/7823a3bd2eed6ff9e544d201de96710bd5344aaf
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 11 21:08:32 2016 +0100
patch 7.4.1304
Problem: Function names are difficult to read.
Solution: Rename jsonencode to json_encode, jsondecode to json_decode,
jsencode to js_encode and jsdecode to js_decode.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 11 Feb 2016 21:15:05 +0100 |
parents | a98b93736894 |
children | 75e0831549f1 |
rev | line source |
---|---|
840 | 1 # Makefile for Vim on Win32 (Windows NT/2000/XP/2003 and Windows 95/98/Me) |
2 # and Win64, using the Microsoft Visual C++ compilers. Known to work with | |
1569 | 3 # VC5, VC6 (VS98), VC7.0 (VS2002), VC7.1 (VS2003), VC8 (VS2005), |
3816 | 4 # VC9 (VS2008), VC10 (VS2010) and VC11 (VS2012) |
7 | 5 # |
840 | 6 # To build using other Windows compilers, see INSTALLpc.txt |
381 | 7 # |
7 | 8 # This makefile can build the console, GUI, OLE-enable, Perl-enabled and |
1907 | 9 # Python-enabled versions of Vim for Win32 platforms. |
7 | 10 # |
1907 | 11 # The basic command line to build Vim is: |
7 | 12 # |
13 # nmake -f Make_mvc.mak | |
381 | 14 # |
1907 | 15 # This will build the console version of Vim with no additional interfaces. |
381 | 16 # To add features, define any of the following: |
17 # | |
3816 | 18 # For MSVC 11 you need to specify where the Win32.mak file is, e.g.: |
19 # SDK_INCLUDE_DIR="C:\Program Files\Microsoft SDKs\Windows\v7.1\Include" | |
20 # | |
381 | 21 # !!!! After changing features do "nmake clean" first !!!! |
22 # | |
7699
854302b82ff9
commit https://github.com/vim/vim/commit/e5f2be61595fbbba77261f3bf1e032fe03a1966d
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
23 # Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is HUGE) |
381 | 24 # |
7 | 25 # GUI interface: GUI=yes (default is no) |
381 | 26 # |
6110 | 27 # GUI with DirectWrite(DirectX): DIRECTX=yes |
28 # (default is no, requires GUI=yes) | |
29 # | |
7 | 30 # OLE interface: OLE=yes (usually with GUI=yes) |
381 | 31 # |
775 | 32 # Multibyte support: MBYTE=yes (default is no) |
381 | 33 # |
7 | 34 # IME support: IME=yes (requires GUI=yes) |
35 # DYNAMIC_IME=[yes or no] (to load the imm32.dll dynamically, default | |
36 # is yes) | |
37 # Global IME support: GIME=yes (requires GUI=yes) | |
381 | 38 # |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
39 # Lua interface: |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
40 # LUA=[Path to Lua directory] |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
41 # DYNAMIC_LUA=yes (to load the Lua DLL dynamically) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
42 # LUA_VER=[Lua version] (default is 51) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
43 # |
146 | 44 # MzScheme interface: |
45 # MZSCHEME=[Path to MzScheme directory] | |
46 # DYNAMIC_MZSCHEME=yes (to load the MzScheme DLLs dynamically) | |
47 # MZSCHEME_VER=[version, 205_000, ...] | |
1894 | 48 # MZSCHEME_DEBUG=no |
381 | 49 # |
7 | 50 # Perl interface: |
51 # PERL=[Path to Perl directory] | |
52 # DYNAMIC_PERL=yes (to load the Perl DLL dynamically) | |
6326 | 53 # PERL_VER=[Perl version, in the form 55 (5.005), 56 (5.6.x), |
54 # 510 (5.10.x), etc] | |
381 | 55 # (default is 56) |
56 # | |
7 | 57 # Python interface: |
58 # PYTHON=[Path to Python directory] | |
59 # DYNAMIC_PYTHON=yes (to load the Python DLL dynamically) | |
6326 | 60 # PYTHON_VER=[Python version, eg 22, 23, ..., 27] (default is 22) |
381 | 61 # |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
62 # Python3 interface: |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
63 # PYTHON3=[Path to Python3 directory] |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
64 # DYNAMIC_PYTHON3=yes (to load the Python3 DLL dynamically) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
65 # PYTHON3_VER=[Python3 version, eg 30, 31] (default is 31) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
66 # |
7 | 67 # Ruby interface: |
68 # RUBY=[Path to Ruby directory] | |
69 # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically) | |
6326 | 70 # RUBY_VER=[Ruby version, eg 18, 19, 20] (default is 18) |
71 # RUBY_VER_LONG=[Ruby version, eg 1.8, 1.9.1, 2.0.0] (default is 1.8) | |
7 | 72 # You must set RUBY_VER_LONG when change RUBY_VER. |
6326 | 73 # RUBY_API_VER is derived from RUBY_VER_LONG. |
74 # Note: If you use Ruby 1.9.3, set as follows: | |
75 # RUBY_VER=19 | |
76 # RUBY_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.) | |
381 | 77 # |
7 | 78 # Tcl interface: |
79 # TCL=[Path to Tcl directory] | |
80 # DYNAMIC_TCL=yes (to load the Tcl DLL dynamically) | |
81 # TCL_VER=[Tcl version, e.g. 80, 83] (default is 83) | |
82 # TCL_VER_LONG=[Tcl version, eg 8.3] (default is 8.3) | |
83 # You must set TCL_VER_LONG when you set TCL_VER. | |
381 | 84 # |
85 # SNiFF+ interface: SNIFF=yes | |
86 # | |
87 # Cscope support: CSCOPE=yes | |
88 # | |
89 # Iconv library support (always dynamically loaded): | |
90 # ICONV=[yes or no] (default is yes) | |
91 # | |
92 # Intl library support (always dynamically loaded): | |
93 # GETTEXT=[yes or no] (default is yes) | |
94 # See http://sourceforge.net/projects/gettext/ | |
95 # | |
4446 | 96 # PostScript printing: POSTSCRIPT=yes (default is no) |
381 | 97 # |
4446 | 98 # Netbeans Support: NETBEANS=[yes or no] (default is yes if GUI is yes) |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
99 # Requires CHANNEL. |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
100 # |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
101 # Netbeans Debugging Support: NBDEBUG=[yes or no] (should be no, yes |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
102 # doesn't work) |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
103 # |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
104 # Inter process communication: CHANNEL=[yes or no] (default is yes if GUI |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
105 # is yes) |
381 | 106 # |
4446 | 107 # XPM Image Support: XPM=[path to XPM directory] |
108 # Default is "xpm", using the files included in the distribution. | |
109 # Use "no" to disable this feature. | |
381 | 110 # |
4446 | 111 # Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED) |
381 | 112 # |
4446 | 113 # Processor Version: CPUNR=[i386, i486, i586, i686, pentium4] (default is |
114 # i386) | |
381 | 115 # |
4446 | 116 # Version Support: WINVER=[0x0400, 0x0500] (default is 0x0400) |
381 | 117 # |
7 | 118 # Debug version: DEBUG=yes |
119 # Mapfile: MAP=[no, yes or lines] (default is yes) | |
120 # no: Don't write a mapfile. | |
121 # yes: Write a normal mapfile. | |
122 # lines: Write a mapfile with line numbers (only for VC6 and later) | |
381 | 123 # |
4446 | 124 # Static Code Analysis: ANALYZE=yes (works with VS2012 only) |
1419 | 125 # |
7 | 126 # You can combine any of these interfaces |
127 # | |
128 # Example: To build the non-debug, GUI version with Perl interface: | |
129 # nmake -f Make_mvc.mak GUI=yes PERL=C:\Perl | |
130 # | |
131 # DEBUG with Make_mvc.mak and Make_dvc.mak: | |
132 # This makefile gives a fineness of control which is not supported in | |
133 # Visual C++ configuration files. Therefore, debugging requires a bit of | |
134 # extra work. | |
1419 | 135 # Make_dvc.mak is a Visual C++ project to access that support. It may be |
136 # badly out of date for the Visual C++ you are using... | |
7 | 137 # To use Make_dvc.mak: |
138 # 1) Build Vim with Make_mvc.mak. | |
139 # Use a "DEBUG=yes" argument to build Vim with debug support. | |
140 # E.g. the following builds gvimd.exe: | |
141 # nmake -f Make_mvc.mak debug=yes gui=yes | |
142 # 2) Use MS Devstudio and set it up to allow that file to be debugged: | |
143 # i) Pass Make_dvc.mak to the IDE. | |
144 # Use the "open workspace" menu entry to load Make_dvc.mak. | |
145 # Alternatively, from the command line: | |
146 # msdev /nologo Make_dvc.mak | |
147 # Note: Make_dvc.mak is in VC4.0 format. Later VC versions see | |
148 # this and offer to convert it to their own format. Accept that. | |
149 # It creates a file called Make_dvc.dsw which can then be used | |
150 # for further operations. E.g. | |
151 # msdev /nologo Make_dvc.dsw | |
152 # ii) Set the built executable for debugging: | |
153 # a) Alt+F7/Debug takes you to the Debug dialog. | |
154 # b) Fill "Executable for debug session". e.g. gvimd.exe | |
155 # c) Fill "Program arguments". e.g. -R dosinst.c | |
156 # d) Complete the dialog | |
157 # 3) You can now debug the executable you built with Make_mvc.mak | |
158 # | |
159 # Note: Make_dvc.mak builds vimrun.exe, because it must build something | |
160 # to be a valid makefile.. | |
161 | |
162 ### See feature.h for a list of optionals. | |
163 # If you want to build some optional features without modifying the source, | |
164 # you can set DEFINES on the command line, e.g., | |
714 | 165 # nmake -f Make_mvc.mvc "DEFINES=-DEMACS_TAGS" |
7 | 166 |
714 | 167 # Build on both Windows NT/XP and Windows 9x |
7 | 168 |
169 TARGETOS = BOTH | |
170 | |
323 | 171 # Select one of eight object code directories, depends on GUI, OLE, DEBUG and |
172 # interfaces. | |
7 | 173 # If you change something else, do "make clean" first! |
174 !if "$(GUI)" == "yes" | |
175 OBJDIR = .\ObjG | |
176 !else | |
177 OBJDIR = .\ObjC | |
178 !endif | |
6110 | 179 !if "$(DIRECTX)" == "yes" |
180 OBJDIR = $(OBJDIR)X | |
181 !endif | |
7 | 182 !if "$(OLE)" == "yes" |
183 OBJDIR = $(OBJDIR)O | |
184 !endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
185 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
186 OBJDIR = $(OBJDIR)U |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
187 !endif |
323 | 188 !ifdef PERL |
189 OBJDIR = $(OBJDIR)L | |
190 !endif | |
191 !ifdef PYTHON | |
192 OBJDIR = $(OBJDIR)Y | |
193 !endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
194 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
195 OBJDIR = $(OBJDIR)H |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
196 !endif |
323 | 197 !ifdef TCL |
198 OBJDIR = $(OBJDIR)T | |
199 !endif | |
200 !ifdef RUBY | |
201 OBJDIR = $(OBJDIR)R | |
202 !endif | |
14 | 203 !ifdef MZSCHEME |
204 OBJDIR = $(OBJDIR)Z | |
205 !endif | |
7 | 206 !if "$(DEBUG)" == "yes" |
207 OBJDIR = $(OBJDIR)d | |
208 !endif | |
209 | |
835 | 210 # Win32.mak requires that CPU be set appropriately. |
211 # To cross-compile for Win64, set CPU=AMD64 or CPU=IA64. | |
7 | 212 |
213 !ifdef PROCESSOR_ARCHITECTURE | |
714 | 214 # We're on Windows NT or using VC 6+ |
840 | 215 ! ifdef CPU |
216 ASSEMBLY_ARCHITECTURE=$(CPU) | |
842 | 217 # Using I386 for $ASSEMBLY_ARCHITECTURE doesn't work for VC7. |
7324
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
218 ! if "$(CPU)" == "I386" |
7 | 219 CPU = i386 |
835 | 220 ! endif |
7324
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
221 ! else # !CPU |
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
222 CPU = i386 |
7591
4447dc38bc22
commit https://github.com/vim/vim/commit/3d6d5cc3a417c04d9772596ea83f8e6b41321781
Christian Brabandt <cb@256bit.org>
parents:
7555
diff
changeset
|
223 ! if !defined(PLATFORM) && defined(TARGET_CPU) |
4447dc38bc22
commit https://github.com/vim/vim/commit/3d6d5cc3a417c04d9772596ea83f8e6b41321781
Christian Brabandt <cb@256bit.org>
parents:
7555
diff
changeset
|
224 PLATFORM = $(TARGET_CPU) |
4447dc38bc22
commit https://github.com/vim/vim/commit/3d6d5cc3a417c04d9772596ea83f8e6b41321781
Christian Brabandt <cb@256bit.org>
parents:
7555
diff
changeset
|
225 ! endif |
7324
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
226 ! ifdef PLATFORM |
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
227 ! if ("$(PLATFORM)" == "x64") || ("$(PLATFORM)" == "X64") |
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
228 CPU = AMD64 |
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
229 ! elseif ("$(PLATFORM)" != "x86") && ("$(PLATFORM)" != "X86") |
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
230 ! error *** ERROR Unknown target platform "$(PLATFORM)". Make aborted. |
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
231 ! endif |
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
232 ! endif # !PLATFORM |
7 | 233 ! endif |
234 !else # !PROCESSOR_ARCHITECTURE | |
235 # We're on Windows 95 | |
236 CPU = i386 | |
237 !endif # !PROCESSOR_ARCHITECTURE | |
7324
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
238 ASSEMBLY_ARCHITECTURE=$(CPU) |
3790 | 239 OBJDIR = $(OBJDIR)$(CPU) |
7 | 240 |
241 # Build a retail version by default | |
242 | |
243 !if "$(DEBUG)" != "yes" | |
244 NODEBUG = 1 | |
245 !else | |
1419 | 246 !undef NODEBUG |
7 | 247 MAKEFLAGS_GVIMEXT = DEBUG=yes |
248 !endif | |
249 | |
250 | |
1419 | 251 # Get all sorts of useful, standard macros from the Platform SDK. |
7 | 252 |
3816 | 253 !ifdef SDK_INCLUDE_DIR |
254 !include $(SDK_INCLUDE_DIR)\Win32.mak | |
255 !else | |
714 | 256 !include <Win32.mak> |
3816 | 257 !endif |
258 | |
7 | 259 |
2243
03a5f2897db3
Fix completion of file names with '%' and '*'.
Bram Moolenaar <bram@vim.org>
parents:
2242
diff
changeset
|
260 # Flag to turn on Win64 compatibility warnings for VC7.x and VC8. |
2242
bc4685345719
Don't use pointers to store numbers, use a union.
Bram Moolenaar <bram@vim.org>
parents:
2220
diff
changeset
|
261 WP64CHECK = /Wp64 |
7 | 262 |
263 #>>>>> path of the compiler and linker; name of include and lib directories | |
264 # PATH = c:\msvc20\bin;$(PATH) | |
265 # INCLUDE = c:\msvc20\include | |
266 # LIB = c:\msvc20\lib | |
267 | |
268 !ifndef CTAGS | |
269 CTAGS = ctags | |
270 !endif | |
271 | |
272 !if "$(SNIFF)" == "yes" | |
273 # SNIFF - Include support for SNiFF+. | |
274 SNIFF_INCL = if_sniff.h | |
275 SNIFF_OBJ = $(OBJDIR)/if_sniff.obj | |
416 | 276 SNIFF_LIB = shell32.lib |
7 | 277 SNIFF_DEFS = -DFEAT_SNIFF |
278 # The SNiFF integration needs multithreaded libraries! | |
279 MULTITHREADED = yes | |
280 !endif | |
281 | |
282 !ifndef CSCOPE | |
283 CSCOPE = yes | |
284 !endif | |
285 | |
286 !if "$(CSCOPE)" == "yes" | |
287 # CSCOPE - Include support for Cscope | |
288 CSCOPE_INCL = if_cscope.h | |
289 CSCOPE_OBJ = $(OBJDIR)/if_cscope.obj | |
290 CSCOPE_DEFS = -DFEAT_CSCOPE | |
291 !endif | |
292 | |
293 !ifndef NETBEANS | |
294 NETBEANS = $(GUI) | |
295 !endif | |
296 | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
297 !ifndef CHANNEL |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
298 CHANNEL = $(GUI) |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
299 !endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
300 |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
301 # Only allow NETBEANS and XPM for a GUI build and CHANNEL. |
12 | 302 !if "$(GUI)" == "yes" |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
303 !if "$(NETBEANS)" == "yes" && "$(CHANNEL)" == "yes" |
7 | 304 # NETBEANS - Include support for Netbeans integration |
305 NETBEANS_PRO = proto/netbeans.pro | |
184 | 306 NETBEANS_OBJ = $(OBJDIR)/netbeans.obj |
7 | 307 NETBEANS_DEFS = -DFEAT_NETBEANS_INTG |
12 | 308 |
309 !if "$(NBDEBUG)" == "yes" | |
7 | 310 NBDEBUG_DEFS = -DNBDEBUG |
311 NBDEBUG_INCL = nbdebug.h | |
312 NBDEBUG_SRC = nbdebug.c | |
313 !endif | |
416 | 314 NETBEANS_LIB = WSock32.lib |
7 | 315 !endif |
316 | |
6110 | 317 # DirectWrite(DirectX) |
318 !if "$(DIRECTX)" == "yes" | |
319 DIRECTX_DEFS = -DFEAT_DIRECTX -DDYNAMIC_DIRECTX | |
320 DIRECTX_INCL = gui_dwrite.h | |
321 DIRECTX_OBJ = $(OUTDIR)\gui_dwrite.obj | |
322 !endif | |
323 | |
3762 | 324 !ifndef XPM |
325 # XPM is not set, use the included xpm files, depending on the architecture. | |
3790 | 326 !if "$(CPU)" == "AMD64" |
3762 | 327 XPM = xpm\x64 |
3790 | 328 !elseif "$(CPU)" == "i386" |
329 XPM = xpm\x86 | |
3762 | 330 !else |
3790 | 331 XPM = no |
3762 | 332 !endif |
333 !endif | |
334 !if "$(XPM)" != "no" | |
7 | 335 # XPM - Include support for XPM signs |
3762 | 336 # See the xpm directory for more information. |
7 | 337 XPM_OBJ = $(OBJDIR)/xpm_w32.obj |
338 XPM_DEFS = -DFEAT_XPM_W32 | |
339 XPM_LIB = $(XPM)\lib\libXpm.lib | |
3762 | 340 XPM_INC = -I $(XPM)\include -I $(XPM)\..\include |
7 | 341 !endif |
12 | 342 !endif |
7 | 343 |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
344 !if "$(CHANNEL)" == "yes" |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
345 CHANNEL_PRO = proto/channel.pro |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
346 CHANNEL_OBJ = $(OBJDIR)/channel.obj |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
347 CHANNEL_DEFS = -DFEAT_CHANNEL |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
348 |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
349 NETBEANS_LIB = WSock32.lib |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
350 !endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
351 |
714 | 352 # Set which version of the CRT to use |
7 | 353 !if defined(USE_MSVCRT) |
1419 | 354 # CVARS = $(cvarsdll) |
714 | 355 # !elseif defined(MULTITHREADED) |
356 # CVARS = $(cvarsmt) | |
357 !else | |
358 # CVARS = $(cvars) | |
1419 | 359 # CVARS = $(cvarsmt) |
7 | 360 !endif |
361 | |
362 # need advapi32.lib for GetUserName() | |
363 # need shell32.lib for ExtractIcon() | |
364 # gdi32.lib and comdlg32.lib for printing support | |
365 # ole32.lib and uuid.lib are needed for FEAT_SHORTCUT | |
1569 | 366 CON_LIB = oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib \ |
6797 | 367 comdlg32.lib ole32.lib uuid.lib /machine:$(CPU) |
714 | 368 !if "$(DELAYLOAD)" == "yes" |
7 | 369 CON_LIB = $(CON_LIB) /DELAYLOAD:comdlg32.dll /DELAYLOAD:ole32.dll DelayImp.lib |
370 !endif | |
371 | |
372 ### Set the default $(WINVER) to make it work with VC++7.0 (VS.NET) | |
373 # When set to 0x0500 ":browse" stops working. | |
374 !ifndef WINVER | |
375 WINVER = 0x0400 | |
376 !endif | |
377 | |
378 # If you have a fixed directory for $VIM or $VIMRUNTIME, other than the normal | |
379 # default, use these lines. | |
380 #VIMRCLOC = somewhere | |
381 #VIMRUNTIMEDIR = somewhere | |
382 | |
383 CFLAGS = -c /W3 /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \ | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
384 $(SNIFF_DEFS) $(CSCOPE_DEFS) $(NETBEANS_DEFS) $(CHANNEL_DEFS) \ |
7 | 385 $(NBDEBUG_DEFS) $(XPM_DEFS) \ |
416 | 386 $(DEFINES) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \ |
387 /Fo$(OUTDIR)/ | |
7 | 388 |
389 #>>>>> end of choices | |
390 ########################################################################### | |
391 | |
392 !ifdef OS | |
393 OS_TYPE = winnt | |
394 DEL_TREE = rmdir /s /q | |
395 !else | |
396 OS_TYPE = win95 | |
397 DEL_TREE = deltree /y | |
398 !endif | |
399 | |
400 INTDIR=$(OBJDIR) | |
401 OUTDIR=$(OBJDIR) | |
402 | |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
403 !if [echo MSVCVER=_MSC_VER> msvcver.c && $(CC) /EP msvcver.c > msvcver.~ 2> nul] |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
404 !message *** ERROR |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
405 !message Cannot run Visual C to determine its version. Make sure cl.exe is in your PATH. |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
406 !message This can usually be done by running "vcvarsall.bat", located in the bin directory where Visual Studio was installed. |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
407 !error Make aborted. |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
408 !else |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
409 !include msvcver.~ |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
410 !if [del msvcver.c msvcver.~] |
6797 | 411 !endif |
1419 | 412 !endif |
413 | |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
414 !if $(MSVCVER) < 1900 |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
415 MSVC_MAJOR = ($(MSVCVER) / 100 - 6) |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
416 MSVCRT_VER = ($(MSVCVER) / 10 - 60) |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
417 !else |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
418 MSVC_MAJOR = ($(MSVCVER) / 100 - 5) |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
419 MSVCRT_VER = ($(MSVCVER) / 10 - 50) |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
420 !endif |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
421 |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
422 # Calculate MSVCRT_VER |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
423 !if [(set /a MSVCRT_VER="$(MSVCRT_VER)" > nul) && set MSVCRT_VER > msvcrtver.~] == 0 |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
424 !include msvcrtver.~ |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
425 !if [del msvcrtver.~] |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
426 !endif |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
427 !endif |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
428 |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
429 # Base name of the msvcrXX.dll |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
430 !if $(MSVCRT_VER) <= 60 |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
431 MSVCRT_NAME = msvcrt |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
432 !else |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
433 MSVCRT_NAME = msvcr$(MSVCRT_VER) |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
434 !endif |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
435 |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
436 !if $(MSVC_MAJOR) == 6 |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
437 CPU = ix86 |
1419 | 438 !endif |
439 | |
7 | 440 # Convert processor ID to MVC-compatible number |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
441 !if $(MSVC_MAJOR) < 8 |
7 | 442 !if "$(CPUNR)" == "i386" |
443 CPUARG = /G3 | |
444 !elseif "$(CPUNR)" == "i486" | |
445 CPUARG = /G4 | |
446 !elseif "$(CPUNR)" == "i586" | |
447 CPUARG = /G5 | |
448 !elseif "$(CPUNR)" == "i686" | |
449 CPUARG = /G6 | |
84 | 450 !elseif "$(CPUNR)" == "pentium4" |
47 | 451 CPUARG = /G7 /arch:SSE2 |
7 | 452 !else |
453 CPUARG = | |
454 !endif | |
1419 | 455 !else |
2867 | 456 # VC8/9/10 only allows specifying SSE architecture but only for 32bit |
7324
a3b8a63c88ef
commit https://github.com/vim/vim/commit/6b90351786eb0915336b576cc930300bf5c9ac63
Christian Brabandt <cb@256bit.org>
parents:
7309
diff
changeset
|
457 !if "$(ASSEMBLY_ARCHITECTURE)" == "i386" && "$(CPUNR)" == "pentium4" |
1419 | 458 CPUARG = /arch:SSE2 |
459 !endif | |
460 !endif | |
461 | |
462 LIBC = | |
463 DEBUGINFO = /Zi | |
7 | 464 |
6797 | 465 # Don't use /nodefaultlib on MSVC 14 |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
466 !if $(MSVC_MAJOR) >= 14 |
6797 | 467 NODEFAULTLIB = |
468 !else | |
469 NODEFAULTLIB = /nodefaultlib | |
470 !endif | |
471 | |
7 | 472 !ifdef NODEBUG |
473 VIM = vim | |
474 !if "$(OPTIMIZE)" == "SPACE" | |
475 OPTFLAG = /O1 | |
476 !elseif "$(OPTIMIZE)" == "SPEED" | |
477 OPTFLAG = /O2 | |
478 !else # MAXSPEED | |
479 OPTFLAG = /Ox | |
480 !endif | |
2242
bc4685345719
Don't use pointers to store numbers, use a union.
Bram Moolenaar <bram@vim.org>
parents:
2220
diff
changeset
|
481 |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
482 !if $(MSVC_MAJOR) >= 8 |
1419 | 483 # Use link time code generation if not worried about size |
484 !if "$(OPTIMIZE)" != "SPACE" | |
485 OPTFLAG = $(OPTFLAG) /GL | |
486 !endif | |
487 !endif | |
2242
bc4685345719
Don't use pointers to store numbers, use a union.
Bram Moolenaar <bram@vim.org>
parents:
2220
diff
changeset
|
488 |
bc4685345719
Don't use pointers to store numbers, use a union.
Bram Moolenaar <bram@vim.org>
parents:
2220
diff
changeset
|
489 # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.) |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
490 !if ($(MSVC_MAJOR) == 7) || ($(MSVC_MAJOR) == 8) |
2242
bc4685345719
Don't use pointers to store numbers, use a union.
Bram Moolenaar <bram@vim.org>
parents:
2220
diff
changeset
|
491 CFLAGS=$(CFLAGS) $(WP64CHECK) |
bc4685345719
Don't use pointers to store numbers, use a union.
Bram Moolenaar <bram@vim.org>
parents:
2220
diff
changeset
|
492 !endif |
bc4685345719
Don't use pointers to store numbers, use a union.
Bram Moolenaar <bram@vim.org>
parents:
2220
diff
changeset
|
493 |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
494 # Static code analysis generally available starting with VS2012 (VC11) or |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
495 # Windows SDK 7.1 (VC10) |
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
496 !if ("$(ANALYZE)" == "yes") && ($(MSVC_MAJOR) >= 10) |
4446 | 497 CFLAGS=$(CFLAGS) /analyze |
498 !endif | |
499 | |
47 | 500 CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG) |
7 | 501 RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG |
502 ! ifdef USE_MSVCRT | |
1419 | 503 CFLAGS = $(CFLAGS) /MD |
7 | 504 LIBC = msvcrt.lib |
714 | 505 ! else |
7 | 506 LIBC = libcmt.lib |
1569 | 507 CFLAGS = $(CFLAGS) /Zl /MT |
7 | 508 ! endif |
509 !else # DEBUG | |
510 VIM = vimd | |
1569 | 511 ! if ("$(CPU)" == "i386") || ("$(CPU)" == "ix86") |
1419 | 512 DEBUGINFO = /ZI |
513 ! endif | |
268 | 514 CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /Od |
7 | 515 RCFLAGS = $(rcflags) $(rcvars) -D_DEBUG -DDEBUG |
516 # The /fixed:no is needed for Quantify. Assume not 4.? as unsupported in VC4.0. | |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
517 ! if $(MSVC_MAJOR) == 4 |
7 | 518 LIBC = |
519 ! else | |
520 LIBC = /fixed:no | |
521 ! endif | |
426 | 522 ! ifdef USE_MSVCRT |
1419 | 523 CFLAGS = $(CFLAGS) /MDd |
7 | 524 LIBC = $(LIBC) msvcrtd.lib |
714 | 525 ! else |
426 | 526 LIBC = $(LIBC) libcmtd.lib |
1569 | 527 CFLAGS = $(CFLAGS) /Zl /MTd |
7 | 528 ! endif |
529 !endif # DEBUG | |
530 | |
531 INCL = vim.h os_win32.h ascii.h feature.h globals.h keymap.h macros.h \ | |
532 proto.h option.h structs.h term.h $(SNIFF_INCL) $(CSCOPE_INCL) \ | |
533 $(NBDEBUG_INCL) | |
534 | |
535 OBJ = \ | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
2101
diff
changeset
|
536 $(OUTDIR)\blowfish.obj \ |
7 | 537 $(OUTDIR)\buffer.obj \ |
538 $(OUTDIR)\charset.obj \ | |
6126 | 539 $(OUTDIR)\crypt.obj \ |
540 $(OUTDIR)\crypt_zip.obj \ | |
7 | 541 $(OUTDIR)\diff.obj \ |
542 $(OUTDIR)\digraph.obj \ | |
543 $(OUTDIR)\edit.obj \ | |
544 $(OUTDIR)\eval.obj \ | |
545 $(OUTDIR)\ex_cmds.obj \ | |
546 $(OUTDIR)\ex_cmds2.obj \ | |
547 $(OUTDIR)\ex_docmd.obj \ | |
548 $(OUTDIR)\ex_eval.obj \ | |
549 $(OUTDIR)\ex_getln.obj \ | |
550 $(OUTDIR)\fileio.obj \ | |
551 $(OUTDIR)\fold.obj \ | |
552 $(OUTDIR)\getchar.obj \ | |
440 | 553 $(OUTDIR)\hardcopy.obj \ |
799 | 554 $(OUTDIR)\hashtab.obj \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
7699
diff
changeset
|
555 $(OUTDIR)\json.obj \ |
7 | 556 $(OUTDIR)\main.obj \ |
557 $(OUTDIR)\mark.obj \ | |
558 $(OUTDIR)\mbyte.obj \ | |
559 $(OUTDIR)\memfile.obj \ | |
560 $(OUTDIR)\memline.obj \ | |
561 $(OUTDIR)\menu.obj \ | |
562 $(OUTDIR)\message.obj \ | |
563 $(OUTDIR)\misc1.obj \ | |
564 $(OUTDIR)\misc2.obj \ | |
565 $(OUTDIR)\move.obj \ | |
566 $(OUTDIR)\normal.obj \ | |
567 $(OUTDIR)\ops.obj \ | |
568 $(OUTDIR)\option.obj \ | |
569 $(OUTDIR)\os_mswin.obj \ | |
4168 | 570 $(OUTDIR)\winclip.obj \ |
7 | 571 $(OUTDIR)\os_win32.obj \ |
572 $(OUTDIR)\pathdef.obj \ | |
799 | 573 $(OUTDIR)\popupmnu.obj \ |
7 | 574 $(OUTDIR)\quickfix.obj \ |
575 $(OUTDIR)\regexp.obj \ | |
576 $(OUTDIR)\screen.obj \ | |
577 $(OUTDIR)\search.obj \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
578 $(OUTDIR)\sha256.obj \ |
220 | 579 $(OUTDIR)\spell.obj \ |
7 | 580 $(OUTDIR)\syntax.obj \ |
581 $(OUTDIR)\tag.obj \ | |
582 $(OUTDIR)\term.obj \ | |
583 $(OUTDIR)\ui.obj \ | |
584 $(OUTDIR)\undo.obj \ | |
585 $(OUTDIR)\window.obj \ | |
586 $(OUTDIR)\vim.res | |
587 | |
588 !if "$(OLE)" == "yes" | |
589 CFLAGS = $(CFLAGS) -DFEAT_OLE | |
590 RCFLAGS = $(RCFLAGS) -DFEAT_OLE | |
591 OLE_OBJ = $(OUTDIR)\if_ole.obj | |
592 OLE_IDL = if_ole.idl | |
593 OLE_LIB = oleaut32.lib | |
594 !endif | |
595 | |
596 !if "$(IME)" == "yes" | |
597 CFLAGS = $(CFLAGS) -DFEAT_MBYTE_IME | |
598 !ifndef DYNAMIC_IME | |
599 DYNAMIC_IME = yes | |
600 !endif | |
601 !if "$(DYNAMIC_IME)" == "yes" | |
602 CFLAGS = $(CFLAGS) -DDYNAMIC_IME | |
603 !else | |
604 IME_LIB = imm32.lib | |
605 !endif | |
606 !endif | |
607 | |
608 !if "$(GIME)" == "yes" | |
609 CFLAGS = $(CFLAGS) -DGLOBAL_IME | |
610 OBJ = $(OBJ) $(OUTDIR)\dimm_i.obj $(OUTDIR)\glbl_ime.obj | |
611 MBYTE = yes | |
612 !endif | |
613 | |
614 !if "$(MBYTE)" == "yes" | |
615 CFLAGS = $(CFLAGS) -DFEAT_MBYTE | |
616 !endif | |
617 | |
618 !if "$(GUI)" == "yes" | |
619 SUBSYSTEM = windows | |
620 CFLAGS = $(CFLAGS) -DFEAT_GUI_W32 | |
621 RCFLAGS = $(RCFLAGS) -DFEAT_GUI_W32 | |
622 VIM = g$(VIM) | |
623 GUI_INCL = \ | |
624 gui.h \ | |
625 regexp.h \ | |
626 ascii.h \ | |
627 ex_cmds.h \ | |
628 farsi.h \ | |
629 feature.h \ | |
630 globals.h \ | |
184 | 631 gui_beval.h \ |
7 | 632 keymap.h \ |
633 macros.h \ | |
634 option.h \ | |
635 os_dos.h \ | |
636 os_win32.h | |
637 GUI_OBJ = \ | |
638 $(OUTDIR)\gui.obj \ | |
184 | 639 $(OUTDIR)\gui_beval.obj \ |
7 | 640 $(OUTDIR)\gui_w32.obj \ |
641 $(OUTDIR)\os_w32exe.obj | |
642 GUI_LIB = \ | |
1569 | 643 gdi32.lib version.lib $(IME_LIB) \ |
7 | 644 winspool.lib comctl32.lib advapi32.lib shell32.lib \ |
6797 | 645 /machine:$(CPU) |
7 | 646 !else |
647 SUBSYSTEM = console | |
648 !endif | |
649 | |
6149 | 650 !if "$(SUBSYSTEM_VER)" != "" |
651 SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER) | |
652 !endif | |
653 | |
6110 | 654 !if "$(GUI)" == "yes" && "$(DIRECTX)" == "yes" |
655 CFLAGS = $(CFLAGS) $(DIRECTX_DEFS) | |
656 GUI_INCL = $(GUI_INCL) $(DIRECTX_INCL) | |
657 GUI_OBJ = $(GUI_OBJ) $(DIRECTX_OBJ) | |
658 !endif | |
659 | |
7 | 660 # iconv.dll library (dynamically loaded) |
661 !ifndef ICONV | |
662 ICONV = yes | |
663 !endif | |
664 !if "$(ICONV)" == "yes" | |
665 CFLAGS = $(CFLAGS) -DDYNAMIC_ICONV | |
666 !endif | |
667 | |
668 # libintl.dll library | |
669 !ifndef GETTEXT | |
670 GETTEXT = yes | |
671 !endif | |
672 !if "$(GETTEXT)" == "yes" | |
673 CFLAGS = $(CFLAGS) -DDYNAMIC_GETTEXT | |
674 !endif | |
675 | |
676 # TCL interface | |
677 !ifdef TCL | |
678 !ifndef TCL_VER | |
679 TCL_VER = 83 | |
680 TCL_VER_LONG = 8.3 | |
681 !endif | |
682 !message Tcl requested (version $(TCL_VER)) - root dir is "$(TCL)" | |
683 !if "$(DYNAMIC_TCL)" == "yes" | |
684 !message Tcl DLL will be loaded dynamically | |
685 TCL_DLL = tcl$(TCL_VER).dll | |
416 | 686 CFLAGS = $(CFLAGS) -DFEAT_TCL -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"$(TCL_DLL)\" \ |
687 -DDYNAMIC_TCL_VER=\"$(TCL_VER_LONG)\" | |
7 | 688 TCL_OBJ = $(OUTDIR)\if_tcl.obj |
689 TCL_INC = /I "$(TCL)\Include" /I "$(TCL)" | |
3369 | 690 TCL_LIB = "$(TCL)\lib\tclstub$(TCL_VER).lib" |
7 | 691 !else |
692 CFLAGS = $(CFLAGS) -DFEAT_TCL | |
693 TCL_OBJ = $(OUTDIR)\if_tcl.obj | |
694 TCL_INC = /I "$(TCL)\Include" /I "$(TCL)" | |
695 TCL_LIB = $(TCL)\lib\tcl$(TCL_VER)vc.lib | |
696 !endif | |
697 !endif | |
698 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
699 # Lua interface |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
700 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
701 !ifndef LUA_VER |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
702 LUA_VER = 51 |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
703 !endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
704 !message Lua requested (version $(LUA_VER)) - root dir is "$(LUA)" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
705 !if "$(DYNAMIC_LUA)" == "yes" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
706 !message Lua DLL will be loaded dynamically |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
707 !endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
708 CFLAGS = $(CFLAGS) -DFEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
709 LUA_OBJ = $(OUTDIR)\if_lua.obj |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
710 LUA_INC = /I "$(LUA)\include" /I "$(LUA)" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
711 !if "$(DYNAMIC_LUA)" == "yes" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
712 CFLAGS = $(CFLAGS) -DDYNAMIC_LUA \ |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
713 -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
714 LUA_LIB = /nodefaultlib:lua$(LUA_VER).lib |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
715 !else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
716 LUA_LIB = "$(LUA)\lib\lua$(LUA_VER).lib" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
717 !endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
718 !endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
719 |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
720 !ifdef PYTHON |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
721 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
722 DYNAMIC_PYTHON=yes |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
723 DYNAMIC_PYTHON3=yes |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
724 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
725 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
726 |
7 | 727 # PYTHON interface |
728 !ifdef PYTHON | |
729 !ifndef PYTHON_VER | |
730 PYTHON_VER = 22 | |
731 !endif | |
732 !message Python requested (version $(PYTHON_VER)) - root dir is "$(PYTHON)" | |
733 !if "$(DYNAMIC_PYTHON)" == "yes" | |
734 !message Python DLL will be loaded dynamically | |
735 !endif | |
736 CFLAGS = $(CFLAGS) -DFEAT_PYTHON | |
737 PYTHON_OBJ = $(OUTDIR)\if_python.obj | |
738 PYTHON_INC = /I "$(PYTHON)\Include" /I "$(PYTHON)\PC" | |
739 !if "$(DYNAMIC_PYTHON)" == "yes" | |
416 | 740 CFLAGS = $(CFLAGS) -DDYNAMIC_PYTHON \ |
741 -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\" | |
7 | 742 PYTHON_LIB = /nodefaultlib:python$(PYTHON_VER).lib |
743 !else | |
744 PYTHON_LIB = $(PYTHON)\libs\python$(PYTHON_VER).lib | |
745 !endif | |
746 !endif | |
747 | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
748 # PYTHON3 interface |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
749 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
750 !ifndef PYTHON3_VER |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
751 PYTHON3_VER = 31 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
752 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
753 !message Python3 requested (version $(PYTHON3_VER)) - root dir is "$(PYTHON3)" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
754 !if "$(DYNAMIC_PYTHON3)" == "yes" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
755 !message Python3 DLL will be loaded dynamically |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
756 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
757 CFLAGS = $(CFLAGS) -DFEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
758 PYTHON3_OBJ = $(OUTDIR)\if_python3.obj |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
759 PYTHON3_INC = /I "$(PYTHON3)\Include" /I "$(PYTHON3)\PC" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
760 !if "$(DYNAMIC_PYTHON3)" == "yes" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
761 CFLAGS = $(CFLAGS) -DDYNAMIC_PYTHON3 \ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
762 -DDYNAMIC_PYTHON3_DLL=\"python$(PYTHON3_VER).dll\" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
763 PYTHON3_LIB = /nodefaultlib:python$(PYTHON3_VER).lib |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
764 !else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
765 PYTHON3_LIB = $(PYTHON3)\libs\python$(PYTHON3_VER).lib |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
766 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
767 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
768 |
14 | 769 # MzScheme interface |
770 !ifdef MZSCHEME | |
771 !message MzScheme requested - root dir is "$(MZSCHEME)" | |
772 !ifndef MZSCHEME_VER | |
773 MZSCHEME_VER = 205_000 | |
774 !endif | |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
775 !ifndef MZSCHEME_COLLECTS |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
776 MZSCHEME_COLLECTS=$(MZSCHEME)\collects |
1894 | 777 !endif |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
778 CFLAGS = $(CFLAGS) -DFEAT_MZSCHEME -I "$(MZSCHEME)\include" |
2628 | 779 !if EXIST("$(MZSCHEME)\lib\msvc\libmzsch$(MZSCHEME_VER).lib") |
780 MZSCHEME_MAIN_LIB=mzsch | |
781 !else | |
782 MZSCHEME_MAIN_LIB=racket | |
783 !endif | |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
784 !if (EXIST("$(MZSCHEME)\lib\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll") \ |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
785 && !EXIST("$(MZSCHEME)\lib\libmzgc$(MZSCHEME_VER).dll")) \ |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
786 || (EXIST("$(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib") \ |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
787 && !EXIST("$(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib")) |
1894 | 788 !message Building with Precise GC |
789 MZSCHEME_PRECISE_GC = yes | |
790 CFLAGS = $(CFLAGS) -DMZ_PRECISE_GC | |
791 !endif | |
127 | 792 !if "$(DYNAMIC_MZSCHEME)" == "yes" |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
793 !message MzScheme DLLs will be loaded dynamically |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
794 CFLAGS = $(CFLAGS) -DDYNAMIC_MZSCHEME |
1894 | 795 !if "$(MZSCHEME_PRECISE_GC)" == "yes" |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
796 # Precise GC does not use separate dll |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
797 CFLAGS = $(CFLAGS) \ |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
798 -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" \ |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
799 -DDYNAMIC_MZGC_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
800 !else |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
801 CFLAGS = $(CFLAGS) \ |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
802 -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" \ |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
803 -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\" |
1894 | 804 !endif |
127 | 805 !else |
1894 | 806 !if "$(MZSCHEME_DEBUG)" == "yes" |
807 CFLAGS = $(CFLAGS) -DMZSCHEME_FORCE_GC | |
808 !endif | |
809 !if "$(MZSCHEME_PRECISE_GC)" == "yes" | |
810 # Precise GC does not use separate dll | |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
811 !if EXIST("$(MZSCHEME)\lib\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).def") |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
812 # create .lib from .def |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
813 MZSCHEME_LIB = lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
814 MZSCHEME_EXTRA_DEP = lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib |
1894 | 815 !else |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
816 MZSCHEME_LIB = "$(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib" |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
817 !endif |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
818 !else |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
819 MZSCHEME_LIB = "$(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib" \ |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
820 "$(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib" |
127 | 821 !endif |
1894 | 822 !endif |
14 | 823 MZSCHEME_OBJ = $(OUTDIR)\if_mzsch.obj |
3348 | 824 # increase stack size |
825 MZSCHEME_LIB = $(MZSCHEME_LIB) /STACK:8388608 | |
14 | 826 !endif |
827 | |
7 | 828 # Perl interface |
829 !ifdef PERL | |
830 !ifndef PERL_VER | |
831 PERL_VER = 56 | |
832 !endif | |
833 !message Perl requested (version $(PERL_VER)) - root dir is "$(PERL)" | |
834 !if "$(DYNAMIC_PERL)" == "yes" | |
835 !if $(PERL_VER) >= 56 | |
836 !message Perl DLL will be loaded dynamically | |
837 !else | |
838 !message Dynamic loading is not supported for Perl versions earlier than 5.6.0 | |
839 !message Reverting to static loading... | |
840 !undef DYNAMIC_PERL | |
841 !endif | |
842 !endif | |
843 | |
844 # Is Perl installed in architecture-specific directories? | |
845 !if exist($(PERL)\Bin\MSWin32-x86) | |
846 PERL_ARCH = \MSWin32-x86 | |
847 !endif | |
848 | |
849 PERL_INCDIR = $(PERL)\Lib$(PERL_ARCH)\Core | |
850 | |
851 # Version-dependent stuff | |
852 !if $(PERL_VER) == 55 | |
853 PERL_LIB = $(PERL_INCDIR)\perl.lib | |
854 !else | |
855 PERL_DLL = perl$(PERL_VER).dll | |
5560 | 856 !if exist($(PERL_INCDIR)\perl$(PERL_VER).lib) |
7 | 857 PERL_LIB = $(PERL_INCDIR)\perl$(PERL_VER).lib |
5560 | 858 !else |
859 # For ActivePerl 5.18 and later | |
860 PERL_LIB = $(PERL_INCDIR)\libperl$(PERL_VER).a | |
861 !endif | |
7 | 862 !endif |
863 | |
6872 | 864 CFLAGS = $(CFLAGS) -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS |
7 | 865 |
866 # Do we want to load Perl dynamically? | |
867 !if "$(DYNAMIC_PERL)" == "yes" | |
868 CFLAGS = $(CFLAGS) -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"$(PERL_DLL)\" | |
869 !undef PERL_LIB | |
870 !endif | |
871 | |
872 PERL_EXE = $(PERL)\Bin$(PERL_ARCH)\perl | |
873 PERL_INC = /I $(PERL_INCDIR) | |
7414
d467ca80d3c1
commit https://github.com/vim/vim/commit/2bf2417612879de627dcea1dbb22ee2199b16963
Christian Brabandt <cb@256bit.org>
parents:
7324
diff
changeset
|
874 !if $(MSVC_MAJOR) <= 11 |
d467ca80d3c1
commit https://github.com/vim/vim/commit/2bf2417612879de627dcea1dbb22ee2199b16963
Christian Brabandt <cb@256bit.org>
parents:
7324
diff
changeset
|
875 # ActivePerl 5.20+ requires stdbool.h but VC2012 or earlier doesn't have it. |
d467ca80d3c1
commit https://github.com/vim/vim/commit/2bf2417612879de627dcea1dbb22ee2199b16963
Christian Brabandt <cb@256bit.org>
parents:
7324
diff
changeset
|
876 # Use a stub stdbool.h. |
d467ca80d3c1
commit https://github.com/vim/vim/commit/2bf2417612879de627dcea1dbb22ee2199b16963
Christian Brabandt <cb@256bit.org>
parents:
7324
diff
changeset
|
877 PERL_INC = $(PERL_INC) /I if_perl_msvc |
d467ca80d3c1
commit https://github.com/vim/vim/commit/2bf2417612879de627dcea1dbb22ee2199b16963
Christian Brabandt <cb@256bit.org>
parents:
7324
diff
changeset
|
878 !endif |
7 | 879 PERL_OBJ = $(OUTDIR)\if_perl.obj $(OUTDIR)\if_perlsfio.obj |
880 XSUBPP = $(PERL)\lib\ExtUtils\xsubpp | |
3085 | 881 !if exist($(XSUBPP)) |
3064 | 882 XSUBPP = $(PERL_EXE) $(XSUBPP) |
883 !else | |
884 XSUBPP = xsubpp | |
885 !endif | |
7 | 886 XSUBPP_TYPEMAP = $(PERL)\lib\ExtUtils\typemap |
887 | |
888 !endif | |
889 | |
890 # | |
891 # Support Ruby interface | |
892 # | |
893 !ifdef RUBY | |
894 # Set default value | |
895 !ifndef RUBY_VER | |
896 RUBY_VER = 18 | |
897 !endif | |
898 !ifndef RUBY_VER_LONG | |
899 RUBY_VER_LONG = 1.8 | |
900 !endif | |
3722 | 901 !ifndef RUBY_API_VER |
902 RUBY_API_VER = $(RUBY_VER_LONG:.=) | |
903 !endif | |
7 | 904 |
905 !if $(RUBY_VER) >= 18 | |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
906 |
7 | 907 !ifndef RUBY_PLATFORM |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
908 !if "$(CPU)" == "i386" |
7 | 909 RUBY_PLATFORM = i386-mswin32 |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
910 !else # CPU |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
911 RUBY_PLATFORM = x64-mswin64 |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
912 !endif # CPU |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
913 !if $(MSVCRT_VER) >= 70 |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
914 RUBY_PLATFORM = $(RUBY_PLATFORM)_$(MSVCRT_VER) |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
915 !endif # MSVCRT_VER |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
916 !endif # RUBY_PLATFORM |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
917 |
7 | 918 !ifndef RUBY_INSTALL_NAME |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
919 !ifndef RUBY_MSVCRT_NAME |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
920 # Base name of msvcrXX.dll which is used by ruby's dll. |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
921 RUBY_MSVCRT_NAME = $(MSVCRT_NAME) |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
922 !endif # RUBY_MSVCRT_NAME |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
923 !if "$(CPU)" == "i386" |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
924 RUBY_INSTALL_NAME = $(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER) |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
925 !else # CPU |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
926 RUBY_INSTALL_NAME = x64-$(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER) |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
927 !endif # CPU |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
928 !endif # RUBY_INSTALL_NAME |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
929 |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
930 !else # $(RUBY_VER) >= 18 |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
931 |
7 | 932 !ifndef RUBY_PLATFORM |
933 RUBY_PLATFORM = i586-mswin32 | |
934 !endif | |
935 !ifndef RUBY_INSTALL_NAME | |
3722 | 936 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER) |
7 | 937 !endif |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7475
diff
changeset
|
938 |
7 | 939 !endif # $(RUBY_VER) >= 18 |
940 | |
941 !message Ruby requested (version $(RUBY_VER)) - root dir is "$(RUBY)" | |
942 CFLAGS = $(CFLAGS) -DFEAT_RUBY | |
943 RUBY_OBJ = $(OUTDIR)\if_ruby.obj | |
3722 | 944 !if $(RUBY_VER) >= 19 |
945 RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)" /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)" /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)\$(RUBY_PLATFORM)" | |
2342
f6540762173d
Fixes and improvements for MS-Windows build.
Bram Moolenaar <bram@vim.org>
parents:
2329
diff
changeset
|
946 !else |
7 | 947 RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)" |
2342
f6540762173d
Fixes and improvements for MS-Windows build.
Bram Moolenaar <bram@vim.org>
parents:
2329
diff
changeset
|
948 !endif |
7 | 949 RUBY_LIB = $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib |
950 # Do we want to load Ruby dynamically? | |
951 !if "$(DYNAMIC_RUBY)" == "yes" | |
952 !message Ruby DLL will be loaded dynamically | |
416 | 953 CFLAGS = $(CFLAGS) -DDYNAMIC_RUBY -DDYNAMIC_RUBY_VER=$(RUBY_VER) \ |
954 -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\" | |
7 | 955 !undef RUBY_LIB |
956 !endif | |
957 !endif # RUBY | |
958 | |
959 # | |
960 # Support PostScript printing | |
961 # | |
962 !if "$(POSTSCRIPT)" == "yes" | |
963 CFLAGS = $(CFLAGS) -DMSWINPS | |
964 !endif # POSTSCRIPT | |
965 | |
966 # | |
967 # FEATURES: TINY, SMALL, NORMAL, BIG or HUGE | |
968 # | |
969 !if "$(FEATURES)"=="" | |
7699
854302b82ff9
commit https://github.com/vim/vim/commit/e5f2be61595fbbba77261f3bf1e032fe03a1966d
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
970 FEATURES = HUGE |
7 | 971 !endif |
972 CFLAGS = $(CFLAGS) -DFEAT_$(FEATURES) | |
973 | |
974 # | |
268 | 975 # Always generate the .pdb file, so that we get debug symbols that can be used |
976 # on a crash (doesn't add overhead to the executable). | |
1419 | 977 # Generate edit-and-continue debug info when no optimization - allows to |
978 # debug more conveniently (able to look at variables which are in registers) | |
268 | 979 # |
1419 | 980 CFLAGS = $(CFLAGS) /Fd$(OUTDIR)/ $(DEBUGINFO) |
981 LINK_PDB = /PDB:$(VIM).pdb -debug | |
268 | 982 |
983 # | |
984 # End extra feature include | |
7 | 985 # |
986 !message | |
987 | |
1419 | 988 conflags = /nologo /subsystem:$(SUBSYSTEM) |
7 | 989 |
659 | 990 PATHDEF_SRC = $(OUTDIR)\pathdef.c |
991 | |
7 | 992 !IF "$(MAP)" == "yes" |
993 # "/map" is for debugging | |
994 conflags = $(conflags) /map | |
995 !ELSEIF "$(MAP)" == "lines" | |
996 # "/mapinfo:lines" is for debugging, only works for VC6 and later | |
997 conflags = $(conflags) /map /mapinfo:lines | |
998 !ENDIF | |
999 | |
1419 | 1000 LINKARGS1 = $(linkdebug) $(conflags) |
6797 | 1001 LINKARGS2 = $(CON_LIB) $(GUI_LIB) $(NODEFAULTLIB) $(LIBC) $(OLE_LIB) user32.lib $(SNIFF_LIB) \ |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1002 $(LUA_LIB) $(MZSCHEME_LIB) $(PERL_LIB) $(PYTHON_LIB) $(PYTHON3_LIB) $(RUBY_LIB) \ |
416 | 1003 $(TCL_LIB) $(NETBEANS_LIB) $(XPM_LIB) $(LINK_PDB) |
7 | 1004 |
1419 | 1005 # Report link time code generation progress if used. |
1006 !ifdef NODEBUG | |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
1007 !if $(MSVC_MAJOR) >= 8 |
1419 | 1008 !if "$(OPTIMIZE)" != "SPACE" |
1009 LINKARGS1 = $(LINKARGS1) /LTCG:STATUS | |
1010 !endif | |
1011 !endif | |
1012 !endif | |
1013 | |
7475
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1014 all: $(VIM).exe \ |
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1015 vimrun.exe \ |
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1016 install.exe \ |
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1017 uninstal.exe \ |
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1018 xxd/xxd.exe \ |
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1019 tee/tee.exe \ |
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1020 GvimExt/gvimext.dll |
7 | 1021 |
416 | 1022 $(VIM).exe: $(OUTDIR) $(OBJ) $(GUI_OBJ) $(OLE_OBJ) $(OLE_IDL) $(MZSCHEME_OBJ) \ |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1023 $(LUA_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(PYTHON3_OBJ) $(RUBY_OBJ) $(TCL_OBJ) \ |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
1024 $(SNIFF_OBJ) $(CSCOPE_OBJ) $(NETBEANS_OBJ) $(CHANNEL_OBJ) $(XPM_OBJ) \ |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
1025 version.c version.h |
416 | 1026 $(CC) $(CFLAGS) version.c |
389 | 1027 $(link) $(LINKARGS1) -out:$(VIM).exe $(OBJ) $(GUI_OBJ) $(OLE_OBJ) \ |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1028 $(LUA_OBJ) $(MZSCHEME_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(PYTHON3_OBJ) $(RUBY_OBJ) \ |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
1029 $(TCL_OBJ) $(SNIFF_OBJ) $(CSCOPE_OBJ) $(NETBEANS_OBJ) $(CHANNEL_OBJ) \ |
416 | 1030 $(XPM_OBJ) $(OUTDIR)\version.obj $(LINKARGS2) |
5925 | 1031 if exist $(VIM).exe.manifest mt.exe -nologo -manifest $(VIM).exe.manifest -updateresource:$(VIM).exe;1 |
7 | 1032 |
388 | 1033 $(VIM): $(VIM).exe |
7 | 1034 |
1035 $(OUTDIR): | |
39 | 1036 if not exist $(OUTDIR)/nul mkdir $(OUTDIR) |
7 | 1037 |
1038 install.exe: dosinst.c | |
416 | 1039 $(CC) /nologo -DNDEBUG -DWIN32 dosinst.c kernel32.lib shell32.lib \ |
2220
b1c70c500de4
Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents:
2200
diff
changeset
|
1040 user32.lib ole32.lib advapi32.lib uuid.lib |
7 | 1041 - if exist install.exe del install.exe |
1042 ren dosinst.exe install.exe | |
1043 | |
1044 uninstal.exe: uninstal.c | |
1045 $(CC) /nologo -DNDEBUG -DWIN32 uninstal.c shell32.lib advapi32.lib | |
1046 | |
1047 vimrun.exe: vimrun.c | |
1048 $(CC) /nologo -DNDEBUG vimrun.c | |
1049 | |
1050 xxd/xxd.exe: xxd/xxd.c | |
1051 cd xxd | |
1052 $(MAKE) /NOLOGO -f Make_mvc.mak | |
1053 cd .. | |
1054 | |
7475
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1055 tee/tee.exe: tee/tee.c |
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1056 cd tee |
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1057 $(MAKE) /NOLOGO -f Make_mvc.mak |
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1058 cd .. |
6b5ce5161d6d
commit https://github.com/vim/vim/commit/24db72958fc91bd067c7d60a4990d09a6f295b48
Christian Brabandt <cb@256bit.org>
parents:
7433
diff
changeset
|
1059 |
7 | 1060 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h |
1061 cd GvimExt | |
1062 $(MAKE) /NOLOGO -f Makefile $(MAKEFLAGS_GVIMEXT) | |
1063 cd .. | |
1064 | |
1065 | |
1066 tags: notags | |
1067 $(CTAGS) *.c *.cpp *.h if_perl.xs proto\*.pro | |
1068 | |
1069 notags: | |
1070 - if exist tags del tags | |
1071 | |
1072 clean: | |
444 | 1073 - if exist $(OUTDIR)/nul $(DEL_TREE) $(OUTDIR) |
7 | 1074 - if exist *.obj del *.obj |
1075 - if exist $(VIM).exe del $(VIM).exe | |
1076 - if exist $(VIM).ilk del $(VIM).ilk | |
1077 - if exist $(VIM).pdb del $(VIM).pdb | |
1078 - if exist $(VIM).map del $(VIM).map | |
1079 - if exist $(VIM).ncb del $(VIM).ncb | |
1080 - if exist vimrun.exe del vimrun.exe | |
1081 - if exist install.exe del install.exe | |
1082 - if exist uninstal.exe del uninstal.exe | |
1083 - if exist if_perl.c del if_perl.c | |
1084 - if exist dimm.h del dimm.h | |
1085 - if exist dimm_i.c del dimm_i.c | |
1086 - if exist dimm.tlb del dimm.tlb | |
1087 - if exist dosinst.exe del dosinst.exe | |
1088 cd xxd | |
1089 $(MAKE) /NOLOGO -f Make_mvc.mak clean | |
1090 cd .. | |
7555
5bbfac219f20
commit https://github.com/vim/vim/commit/d08a8d4a31ed10225aca6be7565220fa541c32ac
Christian Brabandt <cb@256bit.org>
parents:
7521
diff
changeset
|
1091 cd tee |
5bbfac219f20
commit https://github.com/vim/vim/commit/d08a8d4a31ed10225aca6be7565220fa541c32ac
Christian Brabandt <cb@256bit.org>
parents:
7521
diff
changeset
|
1092 $(MAKE) /NOLOGO -f Make_mvc.mak clean |
5bbfac219f20
commit https://github.com/vim/vim/commit/d08a8d4a31ed10225aca6be7565220fa541c32ac
Christian Brabandt <cb@256bit.org>
parents:
7521
diff
changeset
|
1093 cd .. |
7 | 1094 cd GvimExt |
1095 $(MAKE) /NOLOGO -f Makefile clean | |
1096 cd .. | |
1097 cd GvimExt | |
1098 $(MAKE) /NOLOGO -f Makefile clean | |
1099 cd .. | |
1100 - if exist testdir\*.out del testdir\*.out | |
1101 | |
1102 test: | |
1103 cd testdir | |
1104 $(MAKE) /NOLOGO -f Make_dos.mak win32 | |
1105 cd .. | |
1106 | |
7433
b5d07f5e78ba
commit https://github.com/vim/vim/commit/7eae47af89580df07a72079405a0e7b8aad784a8
Christian Brabandt <cb@256bit.org>
parents:
7414
diff
changeset
|
1107 testgvim: |
b5d07f5e78ba
commit https://github.com/vim/vim/commit/7eae47af89580df07a72079405a0e7b8aad784a8
Christian Brabandt <cb@256bit.org>
parents:
7414
diff
changeset
|
1108 cd testdir |
b5d07f5e78ba
commit https://github.com/vim/vim/commit/7eae47af89580df07a72079405a0e7b8aad784a8
Christian Brabandt <cb@256bit.org>
parents:
7414
diff
changeset
|
1109 $(MAKE) /NOLOGO -f Make_dos.mak VIMPROG=..\gvim win32 |
b5d07f5e78ba
commit https://github.com/vim/vim/commit/7eae47af89580df07a72079405a0e7b8aad784a8
Christian Brabandt <cb@256bit.org>
parents:
7414
diff
changeset
|
1110 cd .. |
b5d07f5e78ba
commit https://github.com/vim/vim/commit/7eae47af89580df07a72079405a0e7b8aad784a8
Christian Brabandt <cb@256bit.org>
parents:
7414
diff
changeset
|
1111 |
47 | 1112 testclean: |
1113 cd testdir | |
1114 $(MAKE) /NOLOGO -f Make_dos.mak clean | |
1115 cd .. | |
1116 | |
7 | 1117 ########################################################################### |
1118 | |
1119 # Create a default rule for transforming .c files to .obj files in $(OUTDIR) | |
1120 # Batch compilation is supported by nmake 1.62 (part of VS 5.0) and later) | |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
1121 !IF "$(_NMAKE_VER)" == "" |
7 | 1122 .c{$(OUTDIR)/}.obj: |
1123 !ELSE | |
1124 .c{$(OUTDIR)/}.obj:: | |
1125 !ENDIF | |
416 | 1126 $(CC) $(CFLAGS) $< |
7 | 1127 |
1128 # Create a default rule for transforming .cpp files to .obj files in $(OUTDIR) | |
1129 # Batch compilation is supported by nmake 1.62 (part of VS 5.0) and later) | |
7309
c412b0922c27
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Christian Brabandt <cb@256bit.org>
parents:
6952
diff
changeset
|
1130 !IF "$(_NMAKE_VER)" == "" |
7 | 1131 .cpp{$(OUTDIR)/}.obj: |
1132 !ELSE | |
1133 .cpp{$(OUTDIR)/}.obj:: | |
1134 !ENDIF | |
416 | 1135 $(CC) $(CFLAGS) $< |
7 | 1136 |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
2101
diff
changeset
|
1137 $(OUTDIR)/blowfish.obj: $(OUTDIR) blowfish.c $(INCL) |
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
2101
diff
changeset
|
1138 |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
1139 $(OUTDIR)/buffer.obj: $(OUTDIR) buffer.c $(INCL) |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
2101
diff
changeset
|
1140 |
7 | 1141 $(OUTDIR)/charset.obj: $(OUTDIR) charset.c $(INCL) |
1142 | |
6126 | 1143 $(OUTDIR)/crypt.obj: $(OUTDIR) crypt.c $(INCL) |
1144 | |
1145 $(OUTDIR)/crypt_zip.obj: $(OUTDIR) crypt_zip.c $(INCL) | |
1146 | |
7 | 1147 $(OUTDIR)/diff.obj: $(OUTDIR) diff.c $(INCL) |
1148 | |
1149 $(OUTDIR)/digraph.obj: $(OUTDIR) digraph.c $(INCL) | |
1150 | |
1151 $(OUTDIR)/edit.obj: $(OUTDIR) edit.c $(INCL) | |
1152 | |
1153 $(OUTDIR)/eval.obj: $(OUTDIR) eval.c $(INCL) | |
1154 | |
1155 $(OUTDIR)/ex_cmds.obj: $(OUTDIR) ex_cmds.c $(INCL) | |
1156 | |
1157 $(OUTDIR)/ex_cmds2.obj: $(OUTDIR) ex_cmds2.c $(INCL) | |
1158 | |
1159 $(OUTDIR)/ex_docmd.obj: $(OUTDIR) ex_docmd.c $(INCL) ex_cmds.h | |
1160 | |
1161 $(OUTDIR)/ex_eval.obj: $(OUTDIR) ex_eval.c $(INCL) ex_cmds.h | |
1162 | |
1163 $(OUTDIR)/ex_getln.obj: $(OUTDIR) ex_getln.c $(INCL) | |
1164 | |
1165 $(OUTDIR)/fileio.obj: $(OUTDIR) fileio.c $(INCL) | |
1166 | |
1167 $(OUTDIR)/fold.obj: $(OUTDIR) fold.c $(INCL) | |
1168 | |
1169 $(OUTDIR)/getchar.obj: $(OUTDIR) getchar.c $(INCL) | |
1170 | |
440 | 1171 $(OUTDIR)/hardcopy.obj: $(OUTDIR) hardcopy.c $(INCL) |
1172 | |
799 | 1173 $(OUTDIR)/hashtab.obj: $(OUTDIR) hashtab.c $(INCL) |
119 | 1174 |
7 | 1175 $(OUTDIR)/gui.obj: $(OUTDIR) gui.c $(INCL) $(GUI_INCL) |
1176 | |
184 | 1177 $(OUTDIR)/gui_beval.obj: $(OUTDIR) gui_beval.c $(INCL) $(GUI_INCL) |
1178 | |
7 | 1179 $(OUTDIR)/gui_w32.obj: $(OUTDIR) gui_w32.c gui_w48.c $(INCL) $(GUI_INCL) |
1180 | |
6110 | 1181 $(OUTDIR)/gui_dwrite.obj: $(OUTDIR) gui_dwrite.cpp $(INCL) $(GUI_INCL) |
1182 | |
7 | 1183 $(OUTDIR)/if_cscope.obj: $(OUTDIR) if_cscope.c $(INCL) |
1184 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
1185 $(OUTDIR)/if_lua.obj: $(OUTDIR) if_lua.c $(INCL) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
1186 $(CC) $(CFLAGS) $(LUA_INC) if_lua.c |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2311
diff
changeset
|
1187 |
7 | 1188 if_perl.c : if_perl.xs typemap |
3064 | 1189 $(XSUBPP) -prototypes -typemap $(XSUBPP_TYPEMAP) \ |
416 | 1190 -typemap typemap if_perl.xs > if_perl.c |
7 | 1191 |
1192 $(OUTDIR)/if_perl.obj: $(OUTDIR) if_perl.c $(INCL) | |
416 | 1193 $(CC) $(CFLAGS) $(PERL_INC) if_perl.c |
7 | 1194 |
1195 $(OUTDIR)/if_perlsfio.obj: $(OUTDIR) if_perlsfio.c $(INCL) | |
416 | 1196 $(CC) $(CFLAGS) $(PERL_INC) if_perlsfio.c |
7 | 1197 |
4074 | 1198 $(OUTDIR)/if_mzsch.obj: $(OUTDIR) if_mzsch.c if_mzsch.h $(INCL) $(MZSCHEME_EXTRA_DEP) |
426 | 1199 $(CC) $(CFLAGS) if_mzsch.c \ |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
1200 -DMZSCHEME_COLLECTS="\"$(MZSCHEME_COLLECTS:\=\\)\"" |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
1201 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
1202 lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib: |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
1203 lib /DEF:"$(MZSCHEME)\lib\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).def" |
14 | 1204 |
4724
450e13fe1621
updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents:
4446
diff
changeset
|
1205 $(OUTDIR)/if_python.obj: $(OUTDIR) if_python.c if_py_both.h $(INCL) |
416 | 1206 $(CC) $(CFLAGS) $(PYTHON_INC) if_python.c |
7 | 1207 |
4724
450e13fe1621
updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents:
4446
diff
changeset
|
1208 $(OUTDIR)/if_python3.obj: $(OUTDIR) if_python3.c if_py_both.h $(INCL) |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1209 $(CC) $(CFLAGS) $(PYTHON3_INC) if_python3.c |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1210 |
7 | 1211 $(OUTDIR)/if_ole.obj: $(OUTDIR) if_ole.cpp $(INCL) if_ole.h |
1212 | |
1213 $(OUTDIR)/if_ruby.obj: $(OUTDIR) if_ruby.c $(INCL) | |
416 | 1214 $(CC) $(CFLAGS) $(RUBY_INC) if_ruby.c |
7 | 1215 |
1216 $(OUTDIR)/if_sniff.obj: $(OUTDIR) if_sniff.c $(INCL) | |
416 | 1217 $(CC) $(CFLAGS) if_sniff.c |
7 | 1218 |
1219 $(OUTDIR)/if_tcl.obj: $(OUTDIR) if_tcl.c $(INCL) | |
416 | 1220 $(CC) $(CFLAGS) $(TCL_INC) if_tcl.c |
7 | 1221 |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
7699
diff
changeset
|
1222 $(OUTDIR)/json.obj: $(OUTDIR) json.c $(INCL) |
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
7699
diff
changeset
|
1223 |
7 | 1224 $(OUTDIR)/main.obj: $(OUTDIR) main.c $(INCL) |
1225 | |
1226 $(OUTDIR)/mark.obj: $(OUTDIR) mark.c $(INCL) | |
1227 | |
1228 $(OUTDIR)/memfile.obj: $(OUTDIR) memfile.c $(INCL) | |
1229 | |
1230 $(OUTDIR)/memline.obj: $(OUTDIR) memline.c $(INCL) | |
1231 | |
1232 $(OUTDIR)/menu.obj: $(OUTDIR) menu.c $(INCL) | |
1233 | |
1234 $(OUTDIR)/message.obj: $(OUTDIR) message.c $(INCL) | |
1235 | |
1236 $(OUTDIR)/misc1.obj: $(OUTDIR) misc1.c $(INCL) | |
1237 | |
1238 $(OUTDIR)/misc2.obj: $(OUTDIR) misc2.c $(INCL) | |
1239 | |
1240 $(OUTDIR)/move.obj: $(OUTDIR) move.c $(INCL) | |
1241 | |
1242 $(OUTDIR)/mbyte.obj: $(OUTDIR) mbyte.c $(INCL) | |
1243 | |
1244 $(OUTDIR)/netbeans.obj: $(OUTDIR) netbeans.c $(NBDEBUG_SRC) $(INCL) | |
1245 | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
1246 $(OUTDIR)/channel.obj: $(OUTDIR) channel.c $(INCL) |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
1247 |
7 | 1248 $(OUTDIR)/normal.obj: $(OUTDIR) normal.c $(INCL) |
1249 | |
1250 $(OUTDIR)/option.obj: $(OUTDIR) option.c $(INCL) | |
1251 | |
1252 $(OUTDIR)/ops.obj: $(OUTDIR) ops.c $(INCL) | |
1253 | |
1254 $(OUTDIR)/os_mswin.obj: $(OUTDIR) os_mswin.c $(INCL) | |
1255 | |
4168 | 1256 $(OUTDIR)/winclip.obj: $(OUTDIR) winclip.c $(INCL) |
1257 | |
7 | 1258 $(OUTDIR)/os_win32.obj: $(OUTDIR) os_win32.c $(INCL) os_win32.h |
1259 | |
1260 $(OUTDIR)/os_w32exe.obj: $(OUTDIR) os_w32exe.c $(INCL) | |
1261 | |
659 | 1262 $(OUTDIR)/pathdef.obj: $(OUTDIR) $(PATHDEF_SRC) $(INCL) |
1263 $(CC) $(CFLAGS) $(PATHDEF_SRC) | |
7 | 1264 |
799 | 1265 $(OUTDIR)/popupmnu.obj: $(OUTDIR) popupmnu.c $(INCL) |
539 | 1266 |
7 | 1267 $(OUTDIR)/quickfix.obj: $(OUTDIR) quickfix.c $(INCL) |
1268 | |
4444 | 1269 $(OUTDIR)/regexp.obj: $(OUTDIR) regexp.c regexp_nfa.c $(INCL) |
7 | 1270 |
1271 $(OUTDIR)/screen.obj: $(OUTDIR) screen.c $(INCL) | |
1272 | |
1273 $(OUTDIR)/search.obj: $(OUTDIR) search.c $(INCL) | |
1274 | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
1275 $(OUTDIR)/sha256.obj: $(OUTDIR) sha256.c $(INCL) |
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
1276 |
220 | 1277 $(OUTDIR)/spell.obj: $(OUTDIR) spell.c $(INCL) |
1278 | |
7 | 1279 $(OUTDIR)/syntax.obj: $(OUTDIR) syntax.c $(INCL) |
1280 | |
1281 $(OUTDIR)/tag.obj: $(OUTDIR) tag.c $(INCL) | |
1282 | |
1283 $(OUTDIR)/term.obj: $(OUTDIR) term.c $(INCL) | |
1284 | |
1285 $(OUTDIR)/ui.obj: $(OUTDIR) ui.c $(INCL) | |
1286 | |
1287 $(OUTDIR)/undo.obj: $(OUTDIR) undo.c $(INCL) | |
1288 | |
1289 $(OUTDIR)/window.obj: $(OUTDIR) window.c $(INCL) | |
1290 | |
1291 $(OUTDIR)/xpm_w32.obj: $(OUTDIR) xpm_w32.c | |
416 | 1292 $(CC) $(CFLAGS) $(XPM_INC) xpm_w32.c |
7 | 1293 |
2311
ccda151dde4e
Support completion for ":find". (Nazri Ramliy)
Bram Moolenaar <bram@vim.org>
parents:
2243
diff
changeset
|
1294 $(OUTDIR)/vim.res: $(OUTDIR) vim.rc gvim.exe.mnf version.h tools.bmp \ |
ccda151dde4e
Support completion for ":find". (Nazri Ramliy)
Bram Moolenaar <bram@vim.org>
parents:
2243
diff
changeset
|
1295 tearoff.bmp vim.ico vim_error.ico \ |
ccda151dde4e
Support completion for ":find". (Nazri Ramliy)
Bram Moolenaar <bram@vim.org>
parents:
2243
diff
changeset
|
1296 vim_alert.ico vim_info.ico vim_quest.ico |
7887
a98b93736894
commit https://github.com/vim/vim/commit/bc073092254df17b282d162d8e8181e8f6a7a356
Christian Brabandt <cb@256bit.org>
parents:
7743
diff
changeset
|
1297 $(RC) /nologo /l 0x409 /Fo$(OUTDIR)/vim.res $(RCFLAGS) vim.rc |
7 | 1298 |
388 | 1299 iid_ole.c if_ole.h vim.tlb: if_ole.idl |
416 | 1300 midl /nologo /error none /proxy nul /iid iid_ole.c /tlb vim.tlb \ |
1301 /header if_ole.h if_ole.idl | |
7 | 1302 |
1303 dimm.h dimm_i.c: dimm.idl | |
388 | 1304 midl /nologo /error none /proxy nul dimm.idl |
7 | 1305 |
1306 $(OUTDIR)/dimm_i.obj: $(OUTDIR) dimm_i.c $(INCL) | |
1307 | |
1308 $(OUTDIR)/glbl_ime.obj: $(OUTDIR) glbl_ime.cpp dimm.h $(INCL) | |
1309 | |
19 | 1310 # $CFLAGS may contain backslashes and double quotes, escape them both. |
1311 E0_CFLAGS = $(CFLAGS:\=\\) | |
1312 E_CFLAGS = $(E0_CFLAGS:"=\") | |
1072 | 1313 # ") stop the string |
2708 | 1314 # $LINKARGS2 may contain backslashes and double quotes, escape them both. |
1315 E0_LINKARGS2 = $(LINKARGS2:\=\\) | |
1316 E_LINKARGS2 = $(E0_LINKARGS2:"=\") | |
1317 # ") stop the string | |
19 | 1318 |
659 | 1319 $(PATHDEF_SRC): auto |
1320 @echo creating $(PATHDEF_SRC) | |
1321 @echo /* pathdef.c */ > $(PATHDEF_SRC) | |
1322 @echo #include "vim.h" >> $(PATHDEF_SRC) | |
1323 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC:\=\\)"; >> $(PATHDEF_SRC) | |
1324 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR:\=\\)"; >> $(PATHDEF_SRC) | |
1325 @echo char_u *all_cflags = (char_u *)"$(CC:\=\\) $(E_CFLAGS)"; >> $(PATHDEF_SRC) | |
2708 | 1326 @echo char_u *all_lflags = (char_u *)"$(link:\=\\) $(LINKARGS1:\=\\) $(E_LINKARGS2)"; >> $(PATHDEF_SRC) |
659 | 1327 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> $(PATHDEF_SRC) |
1328 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> $(PATHDEF_SRC) | |
7 | 1329 |
1330 auto: | |
1331 if not exist auto/nul mkdir auto | |
1332 | |
1333 # End Custom Build | |
1334 proto.h: \ | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
2101
diff
changeset
|
1335 proto/blowfish.pro \ |
7 | 1336 proto/buffer.pro \ |
1337 proto/charset.pro \ | |
6126 | 1338 proto/crypt.pro \ |
1339 proto/crypt_zip.pro \ | |
7 | 1340 proto/diff.pro \ |
1341 proto/digraph.pro \ | |
1342 proto/edit.pro \ | |
1343 proto/eval.pro \ | |
1344 proto/ex_cmds.pro \ | |
1345 proto/ex_cmds2.pro \ | |
1346 proto/ex_docmd.pro \ | |
1347 proto/ex_eval.pro \ | |
1348 proto/ex_getln.pro \ | |
1349 proto/fileio.pro \ | |
1350 proto/getchar.pro \ | |
440 | 1351 proto/hardcopy.pro \ |
799 | 1352 proto/hashtab.pro \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
7699
diff
changeset
|
1353 proto/json.pro \ |
7 | 1354 proto/main.pro \ |
1355 proto/mark.pro \ | |
1356 proto/memfile.pro \ | |
1357 proto/memline.pro \ | |
1358 proto/menu.pro \ | |
1359 proto/message.pro \ | |
1360 proto/misc1.pro \ | |
1361 proto/misc2.pro \ | |
1362 proto/move.pro \ | |
1363 proto/mbyte.pro \ | |
1364 proto/normal.pro \ | |
1365 proto/ops.pro \ | |
1366 proto/option.pro \ | |
1367 proto/os_mswin.pro \ | |
4168 | 1368 proto/winclip.pro \ |
7 | 1369 proto/os_win32.pro \ |
799 | 1370 proto/popupmnu.pro \ |
7 | 1371 proto/quickfix.pro \ |
1372 proto/regexp.pro \ | |
1373 proto/screen.pro \ | |
1374 proto/search.pro \ | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
2101
diff
changeset
|
1375 proto/sha256.pro \ |
220 | 1376 proto/spell.pro \ |
7 | 1377 proto/syntax.pro \ |
1378 proto/tag.pro \ | |
1379 proto/term.pro \ | |
1380 proto/ui.pro \ | |
1381 proto/undo.pro \ | |
1382 proto/window.pro \ | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
1383 $(NETBEANS_PRO) \ |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
1384 $(CHANNEL_PRO) |
7 | 1385 |
844 | 1386 .SUFFIXES: .cod .i |
843 | 1387 |
1388 # Generate foo.cod (mixed source and assembly listing) from foo.c via "nmake | |
1389 # foo.cod" | |
1390 .c.cod: | |
1391 $(CC) $(CFLAGS) /FAcs $< | |
1392 | |
1393 # Generate foo.i (preprocessor listing) from foo.c via "nmake foo.i" | |
1394 .c.i: | |
1395 $(CC) $(CFLAGS) /P /C $< | |
714 | 1396 |
1397 | |
7 | 1398 # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0: |