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