From 52967498b3ef7fb8c0bdc5cb5934e46edaa069f2 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 5 Apr 2013 18:45:53 -0700 Subject: [PATCH] Makefile.vc: flags cleanup - drop some unnecessary link flags - use lib.exe directly for creating libraries - factorize /nologo and use it consistently Change-Id: Ie76119bc051e9bc53e4d6bba1a0a3f124f9062fc --- Makefile.vc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile.vc b/Makefile.vc index d4be6c79..f1fd9f7e 100644 --- a/Makefile.vc +++ b/Makefile.vc @@ -24,18 +24,18 @@ PLATFORM_LDFLAGS = /SAFESEH ############################################################# ## Nothing more to do below this line! -MT = mt.exe -CCNODBG = cl.exe /nologo /O2 /DNDEBUG -CCDEBUG = cl.exe /nologo /Od /Gm /Zi /D_DEBUG /RTC1 -CFLAGS = /Isrc /nologo /W3 /EHsc /c /GS +NOLOGO = /nologo +CCNODBG = cl.exe $(NOLOGO) /O2 /DNDEBUG +CCDEBUG = cl.exe $(NOLOGO) /Od /Gm /Zi /D_DEBUG /RTC1 +CFLAGS = /Isrc $(NOLOGO) /W3 /EHsc /c /GS CFLAGS = $(CFLAGS) /DWIN32 /D_CRT_SECURE_NO_WARNINGS /DWIN32_LEAN_AND_MEAN CFLAGS = $(CFLAGS) /DHAVE_WINCODEC_H /DWEBP_USE_THREAD LDFLAGS = /LARGEADDRESSAWARE /MANIFEST /NXCOMPAT /DYNAMICBASE LDFLAGS = $(LDFLAGS) $(PLATFORM_LDFLAGS) -LNKDLL = link.exe /DLL -LNKLIB = link.exe /lib -LNKEXE = link.exe -LFLAGS = /nologo /machine:$(ARCH) +LNKDLL = link.exe /DLL $(NOLOGO) +LNKEXE = link.exe $(NOLOGO) +LNKLIB = lib.exe $(NOLOGO) +MT = mt.exe $(NOLOGO) CFGSET = FALSE !IF "$(OBJDIR)" == "" @@ -278,7 +278,7 @@ clean:: @-erase /s $(DIROBJ)\$(DLLC) $(DIROBJ)\$(DLLINC) 2> NUL !ELSE $(LIBWEBPDECODER) $(LIBWEBP) $(LIBWEBPMUX) $(LIBWEBPDEMUX): - $(LNKLIB) /out:$@ $(LFLAGS) $** + $(LNKLIB) /out:$@ $** -xcopy $(DIROBJ)\*.pdb $(DIRLIB) /y !ENDIF