forked from SDL-Hercules-390/hyperion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CONFIG.msvc
36 lines (32 loc) · 971 Bytes
/
CONFIG.msvc
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
# ***************************************************************************
# CONFIG.msvc (!INCLUDE ed by "makefile-dllmod.msvc")
# --------------------------------------------------------------------------
# (C) Copyright Roger Bowler, 2005-2007
# --------------------------------------------------------------------------
#
# Determine target processor and build type.
#
# ***************************************************************************
!IFNDEF CFG
NODEBUG = 1
!ELSEIF "$(CFG)" == "DEBUG"
!UNDEF NODEBUG
!ELSEIF "$(CFG)" == "RETAIL"
NODEBUG = 1
!ELSEIF "$(CFG)" == "RELEASE"
NODEBUG = 1
!ELSE
!ERROR Invalid build configuration!
!ENDIF
# Use environment variables to determine the target processor type
!IF !DEFINED(CPU) || "$(CPU)" == ""
CPU=$(PROCESSOR_ARCHITECTURE)
!ENDIF
!IF "$(CPU)" == "AMD64"
!MESSAGE Target processor type is 64-bit AMD64
_WIN64=1
!ELSE
!MESSAGE Target processor type is 32-bit i386
CPU=i386
!UNDEF _WIN64
!ENDIF