|
4 | 4 | # (c) "Fish" (David B. Trout), 2017 |
5 | 5 | # -------------------------------------------------------------------------- |
6 | 6 | # |
7 | | -# Set APPVER and TARGETOS makefile target variables for <win32.mak> |
8 | | -# VSVERS.msvc must be !INCLUDE beforehand by makefile-dllmod.msvc |
9 | | -# |
10 | | -# *************************************************************************** |
11 | | -# |
12 | 7 | # TargetVer for makefile projects |
13 | 8 | # |
14 | | -# The following defines determines the minimum Windows platform on which |
15 | | -# the application can run. Set APPVER and TARGETOS as needed and win32.mak |
16 | | -# will then define '_WIN32_WINNT' and other associated values accordingly. |
| 9 | +# Set the APPVER, TARGETOS, _WIN32_IE and NMAKE_WINVER variables |
| 10 | +# defining the minimum Windows platform on which the application can run. |
17 | 11 | # |
18 | 12 | # *************************************************************************** |
19 | 13 |
|
20 | | - |
21 | 14 | # First, define some handy descriptive constants we can use |
22 | 15 |
|
23 | | - |
24 | | -APPVER_XP_2003 = 5.02 # Windows XP, Server 2003 |
25 | | -APPVER_VISTA = 6.0 # Windows Vista |
26 | | -APPVER_WIN7 = 6.1 # Windows 7 |
| 16 | +APPVER_VISTA = 6.0 # Windows Vista |
| 17 | +APPVER_WIN7 = 6.1 # Windows 7 |
27 | 18 |
|
28 | 19 |
|
29 | 20 | # Now use those constants to set our Windows build target. |
30 | | -# <win32.mak> will then define _WIN32_WINNT, NTDDI_VERSION, |
31 | | -# _WIN32_IE and WINVER on the command line (-D xxxx=nnnn) |
32 | | -# based on our chosen APPVER value. |
33 | 21 |
|
| 22 | +APPVER = $(APPVER_VISTA) # Minimum Windows Platform |
| 23 | +TARGETOS = WINNT # ALWAYS! (Win9x is dead!) |
| 24 | + |
| 25 | + |
| 26 | +#------------------------------------------------------------- |
| 27 | + |
| 28 | +!IF "$(APPVER)" == "$(APPVER_VISTA)" |
| 29 | +NMAKE_WINVER = 0x0600 # (same thing as a hex value) |
| 30 | +_WIN32_IE = 0x0700 # Internet Explorer 7.0 |
| 31 | +!ENDIF |
| 32 | + |
| 33 | +!IF "$(APPVER)" == "$(APPVER_WIN7)" |
| 34 | +NMAKE_WINVER = 0x0601 # (same thing as a hex value) |
| 35 | +_WIN32_IE = 0x0800 # Internet Explorer 8.0 |
| 36 | +!ENDIF |
34 | 37 |
|
35 | | -TARGETOS = WINNT # ALWAYS! (Win9x is dead!) |
36 | | -APPVER = $(APPVER_VISTA) # Minimum Windows Platform |
| 38 | +#------------------------------------------------------------- |
0 commit comments