X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=win%2Fmakefile;h=30e4c2bdb9c9bb39afef1f9aee81e6865eb7f526;hp=7414f563b09d42f8cc3d3f766bafb7a38d7be22b;hb=fd68bc7487e4d6b547999f21718955221f1c48a4;hpb=2cb1374ad9b888dcb3462ec15b977fbb3a97c7cf diff --git a/win/makefile b/win/makefile index 7414f56..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.98 2006-01-20 10:34:52 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" @@ -44,6 +48,7 @@ HHC="c:\program files\html help workshop\hhc.exe" dist: nmake DEBUG=1 clean nmake DEBUG=0 clean + nmake DEBUG=1 nmake DEBUG=0 $(NSIS) yaz.nsi @@ -173,15 +178,34 @@ 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 # (if you set things up right!) COMMON_C_OPTIONS= \ - /nologo /W3 /GX /FD /c \ + /nologo /W3 /EHsc /FD /c \ $(ICONV_DEF) \ $(LIBXML2_DEF) \ + $(LIBXSLT_DEF) \ + /D "_CRT_SECURE_NO_DEPRECATE" \ /D "_WINDOWS" \ /D "WIN32" \ /FR"$(OBJDIR)\\" \ @@ -193,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" \ @@ -210,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 @@ -220,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 \ @@ -372,7 +394,12 @@ YAZ_UTIL_OBJS= \ $(OBJDIR)\xmalloc.obj \ $(OBJDIR)\matchstr.obj \ $(OBJDIR)\siconv.obj \ - $(OBJDIR)\marc8.obj + $(OBJDIR)\marc8.obj \ + $(OBJDIR)\marc8r.obj \ + $(OBJDIR)\record_conv.obj \ + $(OBJDIR)\retrieval.obj \ + $(OBJDIR)\libxml2_error.obj \ + $(OBJDIR)\test.obj YAZ_ZUTIL_OBJS= \ $(OBJDIR)\diagbib1.obj \ @@ -395,7 +422,9 @@ YAZ_ZUTIL_OBJS= \ $(OBJDIR)\srwutil.obj \ $(OBJDIR)\zoom-c.obj \ $(OBJDIR)\zoom-opt.obj \ - $(OBJDIR)\initopt.obj + $(OBJDIR)\initopt.obj \ + $(OBJDIR)\xmlquery.obj \ + $(OBJDIR)\mime.obj Z3950_OBJS= \ $(OBJDIR)\z-date.obj\ @@ -581,11 +610,11 @@ generated_files: \ # yaz client {$(CLIENTDIR)}.c{$(OBJDIR)}.obj: - @$(CPP) $(COPT) $< /D"_CONSOLE" + $(CPP) $(COPT) $< /D"_CONSOLE" # Ztest {$(ZTESTDIR)}.c{$(OBJDIR)}.obj: - @$(CPP) $(COPT) $< /D"_CONSOLE" + $(CPP) $(COPT) $< /D"_CONSOLE" # Server {$(SERVERDIR)}.c{$(OBJDIR)}.obj: @@ -662,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