X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=win%2Fmakefile;h=ae752866d315e4167d670ad006c261a9d799373c;hb=49bb5732e64ef1bd772d5393450815684eac39b6;hp=8e7ba8dd9e717fd33bcc948039accde8b37998f1;hpb=7f6f1b2def7cb8f2124168f90ea3e2e728bd39b3;p=yaz-moved-to-github.git diff --git a/win/makefile b/win/makefile index 8e7ba8d..ae75286 100644 --- a/win/makefile +++ b/win/makefile @@ -1,5 +1,5 @@ # makefile.mak - makefile for MS NMAKE -# $Id: makefile,v 1.20 2000-12-01 17:56:41 adam Exp $ +# $Id: makefile,v 1.22 2001-03-09 14:58:20 adam Exp $ # # Programmed by # HL: Heikki Levanto, Index Data @@ -23,7 +23,7 @@ ############### Parameters ########################################################### -DEBUG=1 # 0 for release, 1 for debug +DEBUG=0 # 0 for release, 1 for debug NEW_Z3950=1 # 0= use old asn files # 1= generate files from *.asn (needs tcl) @@ -364,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 @@ -563,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" @@ -674,7 +698,13 @@ $(PROTOH): $(GENERATED_C_FILES) $(GENERATED_H_FILES) ########################################################### # # $Log: makefile,v $ -# Revision 1.20 2000-12-01 17:56:41 adam +# Revision 1.22 2001-03-09 14:58:20 adam +# Updated version resource. +# +# 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