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