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