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