X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=inline;f=win%2Fmakefile;h=2f79a7250fca2b95d2ad895f1fc69ea7e68b4669;hb=a02be6c13a7353e7b2fba65a1faab1c6819d1728;hp=06e8f15da80064686f60f1b41229b854afdfb07b;hpb=1d0216216cbc58d92173a9da209fb5ce8559e584;p=idzebra-moved-to-github.git diff --git a/win/makefile b/win/makefile index 06e8f15..2f79a72 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 @@ -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 @@ -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