From: Adam Dickmeiss Date: Tue, 29 Jun 2010 11:29:58 +0000 (+0200) Subject: win32: use manifest X-Git-Tag: v2.0.45~11 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=11d7c9b0b4942633b3509df2b40a8cdbbb98336b;p=idzebra-moved-to-github.git win32: use manifest --- diff --git a/win/makefile b/win/makefile index 3f57fb0..0acd26a 100644 --- a/win/makefile +++ b/win/makefile @@ -5,6 +5,7 @@ ########################################################### DEBUG=0 # 0 for release, 1 for debug +USE_MANIFEST = 1 # TCL is optional - ONLY needed for source straight from Git TCL="C:\Tcl\bin\tclsh85.exe" @@ -295,6 +296,12 @@ RELEASE_C_OPTIONS= \ ### Linker options LINK=link.exe +!if $(USE_MANIFEST) +MT=mt.exe /nologo +!else +MT=echo +!endif + LINK_LIBS= kernel32.lib user32.lib gdi32.lib winspool.lib \ comdlg32.lib advapi32.lib shell32.lib ole32.lib \ oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ @@ -514,16 +521,19 @@ $(ZSERVER) : "$(BINDIR)" $(ZSERVER_OBJS) $(IMPLIB) $(LINK_PROGRAM) \ $(ZSERVER_OBJS) \ /out:$(ZSERVER) + $(MT) -manifest $@.manifest -outputresource:$@;1 $(ZEBRAIDX) : "$(BINDIR)" $(ZEBRAIDX_OBJS) $(IMPLIB) $(LINK_PROGRAM) \ $(ZEBRAIDX_OBJS) \ /out:$(ZEBRAIDX) + $(MT) -manifest $@.manifest -outputresource:$@;1 $(TSTFLOCK) : "$(BINDIR)" $(TSTFLOCK_OBJS) $(IMPLIB) $(LINK_PROGRAM) \ $(TSTFLOCK_OBJS) \ /out:$(TSTFLOCK) + $(MT) -manifest $@.manifest -outputresource:$@;1 # Resources RES=$(OBJDIR)\zebra.res @@ -550,7 +560,8 @@ $(DLL) $(IMPLIB): "$(BINDIR)" $(ZEBRALIB_OBJS) $(RES) /out:$(DLL) \ $(YAZLIB) \ /implib:"$(IMPLIB)" \ - /map:"$(LIBDIR)\idzebra.map" \ + /map:"$(LIBDIR)\idzebra.map" + $(MT) -manifest $@.manifest -outputresource:$@;2 # Other rules