home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
text
/
vim
/
src
/
makefile.dos
< prev
next >
Wrap
Makefile
|
1995-02-27
|
5KB
|
163 lines
#
# Makefile for VIM on MSDOS, using Turbo C
#
#>>>>> choose options:
### -DDIGRAPHS digraph support (at the cost of 1.6 Kbyte code)
### -DCOMPATIBLE start in vi-compatible mode
### -DNOBACKUP default is no backup file
### -DDEBUG output a lot of debugging garbage
### -DTERMCAP include termcap file support
### -DNO_BUILTIN_TCAPS do not include builtin termcap entries
### (use only with -DTERMCAP)
### -DSOME_BUILTIN_TCAPS include most useful builtin termcap entries
### (use only without -DNO_BUILTIN_TCAPS)
### -DALL_BUILTIN_TCAPS include all builtin termcap entries
### (use only without -DNO_BUILTIN_TCAPS)
### -DVIMRC_FILE name of the .vimrc file in current dir
### -DEXRC_FILE name of the .exrc file in current dir
### -DSYSVIMRC_FILE name of the global .vimrc file
### -DSYSEXRC_FILE name of the global .exrc file
### -DDEFVIMRC_FILE name of the system-wide .vimrc file
### -DVIM_HLP name of the help file
### -DWEBB_COMPLETE include Webb's code for command line completion
### -DWEBB_KEYWORD_COMPL include Webb's code for keyword completion
### -DNOTITLE 'title' option off by default
DEFINES = -DDIGRAPHS -DWEBB_COMPLETE -DWEBB_KEYWORD_COMPL
#>>>>> name of the compiler and linker, name of lib directory
CC = tcc
LINK = tlink
LIB = c:\turboc\lib
#>>>>> end of choices
###########################################################################
INCL = vim.h globals.h param.h keymap.h macros.h ascii.h term.h msdos.h structs.h
CFLAGS = -c -ml -DMSDOS $(DEFINES)
OBJ = obj/alloc.obj obj/msdos.obj obj/buffer.obj obj/charset.obj obj/cmdcmds.obj obj/cmdline.obj \
obj/csearch.obj obj/digraph.obj obj/edit.obj obj/fileio.obj obj/getchar.obj obj/help.obj \
obj/linefunc.obj obj/main.obj obj/mark.obj obj/memfile.obj obj/memline.obj obj/message.obj obj/misccmds.obj \
obj/normal.obj obj/ops.obj obj/param.obj obj/quickfix.obj obj/regexp.obj \
obj/regsub.obj obj/screen.obj obj/search.obj \
obj/tag.obj obj/term.obj obj/undo.obj obj/window.obj $(TERMLIB)
..\vim: $(OBJ) version.c
$(CC) $(CFLAGS) version.c
$(LINK) /c /m $(LIB)\C0l @vimresp,..\vim,..\vim,$(LIB)\emu $(LIB)\Cl
ctags:
command /c ctags *.c *.h
clean:
del $(OBJ) version.obj mkcmdtab.obj ..\vim mkcmdtab cmdtab.h
addcr: addcr.c
$(CC) addcr.c
command /c addcr.bat
###########################################################################
obj/alloc.obj: alloc.c $(INCL)
$(CC) $(CFLAGS) alloc.c -o obj/alloc.obj
obj/msdos.obj: msdos.c $(INCL) msdos.h
$(CC) $(CFLAGS) msdos.c -o obj/msdos.obj
obj/buffer.obj: buffer.c $(INCL)
$(CC) $(CFLAGS) buffer.c -o obj/buffer.obj
obj/charset.obj: charset.c $(INCL)
$(CC) $(CFLAGS) charset.c -o obj/charset.obj
obj/cmdcmds.obj: cmdcmds.c $(INCL)
$(CC) $(CFLAGS) cmdcmds.c -o obj/cmdcmds.obj
obj/cmdline.obj: cmdline.c $(INCL) cmdtab.h
$(CC) $(CFLAGS) cmdline.c -o obj/cmdline.obj
obj/csearch.obj: csearch.c $(INCL)
$(CC) $(CFLAGS) csearch.c -o obj/csearch.obj
obj/digraph.obj: digraph.c $(INCL)
$(CC) $(CFLAGS) digraph.c -o obj/digraph.obj
obj/edit.obj: edit.c $(INCL)
$(CC) $(CFLAGS) edit.c -o obj/edit.obj
obj/fileio.obj: fileio.c $(INCL)
$(CC) $(CFLAGS) fileio.c -o obj/fileio.obj
obj/getchar.obj: getchar.c $(INCL)
$(CC) $(CFLAGS) getchar.c -o obj/getchar.obj
obj/help.obj: help.c $(INCL)
$(CC) $(CFLAGS) help.c -o obj/help.obj
obj/linefunc.obj: linefunc.c $(INCL)
$(CC) $(CFLAGS) linefunc.c -o obj/linefunc.obj
obj/main.obj: main.c $(INCL)
$(CC) $(CFLAGS) main.c -o obj/main.obj
obj/mark.obj: mark.c $(INCL)
$(CC) $(CFLAGS) mark.c -o obj/mark.obj
obj/memfile.obj: memfile.c $(INCL)
$(CC) $(CFLAGS) memfile.c -o obj/memfile.obj
obj/memline.obj: memline.c $(INCL)
$(CC) $(CFLAGS) memline.c -o obj/memline.obj
obj/message.obj: message.c $(INCL)
$(CC) $(CFLAGS) message.c -o obj/message.obj
obj/misccmds.obj: misccmds.c $(INCL)
$(CC) $(CFLAGS) misccmds.c -o obj/misccmds.obj
obj/normal.obj: normal.c $(INCL) ops.h
$(CC) $(CFLAGS) normal.c -o obj/normal.obj
obj/ops.obj: ops.c $(INCL) ops.h
$(CC) $(CFLAGS) ops.c -o obj/ops.obj
obj/param.obj: param.c $(INCL)
$(CC) $(CFLAGS) param.c -o obj/param.obj
obj/quickfix.obj: quickfix.c $(INCL)
$(CC) $(CFLAGS) quickfix.c -o obj/quickfix.obj
obj/regexp.obj: regexp.c $(INCL)
$(CC) $(CFLAGS) regexp.c -o obj/regexp.obj
obj/regsub.obj: regsub.c $(INCL)
$(CC) $(CFLAGS) regsub.c -o obj/regsub.obj
obj/screen.obj: screen.c $(INCL)
$(CC) $(CFLAGS) screen.c -o obj/screen.obj
obj/search.obj: search.c $(INCL)
$(CC) $(CFLAGS) search.c -o obj/search.obj
obj/tag.obj: tag.c $(INCL)
$(CC) $(CFLAGS) tag.c -o obj/tag.obj
obj/term.obj: term.c $(INCL)
$(CC) $(CFLAGS) term.c -o obj/term.obj
obj/undo.obj: undo.c $(INCL)
$(CC) $(CFLAGS) undo.c -o obj/undo.obj
obj/window.obj: window.c $(INCL)
$(CC) $(CFLAGS) window.c -o obj/window.obj
cmdtab.h: cmdtab.tab mkcmdtab.exe
mkcmdtab cmdtab.tab cmdtab.h
mkcmdtab.exe: obj/mkcmdtab.obj
$(CC) -ml -o mkcmdtab obj/mkcmdtab.obj
obj/mkcmdtab.obj: mkcmdtab.c
$(CC) $(CFLAGS) mkcmdtab.c -o obj/mkcmdtab.obj