annotate src/GvimExt/Make_ming.mak @ 32033:5bf9832d3e00 v9.0.1348

patch 9.0.1348: Un-grammar files are not recognized Commit: https://github.com/vim/vim/commit/44e08c1cf83f5a50f8b21613551304a6651c1161 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Thu Feb 23 20:31:08 2023 +0000 patch 9.0.1348: Un-grammar files are not recognized Problem: Un-grammar files are not recognized. Solution: Add patterns for Un-grammar files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12034)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Feb 2023 21:45:03 +0100
parents 360f286b5869
children 32c9b7396a75
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 # Project: gvimext
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
2 # Generates gvimext.dll with gcc.
7602
a82b2d79e61b commit https://github.com/vim/vim/commit/abfa9efb983c6fe9f5c4c342ff4d7017ce9a2c4b
Christian Brabandt <cb@256bit.org>
parents: 6811
diff changeset
3 # To be used with MingW and Cygwin.
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
4 #
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
5 # Originally, the DLL base address was fixed: -Wl,--image-base=0x1C000000
30986
360f286b5869 patch 9.0.0828: various typos
Bram Moolenaar <Bram@vim.org>
parents: 29134
diff changeset
6 # Now it is allocated dynamically by the linker by evaluating all DLLs
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
7 # already loaded in memory. The binary image contains as well information
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
8 # for automatic pseudo-rebasing, if needed by the system. ALV 2004-02-29
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
9
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
10 # If cross-compiling set this to yes, else set it to no
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
11 CROSS = no
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
12 #CROSS = yes
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
13 # For the old MinGW 2.95 (the one you get e.g. with debian woody)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
14 # set the following variable to yes and check if the executables are
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
15 # really named that way.
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
16 # If you have a newer MinGW or you are using cygwin set it to no and
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
17 # check also the executables
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
18 MINGWOLD = no
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
19
2674
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
20 # Link against the shared versions of libgcc/libstdc++ by default. Set
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
21 # STATIC_STDCPLUS to "yes" to link against static versions instead.
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
22 STATIC_STDCPLUS=no
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
23 #STATIC_STDCPLUS=yes
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
24
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
25 # Note: -static-libstdc++ is not available until gcc 4.5.x.
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
26 LDFLAGS += -shared
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
27 ifeq (yes, $(STATIC_STDCPLUS))
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
28 LDFLAGS += -static-libgcc -static-libstdc++
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
29 endif
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
30
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
31 ifeq ($(CROSS),yes)
89
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
32 DEL = rm
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
33 ifeq ($(MINGWOLD),yes)
3110
d3758064ff99 updated for version 7.3.326
Bram Moolenaar <bram@vim.org>
parents: 2674
diff changeset
34 CXXFLAGS := -O2 -fvtable-thunks
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
35 else
3110
d3758064ff99 updated for version 7.3.326
Bram Moolenaar <bram@vim.org>
parents: 2674
diff changeset
36 CXXFLAGS := -O2
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
37 endif
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
38 else
3110
d3758064ff99 updated for version 7.3.326
Bram Moolenaar <bram@vim.org>
parents: 2674
diff changeset
39 CXXFLAGS := -O2
89
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
40 ifneq (sh.exe, $(SHELL))
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
41 DEL = rm
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
42 else
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
43 DEL = del
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
44 endif
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
45 endif
8434
a0e7d7070799 commit https://github.com/vim/vim/commit/47cff3a444be7e99bae52b39b2174c22d58d2f86
Christian Brabandt <cb@256bit.org>
parents: 7602
diff changeset
46 # Set the default $(WINVER) to make it work with WinXP.
a0e7d7070799 commit https://github.com/vim/vim/commit/47cff3a444be7e99bae52b39b2174c22d58d2f86
Christian Brabandt <cb@256bit.org>
parents: 7602
diff changeset
47 ifndef WINVER
a0e7d7070799 commit https://github.com/vim/vim/commit/47cff3a444be7e99bae52b39b2174c22d58d2f86
Christian Brabandt <cb@256bit.org>
parents: 7602
diff changeset
48 WINVER = 0x0501
a0e7d7070799 commit https://github.com/vim/vim/commit/47cff3a444be7e99bae52b39b2174c22d58d2f86
Christian Brabandt <cb@256bit.org>
parents: 7602
diff changeset
49 endif
2088
4ec11bb387a5 updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents: 89
diff changeset
50 CXX := $(CROSS_COMPILE)g++
2674
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
51 WINDRES := $(CROSS_COMPILE)windres
23733
0660cb0a1cd8 patch 8.2.2408: MinGW: "--preprocessor" flag no longer supported
Bram Moolenaar <Bram@vim.org>
parents: 8434
diff changeset
52 # this used to have --preprocessor, but it's no longer supported
0660cb0a1cd8 patch 8.2.2408: MinGW: "--preprocessor" flag no longer supported
Bram Moolenaar <Bram@vim.org>
parents: 8434
diff changeset
53 WINDRES_FLAGS =
6811
cc3f3d35c549 patch 7.4.727
Bram Moolenaar <bram@vim.org>
parents: 3110
diff changeset
54 LIBS := -luuid -lgdi32
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
55 RES := gvimext.res
29134
cc1f2ef46aaa patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 23733
diff changeset
56 ifeq ($(findstring clang++,$(CXX)),)
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
57 DEFFILE = gvimext_ming.def
29134
cc1f2ef46aaa patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 23733
diff changeset
58 endif
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
59 OBJ := gvimext.o
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
60
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
61 DLL := gvimext.dll
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
62
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
63 .PHONY: all all-before all-after clean clean-custom
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
64
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
65 all: all-before $(DLL) all-after
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
66
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
67 $(DLL): $(OBJ) $(RES) $(DEFFILE)
2674
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
68 $(CXX) $(LDFLAGS) $(CXXFLAGS) -s -o $@ \
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
69 -Wl,--enable-auto-image-base \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
70 -Wl,--enable-auto-import \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
71 -Wl,--whole-archive \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
72 $^ \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
73 -Wl,--no-whole-archive \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
74 $(LIBS)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
75
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
76 gvimext.o: gvimext.cpp
8434
a0e7d7070799 commit https://github.com/vim/vim/commit/47cff3a444be7e99bae52b39b2174c22d58d2f86
Christian Brabandt <cb@256bit.org>
parents: 7602
diff changeset
77 $(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) -c $? -o $@
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
78
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
79 $(RES): gvimext_ming.rc
2674
f921368d43c3 updated for version 7.3.093
Bram Moolenaar <bram@vim.org>
parents: 2594
diff changeset
80 $(WINDRES) $(WINDRES_FLAGS) --input-format=rc --output-format=coff -DMING $? -o $@
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
81
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
82 clean: clean-custom
89
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
83 -$(DEL) $(OBJ) $(RES) $(DLL)