# Zebra makefile for MS NMAKE
-# $Id: makefile,v 1.31 2005-01-15 13:18:17 adam Exp $
+# $Id: makefile,v 1.35 2005-05-13 09:41:59 adam Exp $
###########################################################
############### Parameters
# EXPAT is optional. It's required for grs.xml-filters.
HAVE_EXPAT=1
-EXPAT_DIR= c:\Expat-1.95.7
+EXPAT_DIR=c:\Expat-1.95.8
# iconv is optional
HAVE_ICONV=1
-ICONV_DIR = c:\iconv-1.9.1.win32
+ICONV_DIR=c:\iconv-1.9.1.win32
default: all
-all: dirs zebralib zserver zindex
+all: dirs iconv zebralib zserver zindex
###########################################################
############### Directories
!if $(HAVE_ICONV)
ICONV_DEF= /D HAVE_ICONV_H=1 /I"$(ICONV_DIR)\include"
ICONV_LIB= $(ICONV_DIR)\lib\iconv.lib
+iconv: $(BINDIR)\iconv.dll
+
+$(BINDIR)\iconv.dll:
+ copy "$(ICONV_DIR)\lib\iconv.dll" $(BINDIR)
!else
ICONV_DEF= /D HAVE_ICONV_H=0
ICONV_LIB=
+iconv:
!endif
### C and CPP compiler (the same thing)
$(OBJDIR)\trunc.obj \
$(OBJDIR)\zebraapi.obj \
$(OBJDIR)\zebramap.obj \
+ $(OBJDIR)\zint.obj \
$(OBJDIR)\zinfo.obj \
$(OBJDIR)\zrpn.obj \
$(OBJDIR)\zsets.obj \
$(OBJDIR)\d1_tagset.obj \
$(OBJDIR)\d1_varset.obj \
$(OBJDIR)\d1_write.obj \
- $(OBJDIR)\xpath.obj
+ $(OBJDIR)\xpath.obj \
+ $(OBJDIR)\kcontrol.obj \
+ $(OBJDIR)\limit.obj
ALL_OBJS=\
$(ZEBRALIB_OBJS) \
if not exist "$@/$(NUL)" mkdir "$@"
$(YAZ_DLL_TARGET) : $(YAZ_DLL_SOURCE)
- copy $(YAZ_DLL_SOURCE) $(YAZ_DLL_TARGET)
+ copy $(YAZBINDIR)\*.dll $(BINDIR)
###########################################################
############### Explicit dependencies