annotate src/GvimExt/Makefile @ 18094:a1396a35444c v8.1.2042

patch 8.1.2042: the evalfunc.c file is too big Commit: https://github.com/vim/vim/commit/9c658c9eacbd97e2c071f652a0155f71db94c0f3 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 15 21:00:54 2019 +0200 patch 8.1.2042: the evalfunc.c file is too big Problem: The evalfunc.c file is too big. Solution: Move getchar() and parse_queued_messages() to getchar.c.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Sep 2019 21:15:03 +0200
parents b2ed528e85ef
children e6f0b4fe0b6d
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
16229
081522b02c2d patch 8.1.1119: no support for Windows on ARM64.
Bram Moolenaar <Bram@vim.org>
parents: 12600
diff changeset
28 ! elseif ("$(PLATFORM)" == "arm64") || ("$(PLATFORM)" == "ARM64")
081522b02c2d patch 8.1.1119: no support for Windows on ARM64.
Bram Moolenaar <Bram@vim.org>
parents: 12600
diff changeset
29 CPU = ARM64
7566
1dd5b27a79b1 commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents: 6809
diff changeset
30 ! elseif ("$(PLATFORM)" != "x86") && ("$(PLATFORM)" != "X86")
1dd5b27a79b1 commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents: 6809
diff changeset
31 ! 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
32 ! endif
1dd5b27a79b1 commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents: 6809
diff changeset
33 ! endif
1dd5b27a79b1 commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents: 6809
diff changeset
34 ! endif
1dd5b27a79b1 commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents: 6809
diff changeset
35 !else
1dd5b27a79b1 commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents: 6809
diff changeset
36 CPU = i386
1dd5b27a79b1 commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents: 6809
diff changeset
37 !endif
1dd5b27a79b1 commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents: 6809
diff changeset
38
3943
d3c291efdb0b updated for version 7.3.727
Bram Moolenaar <bram@vim.org>
parents: 1569
diff changeset
39 !ifdef SDK_INCLUDE_DIR
d3c291efdb0b updated for version 7.3.727
Bram Moolenaar <bram@vim.org>
parents: 1569
diff changeset
40 !include $(SDK_INCLUDE_DIR)\Win32.mak
12001
fecb0ff6e8cf patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents: 11510
diff changeset
41 !elseif "$(USE_WIN32MAK)"=="yes"
fecb0ff6e8cf patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents: 11510
diff changeset
42 !include <Win32.mak>
3943
d3c291efdb0b updated for version 7.3.727
Bram Moolenaar <bram@vim.org>
parents: 1569
diff changeset
43 !else
12001
fecb0ff6e8cf patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents: 11510
diff changeset
44 cc = cl
fecb0ff6e8cf patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents: 11510
diff changeset
45 link = link
fecb0ff6e8cf patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents: 11510
diff changeset
46 rc = rc
fecb0ff6e8cf patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents: 11510
diff changeset
47 cflags = -nologo -c
fecb0ff6e8cf patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents: 11510
diff changeset
48 lflags = -incremental:no -nologo
fecb0ff6e8cf patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents: 11510
diff changeset
49 rcflags = /r
fecb0ff6e8cf patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents: 11510
diff changeset
50 olelibsdll = ole32.lib uuid.lib oleaut32.lib user32.lib gdi32.lib advapi32.lib
3943
d3c291efdb0b updated for version 7.3.727
Bram Moolenaar <bram@vim.org>
parents: 1569
diff changeset
51 !endif
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
52
11510
deb9295dccda patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents: 10264
diff changeset
53 # include CPUARG
deb9295dccda patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents: 10264
diff changeset
54 cflags = $(cflags) $(CPUARG)
deb9295dccda patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents: 10264
diff changeset
55
12600
590424e87b65 patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12001
diff changeset
56 SUBSYSTEM = console
590424e87b65 patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12001
diff changeset
57 !if "$(SUBSYSTEM_VER)" != ""
590424e87b65 patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12001
diff changeset
58 SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER)
590424e87b65 patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12001
diff changeset
59 !endif
590424e87b65 patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12001
diff changeset
60
16295
b2ed528e85ef patch 8.1.1152: compiler warning with VS2019
Bram Moolenaar <Bram@vim.org>
parents: 16229
diff changeset
61 !if "$(CPU)" == "AMD64" || "$(CPU)" == "ARM64"
16229
081522b02c2d patch 8.1.1119: no support for Windows on ARM64.
Bram Moolenaar <Bram@vim.org>
parents: 12600
diff changeset
62 OFFSET = 0x11C000000
081522b02c2d patch 8.1.1119: no support for Windows on ARM64.
Bram Moolenaar <Bram@vim.org>
parents: 12600
diff changeset
63 !else
081522b02c2d patch 8.1.1119: no support for Windows on ARM64.
Bram Moolenaar <Bram@vim.org>
parents: 12600
diff changeset
64 OFFSET = 0x1C000000
081522b02c2d patch 8.1.1119: no support for Windows on ARM64.
Bram Moolenaar <Bram@vim.org>
parents: 12600
diff changeset
65 !endif
081522b02c2d patch 8.1.1119: no support for Windows on ARM64.
Bram Moolenaar <Bram@vim.org>
parents: 12600
diff changeset
66
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
67 all: gvimext.dll
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
68
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
69 gvimext.dll: gvimext.obj \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
70 gvimext.res
16229
081522b02c2d patch 8.1.1119: no support for Windows on ARM64.
Bram Moolenaar <Bram@vim.org>
parents: 12600
diff changeset
71 $(link) $(lflags) -dll -def:gvimext.def -base:$(OFFSET) -out:$*.dll $** $(olelibsdll) shell32.lib comctl32.lib -subsystem:$(SUBSYSTEM)
12600
590424e87b65 patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12001
diff changeset
72 if exist $*.dll.manifest mt -nologo -manifest $*.dll.manifest -outputresource:$*.dll;2
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
73
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
74 gvimext.obj: gvimext.h
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
75
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
76 .cpp.obj:
7566
1dd5b27a79b1 commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents: 6809
diff changeset
77 $(cc) $(cflags) -DFEAT_GETTEXT $(cvarsmt) $*.cpp
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
78
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
79 gvimext.res: gvimext.rc
7887
a98b93736894 commit https://github.com/vim/vim/commit/bc073092254df17b282d162d8e8181e8f6a7a356
Christian Brabandt <cb@256bit.org>
parents: 7591
diff changeset
80 $(rc) /nologo $(rcflags) $(rcvars) gvimext.rc
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
81
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
82 clean:
7566
1dd5b27a79b1 commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents: 6809
diff changeset
83 - 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
84 - 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
85 - 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
86 - 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
87 - 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
88 - if exist gvimext.dll.manifest del gvimext.dll.manifest