X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=win%2Fmakefile;h=30e4c2bdb9c9bb39afef1f9aee81e6865eb7f526;hp=4cac3a418a89507a4dc3e4b5b67d3fb49906c208;hb=fd68bc7487e4d6b547999f21718955221f1c48a4;hpb=a6af2d19dddb0c2ef961d087d8ca0f2b3bda8f7a diff --git a/win/makefile b/win/makefile index 4cac3a4..30e4c2b 100644 --- a/win/makefile +++ b/win/makefile @@ -1,6 +1,6 @@ -# Copyright (C) 1994-2005, Index Data ApS +# Copyright (C) 1994-2006, Index Data ApS # All rights reserved. -# $Id: makefile,v 1.102 2006-03-15 13:32:06 adam Exp $ +# $Id: makefile,v 1.109 2006-05-26 15:46:44 adam Exp $ # # Programmed by # Heikki Levanto & Adam Dickmeiss @@ -20,6 +20,10 @@ HAVE_TCL=1 HAVE_ICONV=1 ICONV_DIR = c:\iconv-1.9.1.win32 +# libxslt +HAVE_LIBXSLT=1 +LIBXSLT_DIR=c:\libxslt-1.1.14.win32 + # libxml2 HAVE_LIBXML2=1 LIBXML2_DIR=c:\libxml2-2.6.20.win32 @@ -36,7 +40,7 @@ BISON=bison default: all -all: dirs generate dll client ztest zoomsh utilprog testprog iconv libxml2 +all: dirs generate dll client ztest zoomsh utilprog testprog iconv libxml2 libxslt NSIS="c:\program files\nsis\makensis.exe" HHC="c:\program files\html help workshop\hhc.exe" @@ -174,6 +178,23 @@ libxml2: !endif +!if $(HAVE_LIBXSLT) +LIBXSLT_LIB="$(LIBXSLT_DIR)\lib\libxslt.lib" +LIBXSLT_DEF= \ + /D HAVE_XSLTSAVERESULTTOSTRING=1 \ + /D HAVE_XSLT=1 \ + /I"$(LIBXSLT_DIR)\include" +libxslt: $(BINDIR)\libxslt.dll + +$(BINDIR)\libxslt.dll: + copy "$(LIBXSLT_DIR)\bin\libxslt.dll" $(BINDIR) + +!else +LIBXSLT_LIB= +LIBXSLT_DEF=/D HAVE_XSLT=0 +libxslt: +!endif + ### C and CPP compiler (the same thing) # Note: $(CPP) has already been defined in the environment @@ -183,6 +204,7 @@ COMMON_C_OPTIONS= \ /nologo /W3 /EHsc /FD /c \ $(ICONV_DEF) \ $(LIBXML2_DEF) \ + $(LIBXSLT_DEF) \ /D "_CRT_SECURE_NO_DEPRECATE" \ /D "_WINDOWS" \ /D "WIN32" \ @@ -195,7 +217,7 @@ COMMON_C_INCLUDES= \ DEBUG_C_OPTIONS= \ /D "_DEBUG" \ - /MDd /Od /YX /Zi /Gm + /MDd /Od /Zi /Gm RELEASE_C_OPTIONS= \ /D "NDEBUG" \ @@ -212,7 +234,6 @@ RELEASE_C_OPTIONS= \ # /MDd = Runtime library: Multithread DLL (debug) # /Od = Disable optimising (debug) # /O2 = Optimize for speed -# /YX = Automatic use of precomipled headers # /Gm = Minimal rebuild (some cpp class stuff) # /Zi = Program database for debuggers # /ZI = Pgm database with special "edit&continue" stuff - not available in C5 @@ -222,9 +243,8 @@ RELEASE_C_OPTIONS= \ LINK=link.exe LINK_LIBS= kernel32.lib user32.lib gdi32.lib \ - advapi32.lib uuid.lib \ - wsock32.lib advapi32.lib \ - $(ICONV_LIB) $(LIBXML2_LIB) + advapi32.lib uuid.lib wsock32.lib advapi32.lib \ + $(ICONV_LIB) $(LIBXML2_LIB) $(LIBXSLT_LIB) COMMON_LNK_OPTIONS= /nologo \ /subsystem:windows \ @@ -375,6 +395,10 @@ YAZ_UTIL_OBJS= \ $(OBJDIR)\matchstr.obj \ $(OBJDIR)\siconv.obj \ $(OBJDIR)\marc8.obj \ + $(OBJDIR)\marc8r.obj \ + $(OBJDIR)\record_conv.obj \ + $(OBJDIR)\retrieval.obj \ + $(OBJDIR)\libxml2_error.obj \ $(OBJDIR)\test.obj YAZ_ZUTIL_OBJS= \ @@ -667,13 +691,17 @@ $(SRCDIR)\marc8.c: $(SRCDIR)\codetables.xml $(SRCDIR)\charconv.tcl @cd $(SRCDIR) $(TCL) charconv.tcl -p marc8 codetables.xml -o marc8.c +$(SRCDIR)\marc8r.c: $(SRCDIR)\codetables.xml $(SRCDIR)\charconv.tcl + @cd $(SRCDIR) + $(TCL) charconv.tcl -r -p marc8r codetables.xml -o marc8r.c + $(SRCDIR)\diagbib1.c: $(SRCDIR)\bib1.csv @cd $(SRCDIR) - $(TCL) csvtobib1.tcl + $(TCL) csvtobib1.tcl $(SRCDIR) $(SRCDIR)\diagsrw.c: $(SRCDIR)\srw.csv @cd $(SRCDIR) - $(TCL) csvtosrw.tcl + $(TCL) csvtosrw.tcl $(SRCDIR) !endif