8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
-
+
-
-
+
+
+
|
#
# Copyright (c) 1995-1996 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
# Copyright (c) 2001-2005 ActiveState Corporation.
# Copyright (c) 2001-2004 David Gravereaux.
#
#------------------------------------------------------------------------------
# RCS: @(#) $Id: makefile.vc,v 1.107.2.16 2005/10/18 20:47:32 dgp Exp $
# RCS: @(#) $Id: makefile.vc,v 1.107.2.17 2005/11/03 17:52:34 dgp Exp $
#------------------------------------------------------------------------------
# Check to see we are configured to build with MSVC (MSDEVDIR or MSVCDIR)
# or with the MS Platform SDK (MSSDK)
!if !defined(MSDEVDIR) && !defined(MSVCDIR) && !defined(MSSDK)
# or with the MS Platform SDK (MSSDK). Visual Studio .NET 2003 and 2005 define
# VCINSTALLDIR instead.
!if !defined(MSDEVDIR) && !defined(MSVCDIR) && !defined(MSSDK) && !defined(VCINSTALLDIR)
MSG = ^
You need to run vcvars32.bat from Developer Studio or setenv.bat from the^
Platform SDK first to setup the environment. Jump to this line to read^
the build instructions.
!error $(MSG)
!endif
|
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
|
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
|
+
+
+
+
+
+
-
+
-
+
-
+
-
+
|
WINDIR = $(ROOT)\win
#---------------------------------------------------------------------
# Compile flags
#---------------------------------------------------------------------
# MSVC 2005 changes:
# -Op gone, use /fp:precise ?
# /QI0f has been removed.
# /YX removed - use /Yc or /Yu or better nothing.
# /GS and /GR are on by default
!if !$(DEBUG)
!if $(OPTIMIZING)
### This cranks the optimization level to maximize speed
cdebug = -O2 -Op -Gs
cdebug = -O2 $(OPTIMIZATIONS)
!else
cdebug =
!endif
!else if "$(MACHINE)" == "IA64"
### Warnings are too many, can't support warnings into errors.
cdebug = -Z7 -Od -GZ
cdebug = -Z7 -Od $(DEBUGFLAGS)
!else
cdebug = -Z7 -WX -Od -GZ
cdebug = -Z7 -Od $(DEBUGFLAGS)
!endif
### Declarations common to all compiler options
cflags = -nologo -c -YX -Fp$(TMP_DIR)^\
cflags = -nologo -c -Fp$(TMP_DIR)^\
!if $(FULLWARNINGS)
cflags = $(cflags) -W4
!else
cflags = $(cflags) -W3
!endif
|