annotate src/Make_ming.mak @ 1734:619b90abfdc9 v7.2.032

updated for version 7.2-032
author vimboss
date Sun, 09 Nov 2008 16:22:01 +0000
parents df6967461cef
children afb740b5dfab
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 # Makefile for VIM on Win32, using 'EGCS/mingw32 1.1.2'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 # Info at http://www.mingw.org
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 # Also requires 'GNU make 3.77', which you can get through a link
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 # to 'JanJaap's page from the above page.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 # Get missing libraries from http://gnuwin32.sf.net.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 # Tested on Win32 NT 4 and Win95.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 # To make everything, just 'make -f Make_ming.mak'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 # To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 # After a run, you can 'make -f Make_ming.mak clean' to clean up
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 # NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 # it's just run out of memory or something. Run again, and it will continue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 # with 'xxd'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 # "make upx" makes *compressed* versions of the GUI and console EXEs, using the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 # excellent UPX compressor:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 # http://upx.sourceforge.net/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 # Maintained by Ron Aaron <ronaharon@yahoo.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 # updated 2003 Jan 20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 #>>>>> choose options:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 # set to yes for a debug build
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 DEBUG=no
1201
4d2585cf5950 updated for version 7.1b
vimboss
parents: 799
diff changeset
27 # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 OPTIMIZE=MAXSPEED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 # set to yes to make gvim, no for vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 GUI=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 # FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 # set to TINY to make minimal version (few features)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 FEATURES=BIG
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 24
diff changeset
34 # set to one of i386, i486, i586, i686 as the minimum target processor
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 ARCH=i386
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 # set to yes to cross-compile from unix; no=native Windows
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 CROSS=no
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 # set to path to iconv.h and libiconv.a to enable using 'iconv.dll'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 #ICONV="."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 ICONV=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 GETTEXT=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 # set to yes to include multibyte support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 MBYTE=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 # set to yes to include IME support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 IME=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 DYNAMIC_IME=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 # set to yes to enable writing a postscript file with :hardcopy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 POSTSCRIPT=no
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 # set to yes to enable OLE support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 OLE=no
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 # Set the default $(WINVER) to make it work with pre-Win2k
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 WINVER = 0x0400
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 # Set to yes to enable Cscope support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 CSCOPE=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 # Set to yes to enable Netbeans support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 NETBEANS=$(GUI)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 # If the user doesn't want gettext, undefine it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 ifeq (no, $(GETTEXT))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 GETTEXT=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 # Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 # Uncomment the first line and one of the following three if you want Native Language
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 # Support. You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 # Franco Bez <franco.bez@gmx.de>. It may be found at
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 # http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 # Tested with mingw32 with GCC-2.95.2 on Win98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 # Updated 2001 Jun 9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 #GETTEXT=c:/gettext.win32.msvcrt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 #STATIC_GETTEXT=USE_STATIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 #DYNAMIC_GETTEXT=USE_GETTEXT_DLL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 #DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 # Alternatively, if you uncomment the two following lines, you get a "safe" version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 # without linking the safe_gettext_dll.o object file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 #GETTEXT_DYNAMIC=gnu_gettext.dll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 INTLPATH=$(GETTEXT)/lib/mingw32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 INTLLIB=gnu_gettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 # If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 # or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 # uncomment the following, but I can't build a static versión with them, ?-(|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 #GETTEXT=c:/gettext-0.10.37-20010430
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 #STATIC_GETTEXT=USE_STATIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 #INTLPATH=$(GETTEXT)/lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 #INTLLIB=intl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 # uncomment 'PERL' if you want a perl-enabled version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 #PERL=C:/perl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 ifndef PERL_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 PERL_VER=56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 ifndef DYNAMIC_PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 DYNAMIC_PERL=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 # on Linux, for cross-compile, it's here:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 #PERLLIB=/home/ron/ActivePerl/lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 # on NT, it's here:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 PERLLIB=$(PERL)/lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 PERLLIBS=$(PERLLIB)/Core
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
107 # uncomment 'MZSCHEME' if you want a MzScheme-enabled version
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
108 #MZSCHEME=d:/plt
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
109 ifdef MZSCHEME
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
110 ifndef DYNAMIC_MZSCHEME
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
111 DYNAMIC_MZSCHEME=yes
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
112 endif
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
113
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
114 ifndef MZSCHEME_VER
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
115 MZSCHEME_VER=205_000
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
116 endif
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
117
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
118 ifeq (no,$(DYNAMIC_MZSCHEME))
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
119 MZSCHEME_LIB = -lmzsch$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
120 # the modern MinGW can dynamically link to dlls directly.
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
121 # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
122 ifndef MZSCHEME_DLLS
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
123 MZSCHEME_DLLS=$(MZSCHEME)
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
124 endif
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
125 MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS)
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
126 endif
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
127
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
128 endif
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
129
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 # Python support -- works with the ActiveState python 2.0 release (and others
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 # too, probably)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 # uncomment 'PYTHON' to make python-enabled version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 # Put the path to the python distro here. If cross compiling from Linux, you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 # will also need to convert the header files to unix instead of dos format:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 # for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 # and also, you will need to make a mingw32 'libpython20.a' to link with:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 # cd $PYTHON/libs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 # pexports python20.dll > python20.def
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 # dlltool -d python20.def -l libpython20.a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 # on my Linux box, I put the Python stuff here:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 #PYTHON=/home/ron/ActivePython-2.0.0-202/src/Core
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 # on my NT box, it's here:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 #PYTHON=c:/python20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 ifdef PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 ifndef DYNAMIC_PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 DYNAMIC_PYTHON=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 PYTHON_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 PYTHON_VER=22
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 (no,$(DYNAMIC_PYTHON))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 PYTHONLIB=-L$(PYTHON)/libs -lpython$(PYTHON_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 # my include files are in 'win32inc' on Linux, and 'include' in the standard
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 # NT distro (ActiveState)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 ifeq ($(CROSS),no)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 PYTHONINC=-I $(PYTHON)/include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 PYTHONINC=-I $(PYTHON)/win32inc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 # TCL interface:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 # TCL=[Path to TCL directory]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 # DYNAMIC_TCL=yes (to load the TCL DLL dynamically)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 # TCL_VER=[TCL version, eg 83, 84] (default is 83)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 #TCL=c:/tcl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 ifdef TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 ifndef DYNAMIC_TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 DYNAMIC_TCL=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 ifndef TCL_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 TCL_VER = 83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 TCLINC += -I$(TCL)/include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 # Ruby interface:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 # RUBY=[Path to Ruby directory]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 # RUBY_VER=[Ruby version, eg 16, 17] (default is 16)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 # RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.6)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 # You must set RUBY_VER_LONG when change RUBY_VER.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 #RUBY=c:/ruby
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 ifdef RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 ifndef DYNAMIC_RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 DYNAMIC_RUBY=yes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 # Set default value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 ifndef RUBY_VER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 RUBY_VER = 16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 ifndef RUBY_VER_LONG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 RUBY_VER_LONG = 1.6
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 ifeq ($(RUBY_VER), 16)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 ifndef RUBY_PLATFORM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 RUBY_PLATFORM = i586-mswin32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 ifndef RUBY_INSTALL_NAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 ifndef RUBY_PLATFORM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 RUBY_PLATFORM = i386-mswin32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 ifndef RUBY_INSTALL_NAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 RUBYINC =-I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 ifeq (no, $(DYNAMIC_RUBY))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 endif # RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 # See feature.h for a list of options.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 # Any other defines can be included here.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 DEF_GUI=-DFEAT_GUI_W32 -DFEAT_CLIPBOARD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 -DHAVE_PATHDEF -DFEAT_$(FEATURES)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 ifeq ($(CROSS),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 # cross-compiler:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 CC = i586-pc-mingw32msvc-gcc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 DEL = rm
107
9e65557da34c updated for version 7.0040
vimboss
parents: 89
diff changeset
234 MKDIR = mkdir -p
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 WINDRES = i586-pc-mingw32msvc-windres
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 # normal (Windows) compilation:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 CC = gcc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 ifneq (sh.exe, $(SHELL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 DEL = rm
107
9e65557da34c updated for version 7.0040
vimboss
parents: 89
diff changeset
241 MKDIR = mkdir -p
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 DIRSLASH = /
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 DEL = del
107
9e65557da34c updated for version 7.0040
vimboss
parents: 89
diff changeset
245 MKDIR = mkdir
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 DIRSLASH = \\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 WINDRES = windres
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 #>>>>> end of choices
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 ###########################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 24
diff changeset
254 CFLAGS = -Iproto $(DEFINES) -pipe -w -march=$(ARCH) -Wall
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 ifdef GETTEXT
177
84c21eb4fc40 updated for version 7.0054
vimboss
parents: 147
diff changeset
257 DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 GETTEXTINCLUDE = $(GETTEXT)/include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 GETTEXTLIB = $(INTLPATH)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 ifeq (yes, $(GETTEXT))
177
84c21eb4fc40 updated for version 7.0054
vimboss
parents: 147
diff changeset
261 DEFINES += -DDYNAMIC_GETTEXT
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 ifdef DYNAMIC_GETTEXT
177
84c21eb4fc40 updated for version 7.0054
vimboss
parents: 147
diff changeset
264 DEFINES += -D$(DYNAMIC_GETTEXT)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 ifdef GETTEXT_DYNAMIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 CFLAGS += -I$(PERLLIBS) -DFEAT_PERL -L$(PERLLIBS)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 ifeq (yes, $(DYNAMIC_PERL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
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
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
279 ifdef MZSCHEME
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
280 CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\"
128
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
281 ifeq (yes, $(DYNAMIC_MZSCHEME))
8def260d486d updated for version 7.0044
vimboss
parents: 119
diff changeset
282 CFLAGS += -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
283 endif
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
284 endif
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
285
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 ifdef RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 CFLAGS += -DFEAT_RUBY $(RUBYINC)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 ifeq (yes, $(DYNAMIC_RUBY))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 ifdef PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 CFLAGS += -DFEAT_PYTHON $(PYTHONINC)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 ifeq (yes, $(DYNAMIC_PYTHON))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 CFLAGS += -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 ifdef TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 CFLAGS += -DFEAT_TCL $(TCLINC)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 ifeq (yes, $(DYNAMIC_TCL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 ifeq ($(POSTSCRIPT),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 DEFINES += -DMSWINPS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 ifeq (yes, $(OLE))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 DEFINES += -DFEAT_OLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 ifeq ($(CSCOPE),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 DEFINES += -DFEAT_CSCOPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 ifeq ($(NETBEANS),yes)
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
321 # Only allow NETBEANS for a GUI build.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
322 ifeq (yes, $(GUI))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 DEFINES += -DFEAT_NETBEANS_INTG
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
324
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
325 ifeq ($(NBDEBUG), yes)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 DEFINES += -DNBDEBUG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 NBDEBUG_INCL = nbdebug.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 NBDEBUG_SRC = nbdebug.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 endif
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
331 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 ifdef XPM
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
334 # Only allow XPM for a GUI build.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
335 ifeq (yes, $(GUI))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 endif
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
338 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 ifeq ($(DEBUG),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 CFLAGS += -g -fstack-check
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 DEBUG_SUFFIX=d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 ifeq ($(OPTIMIZE), SIZE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 CFLAGS += -Os
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 ifeq ($(OPTIMIZE), MAXSPEED)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 CFLAGS += -O3
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 24
diff changeset
349 CFLAGS += -fomit-frame-pointer -freg-struct-return
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 else # SPEED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 CFLAGS += -O2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 CFLAGS += -s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 227
diff changeset
357 LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion
188
041a413d626d updated for version 7.0057
vimboss
parents: 177
diff changeset
358 GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 OBJ = \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 $(OUTDIR)/buffer.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 $(OUTDIR)/charset.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 $(OUTDIR)/diff.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 $(OUTDIR)/digraph.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 $(OUTDIR)/edit.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 $(OUTDIR)/eval.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 $(OUTDIR)/ex_cmds.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 $(OUTDIR)/ex_cmds2.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 $(OUTDIR)/ex_docmd.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 $(OUTDIR)/ex_eval.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 $(OUTDIR)/ex_getln.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 $(OUTDIR)/fileio.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 $(OUTDIR)/fold.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 $(OUTDIR)/getchar.o \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
374 $(OUTDIR)/hardcopy.o \
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 540
diff changeset
375 $(OUTDIR)/hashtab.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 $(OUTDIR)/main.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 $(OUTDIR)/mark.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 $(OUTDIR)/memfile.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 $(OUTDIR)/memline.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 $(OUTDIR)/menu.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 $(OUTDIR)/message.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 $(OUTDIR)/misc1.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 $(OUTDIR)/misc2.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 $(OUTDIR)/move.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 $(OUTDIR)/mbyte.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 $(OUTDIR)/normal.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 $(OUTDIR)/ops.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 $(OUTDIR)/option.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 $(OUTDIR)/os_win32.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 $(OUTDIR)/os_mswin.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 $(OUTDIR)/pathdef.o \
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 540
diff changeset
392 $(OUTDIR)/popupmnu.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 $(OUTDIR)/quickfix.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 $(OUTDIR)/regexp.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 $(OUTDIR)/screen.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 $(OUTDIR)/search.o \
227
ef254e0f2365 updated for version 7.0063
vimboss
parents: 188
diff changeset
397 $(OUTDIR)/spell.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 $(OUTDIR)/syntax.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 $(OUTDIR)/tag.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 $(OUTDIR)/term.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 $(OUTDIR)/ui.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402 $(OUTDIR)/undo.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 $(OUTDIR)/version.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 $(OUTDIR)/vimrc.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 $(OUTDIR)/window.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 OBJ += $(OUTDIR)/if_perl.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 endif
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
410 ifdef MZSCHEME
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
411 OBJ += $(OUTDIR)/if_mzsch.o
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
412 MZSCHEME_INCL = if_mzsch.h
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
413 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 ifdef PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 OBJ += $(OUTDIR)/if_python.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 ifdef RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 OBJ += $(OUTDIR)/if_ruby.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 ifdef TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 OBJ += $(OUTDIR)/if_tcl.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 ifeq ($(CSCOPE),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 OBJ += $(OUTDIR)/if_cscope.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 ifeq ($(NETBEANS),yes)
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
427 # Only allow NETBEANS for a GUI build.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
428 ifeq (yes, $(GUI))
188
041a413d626d updated for version 7.0057
vimboss
parents: 177
diff changeset
429 OBJ += $(OUTDIR)/netbeans.o
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 LIB += -lwsock32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 endif
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
432 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 ifdef XPM
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
434 # Only allow XPM for a GUI build.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
435 ifeq (yes, $(GUI))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 OBJ += $(OUTDIR)/xpm_w32.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 # You'll need libXpm.a from http://gnuwin32.sf.net
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 LIB += -L $(XPM)/lib -lXpm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439 endif
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
440 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
443 ifdef MZSCHEME
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
444 MZSCHEME_SUFFIX = Z
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
445 endif
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
446
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 ifeq ($(GUI),yes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 TARGET := gvim$(DEBUG_SUFFIX).exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 DEFINES += $(DEF_GUI)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 OBJ += $(GUIOBJ)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 LFLAGS += -mwindows
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
452 OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 TARGET := vim$(DEBUG_SUFFIX).exe
14
946da5994c01 updated for version 7.0006
vimboss
parents: 12
diff changeset
455 OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 ifdef GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 ifneq (yes, $(GETTEXT))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460 CFLAGS += -I$(GETTEXTINCLUDE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461 ifndef STATIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 LIB += -L$(GETTEXTLIB) -l$(INTLLIB)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464 OBJ+=$(SAFE_GETTEXT_DLL_OBJ)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
465 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467 LIB += -L$(GETTEXTLIB) -lintl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 endif
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 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
473 ifeq (no, $(DYNAMIC_PERL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474 LIB += -lperl$(PERL_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478 ifdef TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
479 LIB += -L$(TCL)/lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480 ifeq (yes, $(DYNAMIC_TCL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481 LIB += -ltclstub$(TCL_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
483 LIB += -ltcl$(TCL_VER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 ifeq (yes, $(OLE))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 LIB += -loleaut32 -lstdc++
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 OBJ += $(OUTDIR)/if_ole.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492 ifeq (yes, $(MBYTE))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 DEFINES += -DFEAT_MBYTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
494 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
495
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
496 ifeq (yes, $(IME))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
497 DEFINES += -DFEAT_MBYTE_IME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
498 ifeq (yes, $(DYNAMIC_IME))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
499 DEFINES += -DDYNAMIC_IME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
500 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
501 LIB += -limm32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
502 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
503 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
505 ifdef ICONV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506 ifneq (yes, $(ICONV))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
507 LIB += -L$(ICONV)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
508 CFLAGS += -I$(ICONV)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510 DEFINES+=-DDYNAMIC_ICONV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515 vimrun.exe: vimrun.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
516 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
518 install.exe: dosinst.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
519 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
520
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
521 uninstal.exe: uninstal.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 $(TARGET): $(OUTDIR) $(OBJ)
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 14
diff changeset
525 $(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(RUBYLIB)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527 upx: exes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528 upx gvim.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 upx vim.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531 xxd/xxd.exe: xxd/xxd.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 $(MAKE) -C xxd -f Make_cyg.mak
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 $(MAKE) -C GvimExt -f Make_ming.mak
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539 -$(DEL) $(OUTDIR)$(DIRSLASH)*.res
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 -rmdir $(OUTDIR)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541 -$(DEL) *.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542 -$(DEL) pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
543 ifdef PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544 -$(DEL) if_perl.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546 $(MAKE) -C GvimExt -f Make_ming.mak clean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
547 $(MAKE) -C xxd -f Make_cyg.mak clean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 ###########################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550 INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551 structs.h regexp.h option.h ex_cmds.h proto.h globals.h farsi.h \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 gui.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554 $(OUTDIR)/%.o : %.c $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555 $(CC) -c $(CFLAGS) $< -o $@
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 $(OUTDIR)/vimres.res: vim.rc version.h gui_w32_rc.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 $(WINDRES) $(DEFINES) vim.rc $(OUTDIR)/vimres.res
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560 $(OUTDIR)/vimrc.o: $(OUTDIR)/vimres.res
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561 $(WINDRES) $(OUTDIR)/vimres.res $(OUTDIR)/vimrc.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563 $(OUTDIR):
107
9e65557da34c updated for version 7.0040
vimboss
parents: 89
diff changeset
564 $(MKDIR) $(OUTDIR)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 $(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 $(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 $(OUTDIR)/ex_eval.o: ex_eval.c $(INCL) ex_cmds.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 $(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 $(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574
1351
df6967461cef updated for version 7.1-065
vimboss
parents: 1201
diff changeset
575 # Remove -D__IID_DEFINED__ for newer versions of the w32api
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL)
1351
df6967461cef updated for version 7.1-065
vimboss
parents: 1201
diff changeset
577 $(CC) $(CFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 ifeq (16, $(RUBY))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 $(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584 if_perl.c: if_perl.xs typemap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585 perl $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 $(PERLLIB)/ExtUtils/typemap if_perl.xs > $@
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 pathdef.c: $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 ifneq (sh.exe, $(SHELL))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 @echo creating pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 @echo '/* pathdef.c */' > pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 @echo '#include "vim.h"' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
89
e1a8191c6768 updated for version 7.0036
vimboss
parents: 39
diff changeset
599 @echo 'char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(RUBYLIB)";' >> pathdef.c
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 @echo creating pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 @echo /* pathdef.c */ > pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 @echo #include "vim.h" >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
89
e1a8191c6768 updated for version 7.0036
vimboss
parents: 39
diff changeset
609 @echo char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(RUBYLIB)"; >> pathdef.c
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
610 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 endif