blob: 7be8c37a011c5fb49773402124414d3e30a1867a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Makefile for GmnvExt, using MSVC
# Options:
# DEBUG=yes Build debug version (for VC7 and maybe later)
# CPUARG= /arch:IA32/AVX/etc, call from main makefile to set
# automatically from CPUNR
#
# included common tools
!INCLUDE ..\auto\nmake\tools.mak
TARGETOS = WINNT
!IFNDEF APPVER
APPVER = 6.01
!ENDIF
# Set the default $(WINVER) to make it work with Windows 7.
!IFNDEF WINVER
WINVER = 0x0601
!ENDIF
!IF "$(DEBUG)" != "yes"
NODEBUG = 1
!ENDIF
!IFNDEF CPU
CPU = i386
! IFNDEF PLATFORM
! IFDEF TARGET_CPU
PLATFORM = $(TARGET_CPU)
! ELSEIF defined(VSCMD_ARG_TGT_ARCH)
PLATFORM = $(VSCMD_ARG_TGT_ARCH)
! ENDIF
! ENDIF
! IFDEF PLATFORM
! IF ("$(PLATFORM)" == "x64") || ("$(PLATFORM)" == "X64")
CPU = AMD64
! ELSEIF ("$(PLATFORM)" == "arm64") || ("$(PLATFORM)" == "ARM64")
CPU = ARM64
! ELSEIF ("$(PLATFORM)" != "x86") && ("$(PLATFORM)" != "X86")
! ERROR *** ERROR Unknown target platform "$(PLATFORM)". Make aborted.
! ENDIF
! ENDIF
!ENDIF
!IFDEF SDK_INCLUDE_DIR
! INCLUDE $(SDK_INCLUDE_DIR)\Win32.mak
!ELSEIF "$(USE_WIN32MAK)"=="yes"
! INCLUDE <Win32.mak>
!ELSE
cc = cl
link = link
rc = rc
cflags = -nologo -c
lflags = -incremental:no -nologo
rcflags = /r
olelibsdll = ole32.lib uuid.lib oleaut32.lib user32.lib gdi32.lib advapi32.lib
!ENDIF
# include CPUARG
cflags = $(cflags) $(CPUARG)
# set WINVER and _WIN32_WINNT
cflags = $(cflags) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)
!IF "$(CL)" == "/D_USING_V110_SDK71_"
rcflags = $(rcflags) /D_USING_V110_SDK71_
!ENDIF
SUBSYSTEM = console
!IF "$(SUBSYSTEM_VER)" != ""
SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER)
!ENDIF
!IF "$(CPU)" == "AMD64" || "$(CPU)" == "ARM64"
OFFSET = 0x11C000000
!ELSE
OFFSET = 0x1C000000
!ENDIF
all: gmnvext.dll
gmnvext.dll: gmnvext.obj gmnvext.res
$(link) $(lflags) -dll -def:gmnvext.def -base:$(OFFSET) \
-out:$*.dll $** $(olelibsdll) shell32.lib comctl32.lib \
-subsystem:$(SUBSYSTEM)
gmnvext.obj: gmnvext.h
.cpp.obj:
$(cc) $(cflags) $(cvarsmt) $*.cpp
gmnvext.res: gmnvext.rc
$(rc) /nologo $(rcflags) $(rcvars) gmnvext.rc
clean:
- if exist gmnvext.dll $(RM) gmnvext.dll
- if exist gmnvext.lib $(RM) gmnvext.lib
- if exist gmnvext.exp $(RM) gmnvext.exp
- if exist gmnvext.obj $(RM) gmnvext.obj
- if exist gmnvext.res $(RM) gmnvext.res
# mnv: set noet sw=8 ts=8 sts=0 wm=0 tw=79 ft=make:
|