X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=win%2Fmakefile;h=3f57fb0baef7457769fac6da02d23241763d42ce;hb=682285071c47da695fe5588a253123819fcb4b4e;hp=06e8f15da80064686f60f1b41229b854afdfb07b;hpb=1d0216216cbc58d92173a9da209fb5ce8559e584;p=idzebra-moved-to-github.git diff --git a/win/makefile b/win/makefile index 06e8f15..3f57fb0 100644 --- a/win/makefile +++ b/win/makefile @@ -1,5 +1,4 @@ # Zebra makefile for MS NMAKE -# $Id: makefile,v 1.75 2008-01-18 11:33:36 adam Exp $ ########################################################### ############### Parameters @@ -7,6 +6,10 @@ DEBUG=0 # 0 for release, 1 for debug +# TCL is optional - ONLY needed for source straight from Git +TCL="C:\Tcl\bin\tclsh85.exe" +HAVE_TCL=1 + # EXPAT is optional. It's required for grs.xml-filters. HAVE_EXPAT=1 EXPAT_DIR=c:\Program files\Expat 2.0.1 @@ -17,11 +20,11 @@ ICONV_DIR=c:\iconv-1.9.2.win32 # libxslt. For mod_dom and mod_alvis HAVE_LIBXSLT=1 -LIBXSLT_DIR=c:\libxslt-1.1.24.win32 +LIBXSLT_DIR=c:\libxslt-1.1.26.win32 # libxml2. Used by libxslt HAVE_LIBXML2=1 -LIBXML2_DIR=c:\libxml2-2.7.1.win32 +LIBXML2_DIR=c:\libxml2-2.7.6.win32 # zlib compression. Used by libxml2 ZLIB_DIR = c:\zlib-1.2.3.win32 @@ -36,7 +39,7 @@ ICU_DIR=c:\icu default: all -all: dirs expat iconv libxml2 libxslt icu yaz dll zserver zebraidx tstflock +all: dirs generate expat iconv libxml2 libxslt icu yaz dll zserver zebraidx tstflock # Directories # The current directory is supposed to be something like @@ -48,19 +51,19 @@ YAZDIR=$(ROOTDIR)\..\yaz # or \program files\yaz YAZBINDIR=$(YAZDIR)\bin !if $(DEBUG) -YAZLIB="$(YAZDIR)\lib\yaz3d.lib" +YAZLIB="$(YAZDIR)\lib\yaz4d.lib" !if $(HAVE_ICU) -YAZLIB=$(YAZLIB) "$(YAZDIR)\lib\yaz_icu3d.lib" +YAZLIB=$(YAZLIB) "$(YAZDIR)\lib\yaz_icu4d.lib" !endif -YAZ_DLL_SOURCE="$(YAZBINDIR)\yaz3d.dll" -YAZ_DLL_TARGET="$(BINDIR)\yaz3d.dll" +YAZ_DLL_SOURCE="$(YAZBINDIR)\yaz4d.dll" +YAZ_DLL_TARGET="$(BINDIR)\yaz4d.dll" !else -YAZLIB="$(YAZDIR)\lib\yaz3.lib" +YAZLIB="$(YAZDIR)\lib\yaz4.lib" !if $(HAVE_ICU) -YAZLIB=$(YAZLIB) "$(YAZDIR)\lib\yaz_icu3.lib" +YAZLIB=$(YAZLIB) "$(YAZDIR)\lib\yaz_icu4.lib" !endif -YAZ_DLL_SOURCE="$(YAZBINDIR)\yaz3.dll" -YAZ_DLL_TARGET="$(BINDIR)\yaz3.dll" +YAZ_DLL_SOURCE="$(YAZBINDIR)\yaz4.dll" +YAZ_DLL_TARGET="$(BINDIR)\yaz4.dll" !endif # BZIP2 settings. Uncomment and specify if you wish to use LIBBZIP2. @@ -200,14 +203,14 @@ libxslt: !if $(HAVE_ICU) ICU_DEF= /DYAZ_HAVE_ICU=1 /I"$(ICU_DIR)\include" ICU_LIB= $(ICU_DIR)\lib\icudt.lib $(ICU_DIR)\lib\icuin.lib $(ICU_DIR)\lib\icuuc.lib -icu: $(BINDIR)\icudt40.dll $(BINDIR)\icuin40.dll $(BINDIR)\icuuc40.dll - -$(BINDIR)\icudt40.dll: - copy "$(ICU_DIR)\bin\icudt40.dll" $(BINDIR) -$(BINDIR)\icuin40.dll: - copy "$(ICU_DIR)\bin\icuin40.dll" $(BINDIR) -$(BINDIR)\icuuc40.dll: - copy "$(ICU_DIR)\bin\icuuc40.dll" $(BINDIR) +icu: $(BINDIR)\icudt42.dll $(BINDIR)\icuin42.dll $(BINDIR)\icuuc42.dll + +$(BINDIR)\icudt42.dll: + copy "$(ICU_DIR)\bin\icudt42.dll" $(BINDIR) +$(BINDIR)\icuin42.dll: + copy "$(ICU_DIR)\bin\icuin42.dll" $(BINDIR) +$(BINDIR)\icuuc42.dll: + copy "$(ICU_DIR)\bin\icuuc42.dll" $(BINDIR) !else ICU_DEF= /DYAZ_HAVE_ICU=0 ICU_LIB= @@ -332,6 +335,14 @@ LINK_PROGRAM= $(LINK) \ $(BZIP2LIB) \ $(LINK_LIBS) + +# Generated sources +generate: $(INCLDIR)\idzebra\version.h + +$(INCLDIR)\idzebra\version.h: + @cd $(ROOTDIR)\util + $(TCL) mk_version.tcl $(ROOTDIR)/configure.ac $(INCLDIR)\idzebra\version.h + # Source and object modules # Note: Ordinary source files are not specified here at # all, make finds them in suitable dirs. The object modules