1 # Copyright (C) 1994-2003, Index Data
3 # $Id: makefile,v 1.66 2003-10-27 12:32:03 adam Exp $
6 # HL: Heikki Levanto, Index Data
9 ###########################################################
10 ############### Parameters
11 ###########################################################
13 DEBUG=0 # 0 for release, 1 for debug
16 TCL="C:\Tcl\bin\tclsh84.exe"
17 #TCL="C:\Program Files\Tcl\bin\tclsh83.exe"
20 # iconv charcter conversion utility
22 ICONV_DIR = c:\iconv-1.8.win32
26 LIBXML2_DIR=c:\libxml2-2.5.10.win32
28 # WIN32 binaries libxml2 & iconv from here:
29 # http://www.zlatkovic.com/projects/libxml/binaries.html
37 all: dirs generate dll client ztest zoomsh utilprog iconv libxml2
39 NSIS="c:\program files\nsis\makensis-bz2.exe"
47 generate: generated_files
49 ###########################################################
50 ############### Directories
51 ###########################################################
52 # The current directory is supposed to be something like
53 # ..../yaz/win, everything is relative to that
54 ROOTDIR=.. # The home of yaz
56 INCLDIR=$(ROOTDIR)\include # our includes
57 LIBDIR=$(ROOTDIR)\lib # We produce .lib, .exp etc there
58 BINDIR=$(ROOTDIR)\bin # We produce exes and dlls there
59 WINDIR=$(ROOTDIR)\win # all these Win make things
60 OBJDIR=$(WINDIR)\obj # where we store intermediate files
61 SRCDIR=$(ROOTDIR)\src # for the case we move them under src
63 CLIENTDIR=$(ROOTDIR)\CLIENT
64 ZTESTDIR=$(ROOTDIR)\ZTEST
65 ZOOMDIR=$(ROOTDIR)\ZOOM
66 UTILDIR=$(ROOTDIR)\UTIL
68 TMPDIR=$(ROOTDIR)\win\tmp
71 ###########################################################
72 ############### Targets - what to make
73 ###########################################################
76 IMPLIB=$(LIBDIR)\yaz.lib
78 CLIENT=$(BINDIR)\yaz-client.exe
79 ZOOMSH=$(BINDIR)\zoomsh.exe
80 ZTEST=$(BINDIR)\yaz-ztest.exe
82 ZOOMTST1=$(BINDIR)\zoomtst1.exe
83 ZOOMTST2=$(BINDIR)\zoomtst2.exe
84 ZOOMTST3=$(BINDIR)\zoomtst3.exe
85 ZOOMTST4=$(BINDIR)\zoomtst4.exe
86 ZOOMTST5=$(BINDIR)\zoomtst5.exe
87 ZOOMTST6=$(BINDIR)\zoomtst6.exe
88 ZOOMTST7=$(BINDIR)\zoomtst7.exe
89 ZOOMTST8=$(BINDIR)\zoomtst8.exe
91 CQL2PQF=$(BINDIR)\cql2pqf.exe
92 CQL2XCQL=$(BINDIR)\cql2xcql.exe
93 YAZ_MARCDUMP=$(BINDIR)\yaz-marcdump.exe
95 # shortcut names defined here
100 zoomsh: $(ZOOMSH) $(ZOOMTST1) $(ZOOMTST2) $(ZOOMTST3) \
101 $(ZOOMTST4) $(ZOOMTST5) $(ZOOMTST6) $(ZOOMTST7) $(ZOOMTST8)
103 utilprog: $(CQL2PQF) $(CQL2XCQL) $(YAZ_MARCDUMP)
105 ###########################################################
106 ############### Compiler and linker options
107 ###########################################################
112 /I"$(ICONV_DIR)\include"
114 "$(ICONV_DIR)\lib\iconv.lib"
115 iconv: $(BINDIR)\iconv.dll
118 copy "$(ICONV_DIR)\lib\iconv.dll" $(BINDIR)
128 LIBXML2_LIB="$(LIBXML2_DIR)\lib\libxml2.lib"
129 LIBXML2_DEF=/D HAVE_XML2=1 /I"$(LIBXML2_DIR)\include"
130 libxml2: $(BINDIR)\libxml2.dll
132 $(BINDIR)\libxml2.dll:
133 copy "$(LIBXML2_DIR)\lib\libxml2.dll" $(BINDIR)
136 LIBXML2_DEF=/D HAVE_XML2=0
142 ### C and CPP compiler (the same thing)
143 # Note: $(CPP) has already been defined in the environment
144 # (if you set things up right!)
147 /nologo /W3 /GX /FD /c \
152 /D "HAVE_WCHAR_H=1" \
158 /I"$(ROOTDIR)\include"
168 # /W3 = warning level
169 # /GX = Enable exception handling
170 # /FD = Generate file dependencies (what ever they are)
171 # /c = compile without linking
172 # /FR = Generate browse info (.sbr file that gets combined into .bsc)
173 # /Fo = object file name (or at least path)
174 # /Fd = debug database name (or path)
175 # /MD = Runtime library: Multithread DLL
176 # /MDd = Runtime library: Multithread DLL (debug)
177 # /Od = Disable optimising (debug)
178 # /O2 = Optimize for speed
179 # /YX = Automatic use of precomipled headers
180 # /Gm = Minimal rebuild (some cpp class stuff)
181 # /Zi = Program database for debuggers
182 # /ZI = Pgm database with special "edit&continue" stuff - not available in C5
188 LINK_LIBS= kernel32.lib user32.lib gdi32.lib \
189 advapi32.lib uuid.lib \
190 wsock32.lib advapi32.lib \
191 $(ICONV_LIB) $(LIBXML2_LIB)
193 COMMON_LNK_OPTIONS= /nologo \
198 DEBUG_LNK_OPTIONS= /debug
200 RELEASE_LNK_OPTIONS= /pdb:none
202 DLL_LINK_OPTIONS= /dll
203 CLIENT_LINK_OPTIONS = /subsystem:console
204 SERVER_LINK_OPTIONS = -lib
205 ZTEST_LINK_OPTIONS = /subsystem:console
207 COMMON_TCL_OPTIONS= ..\util\yaz-asncomp -I$(INCLDIR) -i yaz
209 # Final opt variables
211 COPT= $(COMMON_C_OPTIONS) $(DEBUG_C_OPTIONS) $(COMMON_C_INCLUDES)
212 MTLOPT= $(COMMON_MTL_OPTIONS) $(DEBUG_MTL_OPTIONS)
213 RCOPT= $(COMMON_RC_OPTIONS) $(DEBUG_RC_OPTIONS)
214 LNKOPT= $(COMMON_LNK_OPTIONS) $(DEBUG_LNK_OPTIONS) $(LNK_LIBS)
215 TCLOPT= $(COMMON_TCL_OPTIONS)
218 COPT= $(COMMON_C_OPTIONS) $(RELEASE_C_OPTIONS) $(COMMON_C_INCLUDES)
219 MTLOPT= $(COMMON_MTL_OPTIONS) $(RELEASE_MTL_OPTIONS)
220 RCOPT= $(COMMON_RC_OPTIONS) $(RELEASE_RC_OPTIONS)
221 LNKOPT= $(COMMON_LNK_OPTIONS) $(RELEASE_LNK_OPTIONS) $(LNK_LIBS)
222 TCLOPT= $(COMMON_TCL_OPTIONS)
226 ###########################################################
227 ############### Source and object modules
228 ###########################################################
230 # Note: Ordinary source files are not specified here at
231 # all, make finds them in suitable dirs. The object modules
232 # need to be specified, though
235 $(OBJDIR)\client.obj \
236 $(OBJDIR)\tabcomplete.obj \
242 YAZ_ZOOMTST1_OBJS = \
243 $(OBJDIR)\zoomtst1.obj
244 YAZ_ZOOMTST2_OBJS = \
245 $(OBJDIR)\zoomtst2.obj
246 YAZ_ZOOMTST3_OBJS = \
247 $(OBJDIR)\zoomtst3.obj
248 YAZ_ZOOMTST4_OBJS = \
249 $(OBJDIR)\zoomtst4.obj
250 YAZ_ZOOMTST5_OBJS = \
251 $(OBJDIR)\zoomtst5.obj
252 YAZ_ZOOMTST6_OBJS = \
253 $(OBJDIR)\zoomtst6.obj
254 YAZ_ZOOMTST7_OBJS = \
255 $(OBJDIR)\zoomtst7.obj
256 YAZ_ZOOMTST8_OBJS = \
257 $(OBJDIR)\zoomtst8.obj
260 $(OBJDIR)\cql2pqf.obj
261 YAZ_CQL2XCQL_OBJS = \
262 $(OBJDIR)\cql2xcql.obj
263 YAZ_MARCDUMP_OBJS = \
264 $(OBJDIR)\marcdump.obj
267 "$(OBJDIR)\eventl.obj" \
268 "$(OBJDIR)\requestq.obj" \
269 "$(OBJDIR)\service.obj" \
270 "$(OBJDIR)\seshigh.obj" \
271 "$(OBJDIR)\statserv.obj" \
272 "$(OBJDIR)\tcpdchk.obj"
275 "$(OBJDIR)\read-marc.obj" \
276 "$(OBJDIR)\read-grs.obj" \
277 "$(OBJDIR)\ztest.obj"
280 $(OBJDIR)\cclerrms.obj \
281 $(OBJDIR)\cclfind.obj \
282 $(OBJDIR)\cclptree.obj \
283 $(OBJDIR)\cclqfile.obj \
284 $(OBJDIR)\cclqual.obj \
285 $(OBJDIR)\cclstr.obj \
286 $(OBJDIR)\ccltoken.obj
289 $(OBJDIR)\comstack.obj \
290 $(OBJDIR)\tcpip.obj \
291 $(OBJDIR)\waislen.obj
294 $(OBJDIR)\ber_any.obj \
295 $(OBJDIR)\ber_bit.obj \
296 $(OBJDIR)\ber_bool.obj \
297 $(OBJDIR)\ber_int.obj \
298 $(OBJDIR)\ber_len.obj \
299 $(OBJDIR)\ber_null.obj \
300 $(OBJDIR)\ber_oct.obj \
301 $(OBJDIR)\ber_oid.obj \
302 $(OBJDIR)\ber_tag.obj \
303 $(OBJDIR)\dumpber.obj \
305 $(OBJDIR)\odr_any.obj \
306 $(OBJDIR)\odr_bit.obj \
307 $(OBJDIR)\odr_bool.obj \
308 $(OBJDIR)\odr_choice.obj \
309 $(OBJDIR)\odr_cons.obj \
310 $(OBJDIR)\odr_enum.obj \
311 $(OBJDIR)\odr_int.obj \
312 $(OBJDIR)\odr_mem.obj \
313 $(OBJDIR)\odr_null.obj \
314 $(OBJDIR)\odr_oct.obj \
315 $(OBJDIR)\odr_oid.obj \
316 $(OBJDIR)\odr_seq.obj \
317 $(OBJDIR)\odr_tag.obj \
318 $(OBJDIR)\odr_use.obj \
319 $(OBJDIR)\odr_util.obj
322 $(OBJDIR)\version.obj \
323 $(OBJDIR)\atoin.obj \
325 $(OBJDIR)\marcdisp.obj \
327 $(OBJDIR)\nmemsdup.obj \
329 $(OBJDIR)\options.obj \
330 $(OBJDIR)\readconf.obj \
331 $(OBJDIR)\tpath.obj \
332 $(OBJDIR)\wrbuf.obj \
333 $(OBJDIR)\xmalloc.obj \
334 $(OBJDIR)\matchstr.obj \
335 $(OBJDIR)\siconv.obj \
339 $(OBJDIR)\diagbib1.obj \
341 $(OBJDIR)\logrpn.obj \
342 $(OBJDIR)\pquery.obj \
343 $(OBJDIR)\yaz-ccl.obj \
344 $(OBJDIR)\otherinfo.obj \
345 $(OBJDIR)\sortspec.obj \
346 $(OBJDIR)\z3950oid.obj \
347 $(OBJDIR)\charneg.obj \
348 $(OBJDIR)\grs1disp.obj \
349 $(OBJDIR)\opacdisp.obj \
353 $(OBJDIR)\zoom-c.obj \
354 $(OBJDIR)\zoom-opt.obj
357 $(OBJDIR)\z-date.obj\
358 $(OBJDIR)\z-univ.obj\
359 $(OBJDIR)\zes-update.obj\
360 $(OBJDIR)\zes-admin.obj \
361 $(OBJDIR)\z-accdes1.obj \
362 $(OBJDIR)\z-accform1.obj \
363 $(OBJDIR)\z-acckrb1.obj \
364 $(OBJDIR)\z-core.obj \
365 $(OBJDIR)\z-diag1.obj \
366 $(OBJDIR)\z-espec1.obj \
367 $(OBJDIR)\z-estask.obj \
368 $(OBJDIR)\z-exp.obj \
369 $(OBJDIR)\z-grs.obj \
370 $(OBJDIR)\z-opac.obj \
371 $(OBJDIR)\z-uifr1.obj \
372 $(OBJDIR)\z-rrf1.obj \
373 $(OBJDIR)\z-rrf2.obj \
374 $(OBJDIR)\z-sum.obj \
375 $(OBJDIR)\z-sutrs.obj \
376 $(OBJDIR)\zes-expi.obj \
377 $(OBJDIR)\zes-exps.obj \
378 $(OBJDIR)\zes-order.obj \
379 $(OBJDIR)\zes-pquery.obj \
380 $(OBJDIR)\zes-psched.obj \
381 $(OBJDIR)\zes-pset.obj \
382 $(OBJDIR)\zes-update0.obj \
383 $(OBJDIR)\prt-ext.obj \
384 $(OBJDIR)\z-charneg.obj \
385 $(OBJDIR)\z-mterm2.obj \
386 $(OBJDIR)\z-oclcui.obj
389 $(OBJDIR)\ill-get.obj\
390 $(OBJDIR)\ill-core.obj\
391 $(OBJDIR)\item-req.obj
395 $(OBJDIR)\cqlstdio.obj \
396 $(OBJDIR)\cqlstring.obj \
397 $(OBJDIR)\cqltransform.obj \
398 $(OBJDIR)\cqlutil.obj \
399 $(OBJDIR)\cqlstrer.obj \
400 $(OBJDIR)\xcqlutil.obj
405 $(YAZ_COMSTACK_OBJS) \
413 DLL_OBJS= $(YAZ_OBJS)
415 ###########################################################
416 ############### Generated C and H files
418 ######################################################
420 Z3950_C_DIR=$(SRCDIR)
422 #!!! Should be moved to OBJ, but that requires too much trickery
424 # Files generated from datetime.asn
425 DATETIME_H_FILES = $(INCLDIR)\yaz\z-date.h
426 DATETIME_C_FILES = $(Z3950_C_DIR)\z-date.c
428 # Files generated from univres.asn
429 UNIVRES_H_FILES = $(INCLDIR)\yaz\z-univ.h
430 UNIVRES_C_FILES = $(Z3950_C_DIR)\z-univ.c
432 # Files generated from esupdate.asn
433 ESUPDATE_H_FILES = $(INCLDIR)\yaz\zes-update.h
434 ESUPDATE_C_FILES = $(Z3950_C_DIR)\zes-update.c
436 # Files generated from esadmin.asn
437 ESADMIN_H_FILES = $(INCLDIR)\yaz\zes-admin.h
438 ESADMIN_C_FILES = $(Z3950_C_DIR)\zes-admin.c
440 # Files generated from esadmin.asn
441 CHARNEG_H_FILES = $(INCLDIR)\yaz\z-charneg.h
442 CHARNEG_C_FILES = $(Z3950_C_DIR)\z-charneg.c
444 # Files generated from mterm2.asn
445 MTERM2_H_FILES = $(INCLDIR)\yaz\z-mterm2.h
446 MTERM2_C_FILES = $(Z3950_C_DIR)\z-mterm2.c
448 # Files generated from mterm2.asn
449 OCLCUI_H_FILES = $(INCLDIR)\yaz\z-oclcui.h
450 OCLCUI_C_FILES = $(Z3950_C_DIR)\z-oclcui.c
452 # Files created from z3950v3.asn
454 $(INCLDIR)\yaz\z-accdes1.h \
455 $(INCLDIR)\yaz\z-core.h
458 $(Z3950_C_DIR)\z-accdes1.c \
459 $(Z3950_C_DIR)\z-accform1.c \
460 $(Z3950_C_DIR)\z-acckrb1.c \
461 $(Z3950_C_DIR)\z-core.c \
462 $(Z3950_C_DIR)\z-diag1.c \
463 $(Z3950_C_DIR)\z-espec1.c \
464 $(Z3950_C_DIR)\z-estask.c \
465 $(Z3950_C_DIR)\z-exp.c \
466 $(Z3950_C_DIR)\z-grs.c \
467 $(Z3950_C_DIR)\z-opac.c \
468 $(Z3950_C_DIR)\z-uifr1.c \
469 $(Z3950_C_DIR)\z-rrf1.c \
470 $(Z3950_C_DIR)\z-rrf2.c \
471 $(Z3950_C_DIR)\z-sum.c \
472 $(Z3950_C_DIR)\z-sutrs.c \
473 $(Z3950_C_DIR)\zes-expi.c \
474 $(Z3950_C_DIR)\zes-exps.c \
475 $(Z3950_C_DIR)\zes-order.c \
476 $(Z3950_C_DIR)\zes-pquery.c \
477 $(Z3950_C_DIR)\zes-psched.c \
478 $(Z3950_C_DIR)\zes-pset.c \
479 $(Z3950_C_DIR)\zes-update0.c
481 # Files generated from ill9702.asn
483 $(INCLDIR)\yaz\ill-core.h
486 $(ILL_C_DIR)\ill-core.c
488 # Files generated from itemreq.asn
490 $(INCLDIR)\yaz\item-req.h
493 $(ILL_C_DIR)\item-req.c
496 DATETIME_FILES = $(DATETIME_H_FILES) $(DATETIME_C_FILES)
497 UNIVRES_FILES = $(UNIVRES_H_FILES) $(UNIVRES_C_FILES)
498 ESUPDATE_FILES = $(ESUPDATE_H_FILES) $(ESUPDATE_C_FILES)
499 ESADMIN_FILES = $(ESADMIN_H_FILES) $(ESADMIN_C_FILES)
500 Z3950V3_FILES= $(Z3950V3_C_FILES) $(Z3950V3_H_FILES)
501 ILL_CORE_FILES= $(ILL_CORE_C_FILES) $(ILL_CORE_H_FILES)
502 ITEM_REQ_FILES= $(ITEM_REQ_C_FILES) $(ITEM_REQ_H_FILES)
503 CHARNEG_FILES = $(CHARNEG_C_FILES) $(CHARNEG_H_FILES)
504 MTERM2_FILES = $(MTERM2_C_FILES) $(MTERM2_H_FILES)
505 OCLCUI_FILES = $(OCLCUI_C_FILES) $(OCLCUI_H_FILES)
509 $(ESUPDATE_C_FILES) \
511 $(DATETIME_C_FILES) \
519 $(ESUPDATE_H_FILES) \
521 $(DATETIME_H_FILES) \
528 $(GENERATED_H_FILES) \
529 $(GENERATED_C_FILES) \
531 ###########################################################
532 ############### Compiling
533 ###########################################################
535 # Note: This defines where to look for the necessary
536 # source files. Funny way of doing it, but it works.
539 {$(CLIENTDIR)}.c{$(OBJDIR)}.obj:
540 @$(CPP) $(COPT) $< /D"_CONSOLE"
543 {$(ZTESTDIR)}.c{$(OBJDIR)}.obj:
544 @$(CPP) $(COPT) $< /D"_CONSOLE"
547 {$(SERVERDIR)}.c{$(OBJDIR)}.obj:
550 # Various YAZ source directories
551 {$(SRCDIR)}.c{$(OBJDIR)}.obj:
554 {$(ZOOMDIR)}.c{$(OBJDIR)}.obj:
557 {$(UTILDIR)}.c{$(OBJDIR)}.obj:
560 ############### ASN-generated files
564 $(Z3950V3_FILES): $(SRCDIR)\z3950v3.asn
566 $(TCL) $(TCLOPT) -d z.tcl z3950v3.asn
569 $(DATETIME_FILES): $(SRCDIR)\datetime.asn
571 $(TCL) $(TCLOPT) -d z.tcl datetime.asn
574 $(UNIVRES_FILES): $(SRCDIR)\univres.asn
576 $(TCL) $(TCLOPT) -d z.tcl univres.asn
579 $(ESUPDATE_FILES): $(SRCDIR)\esupdate.asn
581 $(TCL) $(TCLOPT) -d z.tcl esupdate.asn
584 $(ESADMIN_FILES): $(SRCDIR)\esadmin.asn
586 $(TCL) $(TCLOPT) -d z.tcl esadmin.asn
589 $(CHARNEG_FILES): $(SRCDIR)\charneg-3.asn
591 $(TCL) $(TCLOPT) -d z.tcl charneg-3.asn
594 $(MTERM2_FILES): $(SRCDIR)\mterm2.asn
596 $(TCL) $(TCLOPT) -d z.tcl mterm2.asn
599 $(OCLCUI_FILES): $(SRCDIR)\oclcui.asn
601 $(TCL) $(TCLOPT) -d z.tcl oclcui.asn
604 $(ILL_CORE_FILES): $(SRCDIR)\ill9702.asn
606 $(TCL) $(TCLOPT) -d ill.tcl ill9702.asn
609 $(ITEM_REQ_FILES): $(SRCDIR)\item-req.asn
611 $(TCL) $(TCLOPT) -d ill.tcl item-req.asn
614 $(SRCDIR)\marc8.c: $(SRCDIR)\charconv.sgm
616 $(TCL) charconv.tcl -p marc8 -s 50 charconv.sgm -o marc8.c
621 $(SRCDIR)\cql.c: $(SRCDIR)\cql.y
623 $(BISON) -y -p cql_ -o cql.c cql.y
627 ###########################################################
628 ############### Resources
629 ###########################################################
631 ### The RC compiler (resource files)
633 COMMON_RC_OPTIONS= /l 0x406 /i"$(ROOTDIR)"
634 DEBUG_RC_OPTIONS=/d "_DEBUG"
635 RELEASE_RC_OPTIONS=/d "NDEBUG"
637 YAZ_RES=$(OBJDIR)\yaz.res
638 YAZ_RC=$(WINDIR)\yaz.rc
646 $(YAZ_RES): $(YAZ_RC)
647 $(RSC) $(RSOPT) /fo"$(YAZ_RES)" $(YAZ_RC)
649 ###########################################################
650 ############### Linking
651 ###########################################################
653 $(DLL) $(IMPLIB): "$(BINDIR)" $(DLL_OBJS) $(YAZ_RES)
654 @echo Linking the dll $(DLL)
662 /implib:"$(LIBDIR)\yaz.lib"
663 /pdb:"$(LIBDIR)\yaz.pdb"
664 /map:"$(LIBDIR)\yaz.map"
667 $(CLIENT) : "$(BINDIR)" $(YAZ_CLIENT_OBJS)
668 @echo Linking $(CLIENT)
671 $(CLIENT_LINK_OPTIONS)
675 /pdb:"$(LIBDIR)\yaz-client.pdb"
676 /map:"$(LIBDIR)\yaz-client.map"
680 $(ZOOMSH) : "$(BINDIR)" $(YAZ_ZOOMSH_OBJS)
681 @echo Linking $(ZOOMSH)
684 $(CLIENT_LINK_OPTIONS)
688 /pdb:"$(LIBDIR)\zoomsh.pdb"
689 /map:"$(LIBDIR)\zoomsh.map"
693 $(ZOOMTST1) : "$(BINDIR)" $(YAZ_ZOOMTST1_OBJS)
694 @echo Linking $(ZOOMTST1)
697 $(CLIENT_LINK_OPTIONS)
701 /pdb:"$(LIBDIR)\zoomtst1.pdb"
702 /map:"$(LIBDIR)\zoomtst1.map"
706 $(ZOOMTST2) : "$(BINDIR)" $(YAZ_ZOOMTST2_OBJS)
707 @echo Linking $(ZOOMTST2)
710 $(CLIENT_LINK_OPTIONS)
714 /pdb:"$(LIBDIR)\zoomtst2.pdb"
715 /map:"$(LIBDIR)\zoomtst2.map"
719 $(ZOOMTST3) : "$(BINDIR)" $(YAZ_ZOOMTST3_OBJS)
720 @echo Linking $(ZOOMTST3)
723 $(CLIENT_LINK_OPTIONS)
727 /pdb:"$(LIBDIR)\zoomtst3.pdb"
728 /map:"$(LIBDIR)\zoomtst3.map"
732 $(ZOOMTST4) : "$(BINDIR)" $(YAZ_ZOOMTST4_OBJS)
733 @echo Linking $(ZOOMTST4)
736 $(CLIENT_LINK_OPTIONS)
740 /pdb:"$(LIBDIR)\zoomtst4.pdb"
741 /map:"$(LIBDIR)\zoomtst4.map"
745 $(ZOOMTST5) : "$(BINDIR)" $(YAZ_ZOOMTST5_OBJS)
746 @echo Linking $(ZOOMTST5)
749 $(CLIENT_LINK_OPTIONS)
753 /pdb:"$(LIBDIR)\zoomtst5.pdb"
754 /map:"$(LIBDIR)\zoomtst5.map"
758 $(ZOOMTST6) : "$(BINDIR)" $(YAZ_ZOOMTST6_OBJS)
759 @echo Linking $(ZOOMTST6)
762 $(CLIENT_LINK_OPTIONS)
766 /pdb:"$(LIBDIR)\zoomtst6.pdb"
767 /map:"$(LIBDIR)\zoomtst6.map"
771 $(ZOOMTST7) : "$(BINDIR)" $(YAZ_ZOOMTST7_OBJS)
772 @echo Linking $(ZOOMTST7)
775 $(CLIENT_LINK_OPTIONS)
779 /pdb:"$(LIBDIR)\zoomtst7.pdb"
780 /map:"$(LIBDIR)\zoomtst7.map"
784 $(ZOOMTST8) : "$(BINDIR)" $(YAZ_ZOOMTST8_OBJS)
785 @echo Linking $(ZOOMTST8)
788 $(CLIENT_LINK_OPTIONS)
792 /pdb:"$(LIBDIR)\zoomtst8.pdb"
793 /map:"$(LIBDIR)\zoomtst8.map"
797 $(CQL2PQF) : "$(BINDIR)" $(YAZ_CQL2PQF_OBJS)
798 @echo Linking $(CQL2PQF)
801 $(CLIENT_LINK_OPTIONS)
805 /pdb:"$(LIBDIR)\cql2pqf.pdb"
806 /map:"$(LIBDIR)\cql2pqf.map"
810 $(CQL2XCQL) : "$(BINDIR)" $(YAZ_CQL2XCQL_OBJS)
811 @echo Linking $(CQL2XCQL)
814 $(CLIENT_LINK_OPTIONS)
818 /pdb:"$(LIBDIR)\cql2xcql.pdb"
819 /map:"$(LIBDIR)\cql2xcql.map"
823 $(ZTEST) : "$(BINDIR)" $(ZTEST_OBJS) $(DLL)
824 @echo Linking $(ZTEST)
827 $(ZTEST_LINK_OPTIONS)
832 /implib:"$(LIBDIR)\yaz-ztest.lib"
833 /pdb:"$(LIBDIR)\yaz-ztest.pdb"
834 /map:"$(LIBDIR)\yaz-ztest.map"
838 $(YAZ_MARCDUMP) : "$(BINDIR)" $(YAZ_MARCDUMP_OBJS) $(DLL)
839 @echo Linking $(YAZ_MARCDUMP)
842 $(CLIENT_LINK_OPTIONS)
847 /pdb:"$(LIBDIR)\yaz-marcdump.pdb"
848 /map:"$(LIBDIR)\yaz-marcdump.map"
853 # note that this links a lib, so it uses completely different options.
855 ###########################################################
856 ############### Special operations
857 ###########################################################
870 -del $(SRCDIR)\marc8.c
873 -del $(SRCDIR)\ill-core.c
874 -del $(SRCDIR)\item-req.c
875 -del $(INCLDIR)\yaz\ill-core.h
876 -del $(INCLDIR)\yaz\item-req.h
877 -del $(INCLDIR)\yaz\z-accdes1.h
878 -del $(INCLDIR)\yaz\z-core.h
879 -del $(DATETIME_H_FILES)
880 -del $(UNIVRES_H_FILES)
881 -del $(ESUPDATE_H_FILES)
883 # Because DOS del will only accept one file name to delete,
884 # the _H_ files work only on sets that have just one file.
885 # Z3950_H_FILES had to be spelled out. One more point for MS!
887 ########### check directories and create if needed
888 dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)
890 $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR):
891 if not exist "$@/$(NUL)" mkdir "$@"
894 ###########################################################
895 ############### Explicit dependencies
896 ###########################################################
898 # force recompilation of everything, if makefile changed
900 $(Z3950_OBJS): $(GENERATED_C_FILES) $(GENERATED_H_FILES)
902 $(ILL_OBJS): $(ILL_CORE_FILES) $(ITEM_REQ_FILES)
904 # makes sure we generate before compiling anything, as the
905 # new proto.h refers to the generated files, and is included