X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=win%2Fmakefile;h=2eb19f4796e40c68bf325db1b6eee1a4db9e3798;hb=ac5f8ad9508f5b3ada38117b0da7ae23c650ab1e;hp=737ac540161781990e18eede7078e8ff6494f0a9;hpb=27e67487d8100738feb98ae7315540846d6bfdf0;p=yaz-moved-to-github.git diff --git a/win/makefile b/win/makefile index 737ac54..2eb19f4 100644 --- a/win/makefile +++ b/win/makefile @@ -1,5 +1,5 @@ # makefile.mak - makefile for MS NMAKE -# $Id: makefile,v 1.40 2002-06-02 21:34:45 adam Exp $ +# $Id: makefile,v 1.46 2002-08-30 11:28:01 adam Exp $ # # Programmed by # HL: Heikki Levanto, Index Data @@ -23,13 +23,21 @@ ############### Parameters ########################################################### -DEBUG=0 # 0 for release, 1 for debug +DEBUG=1 # 0 for release, 1 for debug + +# iconv +HAVE_ICONV=0 +ICONV_DIR = c:\libiconv-1.7.0.1 + +# TCL +TCL="C:\program files\Tcl\bin\tclsh83.exe" +HAVE_TCL=1 default: all all: dirs generate dll client ztest zoomsh -NSIS="c:\program files\nsis\makensis.exe" +NSIS="c:\program files\nsis\makensis-bz2.exe" nsis: all $(NSIS) yaz.nsi @@ -105,6 +113,17 @@ zoomsh: $(ZOOMSH) $(ZOOMTST1) $(ZOOMTST2) $(ZOOMTST3) \ ############### Compiler and linker options ########################################################### +!if $(HAVE_ICONV) +ICONV_DEF= \ + /D HAVE_ICONV_H=1 \ + /I"$(ICONV_DIR)\include" +ICONV_LIB= \ + $(ICONV_DIR)\lib\iconv.lib +!else +ICONV_DEF= \ + /D HAVE_ICONV_H=0 +ICONV_LIB= +!endif ### C and CPP compiler (the same thing) # Note: $(CPP) has already been defined in the environment @@ -112,6 +131,7 @@ zoomsh: $(ZOOMSH) $(ZOOMTST1) $(ZOOMTST2) $(ZOOMTST3) \ COMMON_C_OPTIONS= \ /nologo /W3 /GX /FD /c \ + $(ICONV_DEF) \ /D "_WINDOWS" \ /D "WIN32" \ /FR"$(OBJDIR)\\" \ @@ -151,7 +171,8 @@ LINK=link.exe LINK_LIBS= kernel32.lib user32.lib gdi32.lib \ advapi32.lib uuid.lib \ - wsock32.lib advapi32.lib + wsock32.lib advapi32.lib \ + $(ICONV_LIB) COMMON_LNK_OPTIONS= /nologo \ /subsystem:windows \ @@ -168,10 +189,6 @@ ZOOMSH_LINK_OPTIONS = /subsystem:console SERVER_LINK_OPTIONS = -lib ZTEST_LINK_OPTIONS = /subsystem:console -# TCL -TCL="C:\Program Files\Tcl\bin\tclsh83.exe" -HAVE_TCL=1 - COMMON_TCL_OPTIONS= ..\util\yaz-comp -I$(INCLDIR) -i yaz # Final opt variables @@ -292,7 +309,9 @@ YAZ_UTIL_OBJS= \ $(OBJDIR)\tpath.obj \ $(OBJDIR)\wrbuf.obj \ $(OBJDIR)\xmalloc.obj \ - $(OBJDIR)\matchstr.obj + $(OBJDIR)\matchstr.obj \ + $(OBJDIR)\siconv.obj + YAZ_ZUTIL_OBJS= \ $(OBJDIR)\diagbib1.obj \ @@ -376,9 +395,9 @@ COMMON_YAZ_OBJS= \ $(YAZ_ZOOM_OBJS) YAZ_OBJS= \ - $(COMMON_YAZ_OBJS) \ $(Z3950_OBJS) \ - $(ILL_OBJS) + $(ILL_OBJS) \ + $(COMMON_YAZ_OBJS) DLL_OBJS= $(YAZ_OBJS) @@ -785,23 +804,22 @@ $(ZTEST) : "$(BINDIR)" $(ZTEST_OBJS) $(DLL) ############## clean clean: - del $(BINDIR)\*.exe - del $(BINDIR)\*.dll - del $(TMPDIR)\*. + -del $(BINDIR)\*.exe + -del $(BINDIR)\*.dll + -del $(TMPDIR)\*. - del $(LIBDIR)\*.MAP + -del $(LIBDIR)\*.MAP - del $(LIBDIR)\*.LIB - del $(OBJDIR)\*.OBJ + -del $(LIBDIR)\*.LIB + -del $(OBJDIR)\*.OBJ realclean: clean - del $(Z3950_C_DIR)\*.c - del $(Z3950_C_DIR)\*.h - del $(INCLDIR)\yaz\z-accdes1.h - del $(INCLDIR)\yaz\z-core.h - del $(DATETIME_H_FILES) - del $(UNIVRES_H_FILES) - del $(ESUPDATE_H_FILES) + -del $(Z3950_C_DIR)\z*.c + -del $(INCLDIR)\yaz\z-accdes1.h + -del $(INCLDIR)\yaz\z-core.h + -del $(DATETIME_H_FILES) + -del $(UNIVRES_H_FILES) + -del $(ESUPDATE_H_FILES) # Because DOS del will only accept one file name to delete, # the _H_ files work only on sets that have just one file. @@ -833,7 +851,25 @@ $(ILL_OBJS): $(ILL_CORE_FILES) $(ITEM_REQ_FILES) ########################################################### # # $Log: makefile,v $ -# Revision 1.40 2002-06-02 21:34:45 adam +# Revision 1.46 2002-08-30 11:28:01 adam +# Remove EXPAT reader +# +# Revision 1.45 2002/08/27 22:33:30 adam +# siconv added +# +# Revision 1.44 2002/07/25 14:19:18 adam +# EXPAT support on WIN32 +# +# Revision 1.43 2002/07/25 13:45:30 adam +# iconv.dll +# +# Revision 1.42 2002/06/05 21:11:00 adam +# NSIS bz2 +# +# Revision 1.41 2002/06/04 08:29:53 adam +# ignore errors on del. +# +# Revision 1.40 2002/06/02 21:34:45 adam # Remove --enable-module option # # Revision 1.39 2002/05/31 08:48:06 adam