blob: b451981448abfba1b5f9e9a0dca30dc75e285230 [file] [log] [blame]
Bram Moolenaarf4b8e572004-06-24 15:53:16 +00001# Makefile for GvimExt, using MSVC
2# Options:
3# DEBUG=yes Build debug version (for VC7 and maybe later)
4#
5
6TARGETOS=BOTH
Bram Moolenaar1fd3e302015-05-05 10:25:16 +02007!ifndef APPVER
8APPVER=5.0
9!endif
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000010
11!if "$(DEBUG)" != "yes"
12NODEBUG = 1
13!endif
14
Bram Moolenaar4514d272016-01-10 19:21:36 +010015!ifdef PROCESSOR_ARCHITECTURE
16# On Windows NT
17! ifndef CPU
18CPU = i386
19! ifdef PLATFORM
20! if ("$(PLATFORM)" == "x64") || ("$(PLATFORM)" == "X64")
21CPU = AMD64
22! elseif ("$(PLATFORM)" != "x86") && ("$(PLATFORM)" != "X86")
23! error *** ERROR Unknown target platform "$(PLATFORM)". Make aborted.
24! endif
25! endif
26! endif
27!else
28CPU = i386
29!endif
30
Bram Moolenaar73313042012-11-23 21:47:22 +010031!ifdef SDK_INCLUDE_DIR
32!include $(SDK_INCLUDE_DIR)\Win32.mak
33!else
34!include <Win32.mak>
35!endif
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000036
37all: gvimext.dll
38
39gvimext.dll: gvimext.obj \
40 gvimext.res
Bram Moolenaar362e1a32006-03-06 23:29:24 +000041# $(implib) /NOLOGO -machine:$(CPU) -def:gvimext.def $** -out:gvimext.lib
42# $(link) $(dlllflags) -base:0x1C000000 -out:$*.dll $** $(olelibsdll) shell32.lib gvimext.lib comctl32.lib gvimext.exp
43 $(link) $(lflags) -dll -def:gvimext.def -base:0x1C000000 -out:$*.dll $** $(olelibsdll) shell32.lib comctl32.lib
Bram Moolenaar3ed44472007-05-05 10:52:16 +000044 if exist $*.dll.manifest mt -nologo -manifest $*.dll.manifest -outputresource:$*.dll;2
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000045
46gvimext.obj: gvimext.h
47
48.cpp.obj:
Bram Moolenaar4514d272016-01-10 19:21:36 +010049 $(cc) $(cflags) -DFEAT_GETTEXT $(cvarsmt) $*.cpp
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000050
51gvimext.res: gvimext.rc
Bram Moolenaar4514d272016-01-10 19:21:36 +010052 $(rc) $(rcflags) $(rcvars) gvimext.rc
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000053
54clean:
Bram Moolenaar4514d272016-01-10 19:21:36 +010055 - if exist gvimext.dll del gvimext.dll
56 - if exist gvimext.lib del gvimext.lib
57 - if exist gvimext.exp del gvimext.exp
58 - if exist gvimext.obj del gvimext.obj
59 - if exist gvimext.res del gvimext.res
60 - if exist gvimext.dll.manifest del gvimext.dll.manifest