annotate src/Make_djg.mak @ 6745:7f9a158cf1d9 v7.4.695

patch 7.4.695 Problem: Out-of-bounds read, dectected by Coverity. Solution: Remember the value of cmap for the first matching encoding. Reset cmap to that value if first matching encoding is going to be used. (Eliseo Mart?nez)
author Bram Moolenaar <bram@vim.org>
date Mon, 13 Apr 2015 14:45:27 +0200
parents ab71bb81b84e
children a4b4cbf8d044
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 # Makefile for VIM on MSDOS, using DJGPP 2.0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 #>>>>> choose options:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 ### See feature.h for a list of optionals.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 ### Any other defines can be included here.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 DEFINES =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 #>>>>> name of the compiler and linker, name of lib directory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 CC = gcc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 #>>>>> end of choices
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 ###########################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 INCL = vim.h globals.h option.h keymap.h macros.h ascii.h term.h os_msdos.h structs.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 CFLAGS = -O2 -DMSDOS -Iproto $(DEFINES) -Wall -Dinterrupt= -Dfar= -DMAXMEM=512 -D_NAIVE_DOS_REGS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 OBJ = \
2192
40edf1be1cd8 Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents: 800
diff changeset
22 obj/blowfish.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 obj/buffer.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 obj/charset.o \
6126
ab71bb81b84e updated for version 7.4.401
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
25 obj/crypt.o \
ab71bb81b84e updated for version 7.4.401
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
26 obj/crypt_zip.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 obj/diff.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 obj/digraph.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 obj/edit.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 obj/eval.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 obj/ex_cmds.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 obj/ex_cmds2.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 obj/ex_docmd.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 obj/ex_eval.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 obj/ex_getln.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 obj/fileio.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 obj/fold.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 obj/getchar.o \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 228
diff changeset
39 obj/hardcopy.o \
800
d8f905020502 updated for version 7.0b
vimboss
parents: 542
diff changeset
40 obj/hashtab.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 obj/main.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 obj/mark.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 obj/memfile.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 obj/memline.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 obj/menu.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 obj/message.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 obj/misc1.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 obj/misc2.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 obj/move.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 obj/mbyte.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 obj/normal.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 obj/ops.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 obj/option.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 obj/os_msdos.o \
800
d8f905020502 updated for version 7.0b
vimboss
parents: 542
diff changeset
55 obj/popupmnu.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 obj/quickfix.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 obj/regexp.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 obj/screen.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 obj/search.o \
2192
40edf1be1cd8 Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents: 800
diff changeset
60 obj/sha256.o \
228
d97518d6b325 updated for version 7.0063
vimboss
parents: 121
diff changeset
61 obj/spell.o \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 obj/syntax.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 obj/tag.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 obj/term.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 obj/ui.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 obj/undo.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 obj/window.o \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 $(TERMLIB)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 all: vim.exe install.exe uninstal.exe xxd/xxd.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 # version.c is compiled each time, so that it sets the build time.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 vim.exe: obj $(OBJ) version.c version.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 $(CC) $(CFLAGS) -s -o vim.exe version.c $(OBJ) -lpc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 install.exe: dosinst.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 $(CC) $(CFLAGS) -s -o install.exe dosinst.c -lpc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 uninstal.exe: uninstal.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 $(CC) $(CFLAGS) -s -o uninstal.exe uninstal.c -lpc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 # This requires GNU make.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 xxd/xxd.exe: xxd/xxd.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 $(MAKE) --directory=xxd -f Make_djg.mak
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 obj:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 mkdir obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 tags:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 command /c ctags *.c $(INCL) ex_cmds.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 -del obj\*.o
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 -rmdir obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 -del vim.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 -del install.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 -del xxd\xxd.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 -del testdir\*.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 # This requires GNU make.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 test:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 $(MAKE) --directory=testdir -f Make_dos.mak
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 ###########################################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 obj/%.o: %.c obj $(INCL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 $(CC) -c $(CFLAGS) -o $@ $<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 # Extra dependency (there are actually many more...)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 obj/ex_docmd.o: ex_cmds.h