annotate src/Make_cyg.mak @ 2274:7c31d761ffa9 vim73

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