1# *************************************************************************** 2# CONFIG.msvc (!INCLUDE ed by "makefile-dllmod.msvc") 3# -------------------------------------------------------------------------- 4# (c) Copyright Roger Bowler, 2005-2007 5# -------------------------------------------------------------------------- 6# $Id$ 7# 8# Set NODEBUG flag appropriately before !INCLUDEing <win32.mak> 9# and attempt to determine the Visual Studio compiler version 10# 11# *************************************************************************** 12 13# Use environment variables to determine the Visual Studio compiler level 14 15!IFDEF VS140COMNTOOLS 16!MESSAGE Makefile will assume VS14 or VS2015 Express (MSVC version 20) 17vsversion=14 18!ELSEIFDEF VS120COMNTOOLS 19!MESSAGE Makefile will assume VS12 or VS2013 Express (MSVC version 18) 20vsversion=12 21!ELSEIFDEF VS110COMNTOOLS 22!MESSAGE Makefile will assume VS11 or VS2012 Express (MSVC version 17) 23vsversion=11 24!ELSEIFDEF VS100COMNTOOLS 25!MESSAGE Makefile will assume VS10 or VS2010 Express (MSVC version 16) 26vsversion=10 27!ELSEIFDEF VS90COMNTOOLS 28!MESSAGE Makefile will assume VS9 or VS2008 Express (MSVC version 15) 29vsversion=9 30!ELSEIFDEF VS80COMNTOOLS 31!MESSAGE Makefile will assume VS8 or VS2005 Express (MSVC version 14) 32vsversion=8 33!ELSE 34!ERROR This build requires Visual Studio 8 (or VS2005 Express) or later 35!ENDIF 36 37# Use environment variables to determine the target processor type 38 39!IF !DEFINED(CPU) || "$(CPU)" == "" 40CPU=$(PROCESSOR_ARCHITECTURE) 41!ENDIF 42 43!IF "$(CPU)" == "IA64" 44!MESSAGE Target processor type is IA64 45_WIN64=1 46!ELSEIF "$(CPU)" == "AMD64" 47!MESSAGE Target processor type is AMD64 48_WIN64=1 49!ELSE 50!MESSAGE Target processor type is i386 51CPU=i386 52!UNDEF _WIN64 53!ENDIF 54!MESSAGE 55 56# ------------------------------------------------- 57# NOTE! must set the 'NODEBUG' variable properly 58# BEFORE calling win32.mak since it uses it. 59# ------------------------------------------------- 60 61!IFNDEF CFG 62NODEBUG = 1 63!ELSEIF "$(CFG)" == "DEBUG" 64!UNDEF NODEBUG 65!ELSEIF "$(CFG)" == "RETAIL" 66NODEBUG = 1 67!ELSE 68!ERROR Invalid build configuration! 69!ENDIF 70