annotate src/Make_ming.mak @ 5421:739074bdceb8 v7.4.061

updated for version 7.4.061 Problem: Availability macros configure check in wrong place. Solution: Also check when not using Darwin. Remove version check.
author Bram Moolenaar <bram@vim.org>
date Sun, 03 Nov 2013 00:41:00 +0100
parents afbc9dd67cea
children 805ad8488dc8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
1 # Makefile for VIM on Win32
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
2 #
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 # Info at http://www.mingw.org
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
4 # Alternative x86 and 64-builds: http://mingw-w64.sourceforge.net
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
5 # Also requires GNU make, which you can download from the same sites.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 # Get missing libraries from http://gnuwin32.sf.net.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 # Tested on Win32 NT 4 and Win95.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 #
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
10 # To make everything, just 'make -f Make_ming.mak'.
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
11 # To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'.
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
12 # After a run, you can 'make -f Make_ming.mak clean' to clean up.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 # NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 # it's just run out of memory or something. Run again, and it will continue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 # with 'xxd'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 #
3388
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 3127
diff changeset
18 # "make upx" makes *compressed* versions of the 32 bit GUI and console EXEs,
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 3127
diff changeset
19 # using the excellent UPX compressor:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 # http://upx.sourceforge.net/
3388
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 3127
diff changeset
21 # "make mpress" uses the MPRESS compressor for 32- and 64-bit EXEs:
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 3127
diff changeset
22 # http://www.matcode.com/mpress.htm
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 #
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
24 # Maintained by Ron Aaron <ronaharon@yahoo.com> et al.
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
25 # Updated 2012 Sep 5.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 #>>>>> choose options:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 # set to yes for a debug build
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 DEBUG=no
1201
4d2585cf5950 updated for version 7.1b
vimboss
parents: 799
diff changeset
30 # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 OPTIMIZE=MAXSPEED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 # set to yes to make gvim, no for vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 GUI=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 # FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE]
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
35 # Set to TINY to make minimal version (few features).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 FEATURES=BIG
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
37 # Set to one of i386, i486, i586, i686 as the minimum target processor.
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
38 # For amd64/x64 architecture set ARCH=x86-64 .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 ARCH=i386
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
40 # Set to yes to cross-compile from unix; no=native Windows.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 CROSS=no
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
42 # Set to path to iconv.h and libiconv.a to enable using 'iconv.dll'.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 #ICONV="."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 ICONV=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 GETTEXT=yes
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
46 # Set to yes to include multibyte support.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 MBYTE=yes
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
48 # Set to yes to include IME support.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 IME=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 DYNAMIC_IME=yes
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
51 # Set to yes to enable writing a postscript file with :hardcopy.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 POSTSCRIPT=no
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
53 # Set to yes to enable OLE support.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 OLE=no
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
55 # Set the default $(WINVER) to make it work with pre-Win2k.
3472
b36640b2f671 updated for version 7.3.500
Bram Moolenaar <bram@vim.org>
parents: 3441
diff changeset
56 ifndef WINVER
3652
8393a16069fb updated for version 7.3.586
Bram Moolenaar <bram@vim.org>
parents: 3472
diff changeset
57 WINVER = 0x0500
3472
b36640b2f671 updated for version 7.3.500
Bram Moolenaar <bram@vim.org>
parents: 3441
diff changeset
58 endif
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
59 # Set to yes to enable Cscope support.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 CSCOPE=yes
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
61 # Set to yes to enable Netbeans support.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 NETBEANS=$(GUI)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
2674
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
65 # Link against the shared version of libstdc++ by default. Set
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
66 # STATIC_STDCPLUS to "yes" to link against static version instead.
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
67 ifndef STATIC_STDCPLUS
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
68 STATIC_STDCPLUS=no
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
69 endif
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
70
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 # If the user doesn't want gettext, undefine it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 ifeq (no, $(GETTEXT))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 GETTEXT=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 # Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 # Uncomment the first line and one of the following three if you want Native Language
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 # Support. You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 # Franco Bez <franco.bez@gmx.de>. It may be found at
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 # http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 # Tested with mingw32 with GCC-2.95.2 on Win98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 # Updated 2001 Jun 9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 #GETTEXT=c:/gettext.win32.msvcrt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 #STATIC_GETTEXT=USE_STATIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 #DYNAMIC_GETTEXT=USE_GETTEXT_DLL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 #DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 # Alternatively, if you uncomment the two following lines, you get a "safe" version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 # without linking the safe_gettext_dll.o object file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 #GETTEXT_DYNAMIC=gnu_gettext.dll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 INTLPATH=$(GETTEXT)/lib/mingw32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 INTLLIB=gnu_gettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 # If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 # or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/
2900
4e21fd3cfc30 updated for version 7.3.223
Bram Moolenaar <bram@vim.org>
parents: 2674
diff changeset
96 # uncomment the following, but I can't build a static version with them, ?-(|
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 #GETTEXT=c:/gettext-0.10.37-20010430
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 #STATIC_GETTEXT=USE_STATIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 #INTLPATH=$(GETTEXT)/lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 #INTLLIB=intl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 # uncomment 'PERL' if you want a perl-enabled version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 #PERL=C:/perl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 ifndef PERL_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 PERL_VER=56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 ifndef DYNAMIC_PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 DYNAMIC_PERL=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 # on Linux, for cross-compile, it's here:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 #PERLLIB=/home/ron/ActivePerl/lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 # on NT, it's here:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 PERLLIB=$(PERL)/lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 PERLLIBS=$(PERLLIB)/Core
3127
fdc723632298 updated for version 7.3.334
Bram Moolenaar <bram@vim.org>
parents: 3110
diff changeset
117 XSUBPPTRY=$(PERLLIB)/ExtUtils/xsubpp
fdc723632298 updated for version 7.3.334
Bram Moolenaar <bram@vim.org>
parents: 3110
diff changeset
118 XSUBPP_EXISTS=$(shell perl -e "print 1 unless -e '$(XSUBPPTRY)'")
3064
b3a523ced6bd updated for version 7.3.304
Bram Moolenaar <bram@vim.org>
parents: 2900
diff changeset
119 ifeq "$(XSUBPP_EXISTS)" ""
3127
fdc723632298 updated for version 7.3.334
Bram Moolenaar <bram@vim.org>
parents: 3110
diff changeset
120 XSUBPP=perl $(XSUBPPTRY)
3064
b3a523ced6bd updated for version 7.3.304
Bram Moolenaar <bram@vim.org>
parents: 2900
diff changeset
121 else
b3a523ced6bd updated for version 7.3.304
Bram Moolenaar <bram@vim.org>
parents: 2900
diff changeset
122 XSUBPP=xsubpp
b3a523ced6bd updated for version 7.3.304
Bram Moolenaar <bram@vim.org>
parents: 2900
diff changeset
123 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
126 # uncomment 'LUA' if you want a Lua-enabled version
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
127 #LUA=/usr/local
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
128 ifdef LUA
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
129 ifndef DYNAMIC_LUA
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
130 DYNAMIC_LUA=yes
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
131 endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
132
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
133 ifndef LUA_VER
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
134 LUA_VER=51
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
135 endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
136
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
137 ifeq (no,$(DYNAMIC_LUA))
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
138 LUA_LIB = -L$(LUA)/lib -llua
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
139 endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
140
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
141 endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
142
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
143 # uncomment 'MZSCHEME' if you want a MzScheme-enabled version
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
144 #MZSCHEME=d:/plt
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
145 ifdef MZSCHEME
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
146 ifndef DYNAMIC_MZSCHEME
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
147 DYNAMIC_MZSCHEME=yes
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
148 endif
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
149
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
150 ifndef MZSCHEME_VER
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
151 MZSCHEME_VER=205_000
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
152 endif
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
153
1894
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
154 ifndef MZSCHEME_PRECISE_GC
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
155 MZSCHEME_PRECISE_GC=no
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
156 endif
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
157
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
158 # for version 4.x we need to generate byte-code for Scheme base
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
159 ifndef MZSCHEME_GENERATE_BASE
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
160 MZSCHEME_GENERATE_BASE=no
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
161 endif
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
162
2628
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
163 ifndef MZSCHEME_USE_RACKET
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
164 MZSCHEME_MAIN_LIB=mzsch
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
165 else
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
166 MZSCHEME_MAIN_LIB=racket
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
167 endif
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
168
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
169 ifeq (no,$(DYNAMIC_MZSCHEME))
1894
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
170 ifeq (yes,$(MZSCHEME_PRECISE_GC))
2628
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
171 MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER)
1894
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
172 else
2628
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
173 MZSCHEME_LIB = -l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
1894
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
174 endif
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
175 # the modern MinGW can dynamically link to dlls directly.
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
176 # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
177 ifndef MZSCHEME_DLLS
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
178 MZSCHEME_DLLS=$(MZSCHEME)
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
179 endif
1951
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1894
diff changeset
180 MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)\lib
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
181 endif
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
182
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
183 endif
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
184
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 # Python support -- works with the ActiveState python 2.0 release (and others
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 # too, probably)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 # uncomment 'PYTHON' to make python-enabled version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 # Put the path to the python distro here. If cross compiling from Linux, you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 # will also need to convert the header files to unix instead of dos format:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 # for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 # and also, you will need to make a mingw32 'libpython20.a' to link with:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 # cd $PYTHON/libs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 # pexports python20.dll > python20.def
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 # dlltool -d python20.def -l libpython20.a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 # on my Linux box, I put the Python stuff here:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 #PYTHON=/home/ron/ActivePython-2.0.0-202/src/Core
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 # on my NT box, it's here:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 #PYTHON=c:/python20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 ifdef PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 ifndef DYNAMIC_PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 DYNAMIC_PYTHON=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 ifndef PYTHON_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 PYTHON_VER=22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 ifeq (no,$(DYNAMIC_PYTHON))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 PYTHONLIB=-L$(PYTHON)/libs -lpython$(PYTHON_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 # my include files are in 'win32inc' on Linux, and 'include' in the standard
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 # NT distro (ActiveState)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 ifeq ($(CROSS),no)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 PYTHONINC=-I $(PYTHON)/include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 PYTHONINC=-I $(PYTHON)/win32inc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
222 #PYTHON3: See comment for Python 2 above
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
223
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
224 ifdef PYTHON3
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
225 ifndef DYNAMIC_PYTHON3
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
226 DYNAMIC_PYTHON3=yes
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
227 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
228
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
229 ifndef PYTHON3_VER
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
230 PYTHON3_VER=31
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
231 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
232
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
233 ifeq (no,$(DYNAMIC_PYTHON3))
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
234 PYTHON3LIB=-L$(PYTHON3)/libs -lPYTHON$(PYTHON3_VER)
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
235 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
236
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
237 ifeq ($(CROSS),no)
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
238 PYTHON3INC=-I $(PYTHON3)/include
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
239 else
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
240 PYTHON3INC=-I $(PYTHON3)/win32inc
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
241 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
242 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
243
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 # TCL interface:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 # TCL=[Path to TCL directory]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 # DYNAMIC_TCL=yes (to load the TCL DLL dynamically)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 # TCL_VER=[TCL version, eg 83, 84] (default is 83)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 #TCL=c:/tcl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 ifdef TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 ifndef DYNAMIC_TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 DYNAMIC_TCL=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 ifndef TCL_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 TCL_VER = 83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 TCLINC += -I$(TCL)/include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 # Ruby interface:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 # RUBY=[Path to Ruby directory]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 # RUBY_VER=[Ruby version, eg 16, 17] (default is 16)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 # RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.6)
3722
a6ebae140d89 updated for version 7.3.620
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
265 # You must set RUBY_VER_LONG when changing RUBY_VER.
a6ebae140d89 updated for version 7.3.620
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
266 # You must set RUBY_API_VER version to RUBY_VER_LONG.
a6ebae140d89 updated for version 7.3.620
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
267 # Don't set ruby API version to RUBY_VER like 191.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 #RUBY=c:/ruby
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 ifdef RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 ifndef DYNAMIC_RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 DYNAMIC_RUBY=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 # Set default value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 ifndef RUBY_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 RUBY_VER = 16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 ifndef RUBY_VER_LONG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 RUBY_VER_LONG = 1.6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 endif
3722
a6ebae140d89 updated for version 7.3.620
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
280 ifndef RUBY_API_VER
a6ebae140d89 updated for version 7.3.620
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
281 RUBY_API_VER = $(subst .,,$(RUBY_VER_LONG))
a6ebae140d89 updated for version 7.3.620
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
282 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283
2105
8562c6804861 updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents: 2093
diff changeset
284 ifndef RUBY_PLATFORM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 ifeq ($(RUBY_VER), 16)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 RUBY_PLATFORM = i586-mswin32
2116
2832243e801e updated for version 7.2.399
Bram Moolenaar <bram@zimbu.org>
parents: 2105
diff changeset
287 else
2832243e801e updated for version 7.2.399
Bram Moolenaar <bram@zimbu.org>
parents: 2105
diff changeset
288 ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/i386-mingw32),)
2105
8562c6804861 updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents: 2093
diff changeset
289 RUBY_PLATFORM = i386-mingw32
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 else
4193
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
291 ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/x64-mingw32),)
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
292 RUBY_PLATFORM = x64-mingw32
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
293 else
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 RUBY_PLATFORM = i386-mswin32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 endif
2105
8562c6804861 updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents: 2093
diff changeset
296 endif
2116
2832243e801e updated for version 7.2.399
Bram Moolenaar <bram@zimbu.org>
parents: 2105
diff changeset
297 endif
4193
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
298 endif
2105
8562c6804861 updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents: 2093
diff changeset
299
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 ifndef RUBY_INSTALL_NAME
2105
8562c6804861 updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents: 2093
diff changeset
301 ifeq ($(RUBY_VER), 16)
3722
a6ebae140d89 updated for version 7.3.620
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
302 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
2105
8562c6804861 updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents: 2093
diff changeset
303 else
4193
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
304 ifeq ($(ARCH),x86-64)
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
305 RUBY_INSTALL_NAME = x64-msvcrt-ruby$(RUBY_API_VER)
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
306 else
3722
a6ebae140d89 updated for version 7.3.620
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
307 RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 endif
4193
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
310 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311
3959
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3790
diff changeset
312 ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3790
diff changeset
313 RUBY_19_OR_LATER = 1
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3790
diff changeset
314 endif
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3790
diff changeset
315
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3790
diff changeset
316 RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3790
diff changeset
317 ifdef RUBY_19_OR_LATER
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3790
diff changeset
318 RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3790
diff changeset
319 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 ifeq (no, $(DYNAMIC_RUBY))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 endif # RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 # See feature.h for a list of options.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 # Any other defines can be included here.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 DEF_GUI=-DFEAT_GUI_W32 -DFEAT_CLIPBOARD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 -DHAVE_PATHDEF -DFEAT_$(FEATURES)
5141
afbc9dd67cea updated for version 7.3.1313
Bram Moolenaar <bram@vim.org>
parents: 4724
diff changeset
331 ifeq ($(ARCH),x86-64)
afbc9dd67cea updated for version 7.3.1313
Bram Moolenaar <bram@vim.org>
parents: 4724
diff changeset
332 DEFINES+=-DMS_WIN64
afbc9dd67cea updated for version 7.3.1313
Bram Moolenaar <bram@vim.org>
parents: 4724
diff changeset
333 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 ifeq ($(CROSS),yes)
2088
4ec11bb387a5 updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents: 1951
diff changeset
335 # cross-compiler prefix:
4ec11bb387a5 updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents: 1951
diff changeset
336 CROSS_COMPILE = i586-pc-mingw32msvc-
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 DEL = rm
107
9e65557da34c updated for version 7.0040
vimboss
parents: 89
diff changeset
338 MKDIR = mkdir -p
2088
4ec11bb387a5 updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents: 1951
diff changeset
339 DIRSLASH = /
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 # normal (Windows) compilation:
2093
0e4631bf9441 updated for version 7.2.377
Bram Moolenaar <bram@zimbu.org>
parents: 2088
diff changeset
342 CROSS_COMPILE =
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 ifneq (sh.exe, $(SHELL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 DEL = rm
107
9e65557da34c updated for version 7.0040
vimboss
parents: 89
diff changeset
345 MKDIR = mkdir -p
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 DIRSLASH = /
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 DEL = del
107
9e65557da34c updated for version 7.0040
vimboss
parents: 89
diff changeset
349 MKDIR = mkdir
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 DIRSLASH = \\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 endif
2088
4ec11bb387a5 updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents: 1951
diff changeset
353 CC := $(CROSS_COMPILE)gcc
2674
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
354 WINDRES := $(CROSS_COMPILE)windres
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
355 WINDRES_CC = $(CC)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 #>>>>> end of choices
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 ###########################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 24
diff changeset
360 CFLAGS = -Iproto $(DEFINES) -pipe -w -march=$(ARCH) -Wall
2674
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
361 WINDRES_FLAGS = --preprocessor="$(WINDRES_CC) -E -xc" -DRC_INVOKED
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 ifdef GETTEXT
177
84c21eb4fc40 updated for version 7.0054
vimboss
parents: 147
diff changeset
364 DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 GETTEXTINCLUDE = $(GETTEXT)/include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 GETTEXTLIB = $(INTLPATH)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 ifeq (yes, $(GETTEXT))
177
84c21eb4fc40 updated for version 7.0054
vimboss
parents: 147
diff changeset
368 DEFINES += -DDYNAMIC_GETTEXT
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 ifdef DYNAMIC_GETTEXT
177
84c21eb4fc40 updated for version 7.0054
vimboss
parents: 147
diff changeset
371 DEFINES += -D$(DYNAMIC_GETTEXT)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 ifdef GETTEXT_DYNAMIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 CFLAGS += -I$(PERLLIBS) -DFEAT_PERL -L$(PERLLIBS)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 ifeq (yes, $(DYNAMIC_PERL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
386 ifdef LUA
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
387 CFLAGS += -I$(LUA)/include -DFEAT_LUA
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
388 ifeq (yes, $(DYNAMIC_LUA))
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
389 CFLAGS += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
390 endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
391 endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
392
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
393 ifdef MZSCHEME
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
394 CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\"
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
395 ifeq (yes, $(DYNAMIC_MZSCHEME))
2628
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
396 CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
397 endif
4074
16e8a09e8ab0 updated for version 7.3.791
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
398 ifeq (yes, "$(MZSCHEME_DEBUG)")
16e8a09e8ab0 updated for version 7.3.791
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
399 CFLAGS += -DMZSCHEME_FORCE_GC
16e8a09e8ab0 updated for version 7.3.791
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
400 endif
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
401 endif
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
402
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 ifdef RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 CFLAGS += -DFEAT_RUBY $(RUBYINC)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 ifeq (yes, $(DYNAMIC_RUBY))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411 ifdef PYTHON
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
412 CFLAGS += -DFEAT_PYTHON
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 ifeq (yes, $(DYNAMIC_PYTHON))
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
414 CFLAGS += -DDYNAMIC_PYTHON
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
415 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
416 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
417
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
418 ifdef PYTHON3
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
419 CFLAGS += -DFEAT_PYTHON3
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
420 ifeq (yes, $(DYNAMIC_PYTHON3))
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
421 CFLAGS += -DDYNAMIC_PYTHON3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 ifdef TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 CFLAGS += -DFEAT_TCL $(TCLINC)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 ifeq (yes, $(DYNAMIC_TCL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432 ifeq ($(POSTSCRIPT),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 DEFINES += -DMSWINPS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 ifeq (yes, $(OLE))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 DEFINES += -DFEAT_OLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 ifeq ($(CSCOPE),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 DEFINES += -DFEAT_CSCOPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 ifeq ($(NETBEANS),yes)
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
445 # Only allow NETBEANS for a GUI build.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
446 ifeq (yes, $(GUI))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 DEFINES += -DFEAT_NETBEANS_INTG
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
448
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
449 ifeq ($(NBDEBUG), yes)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 DEFINES += -DNBDEBUG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 NBDEBUG_INCL = nbdebug.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 NBDEBUG_SRC = nbdebug.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 endif
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
455 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
457 # Only allow XPM for a GUI build.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
458 ifeq (yes, $(GUI))
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
459
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
460 ifndef XPM
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
461 ifeq ($(ARCH),i386)
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
462 XPM = xpm/x86
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
463 endif
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
464 ifeq ($(ARCH),i486)
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
465 XPM = xpm/x86
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
466 endif
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
467 ifeq ($(ARCH),i586)
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
468 XPM = xpm/x86
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 endif
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
470 ifeq ($(ARCH),i686)
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
471 XPM = xpm/x86
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
472 endif
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
473 ifeq ($(ARCH),x86-64)
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
474 XPM = xpm/x64
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
475 endif
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
476 endif
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
477 ifdef XPM
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
478 ifneq ($(XPM),no)
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
479 CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
480 endif
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
481 endif
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
482
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
483 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485 ifeq ($(DEBUG),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486 CFLAGS += -g -fstack-check
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 DEBUG_SUFFIX=d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 ifeq ($(OPTIMIZE), SIZE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490 CFLAGS += -Os
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492 ifeq ($(OPTIMIZE), MAXSPEED)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 CFLAGS += -O3
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 24
diff changeset
494 CFLAGS += -fomit-frame-pointer -freg-struct-return
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
495 else # SPEED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
496 CFLAGS += -O2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
497 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
498 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
499 CFLAGS += -s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
500 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
501
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 227
diff changeset
502 LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion
188
041a413d626d updated for version 7.0057
vimboss
parents: 177
diff changeset
503 GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504 OBJ = \
2192
40edf1be1cd8 Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents: 2116
diff changeset
505 $(OUTDIR)/blowfish.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506 $(OUTDIR)/buffer.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
507 $(OUTDIR)/charset.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
508 $(OUTDIR)/diff.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 $(OUTDIR)/digraph.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510 $(OUTDIR)/edit.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 $(OUTDIR)/eval.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512 $(OUTDIR)/ex_cmds.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 $(OUTDIR)/ex_cmds2.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514 $(OUTDIR)/ex_docmd.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515 $(OUTDIR)/ex_eval.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
516 $(OUTDIR)/ex_getln.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517 $(OUTDIR)/fileio.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
518 $(OUTDIR)/fold.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
519 $(OUTDIR)/getchar.o \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
520 $(OUTDIR)/hardcopy.o \
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 540
diff changeset
521 $(OUTDIR)/hashtab.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 $(OUTDIR)/main.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523 $(OUTDIR)/mark.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 $(OUTDIR)/memfile.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525 $(OUTDIR)/memline.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 $(OUTDIR)/menu.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527 $(OUTDIR)/message.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528 $(OUTDIR)/misc1.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 $(OUTDIR)/misc2.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530 $(OUTDIR)/move.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531 $(OUTDIR)/mbyte.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 $(OUTDIR)/normal.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533 $(OUTDIR)/ops.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 $(OUTDIR)/option.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 $(OUTDIR)/os_win32.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536 $(OUTDIR)/os_mswin.o \
4168
ff193256398a updated for version 7.3.836
Bram Moolenaar <bram@vim.org>
parents: 4074
diff changeset
537 $(OUTDIR)/winclip.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 $(OUTDIR)/pathdef.o \
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 540
diff changeset
539 $(OUTDIR)/popupmnu.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 $(OUTDIR)/quickfix.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541 $(OUTDIR)/regexp.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542 $(OUTDIR)/screen.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
543 $(OUTDIR)/search.o \
2192
40edf1be1cd8 Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents: 2116
diff changeset
544 $(OUTDIR)/sha256.o \
227
ef254e0f2365 updated for version 7.0063
vimboss
parents: 188
diff changeset
545 $(OUTDIR)/spell.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546 $(OUTDIR)/syntax.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
547 $(OUTDIR)/tag.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548 $(OUTDIR)/term.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 $(OUTDIR)/ui.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550 $(OUTDIR)/undo.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551 $(OUTDIR)/version.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 $(OUTDIR)/vimrc.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553 $(OUTDIR)/window.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556 OBJ += $(OUTDIR)/if_perl.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 endif
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
558 ifdef LUA
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
559 OBJ += $(OUTDIR)/if_lua.o
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
560 endif
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
561 ifdef MZSCHEME
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
562 OBJ += $(OUTDIR)/if_mzsch.o
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
563 MZSCHEME_INCL = if_mzsch.h
1894
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
564 ifeq (yes,$(MZSCHEME_GENERATE_BASE))
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
565 CFLAGS += -DINCLUDE_MZSCHEME_BASE
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
566 MZ_EXTRA_DEP += mzscheme_base.c
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
567 endif
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
568 ifeq (yes,$(MZSCHEME_PRECISE_GC))
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
569 CFLAGS += -DMZ_PRECISE_GC
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
570 endif
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
571 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 ifdef PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 OBJ += $(OUTDIR)/if_python.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574 endif
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
575 ifdef PYTHON3
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
576 OBJ += $(OUTDIR)/if_python3.o
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
577 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 ifdef RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 OBJ += $(OUTDIR)/if_ruby.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 ifdef TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 OBJ += $(OUTDIR)/if_tcl.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584 ifeq ($(CSCOPE),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585 OBJ += $(OUTDIR)/if_cscope.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587 ifeq ($(NETBEANS),yes)
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
588 # Only allow NETBEANS for a GUI build.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
589 ifeq (yes, $(GUI))
188
041a413d626d updated for version 7.0057
vimboss
parents: 177
diff changeset
590 OBJ += $(OUTDIR)/netbeans.o
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 LIB += -lwsock32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 endif
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
593 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 ifdef XPM
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
595 # Only allow XPM for a GUI build.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
596 ifeq (yes, $(GUI))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 OBJ += $(OUTDIR)/xpm_w32.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 # You'll need libXpm.a from http://gnuwin32.sf.net
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599 LIB += -L $(XPM)/lib -lXpm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600 endif
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
601 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
604 ifdef MZSCHEME
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
605 MZSCHEME_SUFFIX = Z
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
606 endif
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
607
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608 ifeq ($(GUI),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609 TARGET := gvim$(DEBUG_SUFFIX).exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
610 DEFINES += $(DEF_GUI)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 OBJ += $(GUIOBJ)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 LFLAGS += -mwindows
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
613 OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
614 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 TARGET := vim$(DEBUG_SUFFIX).exe
3790
fd0c7452fa51 updated for version 7.3.653
Bram Moolenaar <bram@vim.org>
parents: 3722
diff changeset
616 OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
618
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
619 ifdef GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 ifneq (yes, $(GETTEXT))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
621 CFLAGS += -I$(GETTEXTINCLUDE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622 ifndef STATIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
623 LIB += -L$(GETTEXTLIB) -l$(INTLLIB)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
624 ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
625 OBJ+=$(SAFE_GETTEXT_DLL_OBJ)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
626 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
627 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
628 LIB += -L$(GETTEXTLIB) -lintl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
629 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
630 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
631 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
632
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
633 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
634 ifeq (no, $(DYNAMIC_PERL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 LIB += -lperl$(PERL_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
636 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
637 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
638
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639 ifdef TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
640 LIB += -L$(TCL)/lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
641 ifeq (yes, $(DYNAMIC_TCL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642 LIB += -ltclstub$(TCL_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
643 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
644 LIB += -ltcl$(TCL_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
645 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
646 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
647
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
648 ifeq (yes, $(OLE))
2674
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
649 LIB += -loleaut32
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
650 OBJ += $(OUTDIR)/if_ole.o
2674
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
651 ifeq (yes, $(STATIC_STDCPLUS))
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
652 LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
653 else
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
654 LIB += -lstdc++
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
655 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
656 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
657
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
658 ifeq (yes, $(MBYTE))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
659 DEFINES += -DFEAT_MBYTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
660 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
661
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
662 ifeq (yes, $(IME))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
663 DEFINES += -DFEAT_MBYTE_IME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
664 ifeq (yes, $(DYNAMIC_IME))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
665 DEFINES += -DDYNAMIC_IME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
666 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
667 LIB += -limm32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
668 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
669 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
671 ifdef ICONV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
672 ifneq (yes, $(ICONV))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
673 LIB += -L$(ICONV)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 CFLAGS += -I$(ICONV)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676 DEFINES+=-DDYNAMIC_ICONV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679 all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
681 vimrun.exe: vimrun.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684 install.exe: dosinst.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
685 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687 uninstal.exe: uninstal.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690 $(TARGET): $(OUTDIR) $(OBJ)
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
691 $(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693 upx: exes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
694 upx gvim.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
695 upx vim.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
696
3388
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 3127
diff changeset
697 mpress: exes
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 3127
diff changeset
698 mpress gvim.exe
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 3127
diff changeset
699 mpress vim.exe
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 3127
diff changeset
700
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
701 xxd/xxd.exe: xxd/xxd.c
3110
d3758064ff99 updated for version 7.3.326
Bram Moolenaar <bram@vim.org>
parents: 3064
diff changeset
702 $(MAKE) -C xxd -f Make_ming.mak CC=$(CC)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
703
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
704 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
705 $(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
706
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
707 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
708 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
709 -$(DEL) $(OUTDIR)$(DIRSLASH)*.res
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
710 -rmdir $(OUTDIR)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
711 -$(DEL) *.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
712 -$(DEL) pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
713 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
714 -$(DEL) if_perl.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
715 endif
1951
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1894
diff changeset
716 ifdef MZSCHEME
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1894
diff changeset
717 -$(DEL) mzscheme_base.c
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1894
diff changeset
718 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
719 $(MAKE) -C GvimExt -f Make_ming.mak clean
3110
d3758064ff99 updated for version 7.3.326
Bram Moolenaar <bram@vim.org>
parents: 3064
diff changeset
720 $(MAKE) -C xxd -f Make_ming.mak clean
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
721
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
722 ###########################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
723 INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
724 structs.h regexp.h option.h ex_cmds.h proto.h globals.h farsi.h \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
725 gui.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
726
4724
450e13fe1621 updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents: 4444
diff changeset
727 $(OUTDIR)/if_python.o : if_python.c if_py_both.h $(INCL)
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
728 $(CC) -c $(CFLAGS) $(PYTHONINC) -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\" $< -o $@
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
729
4724
450e13fe1621 updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents: 4444
diff changeset
730 $(OUTDIR)/if_python3.o : if_python3.c if_py_both.h $(INCL)
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
731 $(CC) -c $(CFLAGS) $(PYTHON3INC) -DDYNAMIC_PYTHON3_DLL=\"PYTHON$(PYTHON3_VER).dll\" $< -o $@
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
732
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
733 $(OUTDIR)/%.o : %.c $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
734 $(CC) -c $(CFLAGS) $< -o $@
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
735
3441
08a37c57af47 updated for version 7.3.486
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
736 $(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h
08a37c57af47 updated for version 7.3.486
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
737 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \
08a37c57af47 updated for version 7.3.486
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
738 --input-format=rc --output-format=coff -i vim.rc -o $@
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
739
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
740 $(OUTDIR):
107
9e65557da34c updated for version 7.0040
vimboss
parents: 89
diff changeset
741 $(MKDIR) $(OUTDIR)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
742
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
743 $(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
744 $(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
745
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
746 $(OUTDIR)/ex_eval.o: ex_eval.c $(INCL) ex_cmds.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
747 $(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
748
4041
a6e60677aea7 updated for version 7.3.775
Bram Moolenaar <bram@vim.org>
parents: 3959
diff changeset
749 $(OUTDIR)/gui_w32.o: gui_w32.c gui_w48.c $(INCL)
a6e60677aea7 updated for version 7.3.775
Bram Moolenaar <bram@vim.org>
parents: 3959
diff changeset
750 $(CC) -c $(CFLAGS) gui_w32.c -o $(OUTDIR)/gui_w32.o
a6e60677aea7 updated for version 7.3.775
Bram Moolenaar <bram@vim.org>
parents: 3959
diff changeset
751
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
752 $(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
753 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
754
1351
df6967461cef updated for version 7.1-065
vimboss
parents: 1201
diff changeset
755 # Remove -D__IID_DEFINED__ for newer versions of the w32api
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
756 $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL)
1351
df6967461cef updated for version 7.1-065
vimboss
parents: 1201
diff changeset
757 $(CC) $(CFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
758
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
759 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
760 ifeq (16, $(RUBY))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
761 $(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
762 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
763
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
764 if_perl.c: if_perl.xs typemap
3064
b3a523ced6bd updated for version 7.3.304
Bram Moolenaar <bram@vim.org>
parents: 2900
diff changeset
765 $(XSUBPP) -prototypes -typemap \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
766 $(PERLLIB)/ExtUtils/typemap if_perl.xs > $@
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
767
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
768 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
769 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
770
4444
ccecb03e5e8b updated for version 7.3.970
Bram Moolenaar <bram@vim.org>
parents: 4193
diff changeset
771 $(OUTDIR)/regexp.o: regexp.c regexp_nfa.c $(INCL)
ccecb03e5e8b updated for version 7.3.970
Bram Moolenaar <bram@vim.org>
parents: 4193
diff changeset
772 $(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o
ccecb03e5e8b updated for version 7.3.970
Bram Moolenaar <bram@vim.org>
parents: 4193
diff changeset
773
1894
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
774 $(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) if_mzsch.h $(MZ_EXTRA_DEP)
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
775 $(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
776
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
777 mzscheme_base.c:
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
778 $(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base
afb740b5dfab updated for version 7.2-191
vimboss
parents: 1351
diff changeset
779
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
780 pathdef.c: $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
781 ifneq (sh.exe, $(SHELL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
782 @echo creating pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
783 @echo '/* pathdef.c */' > pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
784 @echo '#include "vim.h"' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
785 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
786 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
787 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
788 @echo 'char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)";' >> pathdef.c
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
789 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
790 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
791 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
792 @echo creating pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
793 @echo /* pathdef.c */ > pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
794 @echo #include "vim.h" >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
795 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
796 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
797 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
798 @echo char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)"; >> pathdef.c
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
799 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
800 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
801 endif