From 6e0e89ddfe6756c4ff2082290057268b227b561f Mon Sep 17 00:00:00 2001 From: davygrvy Date: Wed, 20 Feb 2002 12:33:32 +0000 Subject: * win/makefile.vc: Added the pentium errata switches to $(cflags) which should have already been there according to the MSDN docs regarding the infamous FDIV bug from `97. Added profiling to $(lflags) and also removed the explict -entry option as the default works without special work. --- win/makefile.vc | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/win/makefile.vc b/win/makefile.vc index a15edd2..a6b082a 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -12,7 +12,7 @@ # Copyright (c) 2001 Tomasoft Engineering. # #------------------------------------------------------------------------------ -# RCS: @(#) $Id: makefile.vc,v 1.79 2002/02/15 23:42:12 kennykb Exp $ +# RCS: @(#) $Id: makefile.vc,v 1.80 2002/02/20 12:33:32 davygrvy Exp $ #------------------------------------------------------------------------------ !if "$(MSVCDIR)" == "" @@ -321,7 +321,7 @@ cdebug = -Z7 -Od -WX !endif # declarations common to all compiler options -cflags = -c -W3 -nologo -Fp$(TMP_DIR)\ -YX +cflags = -nologo -c -W3 -YX -QI0f -QIfdiv -Fp$(TMP_DIR)^\ !if $(MSVCRT) crt = -MD$(DBGX) @@ -347,19 +347,13 @@ ldebug = -release # declarations common to all linker options lflags = -nologo -machine:$(MACHINE) -# declarations for use on Intel i386, i486, and Pentium systems -!IF "$(MACHINE)" == "IX86" -DLLENTRY = @12 -dlllflags = $(lflags) -entry:_DllMainCRTStartup$(DLLENTRY) -dll -!ELSE IF "$(MACHINE)" == "IA64" -DLLENTRY = @12 -dlllflags = $(lflags) -dll -!ELSE -dlllflags = $(lflags) -entry:_DllMainCRTStartup$(DLLENTRY) -dll -!ENDIF +!if $(PROFILE) +lflags = $(lflags) -profile +!endif -conlflags = $(lflags) -subsystem:console -entry:mainCRTStartup -guilflags = $(lflags) -subsystem:windows -entry:WinMainCRTStartup +dlllflags = $(lflags) -dll +conlflags = $(lflags) -subsystem:console +guilflags = $(lflags) -subsystem:windows baselibs = kernel32.lib advapi32.lib user32.lib winlibs = $(baselibs) gdi32.lib -- cgit v0.12