Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | # Makefile for Vim on Win32 (Windows NT and Windows 95), using the |
| 2 | # Microsoft Visual C++ 2.x and MSVC 4.x compilers (or newer). |
| 3 | # It builds on Windows 95 and all four NT platforms: i386, Alpha, MIPS, and |
| 4 | # PowerPC. The NT/i386 binary and the Windows 95 binary are identical. |
| 5 | # |
| 6 | # This makefile can build the console, GUI, OLE-enable, Perl-enabled and |
| 7 | # Python-enabled versions of vim for Win32 platforms. |
| 8 | # |
| 9 | # When compiling different versions, do "nmake clean" first! |
| 10 | # |
| 11 | # The basic command line to build vim is: |
| 12 | # nmake -f Make_mvc.mak |
| 13 | # This will build the console version of vim with no additional interfaces. |
| 14 | # To add interfaces, define any of the following: |
| 15 | # GUI interface: GUI=yes (default is no) |
| 16 | # OLE interface: OLE=yes (usually with GUI=yes) |
| 17 | # Multibyte support: MBYTE=yes |
| 18 | # IME support: IME=yes (requires GUI=yes) |
| 19 | # DYNAMIC_IME=[yes or no] (to load the imm32.dll dynamically, default |
| 20 | # is yes) |
| 21 | # Global IME support: GIME=yes (requires GUI=yes) |
Bram Moolenaar | 65c1b01 | 2005-01-31 19:02:28 +0000 | [diff] [blame] | 22 | # MzScheme interface: |
| 23 | # MZSCHEME=[Path to MzScheme directory] |
| 24 | # DYNAMIC_MZSCHEME=yes (to load the MzScheme DLLs dynamically) |
| 25 | # MZSCHEME_VER=[version, 205_000, ...] |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 26 | # Perl interface: |
| 27 | # PERL=[Path to Perl directory] |
| 28 | # DYNAMIC_PERL=yes (to load the Perl DLL dynamically) |
| 29 | # PERL_VER=[Perl version, in the form 55 (5.005), 56 (5.6.x), etc] (default is 56) |
| 30 | # Python interface: |
| 31 | # PYTHON=[Path to Python directory] |
| 32 | # DYNAMIC_PYTHON=yes (to load the Python DLL dynamically) |
| 33 | # PYTHON_VER=[Python version, eg 15, 20] (default is 22) |
| 34 | # Ruby interface: |
| 35 | # RUBY=[Path to Ruby directory] |
| 36 | # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically) |
| 37 | # RUBY_VER=[Ruby version, eg 16, 17] (default is 18) |
| 38 | # RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.8) |
| 39 | # You must set RUBY_VER_LONG when change RUBY_VER. |
| 40 | # Tcl interface: |
| 41 | # TCL=[Path to Tcl directory] |
| 42 | # DYNAMIC_TCL=yes (to load the Tcl DLL dynamically) |
| 43 | # TCL_VER=[Tcl version, e.g. 80, 83] (default is 83) |
| 44 | # TCL_VER_LONG=[Tcl version, eg 8.3] (default is 8.3) |
| 45 | # You must set TCL_VER_LONG when you set TCL_VER. |
| 46 | # Debug version: DEBUG=yes |
| 47 | # Mapfile: MAP=[no, yes or lines] (default is yes) |
| 48 | # no: Don't write a mapfile. |
| 49 | # yes: Write a normal mapfile. |
| 50 | # lines: Write a mapfile with line numbers (only for VC6 and later) |
| 51 | # SNiFF+ interface: SNIFF=yes |
| 52 | # Cscope support: CSCOPE=yes |
| 53 | # Iconv library support (always dynamically loaded): |
| 54 | # ICONV=[yes or no] (default is yes) |
| 55 | # Intl library support (always dynamically loaded): |
| 56 | # GETTEXT=[yes or no] (default is yes) |
| 57 | # See http://sourceforge.net/projects/gettext/ |
| 58 | # PostScript printing: POSTSCRIPT=yes (default is no) |
Bram Moolenaar | 3411469 | 2005-01-02 11:28:13 +0000 | [diff] [blame] | 59 | # Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is BIG) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 60 | # Version Support: WINVER=[0x0400, 0x0500] (default is 0x0400) |
Bram Moolenaar | cf3630f | 2005-01-08 16:04:29 +0000 | [diff] [blame] | 61 | # Processor Version: CPUNR=[i386, i486, i586, i686, pentium4] (default is i386) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 62 | # Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED) |
| 63 | # Netbeans Support: NETBEANS=[yes or no] (default is yes if GUI is yes) |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 64 | # Netbeans Debugging Support: NBDEBUG=[yes or no] (default is no) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 65 | # XPM Image Support: XPM=[path to XPM directory] |
| 66 | # |
| 67 | # You can combine any of these interfaces |
| 68 | # |
| 69 | # Example: To build the non-debug, GUI version with Perl interface: |
| 70 | # nmake -f Make_mvc.mak GUI=yes PERL=C:\Perl |
| 71 | # |
| 72 | # To build using Borland C++, use Make_bc3.mak or Make_bc5.mak. |
| 73 | # |
| 74 | # DEBUG with Make_mvc.mak and Make_dvc.mak: |
| 75 | # This makefile gives a fineness of control which is not supported in |
| 76 | # Visual C++ configuration files. Therefore, debugging requires a bit of |
| 77 | # extra work. |
| 78 | # Make_dvc.mak is a Visual C++ project to access that support. |
| 79 | # To use Make_dvc.mak: |
| 80 | # 1) Build Vim with Make_mvc.mak. |
| 81 | # Use a "DEBUG=yes" argument to build Vim with debug support. |
| 82 | # E.g. the following builds gvimd.exe: |
| 83 | # nmake -f Make_mvc.mak debug=yes gui=yes |
| 84 | # 2) Use MS Devstudio and set it up to allow that file to be debugged: |
| 85 | # i) Pass Make_dvc.mak to the IDE. |
| 86 | # Use the "open workspace" menu entry to load Make_dvc.mak. |
| 87 | # Alternatively, from the command line: |
| 88 | # msdev /nologo Make_dvc.mak |
| 89 | # Note: Make_dvc.mak is in VC4.0 format. Later VC versions see |
| 90 | # this and offer to convert it to their own format. Accept that. |
| 91 | # It creates a file called Make_dvc.dsw which can then be used |
| 92 | # for further operations. E.g. |
| 93 | # msdev /nologo Make_dvc.dsw |
| 94 | # ii) Set the built executable for debugging: |
| 95 | # a) Alt+F7/Debug takes you to the Debug dialog. |
| 96 | # b) Fill "Executable for debug session". e.g. gvimd.exe |
| 97 | # c) Fill "Program arguments". e.g. -R dosinst.c |
| 98 | # d) Complete the dialog |
| 99 | # 3) You can now debug the executable you built with Make_mvc.mak |
| 100 | # |
| 101 | # Note: Make_dvc.mak builds vimrun.exe, because it must build something |
| 102 | # to be a valid makefile.. |
| 103 | |
| 104 | ### See feature.h for a list of optionals. |
| 105 | # If you want to build some optional features without modifying the source, |
| 106 | # you can set DEFINES on the command line, e.g., |
| 107 | # nmake -f makefile.mvc "DEFINES=-DEMACS_TAGS" |
| 108 | |
| 109 | # Build on both Windows NT and Windows 95 |
| 110 | |
| 111 | TARGETOS = BOTH |
| 112 | |
| 113 | # Select one of eight object code directories, depends on GUI, OLE and DEBUG. |
| 114 | # If you change something else, do "make clean" first! |
| 115 | !if "$(GUI)" == "yes" |
| 116 | OBJDIR = .\ObjG |
| 117 | !else |
| 118 | OBJDIR = .\ObjC |
| 119 | !endif |
| 120 | !if "$(OLE)" == "yes" |
| 121 | OBJDIR = $(OBJDIR)O |
| 122 | !endif |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 123 | !ifdef MZSCHEME |
| 124 | OBJDIR = $(OBJDIR)Z |
| 125 | !endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 126 | !if "$(DEBUG)" == "yes" |
| 127 | OBJDIR = $(OBJDIR)d |
| 128 | !endif |
| 129 | |
| 130 | # ntwin32.mak requires that CPU be set appropriately |
| 131 | |
| 132 | !ifdef PROCESSOR_ARCHITECTURE |
| 133 | # We're on Windows NT or using VC 6 |
| 134 | CPU = $(PROCESSOR_ARCHITECTURE) |
| 135 | ! if "$(CPU)" == "x86" |
| 136 | CPU = i386 |
| 137 | ! endif |
| 138 | !else # !PROCESSOR_ARCHITECTURE |
| 139 | # We're on Windows 95 |
| 140 | CPU = i386 |
| 141 | !endif # !PROCESSOR_ARCHITECTURE |
| 142 | |
| 143 | |
| 144 | # Build a retail version by default |
| 145 | |
| 146 | !if "$(DEBUG)" != "yes" |
| 147 | NODEBUG = 1 |
| 148 | !else |
| 149 | MAKEFLAGS_GVIMEXT = DEBUG=yes |
| 150 | !endif |
| 151 | |
| 152 | |
| 153 | # Build a multithreaded version for the Windows 95 dead keys hack |
| 154 | # Commented out because it doesn't work. |
| 155 | # MULTITHREADED = 1 |
| 156 | |
| 157 | |
| 158 | # Get all sorts of useful, standard macros from the SDK. (Note that |
| 159 | # MSVC 2.2 does not install <ntwin32.mak> in the \msvc20\include |
| 160 | # directory, but you can find it in \msvc20\include on the CD-ROM. |
| 161 | # You may also need <win32.mak> from the same place.) |
| 162 | |
| 163 | !include <ntwin32.mak> |
| 164 | |
| 165 | |
| 166 | #>>>>> path of the compiler and linker; name of include and lib directories |
| 167 | # PATH = c:\msvc20\bin;$(PATH) |
| 168 | # INCLUDE = c:\msvc20\include |
| 169 | # LIB = c:\msvc20\lib |
| 170 | |
| 171 | !ifndef CTAGS |
| 172 | CTAGS = ctags |
| 173 | !endif |
| 174 | |
| 175 | !if "$(SNIFF)" == "yes" |
| 176 | # SNIFF - Include support for SNiFF+. |
| 177 | SNIFF_INCL = if_sniff.h |
| 178 | SNIFF_OBJ = $(OBJDIR)/if_sniff.obj |
| 179 | SNIFF_LIB = shell32.lib |
| 180 | SNIFF_DEFS = -DFEAT_SNIFF |
| 181 | # The SNiFF integration needs multithreaded libraries! |
| 182 | MULTITHREADED = yes |
| 183 | !endif |
| 184 | |
| 185 | !ifndef CSCOPE |
| 186 | CSCOPE = yes |
| 187 | !endif |
| 188 | |
| 189 | !if "$(CSCOPE)" == "yes" |
| 190 | # CSCOPE - Include support for Cscope |
| 191 | CSCOPE_INCL = if_cscope.h |
| 192 | CSCOPE_OBJ = $(OBJDIR)/if_cscope.obj |
| 193 | CSCOPE_DEFS = -DFEAT_CSCOPE |
| 194 | !endif |
| 195 | |
| 196 | !ifndef NETBEANS |
| 197 | NETBEANS = $(GUI) |
| 198 | !endif |
| 199 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 200 | # Only allow NETBEANS and XPM for a GUI build. |
| 201 | !if "$(GUI)" == "yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 202 | !if "$(NETBEANS)" == "yes" |
| 203 | # NETBEANS - Include support for Netbeans integration |
| 204 | NETBEANS_PRO = proto/netbeans.pro |
Bram Moolenaar | 52b4b55 | 2005-03-07 23:00:57 +0000 | [diff] [blame] | 205 | NETBEANS_OBJ = $(OBJDIR)/netbeans.obj |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 206 | NETBEANS_DEFS = -DFEAT_NETBEANS_INTG |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 207 | |
| 208 | !if "$(NBDEBUG)" == "yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 209 | NBDEBUG_DEFS = -DNBDEBUG |
| 210 | NBDEBUG_INCL = nbdebug.h |
| 211 | NBDEBUG_SRC = nbdebug.c |
| 212 | !endif |
| 213 | NETBEANS_LIB = WSock32.lib |
| 214 | !endif |
| 215 | |
| 216 | !ifdef XPM |
| 217 | # XPM - Include support for XPM signs |
| 218 | # you can get xpm.lib from http://iamphet.nm.ru/xpm or create it yourself |
| 219 | XPM_OBJ = $(OBJDIR)/xpm_w32.obj |
| 220 | XPM_DEFS = -DFEAT_XPM_W32 |
| 221 | XPM_LIB = $(XPM)\lib\libXpm.lib |
| 222 | XPM_INC = -I $(XPM)\include |
| 223 | !endif |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 224 | !endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 225 | |
| 226 | !if defined(USE_MSVCRT) |
| 227 | CVARS = $(cvarsdll) |
| 228 | !elseif defined(MULTITHREADED) |
| 229 | CVARS = $(cvarsmt) |
| 230 | !else |
| 231 | CVARS = $(cvars) |
| 232 | !endif |
| 233 | |
| 234 | # need advapi32.lib for GetUserName() |
| 235 | # need shell32.lib for ExtractIcon() |
| 236 | # gdi32.lib and comdlg32.lib for printing support |
| 237 | # ole32.lib and uuid.lib are needed for FEAT_SHORTCUT |
| 238 | CON_LIB = advapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib uuid.lib |
| 239 | !if "$(VC6)" == "yes" |
| 240 | CON_LIB = $(CON_LIB) /DELAYLOAD:comdlg32.dll /DELAYLOAD:ole32.dll DelayImp.lib |
| 241 | !endif |
| 242 | |
| 243 | ### Set the default $(WINVER) to make it work with VC++7.0 (VS.NET) |
| 244 | # When set to 0x0500 ":browse" stops working. |
| 245 | !ifndef WINVER |
| 246 | WINVER = 0x0400 |
| 247 | !endif |
| 248 | |
| 249 | # If you have a fixed directory for $VIM or $VIMRUNTIME, other than the normal |
| 250 | # default, use these lines. |
| 251 | #VIMRCLOC = somewhere |
| 252 | #VIMRUNTIMEDIR = somewhere |
| 253 | |
| 254 | CFLAGS = -c /W3 /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \ |
| 255 | $(SNIFF_DEFS) $(CSCOPE_DEFS) $(NETBEANS_DEFS) \ |
| 256 | $(NBDEBUG_DEFS) $(XPM_DEFS) \ |
| 257 | $(DEFINES) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) |
| 258 | |
| 259 | #>>>>> end of choices |
| 260 | ########################################################################### |
| 261 | |
| 262 | !ifdef OS |
| 263 | OS_TYPE = winnt |
| 264 | DEL_TREE = rmdir /s /q |
| 265 | !else |
| 266 | OS_TYPE = win95 |
| 267 | DEL_TREE = deltree /y |
| 268 | !endif |
| 269 | |
| 270 | INTDIR=$(OBJDIR) |
| 271 | OUTDIR=$(OBJDIR) |
| 272 | |
| 273 | # Convert processor ID to MVC-compatible number |
| 274 | !if "$(CPUNR)" == "i386" |
| 275 | CPUARG = /G3 |
| 276 | !elseif "$(CPUNR)" == "i486" |
| 277 | CPUARG = /G4 |
| 278 | !elseif "$(CPUNR)" == "i586" |
| 279 | CPUARG = /G5 |
| 280 | !elseif "$(CPUNR)" == "i686" |
| 281 | CPUARG = /G6 |
Bram Moolenaar | cf3630f | 2005-01-08 16:04:29 +0000 | [diff] [blame] | 282 | !elseif "$(CPUNR)" == "pentium4" |
Bram Moolenaar | 3411469 | 2005-01-02 11:28:13 +0000 | [diff] [blame] | 283 | CPUARG = /G7 /arch:SSE2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 284 | !else |
| 285 | CPUARG = |
| 286 | !endif |
| 287 | |
| 288 | !ifdef NODEBUG |
| 289 | VIM = vim |
| 290 | !if "$(OPTIMIZE)" == "SPACE" |
| 291 | OPTFLAG = /O1 |
| 292 | !elseif "$(OPTIMIZE)" == "SPEED" |
| 293 | OPTFLAG = /O2 |
| 294 | !else # MAXSPEED |
| 295 | OPTFLAG = /Ox |
| 296 | !endif |
Bram Moolenaar | 3411469 | 2005-01-02 11:28:13 +0000 | [diff] [blame] | 297 | CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 298 | RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG |
Bram Moolenaar | 3411469 | 2005-01-02 11:28:13 +0000 | [diff] [blame] | 299 | PDB = |
| 300 | LINK_PDB = |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 301 | ! ifdef USE_MSVCRT |
| 302 | CFLAGS = $(CFLAGS) -MD |
| 303 | LIBC = msvcrt.lib |
| 304 | ! elseif defined(MULTITHREADED) |
| 305 | LIBC = libcmt.lib |
| 306 | ! else |
| 307 | LIBC = libc.lib |
| 308 | ! endif |
| 309 | !else # DEBUG |
| 310 | VIM = vimd |
| 311 | # MSVC 4.1 |
| 312 | PDB = /Fd$(OUTDIR)/ |
| 313 | LINK_PDB = /PDB:$(OUTDIR)/ |
| 314 | # MSVC 2.2 |
| 315 | # PDB = /Fd$(OUTDIR)/vim.pdb |
| 316 | # LINK_PDB = /PDB:$(OUTDIR)/vim.pdb |
| 317 | CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /Zi /Od |
| 318 | RCFLAGS = $(rcflags) $(rcvars) -D_DEBUG -DDEBUG |
| 319 | # The /fixed:no is needed for Quantify. Assume not 4.? as unsupported in VC4.0. |
| 320 | ! if "$(_NMAKE_VER)" == "" |
| 321 | LIBC = |
| 322 | ! else |
| 323 | LIBC = /fixed:no |
| 324 | ! endif |
| 325 | |
| 326 | ! ifndef USE_MSVCRT |
| 327 | LIBC = $(LIBC) libcd.lib |
| 328 | ! else |
| 329 | CFLAGS = $(CFLAGS) -MDd |
| 330 | LIBC = $(LIBC) msvcrtd.lib |
| 331 | ! endif |
| 332 | !endif # DEBUG |
| 333 | |
| 334 | INCL = vim.h os_win32.h ascii.h feature.h globals.h keymap.h macros.h \ |
| 335 | proto.h option.h structs.h term.h $(SNIFF_INCL) $(CSCOPE_INCL) \ |
| 336 | $(NBDEBUG_INCL) |
| 337 | |
| 338 | OBJ = \ |
| 339 | $(OUTDIR)\buffer.obj \ |
| 340 | $(OUTDIR)\charset.obj \ |
| 341 | $(OUTDIR)\diff.obj \ |
| 342 | $(OUTDIR)\digraph.obj \ |
| 343 | $(OUTDIR)\edit.obj \ |
| 344 | $(OUTDIR)\eval.obj \ |
| 345 | $(OUTDIR)\ex_cmds.obj \ |
| 346 | $(OUTDIR)\ex_cmds2.obj \ |
| 347 | $(OUTDIR)\ex_docmd.obj \ |
| 348 | $(OUTDIR)\ex_eval.obj \ |
| 349 | $(OUTDIR)\ex_getln.obj \ |
| 350 | $(OUTDIR)\fileio.obj \ |
| 351 | $(OUTDIR)\fold.obj \ |
| 352 | $(OUTDIR)\getchar.obj \ |
Bram Moolenaar | 383f9bc | 2005-01-19 22:18:32 +0000 | [diff] [blame] | 353 | $(OUTDIR)\hashtable.obj \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 354 | $(OUTDIR)\main.obj \ |
| 355 | $(OUTDIR)\mark.obj \ |
| 356 | $(OUTDIR)\mbyte.obj \ |
| 357 | $(OUTDIR)\memfile.obj \ |
| 358 | $(OUTDIR)\memline.obj \ |
| 359 | $(OUTDIR)\menu.obj \ |
| 360 | $(OUTDIR)\message.obj \ |
| 361 | $(OUTDIR)\misc1.obj \ |
| 362 | $(OUTDIR)\misc2.obj \ |
| 363 | $(OUTDIR)\move.obj \ |
| 364 | $(OUTDIR)\normal.obj \ |
| 365 | $(OUTDIR)\ops.obj \ |
| 366 | $(OUTDIR)\option.obj \ |
| 367 | $(OUTDIR)\os_mswin.obj \ |
| 368 | $(OUTDIR)\os_win32.obj \ |
| 369 | $(OUTDIR)\pathdef.obj \ |
| 370 | $(OUTDIR)\quickfix.obj \ |
| 371 | $(OUTDIR)\regexp.obj \ |
| 372 | $(OUTDIR)\screen.obj \ |
| 373 | $(OUTDIR)\search.obj \ |
Bram Moolenaar | 2e4096b | 2005-03-20 22:25:45 +0000 | [diff] [blame] | 374 | $(OUTDIR)\spell.obj \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 375 | $(OUTDIR)\syntax.obj \ |
| 376 | $(OUTDIR)\tag.obj \ |
| 377 | $(OUTDIR)\term.obj \ |
| 378 | $(OUTDIR)\ui.obj \ |
| 379 | $(OUTDIR)\undo.obj \ |
| 380 | $(OUTDIR)\window.obj \ |
| 381 | $(OUTDIR)\vim.res |
| 382 | |
| 383 | !if "$(OLE)" == "yes" |
| 384 | CFLAGS = $(CFLAGS) -DFEAT_OLE |
| 385 | RCFLAGS = $(RCFLAGS) -DFEAT_OLE |
| 386 | OLE_OBJ = $(OUTDIR)\if_ole.obj |
| 387 | OLE_IDL = if_ole.idl |
| 388 | OLE_LIB = oleaut32.lib |
| 389 | !endif |
| 390 | |
| 391 | !if "$(IME)" == "yes" |
| 392 | CFLAGS = $(CFLAGS) -DFEAT_MBYTE_IME |
| 393 | !ifndef DYNAMIC_IME |
| 394 | DYNAMIC_IME = yes |
| 395 | !endif |
| 396 | !if "$(DYNAMIC_IME)" == "yes" |
| 397 | CFLAGS = $(CFLAGS) -DDYNAMIC_IME |
| 398 | !else |
| 399 | IME_LIB = imm32.lib |
| 400 | !endif |
| 401 | !endif |
| 402 | |
| 403 | !if "$(GIME)" == "yes" |
| 404 | CFLAGS = $(CFLAGS) -DGLOBAL_IME |
| 405 | OBJ = $(OBJ) $(OUTDIR)\dimm_i.obj $(OUTDIR)\glbl_ime.obj |
| 406 | MBYTE = yes |
| 407 | !endif |
| 408 | |
| 409 | !if "$(MBYTE)" == "yes" |
| 410 | CFLAGS = $(CFLAGS) -DFEAT_MBYTE |
| 411 | !endif |
| 412 | |
| 413 | !if "$(GUI)" == "yes" |
| 414 | SUBSYSTEM = windows |
| 415 | CFLAGS = $(CFLAGS) -DFEAT_GUI_W32 |
| 416 | RCFLAGS = $(RCFLAGS) -DFEAT_GUI_W32 |
| 417 | VIM = g$(VIM) |
| 418 | GUI_INCL = \ |
| 419 | gui.h \ |
| 420 | regexp.h \ |
| 421 | ascii.h \ |
| 422 | ex_cmds.h \ |
| 423 | farsi.h \ |
| 424 | feature.h \ |
| 425 | globals.h \ |
Bram Moolenaar | 52b4b55 | 2005-03-07 23:00:57 +0000 | [diff] [blame] | 426 | gui_beval.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 427 | keymap.h \ |
| 428 | macros.h \ |
| 429 | option.h \ |
| 430 | os_dos.h \ |
| 431 | os_win32.h |
| 432 | GUI_OBJ = \ |
| 433 | $(OUTDIR)\gui.obj \ |
Bram Moolenaar | 52b4b55 | 2005-03-07 23:00:57 +0000 | [diff] [blame] | 434 | $(OUTDIR)\gui_beval.obj \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 435 | $(OUTDIR)\gui_w32.obj \ |
| 436 | $(OUTDIR)\os_w32exe.obj |
| 437 | GUI_LIB = \ |
| 438 | oldnames.lib kernel32.lib gdi32.lib $(IME_LIB) \ |
| 439 | winspool.lib comctl32.lib advapi32.lib shell32.lib \ |
| 440 | /machine:$(CPU) /nodefaultlib |
| 441 | !else |
| 442 | SUBSYSTEM = console |
| 443 | !endif |
| 444 | |
| 445 | # iconv.dll library (dynamically loaded) |
| 446 | !ifndef ICONV |
| 447 | ICONV = yes |
| 448 | !endif |
| 449 | !if "$(ICONV)" == "yes" |
| 450 | CFLAGS = $(CFLAGS) -DDYNAMIC_ICONV |
| 451 | !endif |
| 452 | |
| 453 | # libintl.dll library |
| 454 | !ifndef GETTEXT |
| 455 | GETTEXT = yes |
| 456 | !endif |
| 457 | !if "$(GETTEXT)" == "yes" |
| 458 | CFLAGS = $(CFLAGS) -DDYNAMIC_GETTEXT |
| 459 | !endif |
| 460 | |
| 461 | # TCL interface |
| 462 | !ifdef TCL |
| 463 | !ifndef TCL_VER |
| 464 | TCL_VER = 83 |
| 465 | TCL_VER_LONG = 8.3 |
| 466 | !endif |
| 467 | !message Tcl requested (version $(TCL_VER)) - root dir is "$(TCL)" |
| 468 | !if "$(DYNAMIC_TCL)" == "yes" |
| 469 | !message Tcl DLL will be loaded dynamically |
| 470 | TCL_DLL = tcl$(TCL_VER).dll |
| 471 | CFLAGS = $(CFLAGS) -DFEAT_TCL -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"$(TCL_DLL)\" -DDYNAMIC_TCL_VER=\"$(TCL_VER_LONG)\" |
| 472 | TCL_OBJ = $(OUTDIR)\if_tcl.obj |
| 473 | TCL_INC = /I "$(TCL)\Include" /I "$(TCL)" |
| 474 | TCL_LIB = $(TCL)\lib\tclstub$(TCL_VER).lib |
| 475 | !else |
| 476 | CFLAGS = $(CFLAGS) -DFEAT_TCL |
| 477 | TCL_OBJ = $(OUTDIR)\if_tcl.obj |
| 478 | TCL_INC = /I "$(TCL)\Include" /I "$(TCL)" |
| 479 | TCL_LIB = $(TCL)\lib\tcl$(TCL_VER)vc.lib |
| 480 | !endif |
| 481 | !endif |
| 482 | |
| 483 | # PYTHON interface |
| 484 | !ifdef PYTHON |
| 485 | !ifndef PYTHON_VER |
| 486 | PYTHON_VER = 22 |
| 487 | !endif |
| 488 | !message Python requested (version $(PYTHON_VER)) - root dir is "$(PYTHON)" |
| 489 | !if "$(DYNAMIC_PYTHON)" == "yes" |
| 490 | !message Python DLL will be loaded dynamically |
| 491 | !endif |
| 492 | CFLAGS = $(CFLAGS) -DFEAT_PYTHON |
| 493 | PYTHON_OBJ = $(OUTDIR)\if_python.obj |
| 494 | PYTHON_INC = /I "$(PYTHON)\Include" /I "$(PYTHON)\PC" |
| 495 | !if "$(DYNAMIC_PYTHON)" == "yes" |
| 496 | CFLAGS = $(CFLAGS) -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\" |
| 497 | PYTHON_LIB = /nodefaultlib:python$(PYTHON_VER).lib |
| 498 | !else |
| 499 | PYTHON_LIB = $(PYTHON)\libs\python$(PYTHON_VER).lib |
| 500 | !endif |
| 501 | !endif |
| 502 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 503 | # MzScheme interface |
| 504 | !ifdef MZSCHEME |
| 505 | !message MzScheme requested - root dir is "$(MZSCHEME)" |
| 506 | !ifndef MZSCHEME_VER |
| 507 | MZSCHEME_VER = 205_000 |
| 508 | !endif |
| 509 | CFLAGS = $(CFLAGS) -DFEAT_MZSCHEME -I $(MZSCHEME)\include |
Bram Moolenaar | aab21c3 | 2005-01-25 21:46:35 +0000 | [diff] [blame] | 510 | !if "$(DYNAMIC_MZSCHEME)" == "yes" |
| 511 | !message MzScheme DLLs will be loaded dynamically |
| 512 | CFLAGS = $(CFLAGS) -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libmzsch$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\" |
| 513 | !else |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 514 | MZSCHEME_LIB = $(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib $(MZSCHEME)\lib\msvc\libmzsch$(MZSCHEME_VER).lib |
| 515 | !endif |
Bram Moolenaar | aab21c3 | 2005-01-25 21:46:35 +0000 | [diff] [blame] | 516 | MZSCHEME_OBJ = $(OUTDIR)\if_mzsch.obj |
| 517 | !endif |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 518 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 519 | # Perl interface |
| 520 | !ifdef PERL |
| 521 | !ifndef PERL_VER |
| 522 | PERL_VER = 56 |
| 523 | !endif |
| 524 | !message Perl requested (version $(PERL_VER)) - root dir is "$(PERL)" |
| 525 | !if "$(DYNAMIC_PERL)" == "yes" |
| 526 | !if $(PERL_VER) >= 56 |
| 527 | !message Perl DLL will be loaded dynamically |
| 528 | !else |
| 529 | !message Dynamic loading is not supported for Perl versions earlier than 5.6.0 |
| 530 | !message Reverting to static loading... |
| 531 | !undef DYNAMIC_PERL |
| 532 | !endif |
| 533 | !endif |
| 534 | |
| 535 | # Is Perl installed in architecture-specific directories? |
| 536 | !if exist($(PERL)\Bin\MSWin32-x86) |
| 537 | PERL_ARCH = \MSWin32-x86 |
| 538 | !endif |
| 539 | |
| 540 | PERL_INCDIR = $(PERL)\Lib$(PERL_ARCH)\Core |
| 541 | |
| 542 | # Version-dependent stuff |
| 543 | !if $(PERL_VER) == 55 |
| 544 | PERL_LIB = $(PERL_INCDIR)\perl.lib |
| 545 | !else |
| 546 | PERL_DLL = perl$(PERL_VER).dll |
| 547 | PERL_LIB = $(PERL_INCDIR)\perl$(PERL_VER).lib |
| 548 | !endif |
| 549 | |
| 550 | CFLAGS = $(CFLAGS) -DFEAT_PERL |
| 551 | |
| 552 | # Do we want to load Perl dynamically? |
| 553 | !if "$(DYNAMIC_PERL)" == "yes" |
| 554 | CFLAGS = $(CFLAGS) -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"$(PERL_DLL)\" |
| 555 | !undef PERL_LIB |
| 556 | !endif |
| 557 | |
| 558 | PERL_EXE = $(PERL)\Bin$(PERL_ARCH)\perl |
| 559 | PERL_INC = /I $(PERL_INCDIR) |
| 560 | PERL_OBJ = $(OUTDIR)\if_perl.obj $(OUTDIR)\if_perlsfio.obj |
| 561 | XSUBPP = $(PERL)\lib\ExtUtils\xsubpp |
| 562 | XSUBPP_TYPEMAP = $(PERL)\lib\ExtUtils\typemap |
| 563 | |
| 564 | !endif |
| 565 | |
| 566 | # |
| 567 | # Support Ruby interface |
| 568 | # |
| 569 | !ifdef RUBY |
| 570 | # Set default value |
| 571 | !ifndef RUBY_VER |
| 572 | RUBY_VER = 18 |
| 573 | !endif |
| 574 | !ifndef RUBY_VER_LONG |
| 575 | RUBY_VER_LONG = 1.8 |
| 576 | !endif |
| 577 | |
| 578 | !if $(RUBY_VER) >= 18 |
| 579 | !ifndef RUBY_PLATFORM |
| 580 | RUBY_PLATFORM = i386-mswin32 |
| 581 | !endif |
| 582 | !ifndef RUBY_INSTALL_NAME |
| 583 | RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER) |
| 584 | !endif |
| 585 | !else |
| 586 | !ifndef RUBY_PLATFORM |
| 587 | RUBY_PLATFORM = i586-mswin32 |
| 588 | !endif |
| 589 | !ifndef RUBY_INSTALL_NAME |
| 590 | RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER) |
| 591 | !endif |
| 592 | !endif # $(RUBY_VER) >= 18 |
| 593 | |
| 594 | !message Ruby requested (version $(RUBY_VER)) - root dir is "$(RUBY)" |
| 595 | CFLAGS = $(CFLAGS) -DFEAT_RUBY |
| 596 | RUBY_OBJ = $(OUTDIR)\if_ruby.obj |
| 597 | RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)" |
| 598 | RUBY_LIB = $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib |
| 599 | # Do we want to load Ruby dynamically? |
| 600 | !if "$(DYNAMIC_RUBY)" == "yes" |
| 601 | !message Ruby DLL will be loaded dynamically |
| 602 | CFLAGS = $(CFLAGS) -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\" -DDYNAMIC_RUBY_VER=$(RUBY_VER) |
| 603 | !undef RUBY_LIB |
| 604 | !endif |
| 605 | !endif # RUBY |
| 606 | |
| 607 | # |
| 608 | # Support PostScript printing |
| 609 | # |
| 610 | !if "$(POSTSCRIPT)" == "yes" |
| 611 | CFLAGS = $(CFLAGS) -DMSWINPS |
| 612 | !endif # POSTSCRIPT |
| 613 | |
| 614 | # |
| 615 | # FEATURES: TINY, SMALL, NORMAL, BIG or HUGE |
| 616 | # |
| 617 | !if "$(FEATURES)"=="" |
| 618 | FEATURES = BIG |
| 619 | !endif |
| 620 | CFLAGS = $(CFLAGS) -DFEAT_$(FEATURES) |
| 621 | |
| 622 | # |
| 623 | # End extra featuare include |
| 624 | # |
| 625 | !message |
| 626 | |
| 627 | conflags = /nologo /subsystem:$(SUBSYSTEM) /incremental:no |
| 628 | |
| 629 | !IF "$(MAP)" == "yes" |
| 630 | # "/map" is for debugging |
| 631 | conflags = $(conflags) /map |
| 632 | !ELSEIF "$(MAP)" == "lines" |
| 633 | # "/mapinfo:lines" is for debugging, only works for VC6 and later |
| 634 | conflags = $(conflags) /map /mapinfo:lines |
| 635 | !ENDIF |
| 636 | |
| 637 | LINKARGS1 = $(linkdebug) $(conflags) /nodefaultlib:libc |
| 638 | LINKARGS2 = $(CON_LIB) $(GUI_LIB) $(LIBC) $(OLE_LIB) user32.lib $(SNIFF_LIB) \ |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 639 | $(MZSCHEME_LIB) $(PERL_LIB) $(PYTHON_LIB) $(RUBY_LIB) $(TCL_LIB) \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 640 | $(NETBEANS_LIB) $(XPM_LIB) $(LINK_PDB) |
| 641 | |
| 642 | all: $(VIM) vimrun.exe install.exe uninstal.exe xxd/xxd.exe GvimExt/gvimext.dll |
| 643 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 644 | $(VIM): $(OUTDIR) $(OBJ) $(GUI_OBJ) $(OLE_OBJ) $(OLE_IDL) $(MZSCHEME_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(RUBY_OBJ) $(TCL_OBJ) $(SNIFF_OBJ) $(CSCOPE_OBJ) $(NETBEANS_OBJ) $(XPM_OBJ) version.c version.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 645 | $(CC) $(CFLAGS) version.c /Fo$(OUTDIR)/version.obj $(PDB) |
| 646 | $(link) $(LINKARGS1) -out:$*.exe $(OBJ) $(GUI_OBJ) $(OLE_OBJ) \ |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 647 | $(MZSCHEME_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(RUBY_OBJ) $(TCL_OBJ) $(SNIFF_OBJ) \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 648 | $(CSCOPE_OBJ) $(NETBEANS_OBJ) $(XPM_OBJ) \ |
| 649 | $(OUTDIR)\version.obj $(LINKARGS2) |
| 650 | |
| 651 | $(VIM).exe: $(VIM) |
| 652 | |
| 653 | $(OUTDIR): |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 654 | if not exist $(OUTDIR)/nul mkdir $(OUTDIR) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 655 | |
| 656 | install.exe: dosinst.c |
| 657 | $(CC) /nologo -DNDEBUG -DWIN32 dosinst.c kernel32.lib shell32.lib ole32.lib advapi32.lib uuid.lib |
| 658 | - if exist install.exe del install.exe |
| 659 | ren dosinst.exe install.exe |
| 660 | |
| 661 | uninstal.exe: uninstal.c |
| 662 | $(CC) /nologo -DNDEBUG -DWIN32 uninstal.c shell32.lib advapi32.lib |
| 663 | |
| 664 | vimrun.exe: vimrun.c |
| 665 | $(CC) /nologo -DNDEBUG vimrun.c |
| 666 | |
| 667 | xxd/xxd.exe: xxd/xxd.c |
| 668 | cd xxd |
| 669 | $(MAKE) /NOLOGO -f Make_mvc.mak |
| 670 | cd .. |
| 671 | |
| 672 | GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h |
| 673 | cd GvimExt |
| 674 | $(MAKE) /NOLOGO -f Makefile $(MAKEFLAGS_GVIMEXT) |
| 675 | cd .. |
| 676 | |
| 677 | |
| 678 | tags: notags |
| 679 | $(CTAGS) *.c *.cpp *.h if_perl.xs proto\*.pro |
| 680 | |
| 681 | notags: |
| 682 | - if exist tags del tags |
| 683 | |
| 684 | clean: |
| 685 | - $(DEL_TREE) $(OUTDIR) auto |
| 686 | - if exist *.obj del *.obj |
| 687 | - if exist $(VIM).exe del $(VIM).exe |
| 688 | - if exist $(VIM).ilk del $(VIM).ilk |
| 689 | - if exist $(VIM).pdb del $(VIM).pdb |
| 690 | - if exist $(VIM).map del $(VIM).map |
| 691 | - if exist $(VIM).ncb del $(VIM).ncb |
| 692 | - if exist vimrun.exe del vimrun.exe |
| 693 | - if exist install.exe del install.exe |
| 694 | - if exist uninstal.exe del uninstal.exe |
| 695 | - if exist if_perl.c del if_perl.c |
| 696 | - if exist dimm.h del dimm.h |
| 697 | - if exist dimm_i.c del dimm_i.c |
| 698 | - if exist dimm.tlb del dimm.tlb |
| 699 | - if exist dosinst.exe del dosinst.exe |
| 700 | cd xxd |
| 701 | $(MAKE) /NOLOGO -f Make_mvc.mak clean |
| 702 | cd .. |
| 703 | cd GvimExt |
| 704 | $(MAKE) /NOLOGO -f Makefile clean |
| 705 | cd .. |
| 706 | cd GvimExt |
| 707 | $(MAKE) /NOLOGO -f Makefile clean |
| 708 | cd .. |
| 709 | - if exist testdir\*.out del testdir\*.out |
| 710 | |
| 711 | test: |
| 712 | cd testdir |
| 713 | $(MAKE) /NOLOGO -f Make_dos.mak win32 |
| 714 | cd .. |
| 715 | |
Bram Moolenaar | 3411469 | 2005-01-02 11:28:13 +0000 | [diff] [blame] | 716 | testclean: |
| 717 | cd testdir |
| 718 | $(MAKE) /NOLOGO -f Make_dos.mak clean |
| 719 | cd .. |
| 720 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 721 | ########################################################################### |
| 722 | |
| 723 | # Create a default rule for transforming .c files to .obj files in $(OUTDIR) |
| 724 | # Batch compilation is supported by nmake 1.62 (part of VS 5.0) and later) |
| 725 | !IF "$(_NMAKE_VER)" == "" |
| 726 | .c{$(OUTDIR)/}.obj: |
| 727 | !ELSE |
| 728 | .c{$(OUTDIR)/}.obj:: |
| 729 | !ENDIF |
| 730 | $(CC) $(CFLAGS) /Fo$(OUTDIR)/ $(PDB) $< |
| 731 | |
| 732 | # Create a default rule for transforming .cpp files to .obj files in $(OUTDIR) |
| 733 | # Batch compilation is supported by nmake 1.62 (part of VS 5.0) and later) |
| 734 | !IF "$(_NMAKE_VER)" == "" |
| 735 | .cpp{$(OUTDIR)/}.obj: |
| 736 | !ELSE |
| 737 | .cpp{$(OUTDIR)/}.obj:: |
| 738 | !ENDIF |
| 739 | $(CC) $(CFLAGS) /Fo$(OUTDIR)/ $(PDB) $< |
| 740 | |
| 741 | $(OUTDIR)/buffer.obj: $(OUTDIR) buffer.c $(INCL) |
| 742 | |
| 743 | $(OUTDIR)/charset.obj: $(OUTDIR) charset.c $(INCL) |
| 744 | |
| 745 | $(OUTDIR)/diff.obj: $(OUTDIR) diff.c $(INCL) |
| 746 | |
| 747 | $(OUTDIR)/digraph.obj: $(OUTDIR) digraph.c $(INCL) |
| 748 | |
| 749 | $(OUTDIR)/edit.obj: $(OUTDIR) edit.c $(INCL) |
| 750 | |
| 751 | $(OUTDIR)/eval.obj: $(OUTDIR) eval.c $(INCL) |
| 752 | |
| 753 | $(OUTDIR)/ex_cmds.obj: $(OUTDIR) ex_cmds.c $(INCL) |
| 754 | |
| 755 | $(OUTDIR)/ex_cmds2.obj: $(OUTDIR) ex_cmds2.c $(INCL) |
| 756 | |
| 757 | $(OUTDIR)/ex_docmd.obj: $(OUTDIR) ex_docmd.c $(INCL) ex_cmds.h |
| 758 | |
| 759 | $(OUTDIR)/ex_eval.obj: $(OUTDIR) ex_eval.c $(INCL) ex_cmds.h |
| 760 | |
| 761 | $(OUTDIR)/ex_getln.obj: $(OUTDIR) ex_getln.c $(INCL) |
| 762 | |
| 763 | $(OUTDIR)/fileio.obj: $(OUTDIR) fileio.c $(INCL) |
| 764 | |
| 765 | $(OUTDIR)/fold.obj: $(OUTDIR) fold.c $(INCL) |
| 766 | |
| 767 | $(OUTDIR)/getchar.obj: $(OUTDIR) getchar.c $(INCL) |
| 768 | |
Bram Moolenaar | 383f9bc | 2005-01-19 22:18:32 +0000 | [diff] [blame] | 769 | $(OUTDIR)/hashtable.obj: $(OUTDIR) hashtable.c $(INCL) |
| 770 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 771 | $(OUTDIR)/gui.obj: $(OUTDIR) gui.c $(INCL) $(GUI_INCL) |
| 772 | |
Bram Moolenaar | 52b4b55 | 2005-03-07 23:00:57 +0000 | [diff] [blame] | 773 | $(OUTDIR)/gui_beval.obj: $(OUTDIR) gui_beval.c $(INCL) $(GUI_INCL) |
| 774 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 775 | $(OUTDIR)/gui_w32.obj: $(OUTDIR) gui_w32.c gui_w48.c $(INCL) $(GUI_INCL) |
| 776 | |
| 777 | $(OUTDIR)/if_cscope.obj: $(OUTDIR) if_cscope.c $(INCL) |
| 778 | |
| 779 | if_perl.c : if_perl.xs typemap |
| 780 | $(PERL_EXE) $(XSUBPP) -prototypes -typemap $(XSUBPP_TYPEMAP) -typemap typemap if_perl.xs > if_perl.c |
| 781 | |
| 782 | $(OUTDIR)/if_perl.obj: $(OUTDIR) if_perl.c $(INCL) |
| 783 | $(CC) $(CFLAGS) $(PERL_INC) if_perl.c /Fo$(OUTDIR)/if_perl.obj $(PDB) |
| 784 | |
| 785 | $(OUTDIR)/if_perlsfio.obj: $(OUTDIR) if_perlsfio.c $(INCL) |
| 786 | $(CC) $(CFLAGS) $(PERL_INC) if_perlsfio.c /Fo$(OUTDIR)/if_perlsfio.obj $(PDB) |
| 787 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 788 | $(OUTDIR)/if_mzsch.obj: $(OUTDIR) if_mzsch.c $(INCL) |
| 789 | $(CC) $(CFLAGS) $(PERL_INC) if_mzsch.c /Fo$(OUTDIR)/if_mzsch.obj $(PDB) -DMZSCHEME_COLLECTS=\"$(MZSCHEME:\=\\)\\collects\" |
| 790 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 791 | $(OUTDIR)/if_python.obj: $(OUTDIR) if_python.c $(INCL) |
| 792 | $(CC) $(CFLAGS) $(PYTHON_INC) if_python.c /Fo$(OUTDIR)/if_python.obj $(PDB) |
| 793 | |
| 794 | $(OUTDIR)/if_ole.obj: $(OUTDIR) if_ole.cpp $(INCL) if_ole.h |
| 795 | |
| 796 | $(OUTDIR)/if_ruby.obj: $(OUTDIR) if_ruby.c $(INCL) |
| 797 | $(CC) $(CFLAGS) $(RUBY_INC) if_ruby.c /Fo$(OUTDIR)/if_ruby.obj $(PDB) |
| 798 | |
| 799 | $(OUTDIR)/if_sniff.obj: $(OUTDIR) if_sniff.c $(INCL) |
| 800 | $(CC) $(CFLAGS) if_sniff.c /Fo$(OUTDIR)/if_sniff.obj $(PDB) |
| 801 | |
| 802 | $(OUTDIR)/if_tcl.obj: $(OUTDIR) if_tcl.c $(INCL) |
| 803 | $(CC) $(CFLAGS) $(TCL_INC) if_tcl.c /Fo$(OUTDIR)/if_tcl.obj $(PDB) |
| 804 | |
| 805 | $(OUTDIR)/main.obj: $(OUTDIR) main.c $(INCL) |
| 806 | |
| 807 | $(OUTDIR)/mark.obj: $(OUTDIR) mark.c $(INCL) |
| 808 | |
| 809 | $(OUTDIR)/memfile.obj: $(OUTDIR) memfile.c $(INCL) |
| 810 | |
| 811 | $(OUTDIR)/memline.obj: $(OUTDIR) memline.c $(INCL) |
| 812 | |
| 813 | $(OUTDIR)/menu.obj: $(OUTDIR) menu.c $(INCL) |
| 814 | |
| 815 | $(OUTDIR)/message.obj: $(OUTDIR) message.c $(INCL) |
| 816 | |
| 817 | $(OUTDIR)/misc1.obj: $(OUTDIR) misc1.c $(INCL) |
| 818 | |
| 819 | $(OUTDIR)/misc2.obj: $(OUTDIR) misc2.c $(INCL) |
| 820 | |
| 821 | $(OUTDIR)/move.obj: $(OUTDIR) move.c $(INCL) |
| 822 | |
| 823 | $(OUTDIR)/mbyte.obj: $(OUTDIR) mbyte.c $(INCL) |
| 824 | |
| 825 | $(OUTDIR)/netbeans.obj: $(OUTDIR) netbeans.c $(NBDEBUG_SRC) $(INCL) |
| 826 | |
| 827 | $(OUTDIR)/normal.obj: $(OUTDIR) normal.c $(INCL) |
| 828 | |
| 829 | $(OUTDIR)/option.obj: $(OUTDIR) option.c $(INCL) |
| 830 | |
| 831 | $(OUTDIR)/ops.obj: $(OUTDIR) ops.c $(INCL) |
| 832 | |
| 833 | $(OUTDIR)/os_mswin.obj: $(OUTDIR) os_mswin.c $(INCL) |
| 834 | |
| 835 | $(OUTDIR)/os_win32.obj: $(OUTDIR) os_win32.c $(INCL) os_win32.h |
| 836 | |
| 837 | $(OUTDIR)/os_w32exe.obj: $(OUTDIR) os_w32exe.c $(INCL) |
| 838 | |
| 839 | $(OUTDIR)/pathdef.obj: $(OUTDIR) auto/pathdef.c $(INCL) |
| 840 | $(CC) $(CFLAGS) auto/pathdef.c /Fo$(OUTDIR)/pathdef.obj $(PDB) |
| 841 | |
| 842 | $(OUTDIR)/quickfix.obj: $(OUTDIR) quickfix.c $(INCL) |
| 843 | |
| 844 | $(OUTDIR)/regexp.obj: $(OUTDIR) regexp.c $(INCL) |
| 845 | |
| 846 | $(OUTDIR)/screen.obj: $(OUTDIR) screen.c $(INCL) |
| 847 | |
| 848 | $(OUTDIR)/search.obj: $(OUTDIR) search.c $(INCL) |
| 849 | |
Bram Moolenaar | 2e4096b | 2005-03-20 22:25:45 +0000 | [diff] [blame] | 850 | $(OUTDIR)/spell.obj: $(OUTDIR) spell.c $(INCL) |
| 851 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 852 | $(OUTDIR)/syntax.obj: $(OUTDIR) syntax.c $(INCL) |
| 853 | |
| 854 | $(OUTDIR)/tag.obj: $(OUTDIR) tag.c $(INCL) |
| 855 | |
| 856 | $(OUTDIR)/term.obj: $(OUTDIR) term.c $(INCL) |
| 857 | |
| 858 | $(OUTDIR)/ui.obj: $(OUTDIR) ui.c $(INCL) |
| 859 | |
| 860 | $(OUTDIR)/undo.obj: $(OUTDIR) undo.c $(INCL) |
| 861 | |
| 862 | $(OUTDIR)/window.obj: $(OUTDIR) window.c $(INCL) |
| 863 | |
| 864 | $(OUTDIR)/xpm_w32.obj: $(OUTDIR) xpm_w32.c |
| 865 | $(CC) $(CFLAGS) $(XPM_INC) xpm_w32.c /Fo$(OUTDIR)/xpm_w32.obj $(PDB) |
| 866 | |
| 867 | $(OUTDIR)/vim.res: $(OUTDIR) vim.rc version.h tools.bmp tearoff.bmp vim.ico vim_error.ico vim_alert.ico vim_info.ico vim_quest.ico |
| 868 | $(RC) /l 0x409 /Fo$(OUTDIR)/vim.res $(RCFLAGS) vim.rc |
| 869 | |
| 870 | iid_ole.c if_ole.h vim.tlb: if_ole.idl $(INTDIR) $(OUTDIR) |
| 871 | midl /nologo /proxy nul /iid iid_ole.c /tlb vim.tlb /header if_ole.h if_ole.idl |
| 872 | |
| 873 | dimm.h dimm_i.c: dimm.idl |
| 874 | midl /nologo /proxy nul dimm.idl |
| 875 | |
| 876 | $(OUTDIR)/dimm_i.obj: $(OUTDIR) dimm_i.c $(INCL) |
| 877 | |
| 878 | $(OUTDIR)/glbl_ime.obj: $(OUTDIR) glbl_ime.cpp dimm.h $(INCL) |
| 879 | |
Bram Moolenaar | 89cb5e0 | 2004-07-19 20:55:54 +0000 | [diff] [blame] | 880 | # $CFLAGS may contain backslashes and double quotes, escape them both. |
| 881 | E0_CFLAGS = $(CFLAGS:\=\\) |
| 882 | E_CFLAGS = $(E0_CFLAGS:"=\") |
| 883 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 884 | auto/pathdef.c: auto |
| 885 | @echo creating auto/pathdef.c |
| 886 | @echo /* pathdef.c */ > auto\pathdef.c |
| 887 | @echo #include "vim.h" >> auto\pathdef.c |
| 888 | @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC:\=\\)"; >> auto\pathdef.c |
| 889 | @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR:\=\\)"; >> auto\pathdef.c |
Bram Moolenaar | 89cb5e0 | 2004-07-19 20:55:54 +0000 | [diff] [blame] | 890 | @echo char_u *all_cflags = (char_u *)"$(CC:\=\\) $(E_CFLAGS)"; >> auto\pathdef.c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 891 | @echo char_u *all_lflags = (char_u *)"$(link:\=\\) $(LINKARGS1:\=\\) $(LINKARGS2:\=\\)"; >> auto\pathdef.c |
| 892 | @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> auto\pathdef.c |
| 893 | @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> auto\pathdef.c |
| 894 | |
| 895 | auto: |
| 896 | if not exist auto/nul mkdir auto |
| 897 | |
| 898 | # End Custom Build |
| 899 | proto.h: \ |
| 900 | proto/buffer.pro \ |
| 901 | proto/charset.pro \ |
| 902 | proto/diff.pro \ |
| 903 | proto/digraph.pro \ |
| 904 | proto/edit.pro \ |
| 905 | proto/eval.pro \ |
| 906 | proto/ex_cmds.pro \ |
| 907 | proto/ex_cmds2.pro \ |
| 908 | proto/ex_docmd.pro \ |
| 909 | proto/ex_eval.pro \ |
| 910 | proto/ex_getln.pro \ |
| 911 | proto/fileio.pro \ |
| 912 | proto/getchar.pro \ |
Bram Moolenaar | 383f9bc | 2005-01-19 22:18:32 +0000 | [diff] [blame] | 913 | proto/hashtable.pro \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 914 | proto/main.pro \ |
| 915 | proto/mark.pro \ |
| 916 | proto/memfile.pro \ |
| 917 | proto/memline.pro \ |
| 918 | proto/menu.pro \ |
| 919 | proto/message.pro \ |
| 920 | proto/misc1.pro \ |
| 921 | proto/misc2.pro \ |
| 922 | proto/move.pro \ |
| 923 | proto/mbyte.pro \ |
| 924 | proto/normal.pro \ |
| 925 | proto/ops.pro \ |
| 926 | proto/option.pro \ |
| 927 | proto/os_mswin.pro \ |
| 928 | proto/os_win32.pro \ |
| 929 | proto/quickfix.pro \ |
| 930 | proto/regexp.pro \ |
| 931 | proto/screen.pro \ |
| 932 | proto/search.pro \ |
Bram Moolenaar | 2e4096b | 2005-03-20 22:25:45 +0000 | [diff] [blame] | 933 | proto/spell.pro \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 934 | proto/syntax.pro \ |
| 935 | proto/tag.pro \ |
| 936 | proto/term.pro \ |
| 937 | proto/ui.pro \ |
| 938 | proto/undo.pro \ |
| 939 | proto/window.pro \ |
| 940 | $(NETBEANS_PRO) |
| 941 | |
| 942 | # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0: |