2 # Makefile for VIM on MSDOS, using DJGPP 2.0
7 ### See feature.h for a list of optionals.
8 ### Any other defines can be included here.
12 #>>>>> name of the compiler and linker, name of lib directory
16 ###########################################################################
18 INCL
= vim.h globals.h option.h keymap.h macros.h ascii.h term.h os_msdos.h structs.h
19 CFLAGS
= -O2
-DMSDOS
-Iproto
$(DEFINES
) -Wall
-Dinterrupt
= -Dfar
= -DMAXMEM
=512 -D_NAIVE_DOS_REGS
66 all: vim.exe
install.exe uninstal.exe xxd
/xxd.exe
68 # version.c is compiled each time, so that it sets the build time.
69 vim.exe
: obj
$(OBJ
) version.c version.h
70 $(CC
) $(CFLAGS
) -s
-o vim.exe version.c
$(OBJ
) -lpc
72 install.exe
: dosinst.c
73 $(CC
) $(CFLAGS
) -s
-o
install.exe dosinst.c
-lpc
75 uninstal.exe
: uninstal.c
76 $(CC
) $(CFLAGS
) -s
-o uninstal.exe uninstal.c
-lpc
78 # This requires GNU make.
79 xxd
/xxd.exe
: xxd
/xxd.c
80 $(MAKE
) --directory
=xxd
-f Make_djg.mak
86 command
/c ctags
*.c
$(INCL
) ex_cmds.h
96 # This requires GNU make.
98 $(MAKE
) --directory
=testdir
-f Make_dos.mak
100 ###########################################################################
102 obj
/%.o
: %.c obj
$(INCL
)
103 $(CC
) -c
$(CFLAGS
) -o
$@
$<
105 # Extra dependency (there are actually many more...)
106 obj
/ex_docmd.o
: ex_cmds.h