X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=win%2Fmakefile;h=e2d7192b496dfa4894142b86ff6c59438a518a18;hb=21327f3ee047e0cc77201fb3c2127787dc831ccc;hp=02ebfebd6d4b6c92de17ee219ee579a680eb7479;hpb=0dcc0c2239a9fdf36692684a5956765fb35b1870;p=idzebra-moved-to-github.git diff --git a/win/makefile b/win/makefile index 02ebfeb..e2d7192 100644 --- a/win/makefile +++ b/win/makefile @@ -1,12 +1,15 @@ # Z'mbol/Zebra makefile for MS NMAKE -# $Id: makefile,v 1.11 2002-07-15 12:31:40 adam Exp $ +# $Id: makefile,v 1.14 2002-08-05 20:05:07 adam Exp $ ########################################################### ############### Parameters ########################################################### -DEBUG=1 # 0 for release, 1 for debug -ZMBOL=0 +DEBUG=0 # 0 for release, 1 for debug + +# iconv +HAVE_ICONV=0 +ICONV_DIR = c:\libiconv-1.7.0.1 default: all @@ -67,13 +70,8 @@ TEMP=$(TMPDIR) ########################################################### ZEBRALIB=$(LIBDIR)\zebra.lib -!if $(ZMBOL) -ZSERVER=$(BINDIR)\zmbolsrv.exe -ZINDEX=$(BINDIR)\zmbolidx.exe -!else ZSERVER=$(BINDIR)\zebrasrv.exe ZINDEX=$(BINDIR)\zebraidx.exe -!endif APITEST=$(BINDIR)\apitest.exe # shortcut names defined here @@ -86,6 +84,18 @@ apitest: $(APITEST) ############### 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 # (if you set things up right!) @@ -94,10 +104,10 @@ COMMON_C_OPTIONS= \ /nologo /W3 /GX /FD /c \ /D "WIN32" \ /D"_CONSOLE" /D"_MBCS" \ + $(ICONV_DEF) \ /FR"$(OBJDIR)\\" \ /Fo"$(OBJDIR)\\" \ /Fd"$(OBJDIR)\\" \ - /D"ZMBOL=$(ZMBOL)" \ $(BZIP2DEF) COMMON_C_INCLUDES= \ @@ -135,7 +145,7 @@ LINK=link.exe LINK_LIBS= kernel32.lib user32.lib gdi32.lib winspool.lib \ comdlg32.lib advapi32.lib shell32.lib ole32.lib \ oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ - wsock32.lib advapi32.lib + wsock32.lib advapi32.lib $(ICONV_LIB) COMMON_LNK_OPTIONS= /nologo \ /machine:i386 \