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