Mercurial > vim
annotate src/GvimExt/Makefile @ 15051:f6b3fe138e84
Added tag v8.1.0536 for changeset c7628d6bc0dca6e1433055030bf3df428e96f376
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Nov 2018 12:30:07 +0100 |
parents | 590424e87b65 |
children | 081522b02c2d |
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 | |
12001
fecb0ff6e8cf
patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents:
11510
diff
changeset
|
39 !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
|
40 !include <Win32.mak> |
3943 | 41 !else |
12001
fecb0ff6e8cf
patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents:
11510
diff
changeset
|
42 cc = cl |
fecb0ff6e8cf
patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents:
11510
diff
changeset
|
43 link = link |
fecb0ff6e8cf
patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents:
11510
diff
changeset
|
44 rc = rc |
fecb0ff6e8cf
patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents:
11510
diff
changeset
|
45 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
|
46 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
|
47 rcflags = /r |
fecb0ff6e8cf
patch 8.0.0881: win32.mak no longer included in Windows SDK
Christian Brabandt <cb@256bit.org>
parents:
11510
diff
changeset
|
48 olelibsdll = ole32.lib uuid.lib oleaut32.lib user32.lib gdi32.lib advapi32.lib |
3943 | 49 !endif |
10 | 50 |
11510
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
51 # include CPUARG |
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
52 cflags = $(cflags) $(CPUARG) |
deb9295dccda
patch 8.0.0638: cannot build with new MSVC version
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
53 |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12001
diff
changeset
|
54 SUBSYSTEM = console |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12001
diff
changeset
|
55 !if "$(SUBSYSTEM_VER)" != "" |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12001
diff
changeset
|
56 SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER) |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12001
diff
changeset
|
57 !endif |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12001
diff
changeset
|
58 |
10 | 59 all: gvimext.dll |
60 | |
61 gvimext.dll: gvimext.obj \ | |
62 gvimext.res | |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12001
diff
changeset
|
63 $(link) $(lflags) -dll -def:gvimext.def -base:0x1C000000 -out:$*.dll $** $(olelibsdll) shell32.lib comctl32.lib -subsystem:$(SUBSYSTEM) |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12001
diff
changeset
|
64 if exist $*.dll.manifest mt -nologo -manifest $*.dll.manifest -outputresource:$*.dll;2 |
10 | 65 |
66 gvimext.obj: gvimext.h | |
67 | |
68 .cpp.obj: | |
7566
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
69 $(cc) $(cflags) -DFEAT_GETTEXT $(cvarsmt) $*.cpp |
10 | 70 |
71 gvimext.res: gvimext.rc | |
7887
a98b93736894
commit https://github.com/vim/vim/commit/bc073092254df17b282d162d8e8181e8f6a7a356
Christian Brabandt <cb@256bit.org>
parents:
7591
diff
changeset
|
72 $(rc) /nologo $(rcflags) $(rcvars) gvimext.rc |
10 | 73 |
74 clean: | |
7566
1dd5b27a79b1
commit https://github.com/vim/vim/commit/4514d2769b05faf6edcca42c3ab3d42da84270f1
Christian Brabandt <cb@256bit.org>
parents:
6809
diff
changeset
|
75 - 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
|
76 - 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
|
77 - 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
|
78 - 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
|
79 - 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
|
80 - if exist gvimext.dll.manifest del gvimext.dll.manifest |