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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
1 # Makefile for GvimExt, using MSVC
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
2 # Options:
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
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
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
6 #
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
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
932370264f0f patch 7.4.726
Bram Moolenaar <bram@vim.org>
parents: 3943
diff changeset
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
932370264f0f patch 7.4.726
Bram Moolenaar <bram@vim.org>
parents: 3943
diff changeset
12 !endif
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
13
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
14 !if "$(DEBUG)" != "yes"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
15 NODEBUG = 1
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
16 !endif
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
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
d3c291efdb0b updated for version 7.3.727
Bram Moolenaar <bram@vim.org>
parents: 1569
diff changeset
37 !ifdef SDK_INCLUDE_DIR
d3c291efdb0b updated for version 7.3.727
Bram Moolenaar <bram@vim.org>
parents: 1569
diff changeset
38 !include $(SDK_INCLUDE_DIR)\Win32.mak
d3c291efdb0b updated for version 7.3.727
Bram Moolenaar <bram@vim.org>
parents: 1569
diff changeset
39 !else
d3c291efdb0b updated for version 7.3.727
Bram Moolenaar <bram@vim.org>
parents: 1569
diff changeset
40 !include <Win32.mak>
d3c291efdb0b updated for version 7.3.727
Bram Moolenaar <bram@vim.org>
parents: 1569
diff changeset
41 !endif
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
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
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
46 all: gvimext.dll
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
47
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
48 gvimext.dll: gvimext.obj \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
49 gvimext.res
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 10
diff changeset
50 # $(implib) /NOLOGO -machine:$(CPU) -def:gvimext.def $** -out:gvimext.lib
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 10
diff changeset
51 # $(link) $(dlllflags) -base:0x1C000000 -out:$*.dll $** $(olelibsdll) shell32.lib gvimext.lib comctl32.lib gvimext.exp
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 10
diff changeset
52 $(link) $(lflags) -dll -def:gvimext.def -base:0x1C000000 -out:$*.dll $** $(olelibsdll) shell32.lib comctl32.lib
1117
a13e4b242735 updated for version 7.0-243
vimboss
parents: 714
diff changeset
53 if exist $*.dll.manifest mt -nologo -manifest $*.dll.manifest -outputresource:$*.dll;2
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
54
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
55 gvimext.obj: gvimext.h
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
56
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
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
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
59
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
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
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
62
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
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