From 3c97a6e4e7eb82ef939f08df42bcb8d0c23afba0 Mon Sep 17 00:00:00 2001 From: Jason Hood Date: Mon, 30 Apr 2018 11:23:34 +1000 Subject: [PATCH] VC makefile tweaks Remove the `rc` logo using the undocumented `/s` option. Use a batch rule, even if this project is too small to really take advantage of it. --- makefile.vc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/makefile.vc b/makefile.vc index 1e0b09a..1d3c02f 100644 --- a/makefile.vc +++ b/makefile.vc @@ -18,6 +18,10 @@ # # 18 July, 2013: # hide the commands (use V=1 to show them). +# +# 30 April, 2018: +# use undocumented rc option /s to remove its logo; +# use a batch rule (even if this project is too small to make a difference). #BITS = 32 #BITS = 64 @@ -59,6 +63,7 @@ SHARE = /MD # Manifest tool to embed the manifest required by 2008. MT = mt.exe +RFLAGS = /s CFLAGS = /nologo /W3 /O2 $(SHARE) /D_CRT_SECURE_NO_WARNINGS LIBS = advapi32.lib $(LIBS64) @@ -79,8 +84,8 @@ LDmsg = @echo $@& MTmsg = @echo Embedding manifest& !ENDIF -{}.c{$(DIR)}.obj: - $(CCmsg)$(CC) /c $(CFLAGS) /Fo$@ $< +{}.c{$(DIR)}.obj:: + $(CCmsg)$(CC) /c $(CFLAGS) /Fo$(DIR)\ $< {}.rc{$(DIR)}.res: $(RCmsg)$(RC) $(RFLAGS) /fo$@ $<