1 # Copyright (C) 1995-2007, Index Data ApS
3 # $Id: makefile,v 1.138 2007-11-09 16:46:43 adam Exp $
6 # Heikki Levanto & Adam Dickmeiss
10 DEBUG=0 # 0 for release, 1 for debug
14 TCL="C:\Tcl\bin\tclsh84.exe"
15 #TCL="C:\Program Files\Tcl\bin\tclsh83.exe"
18 # iconv charcter conversion utility
20 ICONV_DIR = c:\iconv-1.9.2.win32
24 LIBXSLT_DIR=c:\libxslt-1.1.19.win32
28 LIBXML2_DIR=c:\libxml2-2.6.28.win32
30 # zlib compression (used by libxml2)
31 ZLIB_DIR = c:\zlib-1.2.3.win32
33 # get WIN32 binaries libxml2 & iconv & zlib from here:
34 # http://www.zlatkovic.com/libxml.en.html
42 all: dirs generate dll client ztest zoomsh utilprog testprog iconv libxml2 libxslt
44 NSIS="c:\program files\nsis\makensis.exe"
45 HHC="c:\program files\html help workshop\hhc.exe"
59 generate: generated_files
62 # The current directory is supposed to be something like
63 # ..../yaz/win, everything is relative to that
64 ROOTDIR=.. # The home of yaz
66 INCLDIR=$(ROOTDIR)\include # our includes
67 LIBDIR=$(ROOTDIR)\lib # We produce .lib, .exp etc there
68 BINDIR=$(ROOTDIR)\bin # We produce exes and dlls there
69 WINDIR=$(ROOTDIR)\win # all these Win make things
70 SRCDIR=$(ROOTDIR)\src # for the case we move them under src
71 DOCDIR=$(ROOTDIR)\doc # where the doc is
73 # where we store intermediate files
80 CLIENTDIR=$(ROOTDIR)\CLIENT
81 ZTESTDIR=$(ROOTDIR)\ZTEST
82 ZOOMDIR=$(ROOTDIR)\ZOOM
83 UTILDIR=$(ROOTDIR)\UTIL
84 TESTDIR=$(ROOTDIR)\TEST
86 TMPDIR=$(ROOTDIR)\win\tmp
89 # Targets - what to make
92 DLL=$(BINDIR)\yaz3d.dll
93 YAZ_IMPLIB=$(LIBDIR)\yaz3d.lib
95 DLL=$(BINDIR)\yaz3.dll
96 YAZ_IMPLIB=$(LIBDIR)\yaz3.lib
99 CLIENT=$(BINDIR)\yaz-client.exe
100 ZOOMSH=$(BINDIR)\zoomsh.exe
101 ZTEST=$(BINDIR)\yaz-ztest.exe
103 ZOOMTST1=$(BINDIR)\zoomtst1.exe
104 ZOOMTST2=$(BINDIR)\zoomtst2.exe
105 ZOOMTST3=$(BINDIR)\zoomtst3.exe
106 ZOOMTST4=$(BINDIR)\zoomtst4.exe
107 ZOOMTST5=$(BINDIR)\zoomtst5.exe
108 ZOOMTST6=$(BINDIR)\zoomtst6.exe
109 ZOOMTST7=$(BINDIR)\zoomtst7.exe
110 ZOOMTST8=$(BINDIR)\zoomtst8.exe
111 ZOOMTST9=$(BINDIR)\zoomtst9.exe
112 ZOOMTST10=$(BINDIR)\zoomtst10.exe
114 CQL2PQF=$(BINDIR)\cql2pqf.exe
115 CQL2XCQL=$(BINDIR)\cql2xcql.exe
116 YAZ_MARCDUMP=$(BINDIR)\yaz-marcdump.exe
118 TSTLOG=$(BINDIR)\tstlog.exe
119 TST_TIMING=$(BINDIR)\tst_timing.exe
121 # shortcut names defined here
122 dll: dirs generate $(DLL)
123 client: dirs generate $(CLIENT)
124 ztest: dirs generate $(ZTEST)
126 zoomsh: $(ZOOMSH) $(ZOOMTST1) $(ZOOMTST2) $(ZOOMTST3) \
127 $(ZOOMTST4) $(ZOOMTST5) $(ZOOMTST6) $(ZOOMTST7) $(ZOOMTST8) $(ZOOMTST9) \
130 utilprog: $(CQL2PQF) $(CQL2XCQL) $(YAZ_MARCDUMP)
132 testprog: $(TSTLOG) $(TST_TIMING)
134 htmlhelp: $(DOCDIR)\htmlhelp.chm
136 # Modules and conditional flags, etc
141 /I"$(ICONV_DIR)\include"
143 "$(ICONV_DIR)\lib\iconv.lib"
144 iconv: $(BINDIR)\iconv.dll
147 copy "$(ICONV_DIR)\bin\iconv.dll" $(BINDIR)
157 LIBXML2_LIB="$(LIBXML2_DIR)\lib\libxml2.lib"
158 LIBXML2_DEF=/D YAZ_HAVE_XML2=1 /I"$(LIBXML2_DIR)\include"
159 libxml2: $(BINDIR)\libxml2.dll $(BINDIR)\zlib1.dll
161 $(BINDIR)\libxml2.dll:
162 copy "$(LIBXML2_DIR)\bin\libxml2.dll" $(BINDIR)
165 copy "$(ZLIB_DIR)\bin\zlib1.dll" $(BINDIR)
169 LIBXML2_DEF=/D YAZ_HAVE_XML2=0
175 LIBXSLT_LIB="$(LIBXSLT_DIR)\lib\libxslt.lib"
177 /D HAVE_XSLTSAVERESULTTOSTRING=1 \
179 /I"$(LIBXSLT_DIR)\include"
180 libxslt: $(BINDIR)\libxslt.dll
182 $(BINDIR)\libxslt.dll:
183 copy "$(LIBXSLT_DIR)\bin\libxslt.dll" $(BINDIR)
187 LIBXSLT_DEF=/D YAZ_HAVE_XSLT=0
192 ### C and CPP compiler (the same thing)
193 # Note: $(CPP) has already been defined in the environment
194 # (if you set things up right!)
197 /nologo /W3 /EHsc /FD /c \
201 /D "_CRT_SECURE_NO_DEPRECATE" \
202 /D "_CRT_NONSTDC_NO_DEPRECATE" \
210 /I"$(ROOTDIR)\include"
220 # /W3 = warning level
221 # /GX = Enable exception handling
222 # /FD = Generate file dependencies (what ever they are)
223 # /c = compile without linking
224 # /FR = Generate browse info (.sbr file that gets combined into .bsc)
225 # /Fo = object file name (or at least path)
226 # /Fd = debug database name (or path)
227 # /MD = Runtime library: Multithread DLL
228 # /MDd = Runtime library: Multithread DLL (debug)
229 # /Od = Disable optimising (debug)
230 # /O2 = Optimize for speed
231 # /Gm = Minimal rebuild (some cpp class stuff)
232 # /Zi = Program database for debuggers
233 # /ZI = Pgm database with special "edit&continue" stuff - not available in C5
245 LINK_LIBS= kernel32.lib wsock32.lib advapi32.lib \
246 $(ICONV_LIB) $(LIBXML2_LIB) $(LIBXSLT_LIB)
248 COMMON_LNK_OPTIONS= /nologo /subsystem:windows /machine:i386 /incremental:no
250 DEBUG_LNK_OPTIONS= /debug
254 DLL_LINK_OPTIONS= /dll
255 CLIENT_LINK_OPTIONS = /subsystem:console
257 COMMON_TCL_OPTIONS= ..\util\yaz-asncomp -I$(INCLDIR) -i yaz
259 # Final opt variables
261 COPT= $(COMMON_C_OPTIONS) $(DEBUG_C_OPTIONS) $(COMMON_C_INCLUDES)
262 MTLOPT= $(COMMON_MTL_OPTIONS) $(DEBUG_MTL_OPTIONS)
263 RCOPT= $(COMMON_RC_OPTIONS) $(DEBUG_RC_OPTIONS)
264 LNKOPT= $(COMMON_LNK_OPTIONS) $(DEBUG_LNK_OPTIONS) $(LNK_LIBS)
265 TCLOPT= $(COMMON_TCL_OPTIONS)
268 COPT= $(COMMON_C_OPTIONS) $(RELEASE_C_OPTIONS) $(COMMON_C_INCLUDES)
269 MTLOPT= $(COMMON_MTL_OPTIONS) $(RELEASE_MTL_OPTIONS)
270 RCOPT= $(COMMON_RC_OPTIONS) $(RELEASE_RC_OPTIONS)
271 LNKOPT= $(COMMON_LNK_OPTIONS) $(RELEASE_LNK_OPTIONS) $(LNK_LIBS)
272 TCLOPT= $(COMMON_TCL_OPTIONS)
275 LINK_PROGRAM = $(LINK) $(LNKOPT) \
276 $(CLIENT_LINK_OPTIONS) $(LINK_LIBS) $(YAZ_IMPLIB)
278 LINK_DLL = $(LINK) $(LNKOPT) \
279 $(LINK_LIBS) $(DLL_LINK_OPTIONS)
281 # Source and object modules
283 # Note: Ordinary source files are not specified here at
284 # all, make finds them in suitable dirs. The object modules
285 # need to be specified, though
288 $(OBJDIR)\client.obj \
289 $(OBJDIR)\tabcomplete.obj \
290 $(OBJDIR)\admin.obj \
291 $(OBJDIR)\fhistory.obj
294 $(OBJDIR)\read-marc.obj \
295 $(OBJDIR)\read-grs.obj \
301 YAZ_ZOOMTST1_OBJS = \
302 $(OBJDIR)\zoomtst1.obj
303 YAZ_ZOOMTST2_OBJS = \
304 $(OBJDIR)\zoomtst2.obj
305 YAZ_ZOOMTST3_OBJS = \
306 $(OBJDIR)\zoomtst3.obj
307 YAZ_ZOOMTST4_OBJS = \
308 $(OBJDIR)\zoomtst4.obj
309 YAZ_ZOOMTST5_OBJS = \
310 $(OBJDIR)\zoomtst5.obj
311 YAZ_ZOOMTST6_OBJS = \
312 $(OBJDIR)\zoomtst6.obj
313 YAZ_ZOOMTST7_OBJS = \
314 $(OBJDIR)\zoomtst7.obj
315 YAZ_ZOOMTST8_OBJS = \
316 $(OBJDIR)\zoomtst8.obj
317 YAZ_ZOOMTST9_OBJS = \
318 $(OBJDIR)\zoomtst9.obj
319 YAZ_ZOOMTST10_OBJS = \
320 $(OBJDIR)\zoomtst10.obj
323 $(OBJDIR)\cql2pqf.obj
324 YAZ_CQL2XCQL_OBJS = \
325 $(OBJDIR)\cql2xcql.obj
326 YAZ_MARCDUMP_OBJS = \
327 $(OBJDIR)\marcdump.obj
333 $(OBJDIR)\tst_timing.obj
336 $(OBJDIR)\version.obj \
337 $(OBJDIR)\oid_std.obj \
338 $(OBJDIR)\eventl.obj \
339 $(OBJDIR)\requestq.obj \
340 $(OBJDIR)\service.obj \
341 $(OBJDIR)\seshigh.obj \
342 $(OBJDIR)\statserv.obj \
343 $(OBJDIR)\tcpdchk.obj \
344 $(OBJDIR)\cclerrms.obj \
345 $(OBJDIR)\cclfind.obj \
346 $(OBJDIR)\cclptree.obj \
347 $(OBJDIR)\cclqfile.obj \
348 $(OBJDIR)\cclqual.obj \
349 $(OBJDIR)\cclstr.obj \
350 $(OBJDIR)\ccltoken.obj \
351 $(OBJDIR)\ccl_stop_words.obj \
352 $(OBJDIR)\comstack.obj \
353 $(OBJDIR)\tcpip.obj \
354 $(OBJDIR)\waislen.obj \
355 $(OBJDIR)\ber_any.obj \
356 $(OBJDIR)\ber_bit.obj \
357 $(OBJDIR)\ber_bool.obj \
358 $(OBJDIR)\ber_int.obj \
359 $(OBJDIR)\ber_len.obj \
360 $(OBJDIR)\ber_null.obj \
361 $(OBJDIR)\ber_oct.obj \
362 $(OBJDIR)\ber_oid.obj \
363 $(OBJDIR)\ber_tag.obj \
364 $(OBJDIR)\dumpber.obj \
366 $(OBJDIR)\odr_any.obj \
367 $(OBJDIR)\odr_bit.obj \
368 $(OBJDIR)\odr_bool.obj \
369 $(OBJDIR)\odr_choice.obj \
370 $(OBJDIR)\odr_cons.obj \
371 $(OBJDIR)\odr_enum.obj \
372 $(OBJDIR)\odr_int.obj \
373 $(OBJDIR)\odr_mem.obj \
374 $(OBJDIR)\odr_null.obj \
375 $(OBJDIR)\odr_oct.obj \
376 $(OBJDIR)\odr_oid.obj \
377 $(OBJDIR)\odr_seq.obj \
378 $(OBJDIR)\odr_tag.obj \
379 $(OBJDIR)\odr_use.obj \
380 $(OBJDIR)\odr_util.obj \
381 $(OBJDIR)\atoin.obj \
383 $(OBJDIR)\marcdisp.obj \
384 $(OBJDIR)\marc_read_xml.obj \
385 $(OBJDIR)\marc_read_iso2709.obj \
386 $(OBJDIR)\marc_read_line.obj \
388 $(OBJDIR)\nmemsdup.obj \
389 $(OBJDIR)\oid_db.obj \
390 $(OBJDIR)\oid_util.obj \
391 $(OBJDIR)\options.obj \
392 $(OBJDIR)\readconf.obj \
393 $(OBJDIR)\tpath.obj \
394 $(OBJDIR)\wrbuf.obj \
395 $(OBJDIR)\xmalloc.obj \
396 $(OBJDIR)\matchstr.obj \
397 $(OBJDIR)\siconv.obj \
398 $(OBJDIR)\snprintf.obj \
399 $(OBJDIR)\marc8.obj \
400 $(OBJDIR)\marc8r.obj \
401 $(OBJDIR)\record_conv.obj \
402 $(OBJDIR)\retrieval.obj \
403 $(OBJDIR)\libxml2_error.obj \
405 $(OBJDIR)\diagbib1.obj \
406 $(OBJDIR)\diagsru_update.obj \
407 $(OBJDIR)\diagsrw.obj \
408 $(OBJDIR)\diag-entry.obj \
410 $(OBJDIR)\logrpn.obj \
411 $(OBJDIR)\querytowrbuf.obj \
412 $(OBJDIR)\pquery.obj \
413 $(OBJDIR)\yaz-ccl.obj \
414 $(OBJDIR)\otherinfo.obj \
415 $(OBJDIR)\sortspec.obj \
416 $(OBJDIR)\charneg.obj \
417 $(OBJDIR)\grs1disp.obj \
418 $(OBJDIR)\opacdisp.obj \
422 $(OBJDIR)\srwutil.obj \
423 $(OBJDIR)\zoom-c.obj \
424 $(OBJDIR)\zoom-opt.obj \
425 $(OBJDIR)\zoom-socket.obj \
426 $(OBJDIR)\initopt.obj \
427 $(OBJDIR)\xmlquery.obj \
430 $(OBJDIR)\cqlstdio.obj \
431 $(OBJDIR)\cqlstring.obj \
432 $(OBJDIR)\cqltransform.obj \
433 $(OBJDIR)\cqlutil.obj \
434 $(OBJDIR)\cqlstrer.obj \
435 $(OBJDIR)\xcqlutil.obj \
436 $(OBJDIR)\elementset.obj \
437 $(OBJDIR)\timing.obj \
438 $(OBJDIR)\query-charset.obj \
439 $(OBJDIR)\tokenizer.obj \
440 $(OBJDIR)\copy_types.obj \
442 $(OBJDIR)\match_glob.obj \
446 $(OBJDIR)\z-date.obj\
447 $(OBJDIR)\z-univ.obj\
448 $(OBJDIR)\zes-update.obj\
449 $(OBJDIR)\zes-admin.obj \
450 $(OBJDIR)\z-accdes1.obj \
451 $(OBJDIR)\z-accform1.obj \
452 $(OBJDIR)\z-acckrb1.obj \
453 $(OBJDIR)\z-core.obj \
454 $(OBJDIR)\z-diag1.obj \
455 $(OBJDIR)\z-espec1.obj \
456 $(OBJDIR)\z-estask.obj \
457 $(OBJDIR)\z-exp.obj \
458 $(OBJDIR)\z-grs.obj \
459 $(OBJDIR)\z-opac.obj \
460 $(OBJDIR)\z-uifr1.obj \
461 $(OBJDIR)\z-rrf1.obj \
462 $(OBJDIR)\z-rrf2.obj \
463 $(OBJDIR)\z-sum.obj \
464 $(OBJDIR)\z-sutrs.obj \
465 $(OBJDIR)\zes-expi.obj \
466 $(OBJDIR)\zes-exps.obj \
467 $(OBJDIR)\zes-order.obj \
468 $(OBJDIR)\zes-pquery.obj \
469 $(OBJDIR)\zes-psched.obj \
470 $(OBJDIR)\zes-pset.obj \
471 $(OBJDIR)\zes-update0.obj \
472 $(OBJDIR)\prt-ext.obj \
473 $(OBJDIR)\z-charneg.obj \
474 $(OBJDIR)\z-mterm2.obj \
475 $(OBJDIR)\z-oclcui.obj
478 $(OBJDIR)\ill-get.obj\
479 $(OBJDIR)\ill-core.obj\
480 $(OBJDIR)\item-req.obj
487 # Generated C and H files
489 Z3950_C_DIR=$(SRCDIR)
491 #!!! Should be moved to OBJ, but that requires too much trickery
493 # Files generated from datetime.asn
494 DATETIME_H_FILES = $(INCLDIR)\yaz\z-date.h
495 DATETIME_C_FILES = $(Z3950_C_DIR)\z-date.c
497 # Files generated from univres.asn
498 UNIVRES_H_FILES = $(INCLDIR)\yaz\z-univ.h
499 UNIVRES_C_FILES = $(Z3950_C_DIR)\z-univ.c
501 # Files generated from esupdate.asn
502 ESUPDATE_H_FILES = $(INCLDIR)\yaz\zes-update.h
503 ESUPDATE_C_FILES = $(Z3950_C_DIR)\zes-update.c
505 # Files generated from esadmin.asn
506 ESADMIN_H_FILES = $(INCLDIR)\yaz\zes-admin.h
507 ESADMIN_C_FILES = $(Z3950_C_DIR)\zes-admin.c
509 # Files generated from esadmin.asn
510 CHARNEG_H_FILES = $(INCLDIR)\yaz\z-charneg.h
511 CHARNEG_C_FILES = $(Z3950_C_DIR)\z-charneg.c
513 # Files generated from mterm2.asn
514 MTERM2_H_FILES = $(INCLDIR)\yaz\z-mterm2.h
515 MTERM2_C_FILES = $(Z3950_C_DIR)\z-mterm2.c
517 # Files generated from mterm2.asn
518 OCLCUI_H_FILES = $(INCLDIR)\yaz\z-oclcui.h
519 OCLCUI_C_FILES = $(Z3950_C_DIR)\z-oclcui.c
521 # Files created from z3950v3.asn
523 $(INCLDIR)\yaz\z-accdes1.h \
524 $(INCLDIR)\yaz\z-core.h
527 $(Z3950_C_DIR)\z-accdes1.c \
528 $(Z3950_C_DIR)\z-accform1.c \
529 $(Z3950_C_DIR)\z-acckrb1.c \
530 $(Z3950_C_DIR)\z-core.c \
531 $(Z3950_C_DIR)\z-diag1.c \
532 $(Z3950_C_DIR)\z-espec1.c \
533 $(Z3950_C_DIR)\z-estask.c \
534 $(Z3950_C_DIR)\z-exp.c \
535 $(Z3950_C_DIR)\z-grs.c \
536 $(Z3950_C_DIR)\z-opac.c \
537 $(Z3950_C_DIR)\z-uifr1.c \
538 $(Z3950_C_DIR)\z-rrf1.c \
539 $(Z3950_C_DIR)\z-rrf2.c \
540 $(Z3950_C_DIR)\z-sum.c \
541 $(Z3950_C_DIR)\z-sutrs.c \
542 $(Z3950_C_DIR)\zes-expi.c \
543 $(Z3950_C_DIR)\zes-exps.c \
544 $(Z3950_C_DIR)\zes-order.c \
545 $(Z3950_C_DIR)\zes-pquery.c \
546 $(Z3950_C_DIR)\zes-psched.c \
547 $(Z3950_C_DIR)\zes-pset.c \
548 $(Z3950_C_DIR)\zes-update0.c
550 # Files generated from ill9702.asn
552 $(INCLDIR)\yaz\ill-core.h
555 $(ILL_C_DIR)\ill-core.c
557 # Files generated from itemreq.asn
559 $(INCLDIR)\yaz\item-req.h
562 $(ILL_C_DIR)\item-req.c
565 DATETIME_FILES = $(DATETIME_H_FILES) $(DATETIME_C_FILES)
566 UNIVRES_FILES = $(UNIVRES_H_FILES) $(UNIVRES_C_FILES)
567 ESUPDATE_FILES = $(ESUPDATE_H_FILES) $(ESUPDATE_C_FILES)
568 ESADMIN_FILES = $(ESADMIN_H_FILES) $(ESADMIN_C_FILES)
569 Z3950V3_FILES= $(Z3950V3_C_FILES) $(Z3950V3_H_FILES)
570 ILL_CORE_FILES= $(ILL_CORE_C_FILES) $(ILL_CORE_H_FILES)
571 ITEM_REQ_FILES= $(ITEM_REQ_C_FILES) $(ITEM_REQ_H_FILES)
572 CHARNEG_FILES = $(CHARNEG_C_FILES) $(CHARNEG_H_FILES)
573 MTERM2_FILES = $(MTERM2_C_FILES) $(MTERM2_H_FILES)
574 OCLCUI_FILES = $(OCLCUI_C_FILES) $(OCLCUI_H_FILES)
578 $(ESUPDATE_C_FILES) \
580 $(DATETIME_C_FILES) \
585 $(ILL_CORE_C_FILES) \
590 $(ESUPDATE_H_FILES) \
592 $(DATETIME_H_FILES) \
597 $(ILL_CORE_H_FILES) \
601 $(GENERATED_H_FILES) \
602 $(GENERATED_C_FILES) \
603 $(SRCDIR)\diagsrw.c \
604 $(SRCDIR)\diagbib1.c \
605 $(SRCDIR)\diagsru_update.c
609 # Note: This defines where to look for the necessary
610 # source files. Funny way of doing it, but it works.
613 {$(CLIENTDIR)}.c{$(OBJDIR)}.obj:
614 $(CPP) $(COPT) $< /D"_CONSOLE"
617 {$(ZTESTDIR)}.c{$(OBJDIR)}.obj:
618 $(CPP) $(COPT) $< /D"_CONSOLE"
621 {$(SERVERDIR)}.c{$(OBJDIR)}.obj:
624 # Various YAZ source directories
625 {$(SRCDIR)}.c{$(OBJDIR)}.obj:
626 $(CPP) $(COPT) /D"YAZ_DLL" $<
628 {$(ZOOMDIR)}.c{$(OBJDIR)}.obj:
631 {$(UTILDIR)}.c{$(OBJDIR)}.obj:
634 {$(TESTDIR)}.c{$(OBJDIR)}.obj:
637 # ASN-generated files
641 $(Z3950V3_FILES): $(SRCDIR)\z3950v3.asn
643 $(TCL) $(TCLOPT) -d z.tcl z3950v3.asn
646 $(DATETIME_FILES): $(SRCDIR)\datetime.asn
648 $(TCL) $(TCLOPT) -d z.tcl datetime.asn
651 $(UNIVRES_FILES): $(SRCDIR)\univres.asn
653 $(TCL) $(TCLOPT) -d z.tcl univres.asn
656 $(ESUPDATE_FILES): $(SRCDIR)\esupdate.asn
658 $(TCL) $(TCLOPT) -d z.tcl esupdate.asn
661 $(ESADMIN_FILES): $(SRCDIR)\esadmin.asn
663 $(TCL) $(TCLOPT) -d z.tcl esadmin.asn
666 $(CHARNEG_FILES): $(SRCDIR)\charneg-3.asn
668 $(TCL) $(TCLOPT) -d z.tcl charneg-3.asn
671 $(MTERM2_FILES): $(SRCDIR)\mterm2.asn
673 $(TCL) $(TCLOPT) -d z.tcl mterm2.asn
676 $(OCLCUI_FILES): $(SRCDIR)\oclcui.asn
678 $(TCL) $(TCLOPT) -d z.tcl oclcui.asn
681 $(ILL_CORE_FILES): $(SRCDIR)\ill9702.asn
683 $(TCL) $(TCLOPT) -d ill.tcl ill9702.asn
686 $(ITEM_REQ_FILES): $(SRCDIR)\item-req.asn
688 $(TCL) $(TCLOPT) -d ill.tcl item-req.asn
691 $(SRCDIR)\marc8.c: $(SRCDIR)\codetables.xml $(SRCDIR)\charconv.tcl
693 $(TCL) charconv.tcl -p marc8 codetables.xml -o marc8.c
695 $(SRCDIR)\marc8r.c: $(SRCDIR)\codetables.xml $(SRCDIR)\charconv.tcl
697 $(TCL) charconv.tcl -r -p marc8r codetables.xml -o marc8r.c
699 $(SRCDIR)\oid_std.c: $(SRCDIR)\oid.csv $(SRCDIR)\charconv.tcl
701 $(TCL) oidtoc.tcl $(SRCDIR) oid.csv oid_std.c oid_std.h
703 $(SRCDIR)\diagbib1.c: $(SRCDIR)\bib1.csv
705 $(TCL) csvtobib1.tcl $(SRCDIR)
707 $(SRCDIR)\diagsrw.c: $(SRCDIR)\srw.csv
709 $(TCL) csvtosrw.tcl $(SRCDIR)
711 $(SRCDIR)\diagsru_update.c: $(SRCDIR)\sru_update.csv
713 $(TCL) csvtosru_update.tcl $(SRCDIR)
718 $(SRCDIR)\cql.c: $(SRCDIR)\cql.y
720 $(BISON) -y -p cql_ -o cql.c cql.y
725 # The RC compiler (resource files)
727 COMMON_RC_OPTIONS= /l 0x406 /i"$(ROOTDIR)"
728 DEBUG_RC_OPTIONS=/d "_DEBUG"
729 RELEASE_RC_OPTIONS=/d "NDEBUG"
731 YAZ_RES=$(OBJDIR)\yaz.res
732 YAZ_RC=$(WINDIR)\yaz.rc
740 $(YAZ_RES): $(YAZ_RC)
741 $(RSC) $(RSOPT) /fo"$(YAZ_RES)" $(YAZ_RC)
745 $(DLL) $(YAZ_IMPLIB): "$(BINDIR)" $(DLL_OBJS) $(YAZ_RES)
750 /implib:"$(YAZ_IMPLIB)"
751 $(MT) -manifest $@.manifest -outputresource:$@;2
753 $(CLIENT) : "$(BINDIR)" $(YAZ_CLIENT_OBJS) $(DLL)
754 $(LINK_PROGRAM) $(YAZ_CLIENT_OBJS) /out:$@
755 $(MT) -manifest $@.manifest -outputresource:$@;1
757 $(ZOOMSH) : "$(BINDIR)" $(YAZ_ZOOMSH_OBJS) $(DLL)
758 $(LINK_PROGRAM) $(YAZ_ZOOMSH_OBJS) /out:$@
759 $(MT) -manifest $@.manifest -outputresource:$@;1
761 $(ZOOMTST1) : "$(BINDIR)" $(YAZ_ZOOMTST1_OBJS) $(DLL)
762 $(LINK_PROGRAM) $(YAZ_ZOOMTST1_OBJS) /out:$@
763 $(MT) -manifest $@.manifest -outputresource:$@;1
765 $(ZOOMTST2) : "$(BINDIR)" $(YAZ_ZOOMTST2_OBJS) $(DLL)
766 $(LINK_PROGRAM) $(YAZ_ZOOMTST2_OBJS) /out:$@
767 $(MT) -manifest $@.manifest -outputresource:$@;1
769 $(ZOOMTST3) : "$(BINDIR)" $(YAZ_ZOOMTST3_OBJS) $(DLL)
770 $(LINK_PROGRAM) $(YAZ_ZOOMTST3_OBJS) /out:$@
771 $(MT) -manifest $@.manifest -outputresource:$@;1
773 $(ZOOMTST4) : "$(BINDIR)" $(YAZ_ZOOMTST4_OBJS) $(DLL)
774 $(LINK_PROGRAM) $(YAZ_ZOOMTST4_OBJS) /out:$@
775 $(MT) -manifest $@.manifest -outputresource:$@;1
777 $(ZOOMTST5) : "$(BINDIR)" $(YAZ_ZOOMTST5_OBJS) $(DLL)
778 $(LINK_PROGRAM) $(YAZ_ZOOMTST5_OBJS) /out:$@
779 $(MT) -manifest $@.manifest -outputresource:$@;1
781 $(ZOOMTST6) : "$(BINDIR)" $(YAZ_ZOOMTST6_OBJS) $(DLL)
782 $(LINK_PROGRAM) $(YAZ_ZOOMTST6_OBJS) /out:$@
783 $(MT) -manifest $@.manifest -outputresource:$@;1
785 $(ZOOMTST7) : "$(BINDIR)" $(YAZ_ZOOMTST7_OBJS) $(DLL)
786 $(LINK_PROGRAM) $(YAZ_ZOOMTST7_OBJS) /out:$@
787 $(MT) -manifest $@.manifest -outputresource:$@;1
789 $(ZOOMTST8) : "$(BINDIR)" $(YAZ_ZOOMTST8_OBJS) $(DLL)
790 $(LINK_PROGRAM) $(YAZ_ZOOMTST8_OBJS) /out:$@
791 $(MT) -manifest $@.manifest -outputresource:$@;1
793 $(ZOOMTST9) : "$(BINDIR)" $(YAZ_ZOOMTST9_OBJS) $(DLL)
794 $(LINK_PROGRAM) $(YAZ_ZOOMTST9_OBJS) /out:$@
795 $(MT) -manifest $@.manifest -outputresource:$@;1
797 $(ZOOMTST10) : "$(BINDIR)" $(YAZ_ZOOMTST10_OBJS) $(DLL)
798 $(LINK_PROGRAM) $(YAZ_ZOOMTST10_OBJS) /out:$@
799 $(MT) -manifest $@.manifest -outputresource:$@;1
801 $(CQL2PQF) : "$(BINDIR)" $(YAZ_CQL2PQF_OBJS) $(DLL)
802 $(LINK_PROGRAM) $(YAZ_CQL2PQF_OBJS) /out:$@
803 $(MT) -manifest $@.manifest -outputresource:$@;1
805 $(CQL2XCQL) : "$(BINDIR)" $(YAZ_CQL2XCQL_OBJS) $(DLL)
806 $(LINK_PROGRAM) $(YAZ_CQL2XCQL_OBJS) /out:$@
807 $(MT) -manifest $@.manifest -outputresource:$@;1
809 $(ZTEST) : "$(BINDIR)" $(ZTEST_OBJS) $(DLL)
810 $(LINK_PROGRAM) $(ZTEST_OBJS) /out:$@
811 $(MT) -manifest $@.manifest -outputresource:$@;1
813 $(YAZ_MARCDUMP) : "$(BINDIR)" $(YAZ_MARCDUMP_OBJS) $(DLL)
814 $(LINK_PROGRAM) $(YAZ_MARCDUMP_OBJS) /out:$@
815 $(MT) -manifest $@.manifest -outputresource:$@;1
817 $(TSTLOG) : "$(BINDIR)" $(TSTLOG_OBJS) $(DLL)
818 $(LINK_PROGRAM) $(TSTLOG_OBJS) /out:$@
819 $(MT) -manifest $@.manifest -outputresource:$@;1
821 $(TST_TIMING) : "$(BINDIR)" $(TST_TIMING_OBJS) $(DLL)
822 $(LINK_PROGRAM) $(TST_TIMING_OBJS) /out:$@
823 $(MT) -manifest $@.manifest -outputresource:$@;1
827 $(DOCDIR)\htmlhelp.chm: $(DOCDIR)\htmlhelp.hhp
841 -del $(SRCDIR)\marc8.c
844 -del $(SRCDIR)\ill-core.c
845 -del $(SRCDIR)\item-req.c
846 -del $(INCLDIR)\yaz\ill-core.h
847 -del $(INCLDIR)\yaz\item-req.h
848 -del $(INCLDIR)\yaz\z-accdes1.h
849 -del $(INCLDIR)\yaz\z-core.h
850 -del $(DATETIME_H_FILES)
851 -del $(UNIVRES_H_FILES)
852 -del $(ESUPDATE_H_FILES)
854 # Because DOS del will only accept one file name to delete,
855 # the _H_ files work only on sets that have just one file.
856 # Z3950_H_FILES had to be spelled out. One more point for MS!
858 # check directories and create if needed
859 dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)
861 $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR):
862 if not exist "$@/$(NUL)" mkdir "$@"
865 # Explicit dependencies
867 # force recompilation of everything, if makefile changed
869 $(Z3950_OBJS): $(GENERATED_C_FILES) $(GENERATED_H_FILES)
871 $(ILL_OBJS): $(ILL_CORE_FILES) $(ITEM_REQ_FILES)
873 # makes sure we generate before compiling anything, as the
874 # new proto.h refers to the generated files, and is included