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 'CPP/Build.mak')
-rwxr-xr-xCPP/Build.mak15
1 files changed, 13 insertions, 2 deletions
diff --git a/CPP/Build.mak b/CPP/Build.mak
index 4f25c853..aea13a71 100755
--- a/CPP/Build.mak
+++ b/CPP/Build.mak
@@ -11,7 +11,18 @@ O=O
!ENDIF
!ENDIF
-CFLAGS = $(CFLAGS) -nologo -c -Fo$O/ -EHsc -Gz -WX
+!IF "$(CPU)" != "IA64"
+!IF "$(CPU)" != "AMD64"
+MY_ML = ml
+!ELSE
+MY_ML = ml64
+!ENDIF
+!ENDIF
+
+COMPL_ASM = $(MY_ML) -c -Fo$O/ $**
+
+CFLAGS = $(CFLAGS) -nologo -c -Fo$O/ -EHsc -Gz -WX -Gy
+
!IFDEF MY_STATIC_LINK
!IFNDEF MY_SINGLE_THREAD
CFLAGS = $(CFLAGS) -MT
@@ -31,7 +42,7 @@ CFLAGS_O2 = $(CFLAGS) -O2 -W3
CFLAGS_O1_W3 = $(CFLAGS) -O1 -W3
CFLAGS_O2_W3 = $(CFLAGS) -O2 -W3
-LFLAGS = $(LFLAGS) -nologo -OPT:NOWIN98
+LFLAGS = $(LFLAGS) -nologo -OPT:NOWIN98 -OPT:REF
!IFDEF DEF_FILE
LFLAGS = $(LFLAGS) -DLL -DEF:$(DEF_FILE)