Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Build.mak')
-rwxr-xr-xBuild.mak15
1 files changed, 13 insertions, 2 deletions
diff --git a/Build.mak b/Build.mak
index d4f08684..4f25c853 100755
--- a/Build.mak
+++ b/Build.mak
@@ -19,8 +19,17 @@ CFLAGS = $(CFLAGS) -MT
!ELSE
CFLAGS = $(CFLAGS) -MD
!ENDIF
-CFLAGS_O1 = $(CFLAGS) -O1
-CFLAGS_O2 = $(CFLAGS) -O2
+
+!IFDEF NEW_COMPILER
+CFLAGS_O1 = $(CFLAGS) -O1 -W4 -Wp64
+CFLAGS_O2 = $(CFLAGS) -O2 -W4 -Wp64
+!ELSE
+CFLAGS_O1 = $(CFLAGS) -O1 -W3
+CFLAGS_O2 = $(CFLAGS) -O2 -W3
+!ENDIF
+
+CFLAGS_O1_W3 = $(CFLAGS) -O1 -W3
+CFLAGS_O2_W3 = $(CFLAGS) -O2 -W3
LFLAGS = $(LFLAGS) -nologo -OPT:NOWIN98
@@ -32,6 +41,8 @@ PROGPATH = $O\$(PROG)
COMPL_O1 = $(CPP) $(CFLAGS_O1) $**
COMPL_O2 = $(CPP) $(CFLAGS_O2) $**
+COMPL_O1_W3 = $(CPP) $(CFLAGS_O1_W3) $**
+COMPL_O2_W3 = $(CPP) $(CFLAGS_O2_W3) $**
COMPL_PCH = $(CPP) $(CFLAGS_O1) -Yc"StdAfx.h" -Fp$O/a.pch $**
COMPL = $(CPP) $(CFLAGS_O1) -Yu"StdAfx.h" -Fp$O/a.pch $**