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