Mercurial > vim
annotate src/Make_cyg.mak @ 2274:7c31d761ffa9 vim73
Fix build problem with Ruby on Windows. (Cesar Romani)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 25 Jun 2010 04:29:11 +0200 |
parents | 40edf1be1cd8 |
children | 543ea69d037f |
rev | line source |
---|---|
7 | 1 # |
2 # Makefile for VIM on Win32, using Cygnus gcc | |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
3 # Last updated by Dan Sharp. Last Change: 2010 Feb 24 |
146 | 4 # |
5 # Also read INSTALLpc.txt! | |
7 | 6 # |
7 # This compiles Vim as a Windows application. If you want Vim to run as a | |
8 # Cygwin application use the Makefile (just like on Unix). | |
9 # | |
10 # GUI no or yes: set to yes if you want the GUI version (yes) | |
11 # PERL define to path to Perl dir to get Perl support (not defined) | |
12 # PERL_VER define to version of Perl being used (56) | |
13 # DYNAMIC_PERL no or yes: set to yes to load the Perl DLL dynamically (yes) | |
14 # PYTHON define to path to Python dir to get PYTHON support (not defined) | |
15 # PYTHON_VER define to version of Python being used (22) | |
16 # DYNAMIC_PYTHON no or yes: use yes to load the Python DLL dynamically (yes) | |
17 # TCL define to path to TCL dir to get TCL support (not defined) | |
18 # TCL_VER define to version of TCL being used (83) | |
19 # DYNAMIC_TCL no or yes: use yes to load the TCL DLL dynamically (yes) | |
20 # RUBY define to path to Ruby dir to get Ruby support (not defined) | |
21 # RUBY_VER define to version of Ruby being used (16) | |
22 # DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (yes) | |
128 | 23 # MZSCHEME define to path to MzScheme dir to get MZSCHEME support (not defined) |
24 # MZSCHEME_VER define to version of MzScheme being used (209_000) | |
25 # DYNAMIC_MZSCHEME no or yes: use yes to load the MzScheme DLLs dynamically (yes) | |
146 | 26 # MZSCHEME_DLLS path to MzScheme DLLs (libmzgc and libmzsch), for "static" build. |
7 | 27 # GETTEXT no or yes: set to yes for dynamic gettext support (yes) |
28 # ICONV no or yes: set to yes for dynamic iconv support (yes) | |
29 # MBYTE no or yes: set to yes to include multibyte support (yes) | |
30 # IME no or yes: set to yes to include IME support (yes) | |
31 # DYNAMIC_IME no or yes: set to yes to load imm32.dll dynamically (yes) | |
32 # OLE no or yes: set to yes to make OLE gvim (no) | |
33 # DEBUG no or yes: set to yes if you wish a DEBUGging build (no) | |
39 | 34 # CPUNR No longer supported, use ARCH. |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
35 # ARCH i386 through pentium4: select -march argument to compile with |
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
36 # (i386) |
7 | 37 # USEDLL no or yes: set to yes to use the Runtime library DLL (no) |
38 # For USEDLL=yes the cygwin1.dll is required to run Vim. | |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
39 # "no" does not work with latest version of Cygwin, use |
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
40 # Make_ming.mak instead. Or set CC to gcc-3. |
7 | 41 # POSTSCRIPT no or yes: set to yes for PostScript printing (no) |
42 # FEATURES TINY, SMALL, NORMAL, BIG or HUGE (BIG) | |
43 # WINVER Lowest Win32 version to support. (0x0400) | |
44 # CSCOPE no or yes: to include cscope interface support (yes) | |
45 # OPTIMIZE SPACE, SPEED, or MAXSPEED: set optimization level (MAXSPEED) | |
46 # NETBEANS no or yes: to include netbeans interface support (yes when GUI | |
47 # is yes) | |
856 | 48 # NBDEBUG no or yes: to include netbeans interface debugging support (no) |
7 | 49 # XPM define to path to XPM dir to get XPM image support (not defined) |
50 #>>>>> choose options: | |
51 ifndef GUI | |
52 GUI=yes | |
53 endif | |
54 | |
55 ifndef FEATURES | |
56 FEATURES = BIG | |
57 endif | |
58 | |
59 ifndef GETTEXT | |
60 GETTEXT = yes | |
61 endif | |
62 | |
63 ifndef ICONV | |
64 ICONV = yes | |
65 endif | |
66 | |
67 ifndef MBYTE | |
68 MBYTE = yes | |
69 endif | |
70 | |
71 ifndef IME | |
72 IME = yes | |
73 endif | |
74 | |
12 | 75 ifndef ARCH |
76 ARCH = i386 | |
7 | 77 endif |
78 | |
79 ifndef WINVER | |
80 WINVER = 0x0400 | |
81 endif | |
82 | |
83 ifndef CSCOPE | |
84 CSCOPE = yes | |
85 endif | |
86 | |
87 ifndef NETBEANS | |
88 ifeq ($(GUI),yes) | |
89 NETBEANS = yes | |
90 endif | |
91 endif | |
92 | |
93 ifndef OPTIMIZE | |
94 OPTIMIZE = MAXSPEED | |
95 endif | |
96 | |
97 ### See feature.h for a list of optionals. | |
98 ### Any other defines can be included here. | |
99 | |
100 DEFINES = -DWIN32 -DHAVE_PATHDEF -DFEAT_$(FEATURES) \ | |
101 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) | |
39 | 102 INCLUDES = -march=$(ARCH) -Iproto |
7 | 103 |
104 #>>>>> name of the compiler and linker, name of lib directory | |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
105 CROSS_COMPILE = |
7 | 106 CC = gcc |
107 RC = windres | |
108 | |
109 ############################## | |
110 # DYNAMIC_PERL=yes and no both work | |
111 ############################## | |
112 ifdef PERL | |
113 DEFINES += -DFEAT_PERL | |
114 INCLUDES += -I$(PERL)/lib/CORE | |
115 EXTRA_OBJS += $(OUTDIR)/if_perl.o | |
116 | |
117 ifndef DYNAMIC_PERL | |
118 DYNAMIC_PERL = yes | |
119 endif | |
120 | |
121 ifndef PERL_VER | |
122 PERL_VER = 56 | |
123 endif | |
124 | |
125 ifeq (yes, $(DYNAMIC_PERL)) | |
126 DEFINES += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\" | |
127 else | |
128 EXTRA_LIBS += $(PERL)/lib/CORE/perl$(PERL_VER).lib | |
129 endif | |
130 endif | |
131 | |
132 ############################## | |
133 # DYNAMIC_PYTHON=yes works. | |
134 # DYNAMIC_PYTHON=no does not (unresolved externals on link). | |
135 ############################## | |
136 ifdef PYTHON | |
137 DEFINES += -DFEAT_PYTHON | |
138 INCLUDES += -I$(PYTHON)/include | |
139 EXTRA_OBJS += $(OUTDIR)/if_python.o | |
140 | |
141 ifndef DYNAMIC_PYTHON | |
142 DYNAMIC_PYTHON = yes | |
143 endif | |
144 | |
145 ifndef PYTHON_VER | |
146 PYTHON_VER = 22 | |
147 endif | |
148 | |
149 ifeq (yes, $(DYNAMIC_PYTHON)) | |
150 DEFINES += -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\" | |
151 else | |
152 EXTRA_LIBS += $(PYTHON)/libs/python$(PYTHON_VER).lib | |
153 endif | |
154 endif | |
155 | |
156 ############################## | |
157 # DYNAMIC_RUBY=yes works. | |
158 # DYNAMIC_RUBY=no does not (process exits). | |
159 ############################## | |
160 ifdef RUBY | |
161 | |
162 ifndef RUBY_VER | |
163 RUBY_VER=16 | |
164 endif | |
165 | |
166 ifndef RUBY_VER_LONG | |
167 RUBY_VER_LONG=1.6 | |
168 endif | |
169 | |
170 ifndef DYNAMIC_RUBY | |
171 DYNAMIC_RUBY = yes | |
172 endif | |
173 | |
174 ifeq ($(RUBY_VER), 16) | |
175 ifndef RUBY_PLATFORM | |
176 RUBY_PLATFORM = i586-mswin32 | |
177 endif | |
178 ifndef RUBY_INSTALL_NAME | |
179 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER) | |
180 endif | |
181 else | |
182 ifndef RUBY_PLATFORM | |
183 RUBY_PLATFORM = i386-mswin32 | |
184 endif | |
185 ifndef RUBY_INSTALL_NAME | |
186 RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER) | |
187 endif | |
188 endif | |
189 | |
190 DEFINES += -DFEAT_RUBY | |
191 INCLUDES += -I$(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM) | |
192 EXTRA_OBJS += $(OUTDIR)/if_ruby.o | |
193 | |
194 ifeq (yes, $(DYNAMIC_RUBY)) | |
195 DEFINES += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\" | |
196 DEFINES += -DDYNAMIC_RUBY_VER=$(RUBY_VER) | |
197 else | |
198 EXTRA_LIBS += $(RUBY)/lib/$(RUBY_INSTALL_NAME).lib | |
199 endif | |
200 endif | |
201 | |
202 ############################## | |
128 | 203 # DYNAMIC_MZSCHEME=yes works |
204 # DYNAMIC_MZSCHEME=no works too | |
205 ############################## | |
206 ifdef MZSCHEME | |
207 DEFINES += -DFEAT_MZSCHEME | |
208 INCLUDES += -I$(MZSCHEME)/include | |
209 EXTRA_OBJS += $(OUTDIR)/if_mzsch.o | |
210 | |
211 ifndef DYNAMIC_MZSCHEME | |
212 DYNAMIC_MZSCHEME = yes | |
213 endif | |
214 | |
215 ifndef MZSCHEME_VER | |
216 MZSCHEME_VER = 209_000 | |
217 endif | |
218 | |
1951 | 219 ifndef MZSCHEME_PRECISE_GC |
220 MZSCHEME_PRECISE_GC=no | |
221 endif | |
222 | |
223 # for version 4.x we need to generate byte-code for Scheme base | |
224 ifndef MZSCHEME_GENERATE_BASE | |
225 MZSCHEME_GENERATE_BASE=no | |
226 endif | |
227 | |
128 | 228 ifeq (yes, $(DYNAMIC_MZSCHEME)) |
229 DEFINES += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libmzsch$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\" | |
230 else | |
231 ifndef MZSCHEME_DLLS | |
232 MZSCHEME_DLLS = $(MZSCHEME) | |
233 endif | |
1951 | 234 ifeq (yes,$(MZSCHEME_PRECISE_GC)) |
235 MZSCHEME_LIB=-lmzsch$(MZSCHEME_VER) | |
236 else | |
237 MZSCHEME_LIB = -lmzsch$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER) | |
238 endif | |
239 EXTRA_LIBS += -L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)/lib $(MZSCHEME_LIB) | |
240 endif | |
241 ifeq (yes,$(MZSCHEME_GENERATE_BASE)) | |
242 DEFINES += -DINCLUDE_MZSCHEME_BASE | |
243 MZ_EXTRA_DEP += mzscheme_base.c | |
244 endif | |
245 ifeq (yes,$(MZSCHEME_PRECISE_GC)) | |
246 DEFINES += -DMZ_PRECISE_GC | |
128 | 247 endif |
248 endif | |
249 | |
250 ############################## | |
7 | 251 # DYNAMIC_TCL=yes and no both work. |
252 ############################## | |
253 ifdef TCL | |
254 DEFINES += -DFEAT_TCL | |
255 INCLUDES += -I$(TCL)/include | |
256 EXTRA_OBJS += $(OUTDIR)/if_tcl.o | |
257 | |
258 ifndef DYNAMIC_TCL | |
259 DYNAMIC_TCL = yes | |
260 endif | |
261 | |
262 ifndef TCL_VER | |
263 TCL_VER = 83 | |
264 endif | |
265 | |
266 ifeq (yes, $(DYNAMIC_TCL)) | |
267 DEFINES += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\" | |
268 EXTRA_LIBS += $(TCL)/lib/tclstub$(TCL_VER).lib | |
269 else | |
270 EXTRA_LIBS += $(TCL)/lib/tcl$(TCL_VER).lib | |
271 endif | |
272 endif | |
273 | |
274 ############################## | |
275 ifeq (yes, $(GETTEXT)) | |
276 DEFINES += -DDYNAMIC_GETTEXT | |
277 endif | |
278 | |
279 ############################## | |
280 ifeq (yes, $(ICONV)) | |
281 DEFINES += -DDYNAMIC_ICONV | |
282 endif | |
283 | |
284 ############################## | |
285 ifeq (yes, $(MBYTE)) | |
286 DEFINES += -DFEAT_MBYTE | |
287 endif | |
288 | |
289 ############################## | |
290 ifeq (yes, $(IME)) | |
291 DEFINES += -DFEAT_MBYTE_IME | |
292 | |
293 ifndef DYNAMIC_IME | |
294 DYNAMIC_IME = yes | |
295 endif | |
296 | |
297 ifeq (yes, $(DYNAMIC_IME)) | |
298 DEFINES += -DDYNAMIC_IME | |
299 else | |
300 EXTRA_LIBS += -limm32 | |
301 endif | |
302 endif | |
303 | |
304 ############################## | |
305 ifeq (yes, $(DEBUG)) | |
306 DEFINES += -DDEBUG | |
307 INCLUDES += -g -fstack-check | |
308 DEBUG_SUFFIX = d | |
309 else | |
310 | |
311 ifeq ($(OPTIMIZE), SIZE) | |
312 OPTFLAG = -Os | |
313 else | |
314 ifeq ($(OPTIMIZE), MAXSPEED) | |
39 | 315 OPTFLAG = -O3 -fomit-frame-pointer -freg-struct-return |
7 | 316 else |
317 OPTFLAG = -O2 | |
318 endif | |
319 endif | |
320 | |
321 # A bug in the GCC <= 3.2 optimizer can cause a crash. The | |
322 # following option removes the problem optimization. | |
323 OPTFLAG += -fno-strength-reduce | |
324 | |
325 INCLUDES += -s | |
326 | |
327 endif | |
328 | |
329 ############################## | |
330 # USEDLL=yes will build a Cygwin32 executable that relies on cygwin1.dll. | |
331 # USEDLL=no will build a Mingw32 executable with no extra dll dependencies. | |
332 ############################## | |
333 ifeq (yes, $(USEDLL)) | |
334 DEFINES += -D_MAX_PATH=256 -D__CYGWIN__ | |
335 else | |
336 INCLUDES += -mno-cygwin | |
337 endif | |
338 | |
339 ############################## | |
340 ifeq (yes, $(POSTSCRIPT)) | |
341 DEFINES += -DMSWINPS | |
342 endif | |
343 | |
344 ############################## | |
345 ifeq (yes, $(CSCOPE)) | |
346 DEFINES += -DFEAT_CSCOPE | |
347 EXTRA_OBJS += $(OUTDIR)/if_cscope.o | |
348 endif | |
349 | |
350 ############################## | |
12 | 351 ifeq ($(GUI),yes) |
352 | |
353 ############################## | |
7 | 354 ifeq (yes, $(NETBEANS)) |
12 | 355 # Only allow NETBEANS for a GUI build. |
7 | 356 DEFINES += -DFEAT_NETBEANS_INTG |
185 | 357 EXTRA_OBJS += $(OUTDIR)/netbeans.o |
7 | 358 EXTRA_LIBS += -lwsock32 |
359 | |
12 | 360 ifeq (yes, $(NBDEBUG)) |
7 | 361 DEFINES += -DNBDEBUG |
362 NBDEBUG_DEP = nbdebug.h nbdebug.c | |
363 endif | |
364 | |
365 endif | |
366 | |
367 ############################## | |
368 ifdef XPM | |
12 | 369 # Only allow XPM for a GUI build. |
7 | 370 DEFINES += -DFEAT_XPM_W32 |
371 INCLUDES += -I$(XPM)/include | |
372 EXTRA_OBJS += $(OUTDIR)/xpm_w32.o | |
373 EXTRA_LIBS += -L$(XPM)/lib -lXpm | |
374 endif | |
375 | |
376 ############################## | |
377 EXE = gvim$(DEBUG_SUFFIX).exe | |
378 OUTDIR = gobj$(DEBUG_SUFFIX) | |
379 DEFINES += -DFEAT_GUI_W32 -DFEAT_CLIPBOARD | |
185 | 380 EXTRA_OBJS += $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o |
435 | 381 EXTRA_LIBS += -mwindows -lcomctl32 -lversion |
7 | 382 else |
383 EXE = vim$(DEBUG_SUFFIX).exe | |
384 OUTDIR = obj$(DEBUG_SUFFIX) | |
385 LIBS += -luser32 -lgdi32 -lcomdlg32 | |
386 endif | |
387 | |
388 ############################## | |
12 | 389 ifeq (yes, $(OLE)) |
390 DEFINES += -DFEAT_OLE | |
391 EXTRA_OBJS += $(OUTDIR)/if_ole.o | |
392 EXTRA_LIBS += -loleaut32 -lstdc++ | |
393 endif | |
394 | |
395 ############################## | |
7 | 396 ifneq (sh.exe, $(SHELL)) |
397 DEL = rm | |
106 | 398 MKDIR = mkdir -p |
7 | 399 DIRSLASH = / |
400 else | |
401 DEL = del | |
106 | 402 MKDIR = mkdir |
7 | 403 DIRSLASH = \\ |
404 endif | |
405 | |
406 #>>>>> end of choices | |
407 ########################################################################### | |
408 | |
409 INCL = vim.h globals.h option.h keymap.h macros.h ascii.h term.h os_win32.h \ | |
410 structs.h version.h | |
411 | |
412 CFLAGS = $(OPTFLAG) $(DEFINES) $(INCLUDES) | |
413 | |
414 RCFLAGS = -O coff $(DEFINES) | |
415 | |
416 OBJ = \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2088
diff
changeset
|
417 $(OUTDIR)/blowfish.o \ |
7 | 418 $(OUTDIR)/buffer.o \ |
419 $(OUTDIR)/charset.o \ | |
420 $(OUTDIR)/diff.o \ | |
421 $(OUTDIR)/digraph.o \ | |
422 $(OUTDIR)/edit.o \ | |
423 $(OUTDIR)/eval.o \ | |
424 $(OUTDIR)/ex_cmds.o \ | |
425 $(OUTDIR)/ex_cmds2.o \ | |
426 $(OUTDIR)/ex_docmd.o \ | |
427 $(OUTDIR)/ex_eval.o \ | |
428 $(OUTDIR)/ex_getln.o \ | |
429 $(OUTDIR)/fileio.o \ | |
430 $(OUTDIR)/fold.o \ | |
431 $(OUTDIR)/getchar.o \ | |
440 | 432 $(OUTDIR)/hardcopy.o \ |
800 | 433 $(OUTDIR)/hashtab.o \ |
7 | 434 $(OUTDIR)/main.o \ |
435 $(OUTDIR)/mark.o \ | |
436 $(OUTDIR)/memfile.o \ | |
437 $(OUTDIR)/memline.o \ | |
438 $(OUTDIR)/menu.o \ | |
439 $(OUTDIR)/message.o \ | |
440 $(OUTDIR)/misc1.o \ | |
441 $(OUTDIR)/misc2.o \ | |
442 $(OUTDIR)/move.o \ | |
443 $(OUTDIR)/mbyte.o \ | |
444 $(OUTDIR)/normal.o \ | |
445 $(OUTDIR)/ops.o \ | |
446 $(OUTDIR)/option.o \ | |
447 $(OUTDIR)/os_win32.o \ | |
448 $(OUTDIR)/os_mswin.o \ | |
449 $(OUTDIR)/pathdef.o \ | |
800 | 450 $(OUTDIR)/popupmnu.o \ |
7 | 451 $(OUTDIR)/quickfix.o \ |
452 $(OUTDIR)/regexp.o \ | |
453 $(OUTDIR)/screen.o \ | |
454 $(OUTDIR)/search.o \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2088
diff
changeset
|
455 $(OUTDIR)/sha256.o \ |
226 | 456 $(OUTDIR)/spell.o \ |
7 | 457 $(OUTDIR)/syntax.o \ |
458 $(OUTDIR)/tag.o \ | |
459 $(OUTDIR)/term.o \ | |
460 $(OUTDIR)/ui.o \ | |
461 $(OUTDIR)/undo.o \ | |
462 $(OUTDIR)/version.o \ | |
463 $(OUTDIR)/vimrc.o \ | |
464 $(OUTDIR)/window.o \ | |
465 $(EXTRA_OBJS) | |
466 | |
467 all: $(EXE) xxd/xxd.exe vimrun.exe install.exe uninstal.exe GvimExt/gvimext.dll | |
468 | |
469 # According to the Cygwin doc 1.2 FAQ, kernel32 should not be specified for | |
470 # linking unless calling ld directly. | |
471 # See /usr/doc/cygwin-doc-1.2/html/faq_toc.html#TOC93 for more information. | |
472 $(EXE): $(OUTDIR) $(OBJ) | |
473 $(CC) $(CFLAGS) -o $(EXE) $(OBJ) $(LIBS) -luuid -lole32 $(EXTRA_LIBS) | |
474 | |
475 xxd/xxd.exe: xxd/xxd.c | |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
476 $(MAKE) -C xxd -f Make_cyg.mak CC=$(CC) USEDLL=$(USEDLL) |
7 | 477 |
478 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h | |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
479 $(MAKE) -C GvimExt -f Make_ming.mak CROSS_COMPILE=$(CROSS_COMPILE) |
7 | 480 |
481 vimrun.exe: vimrun.c | |
482 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIBS) | |
483 | |
484 install.exe: dosinst.c | |
485 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIBS) -luuid -lole32 | |
486 | |
487 uninstal.exe: uninstal.c | |
488 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIBS) | |
489 | |
490 $(OUTDIR): | |
106 | 491 $(MKDIR) $(OUTDIR) |
7 | 492 |
493 tags: | |
494 command /c ctags *.c $(INCL) | |
495 | |
496 clean: | |
497 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o | |
498 -rmdir $(OUTDIR) | |
84 | 499 -$(DEL) $(EXE) vimrun.exe install.exe uninstal.exe |
7 | 500 ifdef PERL |
501 -$(DEL) if_perl.c | |
502 endif | |
1951 | 503 ifdef MZSCHEME |
504 -$(DEL) mzscheme_base.c | |
505 endif | |
7 | 506 -$(DEL) pathdef.c |
507 $(MAKE) -C xxd -f Make_cyg.mak clean | |
508 $(MAKE) -C GvimExt -f Make_ming.mak clean | |
509 | |
84 | 510 distclean: clean |
511 -$(DEL) obj$(DIRSLASH)*.o | |
512 -rmdir obj | |
513 -$(DEL) gobj$(DIRSLASH)*.o | |
514 -rmdir gobj | |
515 -$(DEL) objd$(DIRSLASH)*.o | |
516 -rmdir objd | |
517 -$(DEL) gobjd$(DIRSLASH)*.o | |
518 -rmdir gobjd | |
519 -$(DEL) *.exe | |
520 | |
7 | 521 ########################################################################### |
522 | |
523 $(OUTDIR)/%.o : %.c $(INCL) | |
524 $(CC) -c $(CFLAGS) $< -o $@ | |
525 | |
526 $(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h | |
527 $(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o | |
528 | |
529 $(OUTDIR)/ex_eval.o: ex_eval.c $(INCL) ex_cmds.h | |
530 $(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o | |
531 | |
532 $(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h | |
533 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o | |
534 | |
535 $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL) | |
1413 | 536 $(CC) -c $(CFLAGS) if_ole.cpp -o $(OUTDIR)/if_ole.o |
7 | 537 |
538 if_perl.c: if_perl.xs typemap | |
84 | 539 $(PERL)/bin/perl `cygpath -d $(PERL)/lib/ExtUtils/xsubpp` \ |
540 -prototypes -typemap \ | |
541 `cygpath -d $(PERL)/lib/ExtUtils/typemap` if_perl.xs > $@ | |
7 | 542 |
543 $(OUTDIR)/if_perl.o: if_perl.c $(INCL) | |
544 ifeq (yes, $(USEDLL)) | |
545 $(CC) -c $(CFLAGS) -I/usr/include/mingw -D__MINGW32__ if_perl.c -o $(OUTDIR)/if_perl.o | |
546 endif | |
547 | |
548 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL) | |
549 ifeq (16, $(RUBY_VER)) | |
550 $(CC) -c $(CFLAGS) -U_WIN32 if_ruby.c -o $(OUTDIR)/if_ruby.o | |
551 endif | |
552 | |
553 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_DEP) | |
554 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o | |
555 | |
1951 | 556 $(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) if_mzsch.h $(MZ_EXTRA_DEP) |
557 $(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o | |
558 | |
7 | 559 $(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h |
560 $(RC) $(RCFLAGS) vim.rc -o $(OUTDIR)/vimrc.o | |
561 | |
1951 | 562 mzscheme_base.c: |
563 $(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base | |
564 | |
7 | 565 pathdef.c: $(INCL) |
566 ifneq (sh.exe, $(SHELL)) | |
567 @echo creating pathdef.c | |
568 @echo '/* pathdef.c */' > pathdef.c | |
569 @echo '#include "vim.h"' >> pathdef.c | |
570 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c | |
571 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c | |
572 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c | |
573 @echo 'char_u *all_lflags = (char_u *)"$(CC) -s -o $(EXE) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)";' >> pathdef.c | |
574 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c | |
575 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c | |
576 else | |
577 @echo creating pathdef.c | |
578 @echo /* pathdef.c */ > pathdef.c | |
579 @echo #include "vim.h" >> pathdef.c | |
580 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c | |
581 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c | |
582 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c | |
583 @echo char_u *all_lflags = (char_u *)"$(CC) -s -o $(EXE) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)"; >> pathdef.c | |
584 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c | |
585 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c | |
586 endif |