1 # Check to see we are configured to build with MSVC (MSDEVDIR, MSVCDIR or
2 # VCINSTALLDIR) or with the MS Platform SDK (MSSDK or WindowsSDKDir)
3 !if
!defined
(VCINSTALLDIR
) && !defined
(WINDOWSSDKDIR
)
5 This Makefile is only for Visual Studio
2008 and later.^
6 You need to ensure that the Visual Studio Environment is properly set up^
7 before running this Makefile.
14 !if
![echo VCVERSION
=_MSC_VER
> vercl.x
] \
15 && ![echo
$(_HASH
)if defined
(_M_IX86
) >> vercl.x
] \
16 && ![echo PLAT
=Win32
>> vercl.x
] \
17 && ![echo
$(_HASH
)elif defined
(_M_AMD64
) >> vercl.x
] \
18 && ![echo PLAT
=x64
>> vercl.x
] \
19 && ![echo
$(_HASH
)endif >> vercl.x
] \
20 && ![cl
-nologo
-TC
-P vercl.x
$(ERRNUL
)]
22 !if
![echo VCVER
= ^\
> vercl.vc
] \
23 && ![set
/a
$(VCVERSION
) / 100 - 6 >> vercl.vc
]
27 !if
![del
$(ERRNUL
) /q
/f vercl.x vercl.i vercl.vc
]
30 !if
$(VCVERSION
) > 1499 && $(VCVERSION
) < 1600
32 !elseif
$(VCVERSION
) > 1599 && $(VCVERSION
) < 1700
34 !elseif
$(VCVERSION
) > 1699 && $(VCVERSION
) < 1800
36 !elseif
$(VCVERSION
) > 1799 && $(VCVERSION
) < 1900
44 This NMake Makefile set supports Visual Studio^
45 9 (2008) through
12 (2013). Your Visual Studio^
46 version is not supported.
51 !if
"$(CFG)" == "release" ||
"$(CFG)" == "debug"
55 !if
"$(CFG)" == "release"
58 CFLAGS_ADD
= /MDd
/Od
/Zi
61 !if
"$(PLAT)" == "x64"
62 LDFLAGS_ARCH
= /machine
:x64
64 LDFLAGS_ARCH
= /machine
:x86
70 GLIB_LIBS
= gobject-2.0.lib gmodule-2.0.lib glib-2.0.lib