Mercurial > vim
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 |
rev | line source |
---|---|
7 | 1 # |
2 # Makefile for VIM on MSDOS, using DJGPP 2.0 | |
3 # | |
4 | |
5 #>>>>> choose options: | |
6 | |
7 ### See feature.h for a list of optionals. | |
8 ### Any other defines can be included here. | |
9 | |
10 DEFINES = | |
11 | |
12 #>>>>> name of the compiler and linker, name of lib directory | |
13 CC = gcc | |
14 | |
15 #>>>>> end of choices | |
16 ########################################################################### | |
17 | |
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 | |
20 | |
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 | 23 obj/buffer.o \ |
24 obj/charset.o \ | |
6126 | 25 obj/crypt.o \ |
26 obj/crypt_zip.o \ | |
7 | 27 obj/diff.o \ |
28 obj/digraph.o \ | |
29 obj/edit.o \ | |
30 obj/eval.o \ | |
31 obj/ex_cmds.o \ | |
32 obj/ex_cmds2.o \ | |
33 obj/ex_docmd.o \ | |
34 obj/ex_eval.o \ | |
35 obj/ex_getln.o \ | |
36 obj/fileio.o \ | |
37 obj/fold.o \ | |
38 obj/getchar.o \ | |
440 | 39 obj/hardcopy.o \ |
800 | 40 obj/hashtab.o \ |
7 | 41 obj/main.o \ |
42 obj/mark.o \ | |
43 obj/memfile.o \ | |
44 obj/memline.o \ | |
45 obj/menu.o \ | |
46 obj/message.o \ | |
47 obj/misc1.o \ | |
48 obj/misc2.o \ | |
49 obj/move.o \ | |
50 obj/mbyte.o \ | |
51 obj/normal.o \ | |
52 obj/ops.o \ | |
53 obj/option.o \ | |
54 obj/os_msdos.o \ | |
800 | 55 obj/popupmnu.o \ |
7 | 56 obj/quickfix.o \ |
57 obj/regexp.o \ | |
58 obj/screen.o \ | |
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 | 61 obj/spell.o \ |
7 | 62 obj/syntax.o \ |
63 obj/tag.o \ | |
64 obj/term.o \ | |
65 obj/ui.o \ | |
66 obj/undo.o \ | |
67 obj/window.o \ | |
68 $(TERMLIB) | |
69 | |
70 all: vim.exe install.exe uninstal.exe xxd/xxd.exe | |
71 | |
72 # version.c is compiled each time, so that it sets the build time. | |
73 vim.exe: obj $(OBJ) version.c version.h | |
74 $(CC) $(CFLAGS) -s -o vim.exe version.c $(OBJ) -lpc | |
75 | |
76 install.exe: dosinst.c | |
77 $(CC) $(CFLAGS) -s -o install.exe dosinst.c -lpc | |
78 | |
79 uninstal.exe: uninstal.c | |
80 $(CC) $(CFLAGS) -s -o uninstal.exe uninstal.c -lpc | |
81 | |
82 # This requires GNU make. | |
83 xxd/xxd.exe: xxd/xxd.c | |
84 $(MAKE) --directory=xxd -f Make_djg.mak | |
85 | |
86 obj: | |
87 mkdir obj | |
88 | |
89 tags: | |
90 command /c ctags *.c $(INCL) ex_cmds.h | |
91 | |
92 clean: | |
93 -del obj\*.o | |
94 -rmdir obj | |
95 -del vim.exe | |
96 -del install.exe | |
97 -del xxd\xxd.exe | |
98 -del testdir\*.out | |
99 | |
100 # This requires GNU make. | |
101 test: | |
102 $(MAKE) --directory=testdir -f Make_dos.mak | |
103 | |
104 ########################################################################### | |
105 | |
106 obj/%.o: %.c obj $(INCL) | |
107 $(CC) -c $(CFLAGS) -o $@ $< | |
108 | |
109 # Extra dependency (there are actually many more...) | |
110 obj/ex_docmd.o: ex_cmds.h |