annotate src/Make_cyg.mak @ 5384:6d11572e2c8b v7.4.043

updated for version 7.4.043 Problem: VMS can't handle long function names. Solution: Shorten may_req_ambiguous_character_width. (Samuel Ferencik)
author Bram Moolenaar <bram@vim.org>
date Sun, 29 Sep 2013 16:27:47 +0200
parents 0978e99043d2
children de9a01851ebd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 # Makefile for VIM on Win32, using Cygnus gcc
5356
0978e99043d2 updated for version 7.4.030
Bram Moolenaar <bram@vim.org>
parents: 5141
diff changeset
3 # Last updated by Dan Sharp. Last Change: 2013 Sep 19
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
4 #
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
5 # Also read INSTALLpc.txt!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 # This compiles Vim as a Windows application. If you want Vim to run as a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 # Cygwin application use the Makefile (just like on Unix).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 # GUI no or yes: set to yes if you want the GUI version (yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 # PERL define to path to Perl dir to get Perl support (not defined)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 # PERL_VER define to version of Perl being used (56)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 # DYNAMIC_PERL no or yes: set to yes to load the Perl DLL dynamically (yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 # PYTHON define to path to Python dir to get PYTHON support (not defined)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 # PYTHON_VER define to version of Python being used (22)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 # DYNAMIC_PYTHON no or yes: use yes to load the Python DLL dynamically (yes)
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
17 # PYTHON3 define to path to Python3 dir to get PYTHON3 support (not defined)
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
18 # PYTHON3_VER define to version of Python3 being used (22)
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
19 # DYNAMIC_PYTHON3 no or yes: use yes to load the Python3 DLL dynamically (yes)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 # TCL define to path to TCL dir to get TCL support (not defined)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 # TCL_VER define to version of TCL being used (83)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 # DYNAMIC_TCL no or yes: use yes to load the TCL DLL dynamically (yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 # RUBY define to path to Ruby dir to get Ruby support (not defined)
3959
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
24 # RUBY_VER define to version of Ruby being used (16)
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
25 # RUBY_VER_LONG same, but in format with dot. (1.6)
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
26 # You must set RUBY_VER_LONG when changing RUBY_VER.
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
27 # You must set RUBY_API_VER version to RUBY_VER_LONG.
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
28 # Don't set ruby API version to RUBY_VER like 191.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 # DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (yes)
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
30 # MZSCHEME define to path to MzScheme dir to get MZSCHEME support (not defined)
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
31 # MZSCHEME_VER define to version of MzScheme being used (209_000)
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
32 # DYNAMIC_MZSCHEME no or yes: use yes to load the MzScheme DLLs dynamically (yes)
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
33 # MZSCHEME_DLLS path to MzScheme DLLs (libmzgc and libmzsch), for "static" build.
2628
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2329
diff changeset
34 # MZSCHEME_USE_RACKET define to use "racket" instead of "mzsch".
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
35 # LUA define to path to Lua dir to get Lua support (not defined)
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
36 # LUA_VER define to version of Lua being used (51)
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
37 # DYNAMIC_LUA no or yes: use yes to load the Lua DLL dynamically (yes)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 # GETTEXT no or yes: set to yes for dynamic gettext support (yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 # ICONV no or yes: set to yes for dynamic iconv support (yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 # MBYTE no or yes: set to yes to include multibyte support (yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 # IME no or yes: set to yes to include IME support (yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 # DYNAMIC_IME no or yes: set to yes to load imm32.dll dynamically (yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 # OLE no or yes: set to yes to make OLE gvim (no)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 # DEBUG no or yes: set to yes if you wish a DEBUGging build (no)
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 12
diff changeset
45 # CPUNR No longer supported, use ARCH.
2088
4ec11bb387a5 updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents: 1951
diff changeset
46 # 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
47 # (i386)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 # USEDLL no or yes: set to yes to use the Runtime library DLL (no)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 # For USEDLL=yes the cygwin1.dll is required to run Vim.
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
50 # For "no" the mingw-gcc-g++ package or the mingw64-i686-gcc-g++
4352
04736b4030ec updated for version 7.3.925
Bram Moolenaar <bram@vim.org>
parents: 4193
diff changeset
51 # package is required to compile Vim. Or set CC to gcc-3 and add
2309
543ea69d037f Add clipboard support in Mac console. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
52 # -L/lib/w32api to EXTRA_LIBS.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 # POSTSCRIPT no or yes: set to yes for PostScript printing (no)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 # FEATURES TINY, SMALL, NORMAL, BIG or HUGE (BIG)
3652
8393a16069fb updated for version 7.3.586
Bram Moolenaar <bram@vim.org>
parents: 3110
diff changeset
55 # WINVER Lowest Win32 version to support. (0x0500)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 # CSCOPE no or yes: to include cscope interface support (yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 # OPTIMIZE SPACE, SPEED, or MAXSPEED: set optimization level (MAXSPEED)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 # NETBEANS no or yes: to include netbeans interface support (yes when GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 # is yes)
856
8cd729851562 updated for version 7.0g
vimboss
parents: 800
diff changeset
60 # NBDEBUG no or yes: to include netbeans interface debugging support (no)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 # XPM define to path to XPM dir to get XPM image support (not defined)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 #>>>>> choose options:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 ifndef GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 GUI=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 ifndef FEATURES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 FEATURES = BIG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 ifndef GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 GETTEXT = yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 ifndef ICONV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 ICONV = yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 ifndef MBYTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 MBYTE = yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 ifndef IME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 IME = yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
87 ifndef ARCH
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
88 ARCH = i386
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 ifndef WINVER
3652
8393a16069fb updated for version 7.3.586
Bram Moolenaar <bram@vim.org>
parents: 3110
diff changeset
92 WINVER = 0x0500
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 ifndef CSCOPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 CSCOPE = yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 ifndef NETBEANS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 ifeq ($(GUI),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 NETBEANS = yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 ifndef OPTIMIZE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 OPTIMIZE = MAXSPEED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
4137
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
109
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
110 # Link against the shared version of libstdc++ by default. Set
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
111 # STATIC_STDCPLUS to "yes" to link against static version instead.
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
112 ifndef STATIC_STDCPLUS
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
113 STATIC_STDCPLUS=no
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
114 endif
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
115
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 ### See feature.h for a list of optionals.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 ### Any other defines can be included here.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 DEFINES = -DWIN32 -DHAVE_PATHDEF -DFEAT_$(FEATURES) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)
5141
afbc9dd67cea updated for version 7.3.1313
Bram Moolenaar <bram@vim.org>
parents: 4724
diff changeset
121 ifeq ($(ARCH),x86-64)
afbc9dd67cea updated for version 7.3.1313
Bram Moolenaar <bram@vim.org>
parents: 4724
diff changeset
122 DEFINES+=-DMS_WIN64
afbc9dd67cea updated for version 7.3.1313
Bram Moolenaar <bram@vim.org>
parents: 4724
diff changeset
123 endif
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 12
diff changeset
124 INCLUDES = -march=$(ARCH) -Iproto
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 #>>>>> name of the compiler and linker, name of lib directory
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
127 ifeq (yes, $(USEDLL))
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
128 # CROSS_COMPILE is used for the gvimext DLL.
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
129 CROSS_COMPILE = i686-pc-mingw32-
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 CC = gcc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 RC = windres
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
132 else
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
133 # i686-pc-mingw32-gcc, i686-w64-mingw32-gcc or gcc-3 can be used.
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
134 CROSS_COMPILE = i686-pc-mingw32-
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
135 CC = $(CROSS_COMPILE)gcc
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
136 RC = $(CROSS_COMPILE)windres
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
137 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 # DYNAMIC_PERL=yes and no both work
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 DEFINES += -DFEAT_PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 INCLUDES += -I$(PERL)/lib/CORE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 EXTRA_OBJS += $(OUTDIR)/if_perl.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 ifndef DYNAMIC_PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 DYNAMIC_PERL = yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 ifndef PERL_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 PERL_VER = 56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 ifeq (yes, $(DYNAMIC_PERL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 DEFINES += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 EXTRA_LIBS += $(PERL)/lib/CORE/perl$(PERL_VER).lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 # DYNAMIC_PYTHON=yes works.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 # DYNAMIC_PYTHON=no does not (unresolved externals on link).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 ifdef PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 DEFINES += -DFEAT_PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 EXTRA_OBJS += $(OUTDIR)/if_python.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 ifndef DYNAMIC_PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 DYNAMIC_PYTHON = yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 ifndef PYTHON_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 PYTHON_VER = 22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 ifeq (yes, $(DYNAMIC_PYTHON))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 DEFINES += -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 EXTRA_LIBS += $(PYTHON)/libs/python$(PYTHON_VER).lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 ##############################
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
186 # DYNAMIC_PYTHON3=yes works.
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
187 # DYNAMIC_PYTHON3=no does not (unresolved externals on link).
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
188 ##############################
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
189 ifdef PYTHON3
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
190 DEFINES += -DFEAT_PYTHON3
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
191 EXTRA_OBJS += $(OUTDIR)/if_python3.o
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
192
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
193 ifndef DYNAMIC_PYTHON3
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
194 DYNAMIC_PYTHON3 = yes
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
195 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
196
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
197 ifndef PYTHON3_VER
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
198 PYTHON3_VER = 31
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
199 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
200
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
201 ifeq (yes, $(DYNAMIC_PYTHON3))
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
202 DEFINES += -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python$(PYTHON3_VER).dll\"
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
203 else
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
204 EXTRA_LIBS += $(PYTHON3)/libs/python$(PYTHON3_VER).lib
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
205 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
206 endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
207
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
208 ##############################
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 # DYNAMIC_RUBY=yes works.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 # DYNAMIC_RUBY=no does not (process exits).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 ifdef RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
214 ifndef DYNAMIC_RUBY
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
215 DYNAMIC_RUBY=yes
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
216 endif
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
217 # Set default value
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 ifndef RUBY_VER
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
219 RUBY_VER = 16
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 ifndef RUBY_VER_LONG
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
222 RUBY_VER_LONG = 1.6
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 endif
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
224 ifndef RUBY_API_VER
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
225 RUBY_API_VER = $(subst .,,$(RUBY_VER_LONG))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
228 ifndef RUBY_PLATFORM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 ifeq ($(RUBY_VER), 16)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 RUBY_PLATFORM = i586-mswin32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 else
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
232 ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/i386-mingw32),)
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
233 RUBY_PLATFORM = i386-mingw32
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
234 else
4193
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
235 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
236 RUBY_PLATFORM = x64-mingw32
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
237 else
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 RUBY_PLATFORM = i386-mswin32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 endif
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
240 endif
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
241 endif
4193
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
242 endif
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
243
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 ifndef RUBY_INSTALL_NAME
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
245 ifeq ($(RUBY_VER), 16)
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
246 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
247 else
4193
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
248 ifeq ($(ARCH),x86-64)
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
249 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
250 else
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
251 RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 endif
4193
e49b80f267dc updated for version 7.3.848
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
254 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255
3959
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
256 ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
257 RUBY_19_OR_LATER = 1
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
258 endif
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
259
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 DEFINES += -DFEAT_RUBY
4124
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
261 ifneq ($(findstring w64-mingw32,$(CC)),)
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
262 # A workaround for mingw-w64
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
263 DEFINES += -DHAVE_STRUCT_TIMESPEC -DHAVE_STRUCT_TIMEZONE
448a6e7cf32e updated for version 7.3.815
Bram Moolenaar <bram@vim.org>
parents: 4041
diff changeset
264 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 INCLUDES += -I$(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
3959
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
266 ifdef RUBY_19_OR_LATER
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
267 INCLUDES += -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: 3652
diff changeset
268 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 EXTRA_OBJS += $(OUTDIR)/if_ruby.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 ifeq (yes, $(DYNAMIC_RUBY))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 DEFINES += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 DEFINES += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 EXTRA_LIBS += $(RUBY)/lib/$(RUBY_INSTALL_NAME).lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 ##############################
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
280 # DYNAMIC_MZSCHEME=yes works
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
281 # DYNAMIC_MZSCHEME=no works too
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
282 ##############################
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
283 ifdef MZSCHEME
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
284 DEFINES += -DFEAT_MZSCHEME
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
285 INCLUDES += -I$(MZSCHEME)/include
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
286 EXTRA_OBJS += $(OUTDIR)/if_mzsch.o
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
287
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
288 ifndef DYNAMIC_MZSCHEME
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
289 DYNAMIC_MZSCHEME = yes
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
290 endif
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
291
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
292 ifndef MZSCHEME_VER
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
293 MZSCHEME_VER = 209_000
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
294 endif
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
295
1951
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
296 ifndef MZSCHEME_PRECISE_GC
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
297 MZSCHEME_PRECISE_GC=no
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
298 endif
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
299
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
300 # for version 4.x we need to generate byte-code for Scheme base
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
301 ifndef MZSCHEME_GENERATE_BASE
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
302 MZSCHEME_GENERATE_BASE=no
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
303 endif
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
304
2628
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2329
diff changeset
305 ifndef MZSCHEME_USE_RACKET
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2329
diff changeset
306 MZSCHEME_MAIN_LIB=mzsch
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2329
diff changeset
307 else
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2329
diff changeset
308 MZSCHEME_MAIN_LIB=racket
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2329
diff changeset
309 endif
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2329
diff changeset
310
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
311 ifeq (yes, $(DYNAMIC_MZSCHEME))
2628
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2329
diff changeset
312 DEFINES += -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
313 else
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
314 ifndef MZSCHEME_DLLS
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
315 MZSCHEME_DLLS = $(MZSCHEME)
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
316 endif
1951
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
317 ifeq (yes,$(MZSCHEME_PRECISE_GC))
2628
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2329
diff changeset
318 MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER)
1951
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
319 else
2628
5c4b2fc4f067 updated for version 7.3.049
Bram Moolenaar <bram@vim.org>
parents: 2329
diff changeset
320 MZSCHEME_LIB = -l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
1951
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
321 endif
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
322 EXTRA_LIBS += -L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)/lib $(MZSCHEME_LIB)
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
323 endif
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
324 ifeq (yes,$(MZSCHEME_GENERATE_BASE))
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
325 DEFINES += -DINCLUDE_MZSCHEME_BASE
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
326 MZ_EXTRA_DEP += mzscheme_base.c
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
327 endif
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
328 ifeq (yes,$(MZSCHEME_PRECISE_GC))
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
329 DEFINES += -DMZ_PRECISE_GC
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
330 endif
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
331 endif
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
332
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
333 ##############################
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 # DYNAMIC_TCL=yes and no both work.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 ifdef TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 DEFINES += -DFEAT_TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 INCLUDES += -I$(TCL)/include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 EXTRA_OBJS += $(OUTDIR)/if_tcl.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 ifndef DYNAMIC_TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 DYNAMIC_TCL = yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 ifndef TCL_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 TCL_VER = 83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 ifeq (yes, $(DYNAMIC_TCL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 DEFINES += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 EXTRA_LIBS += $(TCL)/lib/tclstub$(TCL_VER).lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 EXTRA_LIBS += $(TCL)/lib/tcl$(TCL_VER).lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 ##############################
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
358 # DYNAMIC_LUA=yes works.
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
359 # DYNAMIC_LUA=no does not (unresolved externals on link).
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
360 ##############################
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
361 ifdef LUA
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
362 DEFINES += -DFEAT_LUA
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
363 INCLUDES += -I$(LUA)/include
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
364 EXTRA_OBJS += $(OUTDIR)/if_lua.o
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
365
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
366 ifndef DYNAMIC_LUA
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
367 DYNAMIC_LUA = yes
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
368 endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
369
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
370 ifndef LUA_VER
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
371 LUA_VER = 51
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
372 endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
373
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
374 ifeq (yes, $(DYNAMIC_LUA))
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
375 DEFINES += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
376 else
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
377 EXTRA_LIBS += $(LUA)/lib/lua$(LUA_VER).lib
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
378 endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
379 endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
380
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
381 ##############################
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 ifeq (yes, $(GETTEXT))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 DEFINES += -DDYNAMIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 ifeq (yes, $(ICONV))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 DEFINES += -DDYNAMIC_ICONV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392 ifeq (yes, $(MBYTE))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 DEFINES += -DFEAT_MBYTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397 ifeq (yes, $(IME))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 DEFINES += -DFEAT_MBYTE_IME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 ifndef DYNAMIC_IME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 DYNAMIC_IME = yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 ifeq (yes, $(DYNAMIC_IME))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 DEFINES += -DDYNAMIC_IME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 EXTRA_LIBS += -limm32
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 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412 ifeq (yes, $(DEBUG))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 DEFINES += -DDEBUG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 INCLUDES += -g -fstack-check
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 DEBUG_SUFFIX = d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 ifeq ($(OPTIMIZE), SIZE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 OPTFLAG = -Os
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 ifeq ($(OPTIMIZE), MAXSPEED)
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 12
diff changeset
422 OPTFLAG = -O3 -fomit-frame-pointer -freg-struct-return
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 OPTFLAG = -O2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 # A bug in the GCC <= 3.2 optimizer can cause a crash. The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 # following option removes the problem optimization.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 OPTFLAG += -fno-strength-reduce
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432 INCLUDES += -s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433
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 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 # USEDLL=yes will build a Cygwin32 executable that relies on cygwin1.dll.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 # USEDLL=no will build a Mingw32 executable with no extra dll dependencies.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 ifeq (yes, $(USEDLL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 DEFINES += -D_MAX_PATH=256 -D__CYGWIN__
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 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445 ifeq (yes, $(POSTSCRIPT))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 DEFINES += -DMSWINPS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 ifeq (yes, $(CSCOPE))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 DEFINES += -DFEAT_CSCOPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 EXTRA_OBJS += $(OUTDIR)/if_cscope.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 ##############################
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
456 ifeq ($(GUI),yes)
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
457
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
458 ##############################
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 ifeq (yes, $(NETBEANS))
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
460 # Only allow NETBEANS for a GUI build.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461 DEFINES += -DFEAT_NETBEANS_INTG
185
037369688e14 updated for version 7.0057
vimboss
parents: 146
diff changeset
462 EXTRA_OBJS += $(OUTDIR)/netbeans.o
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 EXTRA_LIBS += -lwsock32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
465 ifeq (yes, $(NBDEBUG))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466 DEFINES += -DNBDEBUG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467 NBDEBUG_DEP = nbdebug.h nbdebug.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
473 ifdef XPM
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
474 # Only allow XPM for a GUI build.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 DEFINES += -DFEAT_XPM_W32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476 INCLUDES += -I$(XPM)/include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477 EXTRA_OBJS += $(OUTDIR)/xpm_w32.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478 EXTRA_LIBS += -L$(XPM)/lib -lXpm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
479 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481 ##############################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482 EXE = gvim$(DEBUG_SUFFIX).exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
483 OUTDIR = gobj$(DEBUG_SUFFIX)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484 DEFINES += -DFEAT_GUI_W32 -DFEAT_CLIPBOARD
185
037369688e14 updated for version 7.0057
vimboss
parents: 146
diff changeset
485 EXTRA_OBJS += $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 226
diff changeset
486 EXTRA_LIBS += -mwindows -lcomctl32 -lversion
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 EXE = vim$(DEBUG_SUFFIX).exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 OUTDIR = obj$(DEBUG_SUFFIX)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490 LIBS += -luser32 -lgdi32 -lcomdlg32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 ##############################
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
494 ifeq (yes, $(OLE))
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
495 DEFINES += -DFEAT_OLE
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
496 EXTRA_OBJS += $(OUTDIR)/if_ole.o
4137
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
497 EXTRA_LIBS += -loleaut32
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
498 ifeq (yes, $(STATIC_STDCPLUS))
4141
db401e5e4c5d updated for version 7.3.823
Bram Moolenaar <bram@vim.org>
parents: 4137
diff changeset
499 EXTRA_LIBS += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
4137
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
500 else
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
501 EXTRA_LIBS += -lstdc++
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
502 endif
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
503 endif
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
504
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
505 ##############################
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506 ifneq (sh.exe, $(SHELL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
507 DEL = rm
106
5490bff158e4 updated for version 7.0040
vimboss
parents: 84
diff changeset
508 MKDIR = mkdir -p
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 DIRSLASH = /
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 DEL = del
106
5490bff158e4 updated for version 7.0040
vimboss
parents: 84
diff changeset
512 MKDIR = mkdir
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 DIRSLASH = \\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
516 #>>>>> end of choices
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517 ###########################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
518
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
519 INCL = vim.h globals.h option.h keymap.h macros.h ascii.h term.h os_win32.h \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
520 structs.h version.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
521
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 CFLAGS = $(OPTFLAG) $(DEFINES) $(INCLUDES)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 RCFLAGS = -O coff $(DEFINES)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 OBJ = \
2192
40edf1be1cd8 Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents: 2088
diff changeset
527 $(OUTDIR)/blowfish.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528 $(OUTDIR)/buffer.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 $(OUTDIR)/charset.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530 $(OUTDIR)/diff.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531 $(OUTDIR)/digraph.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 $(OUTDIR)/edit.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533 $(OUTDIR)/eval.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 $(OUTDIR)/ex_cmds.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 $(OUTDIR)/ex_cmds2.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536 $(OUTDIR)/ex_docmd.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537 $(OUTDIR)/ex_eval.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 $(OUTDIR)/ex_getln.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539 $(OUTDIR)/fileio.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 $(OUTDIR)/fold.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541 $(OUTDIR)/getchar.o \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 435
diff changeset
542 $(OUTDIR)/hardcopy.o \
800
d8f905020502 updated for version 7.0b
vimboss
parents: 540
diff changeset
543 $(OUTDIR)/hashtab.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544 $(OUTDIR)/main.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545 $(OUTDIR)/mark.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546 $(OUTDIR)/memfile.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
547 $(OUTDIR)/memline.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548 $(OUTDIR)/menu.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 $(OUTDIR)/message.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550 $(OUTDIR)/misc1.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551 $(OUTDIR)/misc2.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 $(OUTDIR)/move.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553 $(OUTDIR)/mbyte.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554 $(OUTDIR)/normal.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555 $(OUTDIR)/ops.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556 $(OUTDIR)/option.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 $(OUTDIR)/os_win32.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 $(OUTDIR)/os_mswin.o \
4168
ff193256398a updated for version 7.3.836
Bram Moolenaar <bram@vim.org>
parents: 4141
diff changeset
559 $(OUTDIR)/winclip.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560 $(OUTDIR)/pathdef.o \
800
d8f905020502 updated for version 7.0b
vimboss
parents: 540
diff changeset
561 $(OUTDIR)/popupmnu.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562 $(OUTDIR)/quickfix.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563 $(OUTDIR)/regexp.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 $(OUTDIR)/screen.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 $(OUTDIR)/search.o \
2192
40edf1be1cd8 Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents: 2088
diff changeset
566 $(OUTDIR)/sha256.o \
226
4e7dca477fee updated for version 7.0063
vimboss
parents: 185
diff changeset
567 $(OUTDIR)/spell.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568 $(OUTDIR)/syntax.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 $(OUTDIR)/tag.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 $(OUTDIR)/term.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571 $(OUTDIR)/ui.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 $(OUTDIR)/undo.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 $(OUTDIR)/version.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574 $(OUTDIR)/vimrc.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575 $(OUTDIR)/window.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 $(EXTRA_OBJS)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 all: $(EXE) xxd/xxd.exe vimrun.exe install.exe uninstal.exe GvimExt/gvimext.dll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 # According to the Cygwin doc 1.2 FAQ, kernel32 should not be specified for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 # linking unless calling ld directly.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 # See /usr/doc/cygwin-doc-1.2/html/faq_toc.html#TOC93 for more information.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 $(EXE): $(OUTDIR) $(OBJ)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584 $(CC) $(CFLAGS) -o $(EXE) $(OBJ) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 xxd/xxd.exe: xxd/xxd.c
2088
4ec11bb387a5 updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents: 1951
diff changeset
587 $(MAKE) -C xxd -f Make_cyg.mak CC=$(CC) USEDLL=$(USEDLL)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
3110
d3758064ff99 updated for version 7.3.326
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
590 $(MAKE) -C GvimExt -f Make_cyg.mak CROSS_COMPILE=$(CROSS_COMPILE)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 vimrun.exe: vimrun.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIBS)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 install.exe: dosinst.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIBS) -luuid -lole32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 uninstal.exe: uninstal.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIBS)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 $(OUTDIR):
106
5490bff158e4 updated for version 7.0040
vimboss
parents: 84
diff changeset
602 $(MKDIR) $(OUTDIR)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 tags:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 command /c ctags *.c $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609 -rmdir $(OUTDIR)
84
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
610 -$(DEL) $(EXE) vimrun.exe install.exe uninstal.exe
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 -$(DEL) if_perl.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 endif
1951
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
614 ifdef MZSCHEME
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
615 -$(DEL) mzscheme_base.c
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
616 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 -$(DEL) pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
618 $(MAKE) -C xxd -f Make_cyg.mak clean
3110
d3758064ff99 updated for version 7.3.326
Bram Moolenaar <bram@vim.org>
parents: 2628
diff changeset
619 $(MAKE) -C GvimExt -f Make_cyg.mak clean
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620
84
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
621 distclean: clean
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
622 -$(DEL) obj$(DIRSLASH)*.o
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
623 -rmdir obj
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
624 -$(DEL) gobj$(DIRSLASH)*.o
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
625 -rmdir gobj
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
626 -$(DEL) objd$(DIRSLASH)*.o
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
627 -rmdir objd
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
628 -$(DEL) gobjd$(DIRSLASH)*.o
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
629 -rmdir gobjd
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
630 -$(DEL) *.exe
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
631
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
632 ###########################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
633
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
634 $(OUTDIR)/%.o : %.c $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 $(CC) -c $(CFLAGS) $< -o $@
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
636
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
637 $(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
638 $(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
640 $(OUTDIR)/ex_eval.o: ex_eval.c $(INCL) ex_cmds.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
641 $(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642
4041
a6e60677aea7 updated for version 7.3.775
Bram Moolenaar <bram@vim.org>
parents: 3959
diff changeset
643 $(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
644 $(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
645
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
646 $(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
647 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
648
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
649 $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL)
1413
d4b1aca2e3a9 updated for version 7.1-128
vimboss
parents: 856
diff changeset
650 $(CC) -c $(CFLAGS) if_ole.cpp -o $(OUTDIR)/if_ole.o
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
651
4724
450e13fe1621 updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents: 4444
diff changeset
652 $(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
653 $(CC) -c $(CFLAGS) -I$(PYTHON)/include $< -o $@
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
654
4724
450e13fe1621 updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents: 4444
diff changeset
655 $(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
656 $(CC) -c $(CFLAGS) -I$(PYTHON3)/include $< -o $@
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
657
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
658 if_perl.c: if_perl.xs typemap
84
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
659 $(PERL)/bin/perl `cygpath -d $(PERL)/lib/ExtUtils/xsubpp` \
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
660 -prototypes -typemap \
60834e43d187 updated for version 7.0034
vimboss
parents: 39
diff changeset
661 `cygpath -d $(PERL)/lib/ExtUtils/typemap` if_perl.xs > $@
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
662
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
663 $(OUTDIR)/if_perl.o: if_perl.c $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
664 ifeq (yes, $(USEDLL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
665 $(CC) -c $(CFLAGS) -I/usr/include/mingw -D__MINGW32__ if_perl.c -o $(OUTDIR)/if_perl.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
666 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
667
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
668 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
669 ifeq (16, $(RUBY_VER))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670 $(CC) -c $(CFLAGS) -U_WIN32 if_ruby.c -o $(OUTDIR)/if_ruby.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
671 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
672
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
673 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_DEP)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675
4444
ccecb03e5e8b updated for version 7.3.970
Bram Moolenaar <bram@vim.org>
parents: 4352
diff changeset
676 $(OUTDIR)/regexp.o: regexp.c regexp_nfa.c $(INCL)
ccecb03e5e8b updated for version 7.3.970
Bram Moolenaar <bram@vim.org>
parents: 4352
diff changeset
677 $(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o
ccecb03e5e8b updated for version 7.3.970
Bram Moolenaar <bram@vim.org>
parents: 4352
diff changeset
678
1951
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
679 $(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) if_mzsch.h $(MZ_EXTRA_DEP)
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
680 $(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
681
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682 $(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683 $(RC) $(RCFLAGS) vim.rc -o $(OUTDIR)/vimrc.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684
1951
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
685 mzscheme_base.c:
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
686 $(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base
f234c87ac7e9 updated for version 7.2-248
vimboss
parents: 1413
diff changeset
687
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688 pathdef.c: $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689 ifneq (sh.exe, $(SHELL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690 @echo creating pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691 @echo '/* pathdef.c */' > pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692 @echo '#include "vim.h"' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
694 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
695 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
696 @echo 'char_u *all_lflags = (char_u *)"$(CC) -s -o $(EXE) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
697 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
698 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
699 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
700 @echo creating pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
701 @echo /* pathdef.c */ > pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
702 @echo #include "vim.h" >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
703 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
704 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
705 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
706 @echo char_u *all_lflags = (char_u *)"$(CC) -s -o $(EXE) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
707 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
708 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
709 endif
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
710