1 # Copyright (C) 1994-2004, Index Data
3 # $Id: makefile,v 1.77 2004-05-01 23:19:49 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.9.1.win32
26 LIBXML2_DIR=c:\libxml2-2.6.9.win32
28 # zlib compression (used by libxml2)
29 ZLIB_DIR = c:\zlib-1.1.4.win32
31 # get WIN32 binaries libxml2 & iconv & zlib from here:
32 # http://www.zlatkovic.com/projects/libxml/binaries.html
40 all: dirs generate dll client ztest zoomsh utilprog iconv libxml2
42 NSIS="c:\program files\nsis\makensis-bz2.exe"
50 generate: generated_files
52 ###########################################################
53 ############### Directories
54 ###########################################################
55 # The current directory is supposed to be something like
56 # ..../yaz/win, everything is relative to that
57 ROOTDIR=.. # The home of yaz
59 INCLDIR=$(ROOTDIR)\include # our includes
60 LIBDIR=$(ROOTDIR)\lib # We produce .lib, .exp etc there
61 BINDIR=$(ROOTDIR)\bin # We produce exes and dlls there
62 WINDIR=$(ROOTDIR)\win # all these Win make things
63 OBJDIR=$(WINDIR)\obj # where we store intermediate files
64 SRCDIR=$(ROOTDIR)\src # for the case we move them under src
66 CLIENTDIR=$(ROOTDIR)\CLIENT
67 ZTESTDIR=$(ROOTDIR)\ZTEST
68 ZOOMDIR=$(ROOTDIR)\ZOOM
69 UTILDIR=$(ROOTDIR)\UTIL
71 TMPDIR=$(ROOTDIR)\win\tmp
74 ###########################################################
75 ############### Targets - what to make
76 ###########################################################
79 IMPLIB=$(LIBDIR)\yaz.lib
81 CLIENT=$(BINDIR)\yaz-client.exe
82 ZOOMSH=$(BINDIR)\zoomsh.exe
83 ZTEST=$(BINDIR)\yaz-ztest.exe
85 ZOOMTST1=$(BINDIR)\zoomtst1.exe
86 ZOOMTST2=$(BINDIR)\zoomtst2.exe
87 ZOOMTST3=$(BINDIR)\zoomtst3.exe
88 ZOOMTST4=$(BINDIR)\zoomtst4.exe
89 ZOOMTST5=$(BINDIR)\zoomtst5.exe
90 ZOOMTST6=$(BINDIR)\zoomtst6.exe
91 ZOOMTST7=$(BINDIR)\zoomtst7.exe
92 ZOOMTST8=$(BINDIR)\zoomtst8.exe
94 CQL2PQF=$(BINDIR)\cql2pqf.exe
95 CQL2XCQL=$(BINDIR)\cql2xcql.exe
96 YAZ_MARCDUMP=$(BINDIR)\yaz-marcdump.exe
98 # shortcut names defined here
103 zoomsh: $(ZOOMSH) $(ZOOMTST1) $(ZOOMTST2) $(ZOOMTST3) \
104 $(ZOOMTST4) $(ZOOMTST5) $(ZOOMTST6) $(ZOOMTST7) $(ZOOMTST8)
106 utilprog: $(CQL2PQF) $(CQL2XCQL) $(YAZ_MARCDUMP)
108 ###########################################################
109 ############### Compiler and linker options
110 ###########################################################
115 /I"$(ICONV_DIR)\include"
117 "$(ICONV_DIR)\lib\iconv.lib"
118 iconv: $(BINDIR)\iconv.dll
121 copy "$(ICONV_DIR)\lib\iconv.dll" $(BINDIR)
131 LIBXML2_LIB="$(LIBXML2_DIR)\lib\libxml2.lib"
132 LIBXML2_DEF=/D HAVE_XML2=1 /I"$(LIBXML2_DIR)\include"
133 libxml2: $(BINDIR)\libxml2.dll $(BINDIR)\zlib.dll
135 $(BINDIR)\libxml2.dll:
136 copy "$(LIBXML2_DIR)\lib\libxml2.dll" $(BINDIR)
139 copy "$(ZLIB_DIR)\lib\zlib.dll" $(BINDIR)
143 LIBXML2_DEF=/D HAVE_XML2=0
149 ### C and CPP compiler (the same thing)
150 # Note: $(CPP) has already been defined in the environment
151 # (if you set things up right!)
154 /nologo /W3 /GX /FD /c \
159 /D "HAVE_WCHAR_H=1" \
165 /I"$(ROOTDIR)\include"
175 # /W3 = warning level
176 # /GX = Enable exception handling
177 # /FD = Generate file dependencies (what ever they are)
178 # /c = compile without linking
179 # /FR = Generate browse info (.sbr file that gets combined into .bsc)
180 # /Fo = object file name (or at least path)
181 # /Fd = debug database name (or path)
182 # /MD = Runtime library: Multithread DLL
183 # /MDd = Runtime library: Multithread DLL (debug)
184 # /Od = Disable optimising (debug)
185 # /O2 = Optimize for speed
186 # /YX = Automatic use of precomipled headers
187 # /Gm = Minimal rebuild (some cpp class stuff)
188 # /Zi = Program database for debuggers
189 # /ZI = Pgm database with special "edit&continue" stuff - not available in C5
195 LINK_LIBS= kernel32.lib user32.lib gdi32.lib \
196 advapi32.lib uuid.lib \
197 wsock32.lib advapi32.lib \
198 $(ICONV_LIB) $(LIBXML2_LIB)
200 COMMON_LNK_OPTIONS= /nologo \
205 DEBUG_LNK_OPTIONS= /debug
209 DLL_LINK_OPTIONS= /dll
210 CLIENT_LINK_OPTIONS = /subsystem:console
211 SERVER_LINK_OPTIONS = -lib
212 ZTEST_LINK_OPTIONS = /subsystem:console
214 COMMON_TCL_OPTIONS= ..\util\yaz-asncomp -I$(INCLDIR) -i yaz
216 # Final opt variables
218 COPT= $(COMMON_C_OPTIONS) $(DEBUG_C_OPTIONS) $(COMMON_C_INCLUDES)
219 MTLOPT= $(COMMON_MTL_OPTIONS) $(DEBUG_MTL_OPTIONS)
220 RCOPT= $(COMMON_RC_OPTIONS) $(DEBUG_RC_OPTIONS)
221 LNKOPT= $(COMMON_LNK_OPTIONS) $(DEBUG_LNK_OPTIONS) $(LNK_LIBS)
222 TCLOPT= $(COMMON_TCL_OPTIONS)
225 COPT= $(COMMON_C_OPTIONS) $(RELEASE_C_OPTIONS) $(COMMON_C_INCLUDES)
226 MTLOPT= $(COMMON_MTL_OPTIONS) $(RELEASE_MTL_OPTIONS)
227 RCOPT= $(COMMON_RC_OPTIONS) $(RELEASE_RC_OPTIONS)
228 LNKOPT= $(COMMON_LNK_OPTIONS) $(RELEASE_LNK_OPTIONS) $(LNK_LIBS)
229 TCLOPT= $(COMMON_TCL_OPTIONS)
233 ###########################################################
234 ############### Source and object modules
235 ###########################################################
237 # Note: Ordinary source files are not specified here at
238 # all, make finds them in suitable dirs. The object modules
239 # need to be specified, though
242 $(OBJDIR)\client.obj \
243 $(OBJDIR)\tabcomplete.obj \
249 YAZ_ZOOMTST1_OBJS = \
250 $(OBJDIR)\zoomtst1.obj
251 YAZ_ZOOMTST2_OBJS = \
252 $(OBJDIR)\zoomtst2.obj
253 YAZ_ZOOMTST3_OBJS = \
254 $(OBJDIR)\zoomtst3.obj
255 YAZ_ZOOMTST4_OBJS = \
256 $(OBJDIR)\zoomtst4.obj
257 YAZ_ZOOMTST5_OBJS = \
258 $(OBJDIR)\zoomtst5.obj
259 YAZ_ZOOMTST6_OBJS = \
260 $(OBJDIR)\zoomtst6.obj
261 YAZ_ZOOMTST7_OBJS = \
262 $(OBJDIR)\zoomtst7.obj
263 YAZ_ZOOMTST8_OBJS = \
264 $(OBJDIR)\zoomtst8.obj
267 $(OBJDIR)\cql2pqf.obj
268 YAZ_CQL2XCQL_OBJS = \
269 $(OBJDIR)\cql2xcql.obj
270 YAZ_MARCDUMP_OBJS = \
271 $(OBJDIR)\marcdump.obj
274 "$(OBJDIR)\eventl.obj" \
275 "$(OBJDIR)\requestq.obj" \
276 "$(OBJDIR)\service.obj" \
277 "$(OBJDIR)\seshigh.obj" \
278 "$(OBJDIR)\statserv.obj" \
279 "$(OBJDIR)\tcpdchk.obj"
282 "$(OBJDIR)\read-marc.obj" \
283 "$(OBJDIR)\read-grs.obj" \
284 "$(OBJDIR)\ztest.obj"
287 $(OBJDIR)\cclerrms.obj \
288 $(OBJDIR)\cclfind.obj \
289 $(OBJDIR)\cclptree.obj \
290 $(OBJDIR)\cclqfile.obj \
291 $(OBJDIR)\cclqual.obj \
292 $(OBJDIR)\cclstr.obj \
293 $(OBJDIR)\ccltoken.obj
296 $(OBJDIR)\comstack.obj \
297 $(OBJDIR)\tcpip.obj \
298 $(OBJDIR)\waislen.obj
301 $(OBJDIR)\ber_any.obj \
302 $(OBJDIR)\ber_bit.obj \
303 $(OBJDIR)\ber_bool.obj \
304 $(OBJDIR)\ber_int.obj \
305 $(OBJDIR)\ber_len.obj \
306 $(OBJDIR)\ber_null.obj \
307 $(OBJDIR)\ber_oct.obj \
308 $(OBJDIR)\ber_oid.obj \
309 $(OBJDIR)\ber_tag.obj \
310 $(OBJDIR)\dumpber.obj \
312 $(OBJDIR)\odr_any.obj \
313 $(OBJDIR)\odr_bit.obj \
314 $(OBJDIR)\odr_bool.obj \
315 $(OBJDIR)\odr_choice.obj \
316 $(OBJDIR)\odr_cons.obj \
317 $(OBJDIR)\odr_enum.obj \
318 $(OBJDIR)\odr_int.obj \
319 $(OBJDIR)\odr_mem.obj \
320 $(OBJDIR)\odr_null.obj \
321 $(OBJDIR)\odr_oct.obj \
322 $(OBJDIR)\odr_oid.obj \
323 $(OBJDIR)\odr_seq.obj \
324 $(OBJDIR)\odr_tag.obj \
325 $(OBJDIR)\odr_use.obj \
326 $(OBJDIR)\odr_util.obj
329 $(OBJDIR)\version.obj \
330 $(OBJDIR)\atoin.obj \
332 $(OBJDIR)\marcdisp.obj \
334 $(OBJDIR)\nmemsdup.obj \
336 $(OBJDIR)\options.obj \
337 $(OBJDIR)\readconf.obj \
338 $(OBJDIR)\tpath.obj \
339 $(OBJDIR)\wrbuf.obj \
340 $(OBJDIR)\xmalloc.obj \
341 $(OBJDIR)\matchstr.obj \
342 $(OBJDIR)\siconv.obj \
346 $(OBJDIR)\diagbib1.obj \
348 $(OBJDIR)\logrpn.obj \
349 $(OBJDIR)\pquery.obj \
350 $(OBJDIR)\yaz-ccl.obj \
351 $(OBJDIR)\otherinfo.obj \
352 $(OBJDIR)\sortspec.obj \
353 $(OBJDIR)\z3950oid.obj \
354 $(OBJDIR)\charneg.obj \
355 $(OBJDIR)\grs1disp.obj \
356 $(OBJDIR)\opacdisp.obj \
360 $(OBJDIR)\srwutil.obj \
361 $(OBJDIR)\zoom-c.obj \
362 $(OBJDIR)\zoom-opt.obj \
363 $(OBJDIR)\initopt.obj
366 $(OBJDIR)\z-date.obj\
367 $(OBJDIR)\z-univ.obj\
368 $(OBJDIR)\zes-update.obj\
369 $(OBJDIR)\zes-admin.obj \
370 $(OBJDIR)\z-accdes1.obj \
371 $(OBJDIR)\z-accform1.obj \
372 $(OBJDIR)\z-acckrb1.obj \
373 $(OBJDIR)\z-core.obj \
374 $(OBJDIR)\z-diag1.obj \
375 $(OBJDIR)\z-espec1.obj \
376 $(OBJDIR)\z-estask.obj \
377 $(OBJDIR)\z-exp.obj \
378 $(OBJDIR)\z-grs.obj \
379 $(OBJDIR)\z-opac.obj \
380 $(OBJDIR)\z-uifr1.obj \
381 $(OBJDIR)\z-rrf1.obj \
382 $(OBJDIR)\z-rrf2.obj \
383 $(OBJDIR)\z-sum.obj \
384 $(OBJDIR)\z-sutrs.obj \
385 $(OBJDIR)\zes-expi.obj \
386 $(OBJDIR)\zes-exps.obj \
387 $(OBJDIR)\zes-order.obj \
388 $(OBJDIR)\zes-pquery.obj \
389 $(OBJDIR)\zes-psched.obj \
390 $(OBJDIR)\zes-pset.obj \
391 $(OBJDIR)\zes-update0.obj \
392 $(OBJDIR)\prt-ext.obj \
393 $(OBJDIR)\z-charneg.obj \
394 $(OBJDIR)\z-mterm2.obj \
395 $(OBJDIR)\z-oclcui.obj
398 $(OBJDIR)\ill-get.obj\
399 $(OBJDIR)\ill-core.obj\
400 $(OBJDIR)\item-req.obj
404 $(OBJDIR)\cqlstdio.obj \
405 $(OBJDIR)\cqlstring.obj \
406 $(OBJDIR)\cqltransform.obj \
407 $(OBJDIR)\cqlutil.obj \
408 $(OBJDIR)\cqlstrer.obj \
409 $(OBJDIR)\xcqlutil.obj
414 $(YAZ_COMSTACK_OBJS) \
422 DLL_OBJS= $(YAZ_OBJS)
424 ###########################################################
425 ############### Generated C and H files
427 ######################################################
429 Z3950_C_DIR=$(SRCDIR)
431 #!!! Should be moved to OBJ, but that requires too much trickery
433 # Files generated from datetime.asn
434 DATETIME_H_FILES = $(INCLDIR)\yaz\z-date.h
435 DATETIME_C_FILES = $(Z3950_C_DIR)\z-date.c
437 # Files generated from univres.asn
438 UNIVRES_H_FILES = $(INCLDIR)\yaz\z-univ.h
439 UNIVRES_C_FILES = $(Z3950_C_DIR)\z-univ.c
441 # Files generated from esupdate.asn
442 ESUPDATE_H_FILES = $(INCLDIR)\yaz\zes-update.h
443 ESUPDATE_C_FILES = $(Z3950_C_DIR)\zes-update.c
445 # Files generated from esadmin.asn
446 ESADMIN_H_FILES = $(INCLDIR)\yaz\zes-admin.h
447 ESADMIN_C_FILES = $(Z3950_C_DIR)\zes-admin.c
449 # Files generated from esadmin.asn
450 CHARNEG_H_FILES = $(INCLDIR)\yaz\z-charneg.h
451 CHARNEG_C_FILES = $(Z3950_C_DIR)\z-charneg.c
453 # Files generated from mterm2.asn
454 MTERM2_H_FILES = $(INCLDIR)\yaz\z-mterm2.h
455 MTERM2_C_FILES = $(Z3950_C_DIR)\z-mterm2.c
457 # Files generated from mterm2.asn
458 OCLCUI_H_FILES = $(INCLDIR)\yaz\z-oclcui.h
459 OCLCUI_C_FILES = $(Z3950_C_DIR)\z-oclcui.c
461 # Files created from z3950v3.asn
463 $(INCLDIR)\yaz\z-accdes1.h \
464 $(INCLDIR)\yaz\z-core.h
467 $(Z3950_C_DIR)\z-accdes1.c \
468 $(Z3950_C_DIR)\z-accform1.c \
469 $(Z3950_C_DIR)\z-acckrb1.c \
470 $(Z3950_C_DIR)\z-core.c \
471 $(Z3950_C_DIR)\z-diag1.c \
472 $(Z3950_C_DIR)\z-espec1.c \
473 $(Z3950_C_DIR)\z-estask.c \
474 $(Z3950_C_DIR)\z-exp.c \
475 $(Z3950_C_DIR)\z-grs.c \
476 $(Z3950_C_DIR)\z-opac.c \
477 $(Z3950_C_DIR)\z-uifr1.c \
478 $(Z3950_C_DIR)\z-rrf1.c \
479 $(Z3950_C_DIR)\z-rrf2.c \
480 $(Z3950_C_DIR)\z-sum.c \
481 $(Z3950_C_DIR)\z-sutrs.c \
482 $(Z3950_C_DIR)\zes-expi.c \
483 $(Z3950_C_DIR)\zes-exps.c \
484 $(Z3950_C_DIR)\zes-order.c \
485 $(Z3950_C_DIR)\zes-pquery.c \
486 $(Z3950_C_DIR)\zes-psched.c \
487 $(Z3950_C_DIR)\zes-pset.c \
488 $(Z3950_C_DIR)\zes-update0.c
490 # Files generated from ill9702.asn
492 $(INCLDIR)\yaz\ill-core.h
495 $(ILL_C_DIR)\ill-core.c
497 # Files generated from itemreq.asn
499 $(INCLDIR)\yaz\item-req.h
502 $(ILL_C_DIR)\item-req.c
505 DATETIME_FILES = $(DATETIME_H_FILES) $(DATETIME_C_FILES)
506 UNIVRES_FILES = $(UNIVRES_H_FILES) $(UNIVRES_C_FILES)
507 ESUPDATE_FILES = $(ESUPDATE_H_FILES) $(ESUPDATE_C_FILES)
508 ESADMIN_FILES = $(ESADMIN_H_FILES) $(ESADMIN_C_FILES)
509 Z3950V3_FILES= $(Z3950V3_C_FILES) $(Z3950V3_H_FILES)
510 ILL_CORE_FILES= $(ILL_CORE_C_FILES) $(ILL_CORE_H_FILES)
511 ITEM_REQ_FILES= $(ITEM_REQ_C_FILES) $(ITEM_REQ_H_FILES)
512 CHARNEG_FILES = $(CHARNEG_C_FILES) $(CHARNEG_H_FILES)
513 MTERM2_FILES = $(MTERM2_C_FILES) $(MTERM2_H_FILES)
514 OCLCUI_FILES = $(OCLCUI_C_FILES) $(OCLCUI_H_FILES)
518 $(ESUPDATE_C_FILES) \
520 $(DATETIME_C_FILES) \
528 $(ESUPDATE_H_FILES) \
530 $(DATETIME_H_FILES) \
537 $(GENERATED_H_FILES) \
538 $(GENERATED_C_FILES) \
540 ###########################################################
541 ############### Compiling
542 ###########################################################
544 # Note: This defines where to look for the necessary
545 # source files. Funny way of doing it, but it works.
548 {$(CLIENTDIR)}.c{$(OBJDIR)}.obj:
549 @$(CPP) $(COPT) $< /D"_CONSOLE"
552 {$(ZTESTDIR)}.c{$(OBJDIR)}.obj:
553 @$(CPP) $(COPT) $< /D"_CONSOLE"
556 {$(SERVERDIR)}.c{$(OBJDIR)}.obj:
559 # Various YAZ source directories
560 {$(SRCDIR)}.c{$(OBJDIR)}.obj:
563 {$(ZOOMDIR)}.c{$(OBJDIR)}.obj:
566 {$(UTILDIR)}.c{$(OBJDIR)}.obj:
569 ############### ASN-generated files
573 $(Z3950V3_FILES): $(SRCDIR)\z3950v3.asn
575 $(TCL) $(TCLOPT) -d z.tcl z3950v3.asn
578 $(DATETIME_FILES): $(SRCDIR)\datetime.asn
580 $(TCL) $(TCLOPT) -d z.tcl datetime.asn
583 $(UNIVRES_FILES): $(SRCDIR)\univres.asn
585 $(TCL) $(TCLOPT) -d z.tcl univres.asn
588 $(ESUPDATE_FILES): $(SRCDIR)\esupdate.asn
590 $(TCL) $(TCLOPT) -d z.tcl esupdate.asn
593 $(ESADMIN_FILES): $(SRCDIR)\esadmin.asn
595 $(TCL) $(TCLOPT) -d z.tcl esadmin.asn
598 $(CHARNEG_FILES): $(SRCDIR)\charneg-3.asn
600 $(TCL) $(TCLOPT) -d z.tcl charneg-3.asn
603 $(MTERM2_FILES): $(SRCDIR)\mterm2.asn
605 $(TCL) $(TCLOPT) -d z.tcl mterm2.asn
608 $(OCLCUI_FILES): $(SRCDIR)\oclcui.asn
610 $(TCL) $(TCLOPT) -d z.tcl oclcui.asn
613 $(ILL_CORE_FILES): $(SRCDIR)\ill9702.asn
615 $(TCL) $(TCLOPT) -d ill.tcl ill9702.asn
618 $(ITEM_REQ_FILES): $(SRCDIR)\item-req.asn
620 $(TCL) $(TCLOPT) -d ill.tcl item-req.asn
623 $(SRCDIR)\marc8.c: $(SRCDIR)\charconv.sgm $(SRCDIR)\codetables.xml $(SRCDIR)\charconv.tcl
625 $(TCL) charconv.tcl -O 1 -p marc8 charconv.sgm codetables.xml -o marc8.c
630 $(SRCDIR)\cql.c: $(SRCDIR)\cql.y
632 $(BISON) -y -p cql_ -o cql.c cql.y
636 ###########################################################
637 ############### Resources
638 ###########################################################
640 ### The RC compiler (resource files)
642 COMMON_RC_OPTIONS= /l 0x406 /i"$(ROOTDIR)"
643 DEBUG_RC_OPTIONS=/d "_DEBUG"
644 RELEASE_RC_OPTIONS=/d "NDEBUG"
646 YAZ_RES=$(OBJDIR)\yaz.res
647 YAZ_RC=$(WINDIR)\yaz.rc
655 $(YAZ_RES): $(YAZ_RC)
656 $(RSC) $(RSOPT) /fo"$(YAZ_RES)" $(YAZ_RC)
658 ###########################################################
659 ############### Linking
660 ###########################################################
662 $(DLL) $(IMPLIB): "$(BINDIR)" $(DLL_OBJS) $(YAZ_RES)
663 @echo Linking the dll $(DLL)
671 /implib:"$(LIBDIR)\yaz.lib"
672 /map:"$(LIBDIR)\yaz.map"
675 $(CLIENT) : "$(BINDIR)" $(YAZ_CLIENT_OBJS)
676 @echo Linking $(CLIENT)
679 $(CLIENT_LINK_OPTIONS)
683 /map:"$(LIBDIR)\yaz-client.map"
687 $(ZOOMSH) : "$(BINDIR)" $(YAZ_ZOOMSH_OBJS)
688 @echo Linking $(ZOOMSH)
691 $(CLIENT_LINK_OPTIONS)
695 /map:"$(LIBDIR)\zoomsh.map"
699 $(ZOOMTST1) : "$(BINDIR)" $(YAZ_ZOOMTST1_OBJS)
700 @echo Linking $(ZOOMTST1)
703 $(CLIENT_LINK_OPTIONS)
707 /map:"$(LIBDIR)\zoomtst1.map"
711 $(ZOOMTST2) : "$(BINDIR)" $(YAZ_ZOOMTST2_OBJS)
712 @echo Linking $(ZOOMTST2)
715 $(CLIENT_LINK_OPTIONS)
719 /map:"$(LIBDIR)\zoomtst2.map"
723 $(ZOOMTST3) : "$(BINDIR)" $(YAZ_ZOOMTST3_OBJS)
724 @echo Linking $(ZOOMTST3)
727 $(CLIENT_LINK_OPTIONS)
731 /map:"$(LIBDIR)\zoomtst3.map"
735 $(ZOOMTST4) : "$(BINDIR)" $(YAZ_ZOOMTST4_OBJS)
736 @echo Linking $(ZOOMTST4)
739 $(CLIENT_LINK_OPTIONS)
743 /map:"$(LIBDIR)\zoomtst4.map"
747 $(ZOOMTST5) : "$(BINDIR)" $(YAZ_ZOOMTST5_OBJS)
748 @echo Linking $(ZOOMTST5)
751 $(CLIENT_LINK_OPTIONS)
755 /map:"$(LIBDIR)\zoomtst5.map"
759 $(ZOOMTST6) : "$(BINDIR)" $(YAZ_ZOOMTST6_OBJS)
760 @echo Linking $(ZOOMTST6)
763 $(CLIENT_LINK_OPTIONS)
767 /map:"$(LIBDIR)\zoomtst6.map"
771 $(ZOOMTST7) : "$(BINDIR)" $(YAZ_ZOOMTST7_OBJS)
772 @echo Linking $(ZOOMTST7)
775 $(CLIENT_LINK_OPTIONS)
779 /map:"$(LIBDIR)\zoomtst7.map"
783 $(ZOOMTST8) : "$(BINDIR)" $(YAZ_ZOOMTST8_OBJS)
784 @echo Linking $(ZOOMTST8)
787 $(CLIENT_LINK_OPTIONS)
791 /map:"$(LIBDIR)\zoomtst8.map"
795 $(CQL2PQF) : "$(BINDIR)" $(YAZ_CQL2PQF_OBJS)
796 @echo Linking $(CQL2PQF)
799 $(CLIENT_LINK_OPTIONS)
803 /map:"$(LIBDIR)\cql2pqf.map"
807 $(CQL2XCQL) : "$(BINDIR)" $(YAZ_CQL2XCQL_OBJS)
808 @echo Linking $(CQL2XCQL)
811 $(CLIENT_LINK_OPTIONS)
815 /map:"$(LIBDIR)\cql2xcql.map"
819 $(ZTEST) : "$(BINDIR)" $(ZTEST_OBJS) $(DLL)
820 @echo Linking $(ZTEST)
823 $(ZTEST_LINK_OPTIONS)
828 /implib:"$(LIBDIR)\yaz-ztest.lib"
829 /map:"$(LIBDIR)\yaz-ztest.map"
833 $(YAZ_MARCDUMP) : "$(BINDIR)" $(YAZ_MARCDUMP_OBJS) $(DLL)
834 @echo Linking $(YAZ_MARCDUMP)
837 $(CLIENT_LINK_OPTIONS)
842 /map:"$(LIBDIR)\yaz-marcdump.map"
847 # note that this links a lib, so it uses completely different options.
849 ###########################################################
850 ############### Special operations
851 ###########################################################
864 -del $(SRCDIR)\marc8.c
867 -del $(SRCDIR)\ill-core.c
868 -del $(SRCDIR)\item-req.c
869 -del $(INCLDIR)\yaz\ill-core.h
870 -del $(INCLDIR)\yaz\item-req.h
871 -del $(INCLDIR)\yaz\z-accdes1.h
872 -del $(INCLDIR)\yaz\z-core.h
873 -del $(DATETIME_H_FILES)
874 -del $(UNIVRES_H_FILES)
875 -del $(ESUPDATE_H_FILES)
877 # Because DOS del will only accept one file name to delete,
878 # the _H_ files work only on sets that have just one file.
879 # Z3950_H_FILES had to be spelled out. One more point for MS!
881 ########### check directories and create if needed
882 dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)
884 $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR):
885 if not exist "$@/$(NUL)" mkdir "$@"
888 ###########################################################
889 ############### Explicit dependencies
890 ###########################################################
892 # force recompilation of everything, if makefile changed
894 $(Z3950_OBJS): $(GENERATED_C_FILES) $(GENERATED_H_FILES)
896 $(ILL_OBJS): $(ILL_CORE_FILES) $(ITEM_REQ_FILES)
898 # makes sure we generate before compiling anything, as the
899 # new proto.h refers to the generated files, and is included