home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vim42os2.zip / vim-4.2 / doc / Makefile.w32 < prev    next >
Makefile  |  1996-06-18  |  2KB  |  103 lines

  1. #
  2. # Makefile for Vim on Win32 (Windows NT and Windows 95), using MS SDK
  3. # and MSVC 2.0 or 2.2 compilers.  Also works with MSVC 4.x compilers.
  4. # It is not known if it will build with other compilers or on non-Intel
  5. # platforms, but it shouldn't be too difficult to get it to do so.
  6. #
  7.  
  8. # to build the retail version
  9. #    nmake -f Makefile.w32
  10. # to build the debug version
  11. #    nmake DEBUG=1 -f Makefile.w32
  12.  
  13. # Build on both Windows NT and Windows 95
  14.  
  15. TARGETOS = BOTH
  16.  
  17.  
  18. # CPU isn't defined on Win95, but earlier versions of <ntwin32.mak> require it
  19.  
  20. !ifndef CPU
  21. CPU=i386
  22. !endif
  23.  
  24.  
  25. # Build a retail version by default
  26.  
  27. !ifndef DEBUG
  28. NODEBUG = 1
  29. !endif
  30.  
  31.  
  32. # Get all sorts of useful, standard macros from the SDK.  (Note that
  33. # MSVC 2.2 does not install <ntwin32.mak> in the \msvc20\include
  34. # directory, but you can find it in \msvc20\include on the CD-ROM.
  35. # You may also need <win32.mak> from the same place.)
  36.  
  37. !include <ntwin32.mak>
  38.  
  39.  
  40. #>>>>> Set this appropriately
  41. HELPDIR = c:\vim
  42.  
  43.  
  44. #>>>>> path of the compiler and linker; name of include and lib directories
  45. #      Only needed if your environment is not correctly set up
  46. # PATH = c:\msvc20\bin;$(PATH)
  47. # INCLUDE = c:\msvc20\include
  48. # LIB = c:\msvc20\lib
  49.  
  50. CFLAGS = -c /W3 /nologo $(cvars) $(cflags) $(DEFINES)
  51.  
  52. #>>>>> end of choices
  53. ###########################################################################
  54.  
  55. !ifdef PROCESSOR_ARCHITECTURE
  56. OS_TYPE    = winnt
  57. !else
  58. OS_TYPE    = win95
  59. !endif
  60.  
  61. !if "$(OS_TYPE)" == "win95"
  62. DEL_TREE = deltree /y
  63. !else
  64. DEL_TREE = rmdir /s /q
  65. !endif
  66.  
  67.  
  68. !ifdef NODEBUG
  69. CFLAGS = $(CFLAGS) -DNDEBUG
  70. !else
  71. CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG
  72. !endif
  73.  
  74.  
  75. DOCS =    vim_ami.txt  vim_arch.txt vim_diff.txt vim_digr.txt vim_dos.txt \
  76.     vim_help.txt vim_idx.txt  vim_mac.txt  vim_w32.txt  vim_ref.txt \
  77.     vim_tips.txt vim_unix.txt vim_win.txt  vim_gui.txt  vim_40.txt  \
  78.     vim_kcc.txt  vim_rlh.txt  vim_menu.txt vim_os2.txt  vim_mint.txt
  79.  
  80.  
  81. all: vim_tags
  82.  
  83. # need a sort that puts output into correct ASCII order.  Built-in
  84. # sort doesn't cut it.
  85.  
  86. vim_tags: doctags.exe $(DOCS)
  87.     .\doctags $(DOCS) | unixsort >vim_tags
  88.     uniq -d vim_tags
  89.  
  90. install:
  91.     copy vim_*.txt $(HELPDIR)
  92.     copy vim_tags  $(HELPDIR)
  93.  
  94. doctags.exe: doctags.obj
  95.     $(link) $(linkdebug) $(conflags) -out:$*.exe $** setargv.obj $(conlibs)
  96.  
  97. doctags.obj: doctags.c
  98.     $(CC) $(CFLAGS) doctags.c /Fodoctags.obj
  99.  
  100. clean:
  101.     - del doctags.obj
  102.     - del doctags.exe
  103.