Tmpdir (to get around Ms leaving temp files around, and crashing
when too many with same number...)
# Makefile.mak - makefile for MS NMAKE
# Makefile.mak - makefile for MS NMAKE
-# $Id: makefile,v 1.1 1999-06-08 12:15:41 heikki Exp $
+# $Id: makefile,v 1.2 1999-06-08 14:07:24 heikki Exp $
#
# Programmed by
# HL: Heikki Levanto, Index Data
#
# Programmed by
# HL: Heikki Levanto, Index Data
#
# Missing
# - Move MS-C's whatnots into win direcotry
#
# Missing
# - Move MS-C's whatnots into win direcotry
-# - rename to makefile (.nothing)
#
# Envoronment problems
# - You need to have the proper path and environment for VC set
# up. There is a bat file VCVARS32.BAT that sets most of it up
# for you. You can find this somewhere near DevStudio\VC\BIN
# - RegSvr32 must also be along the path, often in WINDOWS\SYSTEM
#
# Envoronment problems
# - You need to have the proper path and environment for VC set
# up. There is a bat file VCVARS32.BAT that sets most of it up
# for you. You can find this somewhere near DevStudio\VC\BIN
# - RegSvr32 must also be along the path, often in WINDOWS\SYSTEM
+# - TCL has to be available too, if compiling for NEW_Z3950
###########################################################
############### Parameters
###########################################################
############### Parameters
DEBUG=0 # 0 for release, 1 for debug
DEBUG=0 # 0 for release, 1 for debug
+NEW_Z3950=0 # 0= use old asn files
+ # 1= generate files from *.asn (needs tcl)
+
+
-all: dirs dll client server ztest
+all: dirs proto_h dll client server ztest
###########################################################
###########################################################
SERVERDIR=$(SRCDIR)\SERVER
ZTESTDIR=$(SRCDIR)\ZTEST
SERVERDIR=$(SRCDIR)\SERVER
ZTESTDIR=$(SRCDIR)\ZTEST
+TMPDIR=$(ROOTDIR)\win\tmp
+TMP=$(TMP)
+
###########################################################
############### Targets - what to make
###########################################################
###########################################################
############### Targets - what to make
###########################################################
CLIENT=$(BINDIR)\client.exe
SERVER=$(BINDIR)\server.lib
ZTEST=$(BINDIR)\ztest.exe
CLIENT=$(BINDIR)\client.exe
SERVER=$(BINDIR)\server.lib
ZTEST=$(BINDIR)\ztest.exe
+PROTOH=$(INCLDIR)\proto.h
# shortcut names defined here
dll : $(DLL)
client: $(CLIENT)
server: $(SERVER)
ztest: $(ZTEST)
# shortcut names defined here
dll : $(DLL)
client: $(CLIENT)
server: $(SERVER)
ztest: $(ZTEST)
-bsc: $(YAZ_BSCFILE) $(ZTEST_BSCFILE)
###########################################################
############### Compiler and linker options
###########################################################
############### Compiler and linker options
# Yaz client
{$(CLIENTDIR)}.c{$(OBJDIR)}.obj:
# Yaz client
{$(CLIENTDIR)}.c{$(OBJDIR)}.obj:
+ echo MAKING IN CLIENT !!!!!
<<
# Ztest
{$(ZTESTDIR)}.c{$(OBJDIR)}.obj:
@$(CPP) @<<
<<
# Ztest
{$(ZTESTDIR)}.c{$(OBJDIR)}.obj:
@$(CPP) @<<
$(DLL) $(IMPLIB): "$(BINDIR)" $(DLL_OBJS)
$(DLL) $(IMPLIB): "$(BINDIR)" $(DLL_OBJS)
+ @echo Linking the dll $(DLL)
$(LINK_LIBS)
$(DLL_LINK_OPTIONS)
$(DLL_OBJS)
/out:$(DLL)
/implib:$(IMPLIB)
$(LINK_LIBS)
$(DLL_LINK_OPTIONS)
$(DLL_OBJS)
/out:$(DLL)
/implib:$(IMPLIB)
- /pdb:"$(LIBDIR)/yaz.pdb"
- /map:"$(LIBDIR)/yaz.map"
+ /pdb:"$(LIBDIR)/yaz.pdb"
+ /map:"$(LIBDIR)/yaz.map"
-$(CLIENT) : "$(BINDIR)" $(YAZ_CLIENT_OBJS) $(IMPLIB)
+$(CLIENT) : "$(BINDIR)" $(YAZ_CLIENT_OBJS) #####$(IMPLIB)
+ @echo Linking the client $(CLIENT)
$(LINK) @<<
$(LNKOPT)
$(CLIENT_LINK_OPTIONS)
$(LINK) @<<
$(LNKOPT)
$(CLIENT_LINK_OPTIONS)
<<
$(ZTEST) : "$(BINDIR)" $(ZTEST_OBJS) $(SERVER) $(DLL)
<<
$(ZTEST) : "$(BINDIR)" $(ZTEST_OBJS) $(SERVER) $(DLL)
+ @echo Linking the ztest $(ZTEST)
$(LINK) @<<
$(LNKOPT)
$(ZTEST_LINK_OPTIONS)
$(LINK) @<<
$(LNKOPT)
$(ZTEST_LINK_OPTIONS)
$(SERVER) : "$(BINDIR)" $(YAZ_SERVER_OBJS)
$(SERVER) : "$(BINDIR)" $(YAZ_SERVER_OBJS)
+ @echo Linking the server $(SERVER)
$(LINK) $(SERVER_LINK_OPTIONS) @<<
/nologo
$(LINK_LIBS)
$(LINK) $(SERVER_LINK_OPTIONS) @<<
/nologo
$(LINK_LIBS)
$(YAZ_SERVER_OBJS)
/out:$(SERVER)
<<
$(YAZ_SERVER_OBJS)
/out:$(SERVER)
<<
# note that this links a lib, so it uses completely different options.
# note that this links a lib, so it uses completely different options.
del $(CLIENT)
del $(SERVER)
del $(ZTEST)
del $(CLIENT)
del $(SERVER)
del $(ZTEST)
########### check directories and create if needed
########### check directories and create if needed
-dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR)
+dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)
-$(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) :
+$(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR):
if not exist "$@/$(NUL)" mkdir "$@"
if not exist "$@/$(NUL)" mkdir "$@"
$(OBJDIR)/client.obj: $(IDLGENERATED)
$(OBJDIR)/client.obj: $(IDLGENERATED)
+$(DLL_OBJS): makefile $(PROTOH)
+
+
+# Debug test
+foo: $(OBJDIR)\ztest.obj
+
###########################################################
############### Log
###########################################################
#
# $Log: makefile,v $
###########################################################
############### Log
###########################################################
#
# $Log: makefile,v $
-# Revision 1.1 1999-06-08 12:15:41 heikki
+# Revision 1.2 1999-06-08 14:07:24 heikki
+# Renamed a pile of files
+# Tmpdir (to get around Ms leaving temp files around, and crashing
+# when too many with same number...)
+#
+# Revision 1.1 1999/06/08 12:15:41 heikki
# Renamed to makefile (.nothing) (from .mak)
# Working on the proto.h problems and alternative confiigurations
#
# Renamed to makefile (.nothing) (from .mak)
# Working on the proto.h problems and alternative confiigurations
#