1 # Makefile for Borland C++ 3.1 or 4.0 to compile a 16 bit version of Vim.
3 # There are compilation options at the end of this file.
5 # Command line variables:
6 # BOR path to root of Borland C (E:\BORLANDC)
7 # DEBUG set to "yes" for debugging (no)
8 # SPAWNO path to the spawno library directory, empty if you do not have
9 # it; use 8.3 filenames! (C:\CC\SPAWN)
17 !if
("$(DEBUG)" == "yes")
23 CC
= $(BOR
)\bin
\bcc.exe
+VIM.CFG
24 TLINK
= $(BOR
)\bin
\tlink.exe
30 !if
("$(SPAWNO)" == "")
32 INCLUDEPATH
= $(BOR
)\INCLUDE
36 LIBPATH
= $(BOR
)\LIB
;$(SPAWNO
)
37 INCLUDEPATH
= $(BOR
)\INCLUDE
;$(SPAWNO
)
45 # use -v for debugging
48 $(CC
) -c
$(DEBUG_FLAG
) {$< }
96 all: vim.exe
install.exe uninstal.exe xxd
/xxd.exe
100 vim.exe
: vim.cfg
$(EXE_dependencies
) version.c
101 $(CC
) $(DEBUG_FLAG
) -c version.c
102 $(TLINK
) /x
/c
/L
$(LIBPATH
) $(DEBUG_FLAG
) @
&&|
103 c0l.obj
$(EXE_dependencies
) version.obj
109 install.exe
: dosinst.c
110 $(CC
) -einstall
$(DEBUG_FLAG
) dosinst.c
112 uninstal.exe
: uninstal.c
113 $(CC
) $(DEBUG_FLAG
) uninstal.c
115 # This may fail for older make versions, building xxd will fail anyway then.
116 xxd
/xxd.exe
: xxd
/xxd.c
118 $(MAKE
) -f Make_bc3.mak BOR
=$(BOR
) DEBUG
=$(DEBUG
)
121 # cleaning up: Delete all generated files
133 # Individual File Dependencies (incomplete)
134 ex_docmd.obj
: ex_docmd.c ex_cmds.h
136 ex_eval.obj
: ex_eval.c ex_cmds.h
138 main.obj
: main.c globals.h option.h
140 term.obj
: term.c term.h
142 version.obj
: version.c version.h
145 # Compiler Configuration File
147 # The following compile options can be changed for better machines.
148 # replace -1- with -2 to produce code for a 80286 or higher
149 # replace -1- with -3 to produce code for a 80386 or higher
150 # add -v for source debugging
151 vim.cfg
: Make_bc3.mak
171 -DMSDOS
;FEAT_TINY
$(SPAWND
)
176 $(MAKE
) -f Make_dos.mak small