X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=win%2Fmakefile;h=20c3ee2fed5d85c03af904e34cac3fa249acf7ae;hb=da907ba05501a2050d0a70b1d1fdf22a8130589a;hp=8fd16714afc8b41cf30d56c61ab609d1081b6e58;hpb=eaf27c9dc97e048dcd9a90dc05aa8133b3020c5b;p=yaz-moved-to-github.git diff --git a/win/makefile b/win/makefile index 8fd1671..20c3ee2 100644 --- a/win/makefile +++ b/win/makefile @@ -1,5 +1,5 @@ # makefile.mak - makefile for MS NMAKE -# $Id: makefile,v 1.19 2000-11-16 13:03:13 adam Exp $ +# $Id: makefile,v 1.21 2001-02-28 16:56:33 adam Exp $ # # Programmed by # HL: Heikki Levanto, Index Data @@ -23,7 +23,7 @@ ############### Parameters ########################################################### -DEBUG=0 # 0 for release, 1 for debug +DEBUG=1 # 0 for release, 1 for debug NEW_Z3950=1 # 0= use old asn files # 1= generate files from *.asn (needs tcl) @@ -133,9 +133,8 @@ RELEASE_C_OPTIONS= \ ### Linker options 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 \ +LINK_LIBS= kernel32.lib user32.lib gdi32.lib \ + advapi32.lib uuid.lib \ wsock32.lib advapi32.lib COMMON_LNK_OPTIONS= /nologo \ @@ -365,10 +364,10 @@ ALL_OBJS= \ ########################################################## !if $(NEW_Z3950) -$(PROTOH): makefile $(INCLDIR)\yaz\z-proto.h +$(PROTOH): $(INCLDIR)\yaz\z-proto.h type $(INCLDIR)\yaz\z-proto.h > $(PROTOH) !else -$(PROTOH): makefile $(INCLDIR)\yaz\prt-proto.h +$(PROTOH): $(INCLDIR)\yaz\prt-proto.h copy $(ASNDIR)\*.h $(INCLDIR)\yaz type $(INCLDIR)\yaz\prt-proto.h > $(PROTOH) !endif @@ -564,17 +563,41 @@ $(ITEM_REQ_FILES): $(ILLDIR)\item-req.asn !endif + +########################################################### +############### Resources +########################################################### + +### The RC compiler (resource files) +RSC=rc.exe +COMMON_RC_OPTIONS= /l 0x406 /i"$(ROOTDIR)" +DEBUG_RC_OPTIONS=/d "_DEBUG" +RELEASE_RC_OPTIONS=/d "NDEBUG" + +YAZ_RES=$(OBJDIR)\yaz.res +YAZ_RC=$(WINDIR)\yaz.rc + +!if $(DEBUG) +RSOPT=/d_DEBUG +!else +RSOPT=/d_NDEBUG +!endif + +$(YAZ_RES): $(YAZ_RC) + $(RSC) $(RSOPT) /fo"$(YAZ_RES)" $(YAZ_RC) + ########################################################### ############### Linking ########################################################### -$(DLL) $(IMPLIB): "$(BINDIR)" $(DLL_OBJS) +$(DLL) $(IMPLIB): "$(BINDIR)" $(DLL_OBJS) $(YAZ_RES) @echo Linking the dll $(DLL) $(LINK) @<< $(LNKOPT) $(LINK_LIBS) $(DLL_LINK_OPTIONS) - $(DLL_OBJS) + $(DLL_OBJS) + $(YAZ_RES) /out:$(DLL) /implib:"$(LIBDIR)\yaz.lib" /pdb:"$(LIBDIR)\yaz.pdb" @@ -675,7 +698,13 @@ $(PROTOH): $(GENERATED_C_FILES) $(GENERATED_H_FILES) ########################################################### # # $Log: makefile,v $ -# Revision 1.19 2000-11-16 13:03:13 adam +# Revision 1.21 2001-02-28 16:56:33 adam +# Added version info for WIN32. +# +# Revision 1.20 2000/12/01 17:56:41 adam +# on WIN32 function statserv_closedown closes socket(s) to provoke close. +# +# Revision 1.19 2000/11/16 13:03:13 adam # Function ccl_rpn_query sets attributeSet to Bib-1. # # Revision 1.18 2000/11/01 14:47:00 adam