Mercurial > vim
annotate src/GvimExt/Makefile @ 11989:0aae4df3ed8e v8.0.0875
patch 8.0.0875: crash with weird command sequence
commit https://github.com/vim/vim/commit/0af2d32c21d48d450a7a1277b2029b9eeed6bebf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 5 23:00:53 2017 +0200
patch 8.0.0875: crash with weird command sequence
Problem: Crash with weird command sequence. (Dominique Pelle)
Solution: Use vim_snprintf() instead of STRCPY().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 05 Aug 2017 23:15:03 +0200 |
parents | deb9295dccda |
children | fecb0ff6e8cf |
rev | line source |
---|---|
10 | 1 # Makefile for GvimExt, using MSVC |
2 # Options: | |
3 # DEBUG=yes Build debug version (for VC7 and maybe later) | |
11510
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
4 # CPUARG= /arch:IA32/AVX/etc, call from main makefile to set |
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
5 # automatically from CPUNR |
10 | 6 # |
7 | |
11510
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
8 TARGETOS = WINNT |
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
9 |
6809 | 10 !ifndef APPVER |
11510
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
11 APPVER = 5.01 |
6809 | 12 !endif |
10 | 13 |
14 !if "$(DEBUG)" != "yes" | |
15 NODEBUG = 1 | |
16 !endif | |
17 | |
7566
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
18 !ifdef PROCESSOR_ARCHITECTURE |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
19 # On Windows NT |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
20 ! ifndef CPU |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
21 CPU = i386 |
7591
4447dc38bc22
commit https://github.com/vim/vim/commit/3d6d5cc3a417c04d9772596ea83f8e6b41321781
Christian Brabandt <cb@256bit.org>
parents:
7566
diff
changeset
|
22 ! if !defined(PLATFORM) && defined(TARGET_CPU) |
4447dc38bc22
commit https://github.com/vim/vim/commit/3d6d5cc3a417c04d9772596ea83f8e6b41321781
Christian Brabandt <cb@256bit.org>
parents:
7566
diff
changeset
|
23 PLATFORM = $(TARGET_CPU) |
4447dc38bc22
commit https://github.com/vim/vim/commit/3d6d5cc3a417c04d9772596ea83f8e6b41321781
Christian Brabandt <cb@256bit.org>
parents:
7566
diff
changeset
|
24 ! endif |
7566
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
25 ! ifdef PLATFORM |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
26 ! if ("$(PLATFORM)" == "x64") || ("$(PLATFORM)" == "X64") |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
27 CPU = AMD64 |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
28 ! elseif ("$(PLATFORM)" != "x86") && ("$(PLATFORM)" != "X86") |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
29 ! error *** ERROR Unknown target platform "$(PLATFORM)". Make aborted. |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
30 ! endif |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
31 ! endif |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
32 ! endif |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
33 !else |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
34 CPU = i386 |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
35 !endif |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
36 |
3943 | 37 !ifdef SDK_INCLUDE_DIR |
38 !include $(SDK_INCLUDE_DIR)\Win32.mak | |
39 !else | |
40 !include <Win32.mak> | |
41 !endif | |
10 | 42 |
11510
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
43 # include CPUARG |
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
44 cflags = $(cflags) $(CPUARG) |
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
45 |
10 | 46 all: gvimext.dll |
47 | |
48 gvimext.dll: gvimext.obj \ | |
49 gvimext.res | |
714 | 50 # $(implib) /NOLOGO -machine:$(CPU) -def:gvimext.def $** -out:gvimext.lib |
51 # $(link) $(dlllflags) -base:0x1C000000 -out:$*.dll $** $(olelibsdll) shell32.lib gvimext.lib comctl32.lib gvimext.exp | |
52 $(link) $(lflags) -dll -def:gvimext.def -base:0x1C000000 -out:$*.dll $** $(olelibsdll) shell32.lib comctl32.lib | |
1117 | 53 if exist $*.dll.manifest mt -nologo -manifest $*.dll.manifest -outputresource:$*.dll;2 |
10 | 54 |
55 gvimext.obj: gvimext.h | |
56 | |
57 .cpp.obj: | |
7566
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
58 $(cc) $(cflags) -DFEAT_GETTEXT $(cvarsmt) $*.cpp |
10 | 59 |
60 gvimext.res: gvimext.rc | |
7887
a98b93736894
commit https://github.com/vim/vim/commit/bc073092254df17b282d162d8e8181e8f6a7a356
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
61 $(rc) /nologo $(rcflags) $(rcvars) gvimext.rc |
10 | 62 |
63 clean: | |
7566
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
64 - if exist gvimext.dll del gvimext.dll |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
65 - if exist gvimext.lib del gvimext.lib |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
66 - if exist gvimext.exp del gvimext.exp |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
67 - if exist gvimext.obj del gvimext.obj |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
68 - if exist gvimext.res del gvimext.res |
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
69 - if exist gvimext.dll.manifest del gvimext.dll.manifest |