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, ...]
|
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
|
1419
|
361 !endif
|
|
362
|
|
363 # Abort bulding VIM if version of VC is unrecognised.
|
|
364 !ifndef MSVCVER
|
|
365 !message *** ERROR
|
|
366 !message Cannot determine Visual C version being used. If you are using the
|
|
367 !message Windows SDK then you must have the environment variable MSVCVER set to
|
|
368 !message your version of the VC compiler. If you are not using the Express
|
1569
|
369 !message version of Visual C, you can either set MSVCVER or update this makefile
|
|
370 !message to handle the new value for _NMAKE_VER, "$(_NMAKE_VER)".
|
1419
|
371 !error Make aborted.
|
|
372 !endif
|
|
373
|
7
|
374 # Convert processor ID to MVC-compatible number
|
1569
|
375 !if ("$(MSVCVER)" != "8.0") && ("$(MSVCVER)" != "9.0")
|
7
|
376 !if "$(CPUNR)" == "i386"
|
|
377 CPUARG = /G3
|
|
378 !elseif "$(CPUNR)" == "i486"
|
|
379 CPUARG = /G4
|
|
380 !elseif "$(CPUNR)" == "i586"
|
|
381 CPUARG = /G5
|
|
382 !elseif "$(CPUNR)" == "i686"
|
|
383 CPUARG = /G6
|
84
|
384 !elseif "$(CPUNR)" == "pentium4"
|
47
|
385 CPUARG = /G7 /arch:SSE2
|
7
|
386 !else
|
|
387 CPUARG =
|
|
388 !endif
|
1419
|
389 !else
|
1569
|
390 # VC8/9 only allows specifying SSE architecture
|
1419
|
391 !if "$(CPUNR)" == "pentium4"
|
|
392 CPUARG = /arch:SSE2
|
|
393 !endif
|
|
394 !endif
|
|
395
|
|
396 LIBC =
|
|
397 DEBUGINFO = /Zi
|
7
|
398
|
|
399 !ifdef NODEBUG
|
|
400 VIM = vim
|
|
401 !if "$(OPTIMIZE)" == "SPACE"
|
|
402 OPTFLAG = /O1
|
|
403 !elseif "$(OPTIMIZE)" == "SPEED"
|
|
404 OPTFLAG = /O2
|
|
405 !else # MAXSPEED
|
|
406 OPTFLAG = /Ox
|
|
407 !endif
|
1569
|
408 !if ("$(MSVCVER)" == "8.0") || ("$(MSVCVER)" == "9.0")
|
1419
|
409 # Use link time code generation if not worried about size
|
|
410 !if "$(OPTIMIZE)" != "SPACE"
|
|
411 OPTFLAG = $(OPTFLAG) /GL
|
|
412 !endif
|
|
413 !endif
|
47
|
414 CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG)
|
7
|
415 RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG
|
|
416 ! ifdef USE_MSVCRT
|
1419
|
417 CFLAGS = $(CFLAGS) /MD
|
7
|
418 LIBC = msvcrt.lib
|
714
|
419 ! else
|
7
|
420 LIBC = libcmt.lib
|
1569
|
421 CFLAGS = $(CFLAGS) /Zl /MT
|
7
|
422 ! endif
|
|
423 !else # DEBUG
|
|
424 VIM = vimd
|
1569
|
425 ! if ("$(CPU)" == "i386") || ("$(CPU)" == "ix86")
|
1419
|
426 DEBUGINFO = /ZI
|
|
427 ! endif
|
268
|
428 CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /Od
|
7
|
429 RCFLAGS = $(rcflags) $(rcvars) -D_DEBUG -DDEBUG
|
|
430 # The /fixed:no is needed for Quantify. Assume not 4.? as unsupported in VC4.0.
|
1419
|
431 ! if "$(MSVCVER)" == "4.0"
|
7
|
432 LIBC =
|
|
433 ! else
|
|
434 LIBC = /fixed:no
|
|
435 ! endif
|
426
|
436 ! ifdef USE_MSVCRT
|
1419
|
437 CFLAGS = $(CFLAGS) /MDd
|
7
|
438 LIBC = $(LIBC) msvcrtd.lib
|
714
|
439 ! else
|
426
|
440 LIBC = $(LIBC) libcmtd.lib
|
1569
|
441 CFLAGS = $(CFLAGS) /Zl /MTd
|
7
|
442 ! endif
|
|
443 !endif # DEBUG
|
|
444
|
|
445 INCL = vim.h os_win32.h ascii.h feature.h globals.h keymap.h macros.h \
|
|
446 proto.h option.h structs.h term.h $(SNIFF_INCL) $(CSCOPE_INCL) \
|
|
447 $(NBDEBUG_INCL)
|
|
448
|
|
449 OBJ = \
|
|
450 $(OUTDIR)\buffer.obj \
|
|
451 $(OUTDIR)\charset.obj \
|
|
452 $(OUTDIR)\diff.obj \
|
|
453 $(OUTDIR)\digraph.obj \
|
|
454 $(OUTDIR)\edit.obj \
|
|
455 $(OUTDIR)\eval.obj \
|
|
456 $(OUTDIR)\ex_cmds.obj \
|
|
457 $(OUTDIR)\ex_cmds2.obj \
|
|
458 $(OUTDIR)\ex_docmd.obj \
|
|
459 $(OUTDIR)\ex_eval.obj \
|
|
460 $(OUTDIR)\ex_getln.obj \
|
|
461 $(OUTDIR)\fileio.obj \
|
|
462 $(OUTDIR)\fold.obj \
|
|
463 $(OUTDIR)\getchar.obj \
|
440
|
464 $(OUTDIR)\hardcopy.obj \
|
799
|
465 $(OUTDIR)\hashtab.obj \
|
7
|
466 $(OUTDIR)\main.obj \
|
|
467 $(OUTDIR)\mark.obj \
|
|
468 $(OUTDIR)\mbyte.obj \
|
|
469 $(OUTDIR)\memfile.obj \
|
|
470 $(OUTDIR)\memline.obj \
|
|
471 $(OUTDIR)\menu.obj \
|
|
472 $(OUTDIR)\message.obj \
|
|
473 $(OUTDIR)\misc1.obj \
|
|
474 $(OUTDIR)\misc2.obj \
|
|
475 $(OUTDIR)\move.obj \
|
|
476 $(OUTDIR)\normal.obj \
|
|
477 $(OUTDIR)\ops.obj \
|
|
478 $(OUTDIR)\option.obj \
|
|
479 $(OUTDIR)\os_mswin.obj \
|
|
480 $(OUTDIR)\os_win32.obj \
|
|
481 $(OUTDIR)\pathdef.obj \
|
799
|
482 $(OUTDIR)\popupmnu.obj \
|
7
|
483 $(OUTDIR)\quickfix.obj \
|
|
484 $(OUTDIR)\regexp.obj \
|
|
485 $(OUTDIR)\screen.obj \
|
|
486 $(OUTDIR)\search.obj \
|
220
|
487 $(OUTDIR)\spell.obj \
|
7
|
488 $(OUTDIR)\syntax.obj \
|
|
489 $(OUTDIR)\tag.obj \
|
|
490 $(OUTDIR)\term.obj \
|
|
491 $(OUTDIR)\ui.obj \
|
|
492 $(OUTDIR)\undo.obj \
|
|
493 $(OUTDIR)\window.obj \
|
|
494 $(OUTDIR)\vim.res
|
|
495
|
|
496 !if "$(OLE)" == "yes"
|
|
497 CFLAGS = $(CFLAGS) -DFEAT_OLE
|
|
498 RCFLAGS = $(RCFLAGS) -DFEAT_OLE
|
|
499 OLE_OBJ = $(OUTDIR)\if_ole.obj
|
|
500 OLE_IDL = if_ole.idl
|
|
501 OLE_LIB = oleaut32.lib
|
|
502 !endif
|
|
503
|
|
504 !if "$(IME)" == "yes"
|
|
505 CFLAGS = $(CFLAGS) -DFEAT_MBYTE_IME
|
|
506 !ifndef DYNAMIC_IME
|
|
507 DYNAMIC_IME = yes
|
|
508 !endif
|
|
509 !if "$(DYNAMIC_IME)" == "yes"
|
|
510 CFLAGS = $(CFLAGS) -DDYNAMIC_IME
|
|
511 !else
|
|
512 IME_LIB = imm32.lib
|
|
513 !endif
|
|
514 !endif
|
|
515
|
|
516 !if "$(GIME)" == "yes"
|
|
517 CFLAGS = $(CFLAGS) -DGLOBAL_IME
|
|
518 OBJ = $(OBJ) $(OUTDIR)\dimm_i.obj $(OUTDIR)\glbl_ime.obj
|
|
519 MBYTE = yes
|
|
520 !endif
|
|
521
|
|
522 !if "$(MBYTE)" == "yes"
|
|
523 CFLAGS = $(CFLAGS) -DFEAT_MBYTE
|
|
524 !endif
|
|
525
|
|
526 !if "$(GUI)" == "yes"
|
|
527 SUBSYSTEM = windows
|
|
528 CFLAGS = $(CFLAGS) -DFEAT_GUI_W32
|
|
529 RCFLAGS = $(RCFLAGS) -DFEAT_GUI_W32
|
|
530 VIM = g$(VIM)
|
|
531 GUI_INCL = \
|
|
532 gui.h \
|
|
533 regexp.h \
|
|
534 ascii.h \
|
|
535 ex_cmds.h \
|
|
536 farsi.h \
|
|
537 feature.h \
|
|
538 globals.h \
|
184
|
539 gui_beval.h \
|
7
|
540 keymap.h \
|
|
541 macros.h \
|
|
542 option.h \
|
|
543 os_dos.h \
|
|
544 os_win32.h
|
|
545 GUI_OBJ = \
|
|
546 $(OUTDIR)\gui.obj \
|
184
|
547 $(OUTDIR)\gui_beval.obj \
|
7
|
548 $(OUTDIR)\gui_w32.obj \
|
|
549 $(OUTDIR)\os_w32exe.obj
|
|
550 GUI_LIB = \
|
1569
|
551 gdi32.lib version.lib $(IME_LIB) \
|
7
|
552 winspool.lib comctl32.lib advapi32.lib shell32.lib \
|
|
553 /machine:$(CPU) /nodefaultlib
|
|
554 !else
|
|
555 SUBSYSTEM = console
|
|
556 !endif
|
|
557
|
|
558 # iconv.dll library (dynamically loaded)
|
|
559 !ifndef ICONV
|
|
560 ICONV = yes
|
|
561 !endif
|
|
562 !if "$(ICONV)" == "yes"
|
|
563 CFLAGS = $(CFLAGS) -DDYNAMIC_ICONV
|
|
564 !endif
|
|
565
|
|
566 # libintl.dll library
|
|
567 !ifndef GETTEXT
|
|
568 GETTEXT = yes
|
|
569 !endif
|
|
570 !if "$(GETTEXT)" == "yes"
|
|
571 CFLAGS = $(CFLAGS) -DDYNAMIC_GETTEXT
|
|
572 !endif
|
|
573
|
|
574 # TCL interface
|
|
575 !ifdef TCL
|
|
576 !ifndef TCL_VER
|
|
577 TCL_VER = 83
|
|
578 TCL_VER_LONG = 8.3
|
|
579 !endif
|
|
580 !message Tcl requested (version $(TCL_VER)) - root dir is "$(TCL)"
|
|
581 !if "$(DYNAMIC_TCL)" == "yes"
|
|
582 !message Tcl DLL will be loaded dynamically
|
|
583 TCL_DLL = tcl$(TCL_VER).dll
|
416
|
584 CFLAGS = $(CFLAGS) -DFEAT_TCL -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"$(TCL_DLL)\" \
|
|
585 -DDYNAMIC_TCL_VER=\"$(TCL_VER_LONG)\"
|
7
|
586 TCL_OBJ = $(OUTDIR)\if_tcl.obj
|
|
587 TCL_INC = /I "$(TCL)\Include" /I "$(TCL)"
|
|
588 TCL_LIB = $(TCL)\lib\tclstub$(TCL_VER).lib
|
|
589 !else
|
|
590 CFLAGS = $(CFLAGS) -DFEAT_TCL
|
|
591 TCL_OBJ = $(OUTDIR)\if_tcl.obj
|
|
592 TCL_INC = /I "$(TCL)\Include" /I "$(TCL)"
|
|
593 TCL_LIB = $(TCL)\lib\tcl$(TCL_VER)vc.lib
|
|
594 !endif
|
|
595 !endif
|
|
596
|
|
597 # PYTHON interface
|
|
598 !ifdef PYTHON
|
|
599 !ifndef PYTHON_VER
|
|
600 PYTHON_VER = 22
|
|
601 !endif
|
|
602 !message Python requested (version $(PYTHON_VER)) - root dir is "$(PYTHON)"
|
|
603 !if "$(DYNAMIC_PYTHON)" == "yes"
|
|
604 !message Python DLL will be loaded dynamically
|
|
605 !endif
|
|
606 CFLAGS = $(CFLAGS) -DFEAT_PYTHON
|
|
607 PYTHON_OBJ = $(OUTDIR)\if_python.obj
|
|
608 PYTHON_INC = /I "$(PYTHON)\Include" /I "$(PYTHON)\PC"
|
|
609 !if "$(DYNAMIC_PYTHON)" == "yes"
|
416
|
610 CFLAGS = $(CFLAGS) -DDYNAMIC_PYTHON \
|
|
611 -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\"
|
7
|
612 PYTHON_LIB = /nodefaultlib:python$(PYTHON_VER).lib
|
|
613 !else
|
|
614 PYTHON_LIB = $(PYTHON)\libs\python$(PYTHON_VER).lib
|
|
615 !endif
|
|
616 !endif
|
|
617
|
14
|
618 # MzScheme interface
|
|
619 !ifdef MZSCHEME
|
|
620 !message MzScheme requested - root dir is "$(MZSCHEME)"
|
|
621 !ifndef MZSCHEME_VER
|
|
622 MZSCHEME_VER = 205_000
|
|
623 !endif
|
|
624 CFLAGS = $(CFLAGS) -DFEAT_MZSCHEME -I $(MZSCHEME)\include
|
1894
|
625 !if EXIST("$(MZSCHEME)\collects\scheme\base.ss")
|
|
626 # for MzScheme 4.x we need to include byte code for basic Scheme stuff
|
|
627 MZSCHEME_EXTRA_DEP = mzscheme_base.c
|
|
628 CFLAGS = $(CFLAGS) -DINCLUDE_MZSCHEME_BASE
|
|
629 !endif
|
|
630 !if EXIST("$(MZSCHEME)\lib\msvc\libmzsch$(MZSCHEME_VER).lib") \
|
|
631 && !EXIST("$(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib")
|
|
632 !message Building with Precise GC
|
|
633 MZSCHEME_PRECISE_GC = yes
|
|
634 CFLAGS = $(CFLAGS) -DMZ_PRECISE_GC
|
|
635 !endif
|
127
|
636 !if "$(DYNAMIC_MZSCHEME)" == "yes"
|
1894
|
637 !if "$(MZSCHEME_PRECISE_GC)" == "yes"
|
|
638 !error MzScheme with Precise GC cannot be loaded dynamically
|
|
639 !endif
|
127
|
640 !message MzScheme DLLs will be loaded dynamically
|
416
|
641 CFLAGS = $(CFLAGS) -DDYNAMIC_MZSCHEME \
|
|
642 -DDYNAMIC_MZSCH_DLL=\"libmzsch$(MZSCHEME_VER).dll\" \
|
|
643 -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
|
127
|
644 !else
|
1894
|
645 !if "$(MZSCHEME_DEBUG)" == "yes"
|
|
646 CFLAGS = $(CFLAGS) -DMZSCHEME_FORCE_GC
|
|
647 !endif
|
|
648 !if "$(MZSCHEME_PRECISE_GC)" == "yes"
|
|
649 # Precise GC does not use separate dll
|
|
650 MZSCHEME_LIB = $(MZSCHEME)\lib\msvc\libmzsch$(MZSCHEME_VER).lib
|
|
651 !else
|
416
|
652 MZSCHEME_LIB = $(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib \
|
|
653 $(MZSCHEME)\lib\msvc\libmzsch$(MZSCHEME_VER).lib
|
127
|
654 !endif
|
1894
|
655 !endif
|
14
|
656 MZSCHEME_OBJ = $(OUTDIR)\if_mzsch.obj
|
|
657 !endif
|
|
658
|
7
|
659 # Perl interface
|
|
660 !ifdef PERL
|
|
661 !ifndef PERL_VER
|
|
662 PERL_VER = 56
|
|
663 !endif
|
|
664 !message Perl requested (version $(PERL_VER)) - root dir is "$(PERL)"
|
|
665 !if "$(DYNAMIC_PERL)" == "yes"
|
|
666 !if $(PERL_VER) >= 56
|
|
667 !message Perl DLL will be loaded dynamically
|
|
668 !else
|
|
669 !message Dynamic loading is not supported for Perl versions earlier than 5.6.0
|
|
670 !message Reverting to static loading...
|
|
671 !undef DYNAMIC_PERL
|
|
672 !endif
|
|
673 !endif
|
|
674
|
|
675 # Is Perl installed in architecture-specific directories?
|
|
676 !if exist($(PERL)\Bin\MSWin32-x86)
|
|
677 PERL_ARCH = \MSWin32-x86
|
|
678 !endif
|
|
679
|
|
680 PERL_INCDIR = $(PERL)\Lib$(PERL_ARCH)\Core
|
|
681
|
|
682 # Version-dependent stuff
|
|
683 !if $(PERL_VER) == 55
|
|
684 PERL_LIB = $(PERL_INCDIR)\perl.lib
|
|
685 !else
|
|
686 PERL_DLL = perl$(PERL_VER).dll
|
|
687 PERL_LIB = $(PERL_INCDIR)\perl$(PERL_VER).lib
|
|
688 !endif
|
|
689
|
|
690 CFLAGS = $(CFLAGS) -DFEAT_PERL
|
|
691
|
|
692 # Do we want to load Perl dynamically?
|
|
693 !if "$(DYNAMIC_PERL)" == "yes"
|
|
694 CFLAGS = $(CFLAGS) -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"$(PERL_DLL)\"
|
|
695 !undef PERL_LIB
|
|
696 !endif
|
|
697
|
|
698 PERL_EXE = $(PERL)\Bin$(PERL_ARCH)\perl
|
|
699 PERL_INC = /I $(PERL_INCDIR)
|
|
700 PERL_OBJ = $(OUTDIR)\if_perl.obj $(OUTDIR)\if_perlsfio.obj
|
|
701 XSUBPP = $(PERL)\lib\ExtUtils\xsubpp
|
|
702 XSUBPP_TYPEMAP = $(PERL)\lib\ExtUtils\typemap
|
|
703
|
|
704 !endif
|
|
705
|
|
706 #
|
|
707 # Support Ruby interface
|
|
708 #
|
|
709 !ifdef RUBY
|
|
710 # Set default value
|
|
711 !ifndef RUBY_VER
|
|
712 RUBY_VER = 18
|
|
713 !endif
|
|
714 !ifndef RUBY_VER_LONG
|
|
715 RUBY_VER_LONG = 1.8
|
|
716 !endif
|
|
717
|
|
718 !if $(RUBY_VER) >= 18
|
|
719 !ifndef RUBY_PLATFORM
|
|
720 RUBY_PLATFORM = i386-mswin32
|
|
721 !endif
|
|
722 !ifndef RUBY_INSTALL_NAME
|
|
723 RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
|
|
724 !endif
|
|
725 !else
|
|
726 !ifndef RUBY_PLATFORM
|
|
727 RUBY_PLATFORM = i586-mswin32
|
|
728 !endif
|
|
729 !ifndef RUBY_INSTALL_NAME
|
|
730 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
|
|
731 !endif
|
|
732 !endif # $(RUBY_VER) >= 18
|
|
733
|
|
734 !message Ruby requested (version $(RUBY_VER)) - root dir is "$(RUBY)"
|
|
735 CFLAGS = $(CFLAGS) -DFEAT_RUBY
|
|
736 RUBY_OBJ = $(OUTDIR)\if_ruby.obj
|
|
737 RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)"
|
|
738 RUBY_LIB = $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib
|
|
739 # Do we want to load Ruby dynamically?
|
|
740 !if "$(DYNAMIC_RUBY)" == "yes"
|
|
741 !message Ruby DLL will be loaded dynamically
|
416
|
742 CFLAGS = $(CFLAGS) -DDYNAMIC_RUBY -DDYNAMIC_RUBY_VER=$(RUBY_VER) \
|
|
743 -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
|
7
|
744 !undef RUBY_LIB
|
|
745 !endif
|
|
746 !endif # RUBY
|
|
747
|
|
748 #
|
|
749 # Support PostScript printing
|
|
750 #
|
|
751 !if "$(POSTSCRIPT)" == "yes"
|
|
752 CFLAGS = $(CFLAGS) -DMSWINPS
|
|
753 !endif # POSTSCRIPT
|
|
754
|
|
755 #
|
|
756 # FEATURES: TINY, SMALL, NORMAL, BIG or HUGE
|
|
757 #
|
|
758 !if "$(FEATURES)"==""
|
|
759 FEATURES = BIG
|
|
760 !endif
|
|
761 CFLAGS = $(CFLAGS) -DFEAT_$(FEATURES)
|
|
762
|
|
763 #
|
268
|
764 # Always generate the .pdb file, so that we get debug symbols that can be used
|
|
765 # on a crash (doesn't add overhead to the executable).
|
1419
|
766 # Generate edit-and-continue debug info when no optimization - allows to
|
|
767 # debug more conveniently (able to look at variables which are in registers)
|
268
|
768 #
|
1419
|
769 CFLAGS = $(CFLAGS) /Fd$(OUTDIR)/ $(DEBUGINFO)
|
|
770 LINK_PDB = /PDB:$(VIM).pdb -debug
|
268
|
771
|
|
772 #
|
|
773 # End extra feature include
|
7
|
774 #
|
|
775 !message
|
|
776
|
1419
|
777 conflags = /nologo /subsystem:$(SUBSYSTEM)
|
7
|
778
|
659
|
779 PATHDEF_SRC = $(OUTDIR)\pathdef.c
|
|
780
|
7
|
781 !IF "$(MAP)" == "yes"
|
|
782 # "/map" is for debugging
|
|
783 conflags = $(conflags) /map
|
|
784 !ELSEIF "$(MAP)" == "lines"
|
|
785 # "/mapinfo:lines" is for debugging, only works for VC6 and later
|
|
786 conflags = $(conflags) /map /mapinfo:lines
|
|
787 !ENDIF
|
|
788
|
1419
|
789 LINKARGS1 = $(linkdebug) $(conflags)
|
7
|
790 LINKARGS2 = $(CON_LIB) $(GUI_LIB) $(LIBC) $(OLE_LIB) user32.lib $(SNIFF_LIB) \
|
416
|
791 $(MZSCHEME_LIB) $(PERL_LIB) $(PYTHON_LIB) $(RUBY_LIB) \
|
|
792 $(TCL_LIB) $(NETBEANS_LIB) $(XPM_LIB) $(LINK_PDB)
|
7
|
793
|
1419
|
794 # Report link time code generation progress if used.
|
|
795 !ifdef NODEBUG
|
1569
|
796 !if ("$(MSVCVER)" == "8.0") || ("$(MSVCVER)" == "9.0")
|
1419
|
797 !if "$(OPTIMIZE)" != "SPACE"
|
|
798 LINKARGS1 = $(LINKARGS1) /LTCG:STATUS
|
|
799 !endif
|
|
800 !endif
|
|
801 !endif
|
|
802
|
416
|
803 all: $(VIM).exe vimrun.exe install.exe uninstal.exe xxd/xxd.exe \
|
|
804 GvimExt/gvimext.dll
|
7
|
805
|
416
|
806 $(VIM).exe: $(OUTDIR) $(OBJ) $(GUI_OBJ) $(OLE_OBJ) $(OLE_IDL) $(MZSCHEME_OBJ) \
|
|
807 $(PERL_OBJ) $(PYTHON_OBJ) $(RUBY_OBJ) $(TCL_OBJ) $(SNIFF_OBJ) \
|
|
808 $(CSCOPE_OBJ) $(NETBEANS_OBJ) $(XPM_OBJ) version.c version.h
|
|
809 $(CC) $(CFLAGS) version.c
|
389
|
810 $(link) $(LINKARGS1) -out:$(VIM).exe $(OBJ) $(GUI_OBJ) $(OLE_OBJ) \
|
416
|
811 $(MZSCHEME_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(RUBY_OBJ) \
|
|
812 $(TCL_OBJ) $(SNIFF_OBJ) $(CSCOPE_OBJ) $(NETBEANS_OBJ) \
|
|
813 $(XPM_OBJ) $(OUTDIR)\version.obj $(LINKARGS2)
|
7
|
814
|
388
|
815 $(VIM): $(VIM).exe
|
7
|
816
|
|
817 $(OUTDIR):
|
39
|
818 if not exist $(OUTDIR)/nul mkdir $(OUTDIR)
|
7
|
819
|
|
820 install.exe: dosinst.c
|
416
|
821 $(CC) /nologo -DNDEBUG -DWIN32 dosinst.c kernel32.lib shell32.lib \
|
|
822 ole32.lib advapi32.lib uuid.lib
|
7
|
823 - if exist install.exe del install.exe
|
|
824 ren dosinst.exe install.exe
|
|
825
|
|
826 uninstal.exe: uninstal.c
|
|
827 $(CC) /nologo -DNDEBUG -DWIN32 uninstal.c shell32.lib advapi32.lib
|
|
828
|
|
829 vimrun.exe: vimrun.c
|
|
830 $(CC) /nologo -DNDEBUG vimrun.c
|
|
831
|
|
832 xxd/xxd.exe: xxd/xxd.c
|
|
833 cd xxd
|
|
834 $(MAKE) /NOLOGO -f Make_mvc.mak
|
|
835 cd ..
|
|
836
|
|
837 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
|
|
838 cd GvimExt
|
|
839 $(MAKE) /NOLOGO -f Makefile $(MAKEFLAGS_GVIMEXT)
|
|
840 cd ..
|
|
841
|
|
842
|
|
843 tags: notags
|
|
844 $(CTAGS) *.c *.cpp *.h if_perl.xs proto\*.pro
|
|
845
|
|
846 notags:
|
|
847 - if exist tags del tags
|
|
848
|
|
849 clean:
|
444
|
850 - if exist $(OUTDIR)/nul $(DEL_TREE) $(OUTDIR)
|
7
|
851 - if exist *.obj del *.obj
|
|
852 - if exist $(VIM).exe del $(VIM).exe
|
|
853 - if exist $(VIM).ilk del $(VIM).ilk
|
|
854 - if exist $(VIM).pdb del $(VIM).pdb
|
|
855 - if exist $(VIM).map del $(VIM).map
|
|
856 - if exist $(VIM).ncb del $(VIM).ncb
|
|
857 - if exist vimrun.exe del vimrun.exe
|
|
858 - if exist install.exe del install.exe
|
|
859 - if exist uninstal.exe del uninstal.exe
|
|
860 - if exist if_perl.c del if_perl.c
|
|
861 - if exist dimm.h del dimm.h
|
|
862 - if exist dimm_i.c del dimm_i.c
|
|
863 - if exist dimm.tlb del dimm.tlb
|
|
864 - if exist dosinst.exe del dosinst.exe
|
|
865 cd xxd
|
|
866 $(MAKE) /NOLOGO -f Make_mvc.mak clean
|
|
867 cd ..
|
|
868 cd GvimExt
|
|
869 $(MAKE) /NOLOGO -f Makefile clean
|
|
870 cd ..
|
|
871 cd GvimExt
|
|
872 $(MAKE) /NOLOGO -f Makefile clean
|
|
873 cd ..
|
|
874 - if exist testdir\*.out del testdir\*.out
|
|
875
|
|
876 test:
|
|
877 cd testdir
|
|
878 $(MAKE) /NOLOGO -f Make_dos.mak win32
|
|
879 cd ..
|
|
880
|
47
|
881 testclean:
|
|
882 cd testdir
|
|
883 $(MAKE) /NOLOGO -f Make_dos.mak clean
|
|
884 cd ..
|
|
885
|
7
|
886 ###########################################################################
|
|
887
|
|
888 # Create a default rule for transforming .c files to .obj files in $(OUTDIR)
|
|
889 # Batch compilation is supported by nmake 1.62 (part of VS 5.0) and later)
|
1419
|
890 !IF "$(MSVCVER)" == "4.0"
|
7
|
891 .c{$(OUTDIR)/}.obj:
|
|
892 !ELSE
|
|
893 .c{$(OUTDIR)/}.obj::
|
|
894 !ENDIF
|
416
|
895 $(CC) $(CFLAGS) $<
|
7
|
896
|
|
897 # Create a default rule for transforming .cpp files to .obj files in $(OUTDIR)
|
|
898 # Batch compilation is supported by nmake 1.62 (part of VS 5.0) and later)
|
1419
|
899 !IF "$(MSVCVER)" == "4.0"
|
7
|
900 .cpp{$(OUTDIR)/}.obj:
|
|
901 !ELSE
|
|
902 .cpp{$(OUTDIR)/}.obj::
|
|
903 !ENDIF
|
416
|
904 $(CC) $(CFLAGS) $<
|
7
|
905
|
|
906 $(OUTDIR)/buffer.obj: $(OUTDIR) buffer.c $(INCL)
|
|
907
|
|
908 $(OUTDIR)/charset.obj: $(OUTDIR) charset.c $(INCL)
|
|
909
|
|
910 $(OUTDIR)/diff.obj: $(OUTDIR) diff.c $(INCL)
|
|
911
|
|
912 $(OUTDIR)/digraph.obj: $(OUTDIR) digraph.c $(INCL)
|
|
913
|
|
914 $(OUTDIR)/edit.obj: $(OUTDIR) edit.c $(INCL)
|
|
915
|
|
916 $(OUTDIR)/eval.obj: $(OUTDIR) eval.c $(INCL)
|
|
917
|
|
918 $(OUTDIR)/ex_cmds.obj: $(OUTDIR) ex_cmds.c $(INCL)
|
|
919
|
|
920 $(OUTDIR)/ex_cmds2.obj: $(OUTDIR) ex_cmds2.c $(INCL)
|
|
921
|
|
922 $(OUTDIR)/ex_docmd.obj: $(OUTDIR) ex_docmd.c $(INCL) ex_cmds.h
|
|
923
|
|
924 $(OUTDIR)/ex_eval.obj: $(OUTDIR) ex_eval.c $(INCL) ex_cmds.h
|
|
925
|
|
926 $(OUTDIR)/ex_getln.obj: $(OUTDIR) ex_getln.c $(INCL)
|
|
927
|
|
928 $(OUTDIR)/fileio.obj: $(OUTDIR) fileio.c $(INCL)
|
|
929
|
|
930 $(OUTDIR)/fold.obj: $(OUTDIR) fold.c $(INCL)
|
|
931
|
|
932 $(OUTDIR)/getchar.obj: $(OUTDIR) getchar.c $(INCL)
|
|
933
|
440
|
934 $(OUTDIR)/hardcopy.obj: $(OUTDIR) hardcopy.c $(INCL)
|
|
935
|
799
|
936 $(OUTDIR)/hashtab.obj: $(OUTDIR) hashtab.c $(INCL)
|
119
|
937
|
7
|
938 $(OUTDIR)/gui.obj: $(OUTDIR) gui.c $(INCL) $(GUI_INCL)
|
|
939
|
184
|
940 $(OUTDIR)/gui_beval.obj: $(OUTDIR) gui_beval.c $(INCL) $(GUI_INCL)
|
|
941
|
7
|
942 $(OUTDIR)/gui_w32.obj: $(OUTDIR) gui_w32.c gui_w48.c $(INCL) $(GUI_INCL)
|
|
943
|
|
944 $(OUTDIR)/if_cscope.obj: $(OUTDIR) if_cscope.c $(INCL)
|
|
945
|
|
946 if_perl.c : if_perl.xs typemap
|
416
|
947 $(PERL_EXE) $(XSUBPP) -prototypes -typemap $(XSUBPP_TYPEMAP) \
|
|
948 -typemap typemap if_perl.xs > if_perl.c
|
7
|
949
|
|
950 $(OUTDIR)/if_perl.obj: $(OUTDIR) if_perl.c $(INCL)
|
416
|
951 $(CC) $(CFLAGS) $(PERL_INC) if_perl.c
|
7
|
952
|
|
953 $(OUTDIR)/if_perlsfio.obj: $(OUTDIR) if_perlsfio.c $(INCL)
|
416
|
954 $(CC) $(CFLAGS) $(PERL_INC) if_perlsfio.c
|
7
|
955
|
1894
|
956 $(OUTDIR)/if_mzsch.obj: $(OUTDIR) if_mzsch.c $(INCL) $(MZSCHEME_EXTRA_DEP)
|
426
|
957 $(CC) $(CFLAGS) if_mzsch.c \
|
416
|
958 -DMZSCHEME_COLLECTS=\"$(MZSCHEME:\=\\)\\collects\"
|
1894
|
959 mzscheme_base.c:
|
|
960 $(MZSCHEME)\mzc --c-mods mzscheme_base.c ++lib scheme/base
|
14
|
961
|
7
|
962 $(OUTDIR)/if_python.obj: $(OUTDIR) if_python.c $(INCL)
|
416
|
963 $(CC) $(CFLAGS) $(PYTHON_INC) if_python.c
|
7
|
964
|
|
965 $(OUTDIR)/if_ole.obj: $(OUTDIR) if_ole.cpp $(INCL) if_ole.h
|
|
966
|
|
967 $(OUTDIR)/if_ruby.obj: $(OUTDIR) if_ruby.c $(INCL)
|
416
|
968 $(CC) $(CFLAGS) $(RUBY_INC) if_ruby.c
|
7
|
969
|
|
970 $(OUTDIR)/if_sniff.obj: $(OUTDIR) if_sniff.c $(INCL)
|
416
|
971 $(CC) $(CFLAGS) if_sniff.c
|
7
|
972
|
|
973 $(OUTDIR)/if_tcl.obj: $(OUTDIR) if_tcl.c $(INCL)
|
416
|
974 $(CC) $(CFLAGS) $(TCL_INC) if_tcl.c
|
7
|
975
|
|
976 $(OUTDIR)/main.obj: $(OUTDIR) main.c $(INCL)
|
|
977
|
|
978 $(OUTDIR)/mark.obj: $(OUTDIR) mark.c $(INCL)
|
|
979
|
|
980 $(OUTDIR)/memfile.obj: $(OUTDIR) memfile.c $(INCL)
|
|
981
|
|
982 $(OUTDIR)/memline.obj: $(OUTDIR) memline.c $(INCL)
|
|
983
|
|
984 $(OUTDIR)/menu.obj: $(OUTDIR) menu.c $(INCL)
|
|
985
|
|
986 $(OUTDIR)/message.obj: $(OUTDIR) message.c $(INCL)
|
|
987
|
|
988 $(OUTDIR)/misc1.obj: $(OUTDIR) misc1.c $(INCL)
|
|
989
|
|
990 $(OUTDIR)/misc2.obj: $(OUTDIR) misc2.c $(INCL)
|
|
991
|
|
992 $(OUTDIR)/move.obj: $(OUTDIR) move.c $(INCL)
|
|
993
|
|
994 $(OUTDIR)/mbyte.obj: $(OUTDIR) mbyte.c $(INCL)
|
|
995
|
|
996 $(OUTDIR)/netbeans.obj: $(OUTDIR) netbeans.c $(NBDEBUG_SRC) $(INCL)
|
|
997
|
|
998 $(OUTDIR)/normal.obj: $(OUTDIR) normal.c $(INCL)
|
|
999
|
|
1000 $(OUTDIR)/option.obj: $(OUTDIR) option.c $(INCL)
|
|
1001
|
|
1002 $(OUTDIR)/ops.obj: $(OUTDIR) ops.c $(INCL)
|
|
1003
|
|
1004 $(OUTDIR)/os_mswin.obj: $(OUTDIR) os_mswin.c $(INCL)
|
|
1005
|
|
1006 $(OUTDIR)/os_win32.obj: $(OUTDIR) os_win32.c $(INCL) os_win32.h
|
|
1007
|
|
1008 $(OUTDIR)/os_w32exe.obj: $(OUTDIR) os_w32exe.c $(INCL)
|
|
1009
|
659
|
1010 $(OUTDIR)/pathdef.obj: $(OUTDIR) $(PATHDEF_SRC) $(INCL)
|
|
1011 $(CC) $(CFLAGS) $(PATHDEF_SRC)
|
7
|
1012
|
799
|
1013 $(OUTDIR)/popupmnu.obj: $(OUTDIR) popupmnu.c $(INCL)
|
539
|
1014
|
7
|
1015 $(OUTDIR)/quickfix.obj: $(OUTDIR) quickfix.c $(INCL)
|
|
1016
|
|
1017 $(OUTDIR)/regexp.obj: $(OUTDIR) regexp.c $(INCL)
|
|
1018
|
|
1019 $(OUTDIR)/screen.obj: $(OUTDIR) screen.c $(INCL)
|
|
1020
|
|
1021 $(OUTDIR)/search.obj: $(OUTDIR) search.c $(INCL)
|
|
1022
|
220
|
1023 $(OUTDIR)/spell.obj: $(OUTDIR) spell.c $(INCL)
|
|
1024
|
7
|
1025 $(OUTDIR)/syntax.obj: $(OUTDIR) syntax.c $(INCL)
|
|
1026
|
|
1027 $(OUTDIR)/tag.obj: $(OUTDIR) tag.c $(INCL)
|
|
1028
|
|
1029 $(OUTDIR)/term.obj: $(OUTDIR) term.c $(INCL)
|
|
1030
|
|
1031 $(OUTDIR)/ui.obj: $(OUTDIR) ui.c $(INCL)
|
|
1032
|
|
1033 $(OUTDIR)/undo.obj: $(OUTDIR) undo.c $(INCL)
|
|
1034
|
|
1035 $(OUTDIR)/window.obj: $(OUTDIR) window.c $(INCL)
|
|
1036
|
|
1037 $(OUTDIR)/xpm_w32.obj: $(OUTDIR) xpm_w32.c
|
416
|
1038 $(CC) $(CFLAGS) $(XPM_INC) xpm_w32.c
|
7
|
1039
|
1072
|
1040 $(OUTDIR)/vim.res: $(OUTDIR) vim.rc version.h tools.bmp tearoff.bmp \
|
416
|
1041 vim.ico vim_error.ico vim_alert.ico vim_info.ico vim_quest.ico
|
7
|
1042 $(RC) /l 0x409 /Fo$(OUTDIR)/vim.res $(RCFLAGS) vim.rc
|
|
1043
|
388
|
1044 iid_ole.c if_ole.h vim.tlb: if_ole.idl
|
416
|
1045 midl /nologo /error none /proxy nul /iid iid_ole.c /tlb vim.tlb \
|
|
1046 /header if_ole.h if_ole.idl
|
7
|
1047
|
|
1048 dimm.h dimm_i.c: dimm.idl
|
388
|
1049 midl /nologo /error none /proxy nul dimm.idl
|
7
|
1050
|
|
1051 $(OUTDIR)/dimm_i.obj: $(OUTDIR) dimm_i.c $(INCL)
|
|
1052
|
|
1053 $(OUTDIR)/glbl_ime.obj: $(OUTDIR) glbl_ime.cpp dimm.h $(INCL)
|
|
1054
|
19
|
1055 # $CFLAGS may contain backslashes and double quotes, escape them both.
|
|
1056 E0_CFLAGS = $(CFLAGS:\=\\)
|
|
1057 E_CFLAGS = $(E0_CFLAGS:"=\")
|
1072
|
1058 # ") stop the string
|
19
|
1059
|
659
|
1060 $(PATHDEF_SRC): auto
|
|
1061 @echo creating $(PATHDEF_SRC)
|
|
1062 @echo /* pathdef.c */ > $(PATHDEF_SRC)
|
|
1063 @echo #include "vim.h" >> $(PATHDEF_SRC)
|
|
1064 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC:\=\\)"; >> $(PATHDEF_SRC)
|
|
1065 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR:\=\\)"; >> $(PATHDEF_SRC)
|
|
1066 @echo char_u *all_cflags = (char_u *)"$(CC:\=\\) $(E_CFLAGS)"; >> $(PATHDEF_SRC)
|
|
1067 @echo char_u *all_lflags = (char_u *)"$(link:\=\\) $(LINKARGS1:\=\\) $(LINKARGS2:\=\\)"; >> $(PATHDEF_SRC)
|
|
1068 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> $(PATHDEF_SRC)
|
|
1069 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> $(PATHDEF_SRC)
|
7
|
1070
|
|
1071 auto:
|
|
1072 if not exist auto/nul mkdir auto
|
|
1073
|
|
1074 # End Custom Build
|
|
1075 proto.h: \
|
|
1076 proto/buffer.pro \
|
|
1077 proto/charset.pro \
|
|
1078 proto/diff.pro \
|
|
1079 proto/digraph.pro \
|
|
1080 proto/edit.pro \
|
|
1081 proto/eval.pro \
|
|
1082 proto/ex_cmds.pro \
|
|
1083 proto/ex_cmds2.pro \
|
|
1084 proto/ex_docmd.pro \
|
|
1085 proto/ex_eval.pro \
|
|
1086 proto/ex_getln.pro \
|
|
1087 proto/fileio.pro \
|
|
1088 proto/getchar.pro \
|
440
|
1089 proto/hardcopy.pro \
|
799
|
1090 proto/hashtab.pro \
|
7
|
1091 proto/main.pro \
|
|
1092 proto/mark.pro \
|
|
1093 proto/memfile.pro \
|
|
1094 proto/memline.pro \
|
|
1095 proto/menu.pro \
|
|
1096 proto/message.pro \
|
|
1097 proto/misc1.pro \
|
|
1098 proto/misc2.pro \
|
|
1099 proto/move.pro \
|
|
1100 proto/mbyte.pro \
|
|
1101 proto/normal.pro \
|
|
1102 proto/ops.pro \
|
|
1103 proto/option.pro \
|
|
1104 proto/os_mswin.pro \
|
|
1105 proto/os_win32.pro \
|
799
|
1106 proto/popupmnu.pro \
|
7
|
1107 proto/quickfix.pro \
|
|
1108 proto/regexp.pro \
|
|
1109 proto/screen.pro \
|
|
1110 proto/search.pro \
|
220
|
1111 proto/spell.pro \
|
7
|
1112 proto/syntax.pro \
|
|
1113 proto/tag.pro \
|
|
1114 proto/term.pro \
|
|
1115 proto/ui.pro \
|
|
1116 proto/undo.pro \
|
|
1117 proto/window.pro \
|
|
1118 $(NETBEANS_PRO)
|
|
1119
|
844
|
1120 .SUFFIXES: .cod .i
|
843
|
1121
|
|
1122 # Generate foo.cod (mixed source and assembly listing) from foo.c via "nmake
|
|
1123 # foo.cod"
|
|
1124 .c.cod:
|
|
1125 $(CC) $(CFLAGS) /FAcs $<
|
|
1126
|
|
1127 # Generate foo.i (preprocessor listing) from foo.c via "nmake foo.i"
|
|
1128 .c.i:
|
|
1129 $(CC) $(CFLAGS) /P /C $<
|
714
|
1130
|
|
1131
|
7
|
1132 # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0:
|