X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=win%2Fmakefile;h=83ddb2e5509fd3dcc0adf09e69e1c6613ce17d35;hb=47f9b9a22b818376c2e1490f1f74731c40068f22;hp=16c23c81e89d5fd07434bde326841accee169b69;hpb=e4fc20414e146a46c5a7bf013ed50a7e88c01c37;p=yazpp-moved-to-github.git diff --git a/win/makefile b/win/makefile index 16c23c8..83ddb2e 100644 --- a/win/makefile +++ b/win/makefile @@ -1,10 +1,10 @@ -# Copyright (C) 1998-2010 Index Data -# All rights reserved. +# This file is part of the yazpp toolkit +# Copyright (C) Index Data +# See the file LICENSE for details. # Parameters - DEBUG=0 # 0 for release, 1 for debug -USE_MANIFEST = 1 # Can be enabled Visual Studio 2005 +USE_MANIFEST = 1 # Can be enabled Visual Studio 2005, 2008 # YAZ YAZ_DIR=..\..\yaz @@ -13,14 +13,6 @@ default: all all: dirs generated dll myclient zclient yaz -NSIS="c:\program files\nsis\makensis-bz2.exe" - -nsis: all - $(NSIS) yazpp.nsi - -nsishelp: - $(NSIS) - # Directories # The current directory is supposed to be something like # ..../yaz/win, everything is relative to that @@ -45,13 +37,13 @@ TMP=$(TMPDIR) # Targets - what to make !if $(DEBUG) -DLL=$(BINDIR)\yazpp4d.dll -YAZPP_IMPLIB=$(LIBDIR)\yazpp4d.lib -YAZD=yaz4d +DLL=$(BINDIR)\yazpp6d.dll +YAZPP_IMPLIB=$(LIBDIR)\yazpp6d.lib +YAZD=yaz5d !else -DLL=$(BINDIR)\yazpp4.dll -YAZPP_IMPLIB=$(LIBDIR)\yazpp4.lib -YAZD=yaz4 +DLL=$(BINDIR)\yazpp6.dll +YAZPP_IMPLIB=$(LIBDIR)\yazpp6.lib +YAZD=yaz5 !endif ZCLIENT=$(BINDIR)\zclient.exe @@ -115,7 +107,7 @@ LINK=link.exe LINK_LIBS= kernel32.lib advapi32.lib $(YAZ_LIB) -COMMON_LNK_OPTIONS= /nologo /subsystem:windows /machine:i386 /incremental:no +COMMON_LNK_OPTIONS= /nologo /subsystem:windows /incremental:no $(MTOPT) DEBUG_LNK_OPTIONS= /debug @@ -195,8 +187,10 @@ RSOPT=/d_NDEBUG !if $(USE_MANIFEST) MT=mt.exe /nologo +MTOPT=/manifest !else MT=echo +MTOPT= !endif @@ -219,12 +213,13 @@ $(ZCLIENT) : "$(BINDIR)" $(ZCLIENT_OBJS) $(YAZPP_IMPLIB) generated: $(ZOOMDIR)\zoom.h "$(ZOOMDIR)\zoom.h": "$(ZOOMDIR)\master-header" - sed "s/^* / /; s/^*/ /" "$(ZOOMDIR)\master-header" >"$(ZOOMDIR)\zoom.h" + sed "s/^* / /; s/^*/ /" < "$(ZOOMDIR)\master-header" >"$(ZOOMDIR)\zoom.h" clean: -del $(BINDIR)\*.exe -del $(BINDIR)\*.dll -del $(TMPDIR)\*. + -del $(BINDIR)\*.manifest -del $(LIBDIR)\*.LIB -del $(OBJDIR)\*.OBJ