1 # This file is part of the YAZ toolkit.
2 # Copyright (C) 1995-2010 Index Data
6 DEBUG=0 # 0 for release, 1 for debug
10 TCL="C:\Tcl\bin\tclsh85.exe"
11 #TCL="C:\Program Files\Tcl\bin\tclsh83.exe"
14 # iconv charcter conversion utility
16 ICONV_DIR = c:\iconv-1.9.2.win32
18 # icu charcter conversion utility
19 # get icu libraries from http://www.icu-project.org
25 LIBXSLT_DIR=c:\libxslt-1.1.26.win32
29 LIBXML2_DIR=c:\libxml2-2.7.6.win32
31 # zlib compression (used by libxml2)
32 ZLIB_DIR = c:\zlib-1.2.3.win32
34 # get WIN32 binaries libxml2 & iconv & zlib from here:
35 # http://www.zlatkovic.com/libxml.en.html
43 all: dirs generate dll sc_test client ztest yazicu zoomsh utilprog testprog iconv icu libxml2 libxslt
45 NSIS="c:\program files\nsis\makensis.exe"
46 HHC="c:\program files\html help workshop\hhc.exe"
61 # The current directory is supposed to be something like
62 # ..../yaz/win, everything is relative to that
63 ROOTDIR=.. # The home of yaz
65 INCLDIR=$(ROOTDIR)\include # our includes
66 LIBDIR=$(ROOTDIR)\lib # We produce .lib, .exp etc there
67 BINDIR=$(ROOTDIR)\bin # We produce exes and dlls there
68 WINDIR=$(ROOTDIR)\win # all these Win make things
69 SRCDIR=$(ROOTDIR)\src # for the case we move them under src
70 DOCDIR=$(ROOTDIR)\doc # where the doc is
72 # where we store intermediate files
79 CLIENTDIR=$(ROOTDIR)\CLIENT
80 ZTESTDIR=$(ROOTDIR)\ZTEST
81 ZOOMDIR=$(ROOTDIR)\ZOOM
82 UTILDIR=$(ROOTDIR)\UTIL
83 TESTDIR=$(ROOTDIR)\TEST
85 TMPDIR=$(ROOTDIR)\win\tmp
88 # Targets - what to make
91 YAZ_DLL=$(BINDIR)\yaz4d.dll
92 YAZ_IMPLIB=$(LIBDIR)\yaz4d.lib
93 YAZ_ICU_DLL=$(BINDIR)\yaz_icu4d.dll
94 YAZ_ICU_IMPLIB=$(LIBDIR)\yaz_icu4d.lib
95 YAZ_COND_DLL=$(BINDIR)\yaz_cond4d.dll
96 YAZ_COND_IMPLIB=$(LIBDIR)\yaz_cond4d.lib
98 YAZ_DLL=$(BINDIR)\yaz4.dll
99 YAZ_IMPLIB=$(LIBDIR)\yaz4.lib
100 YAZ_ICU_DLL=$(BINDIR)\yaz_icu4.dll
101 YAZ_ICU_IMPLIB=$(LIBDIR)\yaz_icu4.lib
102 YAZ_COND_DLL=$(BINDIR)\yaz_cond4.dll
103 YAZ_COND_IMPLIB=$(LIBDIR)\yaz_cond4.lib
106 CLIENT=$(BINDIR)\yaz-client.exe
107 YAZ_ICU=$(BINDIR)\yaz-icu.exe
108 ZOOMSH=$(BINDIR)\zoomsh.exe
109 ZTEST=$(BINDIR)\yaz-ztest.exe
110 SC_TEST=$(BINDIR)\sc_test.exe
112 ZOOMTST1=$(BINDIR)\zoomtst1.exe
113 ZOOMTST2=$(BINDIR)\zoomtst2.exe
114 ZOOMTST3=$(BINDIR)\zoomtst3.exe
115 ZOOMTST4=$(BINDIR)\zoomtst4.exe
116 ZOOMTST5=$(BINDIR)\zoomtst5.exe
117 ZOOMTST6=$(BINDIR)\zoomtst6.exe
118 ZOOMTST7=$(BINDIR)\zoomtst7.exe
119 ZOOMTST8=$(BINDIR)\zoomtst8.exe
120 ZOOMTST9=$(BINDIR)\zoomtst9.exe
121 ZOOMTST10=$(BINDIR)\zoomtst10.exe
123 CQL2PQF=$(BINDIR)\cql2pqf.exe
124 CQL2XCQL=$(BINDIR)\cql2xcql.exe
125 YAZ_MARCDUMP=$(BINDIR)\yaz-marcdump.exe
127 TSTLOG=$(BINDIR)\test_log.exe
128 TST_TIMING=$(BINDIR)\test_timing.exe
129 TEST_MUTEX=$(BINDIR)\test_mutex.exe
131 # shortcut names defined here
132 dll: dirs generate $(YAZ_DLL) $(YAZ_COND_DLL)
133 client: dirs generate $(CLIENT)
134 ztest: dirs generate $(ZTEST)
138 zoomsh: $(ZOOMSH) $(ZOOMTST1) $(ZOOMTST2) $(ZOOMTST3) \
139 $(ZOOMTST4) $(ZOOMTST5) $(ZOOMTST6) $(ZOOMTST7) $(ZOOMTST8) $(ZOOMTST9) \
142 utilprog: $(CQL2PQF) $(CQL2XCQL) $(YAZ_MARCDUMP)
143 testprog: $(TSTLOG) $(TST_TIMING) $(TEST_MUTEX)
145 htmlhelp: $(DOCDIR)\htmlhelp.chm
147 # Modules and conditional flags, etc
152 /I"$(ICONV_DIR)\include"
154 "$(ICONV_DIR)\lib\iconv.lib"
155 iconv: $(BINDIR)\iconv.dll
158 copy "$(ICONV_DIR)\bin\iconv.dll" $(BINDIR)
167 ###TRYING ICU FLAGS HERE WORKS ####
168 ## ADAM ARE THESE FLAGS OK and the DLL sufficient ##
169 ##IT COMPILES AND SEEMS TO WORK
173 /D YAZ_HAVE_ICU=1 /D HAVE_ICU_H=1 \
174 /I"$(ICU_DIR)\include"
176 $(ICU_DIR)\lib\icudt.lib $(ICU_DIR)\lib\icuin.lib $(ICU_DIR)\lib\icuuc.lib
177 icu: $(BINDIR)\icudt42.dll $(BINDIR)\icuin42.dll $(BINDIR)\icuuc42.dll
178 yazicu: dirs generate $(YAZ_ICU)
180 $(BINDIR)\icudt42.dll:
181 copy "$(ICU_DIR)\bin\icudt42.dll" $(BINDIR)
182 $(BINDIR)\icuin42.dll:
183 copy "$(ICU_DIR)\bin\icuin42.dll" $(BINDIR)
184 $(BINDIR)\icuuc42.dll:
185 copy "$(ICU_DIR)\bin\icuuc42.dll" $(BINDIR)
197 LIBXML2_LIB="$(LIBXML2_DIR)\lib\libxml2.lib"
198 LIBXML2_DEF=/D YAZ_HAVE_XML2=1 /I"$(LIBXML2_DIR)\include"
199 libxml2: $(BINDIR)\libxml2.dll $(BINDIR)\zlib1.dll
201 $(BINDIR)\libxml2.dll:
202 copy "$(LIBXML2_DIR)\bin\libxml2.dll" $(BINDIR)
205 copy "$(ZLIB_DIR)\bin\zlib1.dll" $(BINDIR)
209 LIBXML2_DEF=/D YAZ_HAVE_XML2=0
215 LIBXSLT_LIB="$(LIBXSLT_DIR)\lib\libxslt.lib"
217 /D HAVE_XSLTSAVERESULTTOSTRING=1 \
219 /I"$(LIBXSLT_DIR)\include"
220 libxslt: $(BINDIR)\libxslt.dll
222 $(BINDIR)\libxslt.dll:
223 copy "$(LIBXSLT_DIR)\bin\libxslt.dll" $(BINDIR)
227 LIBXSLT_DEF=/D YAZ_HAVE_XSLT=0
232 ### C and CPP compiler (the same thing)
233 # Note: $(CPP) has already been defined in the environment
234 # (if you set things up right!)
237 /nologo /W3 /EHsc /FD /c \
242 /D "_CRT_SECURE_NO_DEPRECATE" \
243 /D "_CRT_NONSTDC_NO_DEPRECATE" \
251 /I"$(ROOTDIR)\include"
261 # /W3 = warning level
262 # /GX = Enable exception handling
263 # /FD = Generate file dependencies (what ever they are)
264 # /c = compile without linking
265 # /FR = Generate browse info (.sbr file that gets combined into .bsc)
266 # /Fo = object file name (or at least path)
267 # /Fd = debug database name (or path)
268 # /MD = Runtime library: Multithread DLL
269 # /MDd = Runtime library: Multithread DLL (debug)
270 # /Od = Disable optimising (debug)
271 # /O2 = Optimize for speed
272 # /Gm = Minimal rebuild (some cpp class stuff)
273 # /Zi = Program database for debuggers
274 # /ZI = Pgm database with special "edit&continue" stuff - not available in C5
286 LINK_LIBS= kernel32.lib ws2_32.lib advapi32.lib \
287 $(ICONV_LIB) $(LIBXML2_LIB) $(LIBXSLT_LIB)
289 COMMON_LNK_OPTIONS= /nologo /subsystem:windows /incremental:no
291 DEBUG_LNK_OPTIONS= /debug
295 DLL_LINK_OPTIONS= /dll
296 CLIENT_LINK_OPTIONS = /subsystem:console
298 COMMON_TCL_OPTIONS= ..\util\yaz-asncomp -I$(INCLDIR) -i yaz
300 # Final opt variables
302 COPT= $(COMMON_C_OPTIONS) $(DEBUG_C_OPTIONS) $(COMMON_C_INCLUDES)
303 LNKOPT= $(COMMON_LNK_OPTIONS) $(DEBUG_LNK_OPTIONS) $(LNK_LIBS)
304 TCLOPT= $(COMMON_TCL_OPTIONS)
307 COPT= $(COMMON_C_OPTIONS) $(RELEASE_C_OPTIONS) $(COMMON_C_INCLUDES)
308 LNKOPT= $(COMMON_LNK_OPTIONS) $(RELEASE_LNK_OPTIONS) $(LNK_LIBS)
309 TCLOPT= $(COMMON_TCL_OPTIONS)
312 LINK_PROGRAM = $(LINK) $(LNKOPT) \
313 $(CLIENT_LINK_OPTIONS) $(LINK_LIBS) $(YAZ_IMPLIB)
315 LINK_DLL = $(LINK) $(LNKOPT) \
316 $(LINK_LIBS) $(DLL_LINK_OPTIONS)
318 # Source and object modules
320 # Note: Ordinary source files are not specified here at
321 # all, make finds them in suitable dirs. The object modules
322 # need to be specified, though
325 $(OBJDIR)\client.obj \
326 $(OBJDIR)\tabcomplete.obj \
327 $(OBJDIR)\admin.obj \
328 $(OBJDIR)\fhistory.obj
330 YAZ_ICU_OBJS= $(OBJDIR)\yaz-icu.obj
331 COND_DLL_OBJS= $(OBJDIR)\condvar.obj
334 $(OBJDIR)\dummy-opac.obj \
335 $(OBJDIR)\read-marc.obj \
336 $(OBJDIR)\read-grs.obj \
340 $(OBJDIR)\sc_test.obj
345 YAZ_ZOOMTST1_OBJS = \
346 $(OBJDIR)\zoomtst1.obj
347 YAZ_ZOOMTST2_OBJS = \
348 $(OBJDIR)\zoomtst2.obj
349 YAZ_ZOOMTST3_OBJS = \
350 $(OBJDIR)\zoomtst3.obj
351 YAZ_ZOOMTST4_OBJS = \
352 $(OBJDIR)\zoomtst4.obj
353 YAZ_ZOOMTST5_OBJS = \
354 $(OBJDIR)\zoomtst5.obj
355 YAZ_ZOOMTST6_OBJS = \
356 $(OBJDIR)\zoomtst6.obj
357 YAZ_ZOOMTST7_OBJS = \
358 $(OBJDIR)\zoomtst7.obj
359 YAZ_ZOOMTST8_OBJS = \
360 $(OBJDIR)\zoomtst8.obj
361 YAZ_ZOOMTST9_OBJS = \
362 $(OBJDIR)\zoomtst9.obj
363 YAZ_ZOOMTST10_OBJS = \
364 $(OBJDIR)\zoomtst10.obj
367 $(OBJDIR)\cql2pqf.obj
368 YAZ_CQL2XCQL_OBJS = \
369 $(OBJDIR)\cql2xcql.obj
370 YAZ_MARCDUMP_OBJS = \
371 $(OBJDIR)\marcdump.obj
375 $(OBJDIR)\test_log.obj
378 $(OBJDIR)\test_timing.obj
381 $(OBJDIR)\test_mutex.obj
384 $(OBJDIR)\version.obj \
385 $(OBJDIR)\oid_std.obj \
386 $(OBJDIR)\eventl.obj \
387 $(OBJDIR)\requestq.obj \
388 $(OBJDIR)\seshigh.obj \
389 $(OBJDIR)\statserv.obj \
390 $(OBJDIR)\tcpdchk.obj \
391 $(OBJDIR)\cclerrms.obj \
392 $(OBJDIR)\cclfind.obj \
393 $(OBJDIR)\cclptree.obj \
394 $(OBJDIR)\cclqfile.obj \
395 $(OBJDIR)\cclqual.obj \
396 $(OBJDIR)\cclstr.obj \
397 $(OBJDIR)\ccltoken.obj \
398 $(OBJDIR)\ccl_stop_words.obj \
399 $(OBJDIR)\comstack.obj \
400 $(OBJDIR)\tcpip.obj \
401 $(OBJDIR)\waislen.obj \
402 $(OBJDIR)\ber_any.obj \
403 $(OBJDIR)\ber_bit.obj \
404 $(OBJDIR)\ber_bool.obj \
405 $(OBJDIR)\ber_int.obj \
406 $(OBJDIR)\ber_len.obj \
407 $(OBJDIR)\ber_null.obj \
408 $(OBJDIR)\ber_oct.obj \
409 $(OBJDIR)\ber_oid.obj \
410 $(OBJDIR)\ber_tag.obj \
411 $(OBJDIR)\dumpber.obj \
412 $(OBJDIR)\errno.obj \
414 $(OBJDIR)\odr_any.obj \
415 $(OBJDIR)\odr_bit.obj \
416 $(OBJDIR)\odr_bool.obj \
417 $(OBJDIR)\odr_choice.obj \
418 $(OBJDIR)\odr_cons.obj \
419 $(OBJDIR)\odr_enum.obj \
420 $(OBJDIR)\odr_int.obj \
421 $(OBJDIR)\odr_mem.obj \
422 $(OBJDIR)\odr_null.obj \
423 $(OBJDIR)\odr_oct.obj \
424 $(OBJDIR)\odr_oid.obj \
425 $(OBJDIR)\odr_seq.obj \
426 $(OBJDIR)\odr_tag.obj \
427 $(OBJDIR)\odr_use.obj \
428 $(OBJDIR)\odr_util.obj \
429 $(OBJDIR)\atoin.obj \
431 $(OBJDIR)\marcdisp.obj \
432 $(OBJDIR)\marc_read_xml.obj \
433 $(OBJDIR)\marc_read_iso2709.obj \
434 $(OBJDIR)\marc_read_line.obj \
436 $(OBJDIR)\nmemsdup.obj \
437 $(OBJDIR)\oid_db.obj \
438 $(OBJDIR)\oid_util.obj \
439 $(OBJDIR)\options.obj \
440 $(OBJDIR)\readconf.obj \
441 $(OBJDIR)\tpath.obj \
442 $(OBJDIR)\wrbuf.obj \
443 $(OBJDIR)\xmalloc.obj \
444 $(OBJDIR)\matchstr.obj \
445 $(OBJDIR)\siconv.obj \
446 $(OBJDIR)\iso5428.obj \
449 $(OBJDIR)\advancegreek.obj \
450 $(OBJDIR)\snprintf.obj \
451 $(OBJDIR)\marc8.obj \
452 $(OBJDIR)\marc8r.obj \
453 $(OBJDIR)\iso5426.obj \
454 $(OBJDIR)\record_conv.obj \
455 $(OBJDIR)\retrieval.obj \
457 $(OBJDIR)\diagbib1.obj \
458 $(OBJDIR)\diagsru_update.obj \
459 $(OBJDIR)\diagsrw.obj \
460 $(OBJDIR)\diag-entry.obj \
462 $(OBJDIR)\logrpn.obj \
463 $(OBJDIR)\querytowrbuf.obj \
464 $(OBJDIR)\pquery.obj \
465 $(OBJDIR)\yaz-ccl.obj \
466 $(OBJDIR)\otherinfo.obj \
467 $(OBJDIR)\sortspec.obj \
468 $(OBJDIR)\charneg.obj \
469 $(OBJDIR)\grs1disp.obj \
470 $(OBJDIR)\opacdisp.obj \
475 $(OBJDIR)\srwutil.obj \
476 $(OBJDIR)\zoom-c.obj \
477 $(OBJDIR)\zoom-event.obj \
478 $(OBJDIR)\zoom-record-cache.obj \
479 $(OBJDIR)\zoom-z3950.obj \
480 $(OBJDIR)\zoom-sru.obj \
481 $(OBJDIR)\zoom-query.obj \
482 $(OBJDIR)\record-render.obj \
483 $(OBJDIR)\facet.obj \
484 $(OBJDIR)\zoom-opt.obj \
485 $(OBJDIR)\zoom-socket.obj \
486 $(OBJDIR)\initopt.obj \
487 $(OBJDIR)\xmlquery.obj \
488 $(OBJDIR)\xmlerror.obj \
491 $(OBJDIR)\cqlstdio.obj \
492 $(OBJDIR)\cqlstring.obj \
493 $(OBJDIR)\cqltransform.obj \
494 $(OBJDIR)\cqlutil.obj \
495 $(OBJDIR)\cqlstrer.obj \
496 $(OBJDIR)\rpn2cql.obj \
497 $(OBJDIR)\xcqlutil.obj \
498 $(OBJDIR)\elementset.obj \
499 $(OBJDIR)\timing.obj \
501 $(OBJDIR)\query-charset.obj \
502 $(OBJDIR)\tokenizer.obj \
503 $(OBJDIR)\copy_types.obj \
505 $(OBJDIR)\match_glob.obj \
507 $(OBJDIR)\daemon.obj \
508 $(OBJDIR)\iconv_encode_iso_8859_1.obj \
509 $(OBJDIR)\iconv_encode_marc8.obj \
510 $(OBJDIR)\iconv_decode_marc8.obj \
511 $(OBJDIR)\iconv_encode_wchar.obj \
512 $(OBJDIR)\iconv_decode_iso5426.obj \
513 $(OBJDIR)\iconv_decode_danmarc.obj \
514 $(OBJDIR)\mutex.obj \
515 $(OBJDIR)\thread_create.obj \
516 $(OBJDIR)\spipe.obj \
517 $(OBJDIR)\gettimeofday.obj \
520 $(OBJDIR)\xml_include.obj \
521 $(OBJDIR)\file_glob.obj \
522 $(OBJDIR)\thread_id.obj \
526 $(OBJDIR)\z-date.obj\
527 $(OBJDIR)\z-univ.obj\
528 $(OBJDIR)\zes-update.obj\
529 $(OBJDIR)\zes-admin.obj \
530 $(OBJDIR)\z-accdes1.obj \
531 $(OBJDIR)\z-accform1.obj \
532 $(OBJDIR)\z-acckrb1.obj \
533 $(OBJDIR)\z-core.obj \
534 $(OBJDIR)\z-diag1.obj \
535 $(OBJDIR)\z-espec1.obj \
536 $(OBJDIR)\z-estask.obj \
537 $(OBJDIR)\z-exp.obj \
538 $(OBJDIR)\z-grs.obj \
539 $(OBJDIR)\z-opac.obj \
540 $(OBJDIR)\z-uifr1.obj \
541 $(OBJDIR)\z-rrf1.obj \
542 $(OBJDIR)\z-rrf2.obj \
543 $(OBJDIR)\z-sum.obj \
544 $(OBJDIR)\z-sutrs.obj \
545 $(OBJDIR)\zes-expi.obj \
546 $(OBJDIR)\zes-exps.obj \
547 $(OBJDIR)\zes-order.obj \
548 $(OBJDIR)\zes-pquery.obj \
549 $(OBJDIR)\zes-psched.obj \
550 $(OBJDIR)\zes-pset.obj \
551 $(OBJDIR)\zes-update0.obj \
552 $(OBJDIR)\prt-ext.obj \
553 $(OBJDIR)\z-charneg.obj \
554 $(OBJDIR)\z-mterm2.obj \
555 $(OBJDIR)\z-oclcui.obj \
556 $(OBJDIR)\z-facet-1.obj
559 $(OBJDIR)\ill-get.obj\
560 $(OBJDIR)\ill-core.obj\
561 $(OBJDIR)\item-req.obj
569 $(OBJDIR)\icu_chain.obj \
570 $(OBJDIR)\icu_utf16.obj \
571 $(OBJDIR)\icu_utf8.obj \
572 $(OBJDIR)\icu_transform.obj \
573 $(OBJDIR)\icu_casemap.obj \
574 $(OBJDIR)\icu_tokenizer.obj \
575 $(OBJDIR)\icu_sortkey.obj
577 # Generated C and H files
579 Z3950_C_DIR=$(SRCDIR)
581 #!!! Should be moved to OBJ, but that requires too much trickery
583 # Files generated from datetime.asn
584 DATETIME_H_FILES = $(INCLDIR)\yaz\z-date.h
585 DATETIME_C_FILES = $(Z3950_C_DIR)\z-date.c
587 # Files generated from univres.asn
588 UNIVRES_H_FILES = $(INCLDIR)\yaz\z-univ.h
589 UNIVRES_C_FILES = $(Z3950_C_DIR)\z-univ.c
591 # Files generated from esupdate.asn
592 ESUPDATE_H_FILES = $(INCLDIR)\yaz\zes-update.h
593 ESUPDATE_C_FILES = $(Z3950_C_DIR)\zes-update.c
595 # Files generated from esadmin.asn
596 ESADMIN_H_FILES = $(INCLDIR)\yaz\zes-admin.h
597 ESADMIN_C_FILES = $(Z3950_C_DIR)\zes-admin.c
599 # Files generated from esadmin.asn
600 CHARNEG_H_FILES = $(INCLDIR)\yaz\z-charneg.h
601 CHARNEG_C_FILES = $(Z3950_C_DIR)\z-charneg.c
603 # Files generated from mterm2.asn
604 MTERM2_H_FILES = $(INCLDIR)\yaz\z-mterm2.h
605 MTERM2_C_FILES = $(Z3950_C_DIR)\z-mterm2.c
607 # Files generated from mterm2.asn
608 OCLCUI_H_FILES = $(INCLDIR)\yaz\z-oclcui.h
609 OCLCUI_C_FILES = $(Z3950_C_DIR)\z-oclcui.c
611 # Files generated from facet.asn
612 FACET_H_FILES = $(INCLDIR)\yaz\z-facet-1.h
613 FACET_C_FILES = $(Z3950_C_DIR)\z-facet-1.c
615 # Files created from z3950v3.asn
617 $(INCLDIR)\yaz\z-accdes1.h \
618 $(INCLDIR)\yaz\z-core.h
621 $(Z3950_C_DIR)\z-accdes1.c \
622 $(Z3950_C_DIR)\z-accform1.c \
623 $(Z3950_C_DIR)\z-acckrb1.c \
624 $(Z3950_C_DIR)\z-core.c \
625 $(Z3950_C_DIR)\z-diag1.c \
626 $(Z3950_C_DIR)\z-espec1.c \
627 $(Z3950_C_DIR)\z-estask.c \
628 $(Z3950_C_DIR)\z-exp.c \
629 $(Z3950_C_DIR)\z-grs.c \
630 $(Z3950_C_DIR)\z-opac.c \
631 $(Z3950_C_DIR)\z-uifr1.c \
632 $(Z3950_C_DIR)\z-rrf1.c \
633 $(Z3950_C_DIR)\z-rrf2.c \
634 $(Z3950_C_DIR)\z-sum.c \
635 $(Z3950_C_DIR)\z-sutrs.c \
636 $(Z3950_C_DIR)\zes-expi.c \
637 $(Z3950_C_DIR)\zes-exps.c \
638 $(Z3950_C_DIR)\zes-order.c \
639 $(Z3950_C_DIR)\zes-pquery.c \
640 $(Z3950_C_DIR)\zes-psched.c \
641 $(Z3950_C_DIR)\zes-pset.c \
642 $(Z3950_C_DIR)\zes-update0.c
644 # Files generated from ill9702.asn
646 $(INCLDIR)\yaz\ill-core.h
649 $(ILL_C_DIR)\ill-core.c
651 # Files generated from itemreq.asn
653 $(INCLDIR)\yaz\item-req.h
656 $(ILL_C_DIR)\item-req.c
659 DATETIME_FILES = $(DATETIME_H_FILES) $(DATETIME_C_FILES)
660 UNIVRES_FILES = $(UNIVRES_H_FILES) $(UNIVRES_C_FILES)
661 ESUPDATE_FILES = $(ESUPDATE_H_FILES) $(ESUPDATE_C_FILES)
662 ESADMIN_FILES = $(ESADMIN_H_FILES) $(ESADMIN_C_FILES)
663 Z3950V3_FILES= $(Z3950V3_C_FILES) $(Z3950V3_H_FILES)
664 ILL_CORE_FILES= $(ILL_CORE_C_FILES) $(ILL_CORE_H_FILES)
665 ITEM_REQ_FILES= $(ITEM_REQ_C_FILES) $(ITEM_REQ_H_FILES)
666 CHARNEG_FILES = $(CHARNEG_C_FILES) $(CHARNEG_H_FILES)
667 MTERM2_FILES = $(MTERM2_C_FILES) $(MTERM2_H_FILES)
668 OCLCUI_FILES = $(OCLCUI_C_FILES) $(OCLCUI_H_FILES)
669 FACET_FILES = $(FACET_C_FILES) $(FACET_H_FILES)
673 $(ESUPDATE_C_FILES) \
675 $(DATETIME_C_FILES) \
681 $(ILL_CORE_C_FILES) \
686 $(ESUPDATE_H_FILES) \
688 $(DATETIME_H_FILES) \
694 $(ILL_CORE_H_FILES) \
698 $(GENERATED_H_FILES) \
699 $(GENERATED_C_FILES) \
700 $(SRCDIR)\diagsrw.c \
701 $(SRCDIR)\diagbib1.c \
702 $(SRCDIR)\diagsru_update.c \
703 $(INCLDIR)\yaz\yaz-version.h
707 # Note: This defines where to look for the necessary
708 # source files. Funny way of doing it, but it works.
711 {$(CLIENTDIR)}.c{$(OBJDIR)}.obj:
712 $(CPP) $(COPT) $< /D"_CONSOLE"
715 {$(ZTESTDIR)}.c{$(OBJDIR)}.obj:
716 $(CPP) $(COPT) $< /D"_CONSOLE"
719 {$(SERVERDIR)}.c{$(OBJDIR)}.obj:
722 # Various YAZ source directories
723 {$(SRCDIR)}.c{$(OBJDIR)}.obj:
724 $(CPP) $(COPT) /D"YAZ_DLL" $<
726 {$(ZOOMDIR)}.c{$(OBJDIR)}.obj:
729 {$(UTILDIR)}.c{$(OBJDIR)}.obj:
732 {$(TESTDIR)}.c{$(OBJDIR)}.obj:
735 # ASN-generated files
739 $(Z3950V3_FILES): $(SRCDIR)\z3950v3.asn
741 $(TCL) $(TCLOPT) -d z.tcl z3950v3.asn
744 $(DATETIME_FILES): $(SRCDIR)\datetime.asn
746 $(TCL) $(TCLOPT) -d z.tcl datetime.asn
749 $(UNIVRES_FILES): $(SRCDIR)\univres.asn
751 $(TCL) $(TCLOPT) -d z.tcl univres.asn
754 $(ESUPDATE_FILES): $(SRCDIR)\esupdate.asn
756 $(TCL) $(TCLOPT) -d z.tcl esupdate.asn
759 $(ESADMIN_FILES): $(SRCDIR)\esadmin.asn
761 $(TCL) $(TCLOPT) -d z.tcl esadmin.asn
764 $(CHARNEG_FILES): $(SRCDIR)\charneg-3.asn
766 $(TCL) $(TCLOPT) -d z.tcl charneg-3.asn
769 $(MTERM2_FILES): $(SRCDIR)\mterm2.asn
771 $(TCL) $(TCLOPT) -d z.tcl mterm2.asn
774 $(OCLCUI_FILES): $(SRCDIR)\oclcui.asn
776 $(TCL) $(TCLOPT) -d z.tcl oclcui.asn
779 $(FACET_FILES): $(SRCDIR)\facet.asn
781 $(TCL) $(TCLOPT) -d z.tcl facet.asn
784 $(ILL_CORE_FILES): $(SRCDIR)\ill9702.asn
786 $(TCL) $(TCLOPT) -d ill.tcl ill9702.asn
789 $(ITEM_REQ_FILES): $(SRCDIR)\item-req.asn
791 $(TCL) $(TCLOPT) -d ill.tcl item-req.asn
794 $(SRCDIR)\marc8.c: $(SRCDIR)\codetables.xml $(SRCDIR)\charconv.tcl
796 $(TCL) charconv.tcl -p marc8 codetables.xml -o marc8.c
798 $(SRCDIR)\marc8r.c: $(SRCDIR)\codetables.xml $(SRCDIR)\charconv.tcl
800 $(TCL) charconv.tcl -r -p marc8r codetables.xml -o marc8r.c
802 $(SRCDIR)\iso5426.c: $(SRCDIR)\codetables-iso5426.xml $(SRCDIR)\charconv.tcl
804 $(TCL) charconv.tcl -r -p iso5426 codetables-iso5426.xml -o iso5426.c
806 $(SRCDIR)\oid_std.c: $(SRCDIR)\oid.csv
808 $(TCL) oidtoc.tcl $(SRCDIR) oid.csv oid_std.c oid_std.h
810 $(SRCDIR)\diagbib1.c: $(SRCDIR)\bib1.csv
812 $(TCL) csvtobib1.tcl $(SRCDIR)
814 $(SRCDIR)\diagsrw.c: $(SRCDIR)\srw.csv
816 $(TCL) csvtosrw.tcl $(SRCDIR)
818 $(SRCDIR)\diagsru_update.c: $(SRCDIR)\sru_update.csv
820 $(TCL) csvtosru_update.tcl $(SRCDIR)
822 $(INCLDIR)\yaz\yaz-version.h: $(ROOTDIR)/configure.ac
824 $(TCL) mk_version.tcl $(ROOTDIR)/configure.ac $(INCLDIR)\yaz\yaz-version.h
830 $(SRCDIR)\cql.c: $(SRCDIR)\cql.y
832 $(BISON) -y -p cql_ -o cql.c cql.y
837 # The RC compiler (resource files)
840 YAZ_RC=$(WINDIR)\yaz.rc
841 YAZ_RES=$(OBJDIR)\yaz.res
842 YAZ_ICU_RES=$(OBJDIR)\yaz_icu.res
850 $(YAZ_RES): $(YAZ_RC)
851 $(RSC) $(RSOPT) /I"../include" /fo"$(YAZ_RES)" $(YAZ_RC)
853 $(YAZ_ICU_RES): $(YAZ_RC)
854 $(RSC) $(RSOPT) /DICU=1 /I"../include" /fo"$(YAZ_ICU_RES)" $(YAZ_RC)
858 $(YAZ_DLL) $(YAZ_IMPLIB): "$(BINDIR)" $(DLL_OBJS) $(YAZ_RES)
863 /implib:"$(YAZ_IMPLIB)"
864 $(MT) -manifest $@.manifest -outputresource:$@;2
866 $(YAZ_ICU_DLL) $(YAZ_ICU_IMPLIB): "$(BINDIR)" $(ICU_DLL_OBJS) $(YAZ_ICU_RES)
867 $(LINK_DLL) $(ICU_LIB) $(YAZ_IMPLIB)\
871 /implib:"$(YAZ_ICU_IMPLIB)"
872 $(MT) -manifest $@.manifest -outputresource:$@;2
874 $(YAZ_COND_DLL) $(YAZ_COND_IMPLIB): "$(BINDIR)" $(COND_DLL_OBJS) $(YAZ_COND_RES)
875 $(LINK_DLL) $(COND_LIB) $(YAZ_IMPLIB)\
879 /implib:"$(YAZ_COND_IMPLIB)"
880 $(MT) -manifest $@.manifest -outputresource:$@;2
882 $(CLIENT) : "$(BINDIR)" $(YAZ_CLIENT_OBJS) $(YAZ_DLL)
883 $(LINK_PROGRAM) $(YAZ_CLIENT_OBJS) /out:$@
884 $(MT) -manifest $@.manifest -outputresource:$@;1
886 $(YAZ_ICU) : "$(BINDIR)" $(YAZ_ICU_OBJS) $(YAZ_ICU_DLL)
887 $(LINK_PROGRAM) $(ICU_LIB) $(YAZ_ICU_IMPLIB) $(YAZ_ICU_OBJS) /out:$@
888 $(MT) -manifest $@.manifest -outputresource:$@;1
891 $(SC_TEST) : "$(BINDIR)" $(SC_TEST_OBJS) $(YAZ_DLL)
892 $(LINK_PROGRAM) $(SC_TEST_OBJS) /out:$@
893 $(MT) -manifest $@.manifest -outputresource:$@;1
895 $(ZOOMSH) : "$(BINDIR)" $(YAZ_ZOOMSH_OBJS) $(YAZ_DLL)
896 $(LINK_PROGRAM) $(YAZ_ZOOMSH_OBJS) /out:$@
897 $(MT) -manifest $@.manifest -outputresource:$@;1
899 $(ZOOMTST1) : "$(BINDIR)" $(YAZ_ZOOMTST1_OBJS) $(YAZ_DLL)
900 $(LINK_PROGRAM) $(YAZ_ZOOMTST1_OBJS) /out:$@
901 $(MT) -manifest $@.manifest -outputresource:$@;1
903 $(ZOOMTST2) : "$(BINDIR)" $(YAZ_ZOOMTST2_OBJS) $(YAZ_DLL)
904 $(LINK_PROGRAM) $(YAZ_ZOOMTST2_OBJS) /out:$@
905 $(MT) -manifest $@.manifest -outputresource:$@;1
907 $(ZOOMTST3) : "$(BINDIR)" $(YAZ_ZOOMTST3_OBJS) $(YAZ_DLL)
908 $(LINK_PROGRAM) $(YAZ_ZOOMTST3_OBJS) /out:$@
909 $(MT) -manifest $@.manifest -outputresource:$@;1
911 $(ZOOMTST4) : "$(BINDIR)" $(YAZ_ZOOMTST4_OBJS) $(YAZ_DLL)
912 $(LINK_PROGRAM) $(YAZ_ZOOMTST4_OBJS) /out:$@
913 $(MT) -manifest $@.manifest -outputresource:$@;1
915 $(ZOOMTST5) : "$(BINDIR)" $(YAZ_ZOOMTST5_OBJS) $(YAZ_DLL)
916 $(LINK_PROGRAM) $(YAZ_ZOOMTST5_OBJS) /out:$@
917 $(MT) -manifest $@.manifest -outputresource:$@;1
919 $(ZOOMTST6) : "$(BINDIR)" $(YAZ_ZOOMTST6_OBJS) $(YAZ_DLL)
920 $(LINK_PROGRAM) $(YAZ_ZOOMTST6_OBJS) /out:$@
921 $(MT) -manifest $@.manifest -outputresource:$@;1
923 $(ZOOMTST7) : "$(BINDIR)" $(YAZ_ZOOMTST7_OBJS) $(YAZ_DLL)
924 $(LINK_PROGRAM) $(YAZ_ZOOMTST7_OBJS) /out:$@
925 $(MT) -manifest $@.manifest -outputresource:$@;1
927 $(ZOOMTST8) : "$(BINDIR)" $(YAZ_ZOOMTST8_OBJS) $(YAZ_DLL)
928 $(LINK_PROGRAM) $(YAZ_ZOOMTST8_OBJS) /out:$@
929 $(MT) -manifest $@.manifest -outputresource:$@;1
931 $(ZOOMTST9) : "$(BINDIR)" $(YAZ_ZOOMTST9_OBJS) $(YAZ_DLL)
932 $(LINK_PROGRAM) $(YAZ_ZOOMTST9_OBJS) /out:$@
933 $(MT) -manifest $@.manifest -outputresource:$@;1
935 $(ZOOMTST10) : "$(BINDIR)" $(YAZ_ZOOMTST10_OBJS) $(YAZ_DLL)
936 $(LINK_PROGRAM) $(YAZ_ZOOMTST10_OBJS) /out:$@
937 $(MT) -manifest $@.manifest -outputresource:$@;1
939 $(CQL2PQF) : "$(BINDIR)" $(YAZ_CQL2PQF_OBJS) $(YAZ_DLL)
940 $(LINK_PROGRAM) $(YAZ_CQL2PQF_OBJS) /out:$@
941 $(MT) -manifest $@.manifest -outputresource:$@;1
943 $(CQL2XCQL) : "$(BINDIR)" $(YAZ_CQL2XCQL_OBJS) $(YAZ_DLL)
944 $(LINK_PROGRAM) $(YAZ_CQL2XCQL_OBJS) /out:$@
945 $(MT) -manifest $@.manifest -outputresource:$@;1
947 $(ZTEST) : "$(BINDIR)" $(ZTEST_OBJS) $(YAZ_DLL)
948 $(LINK_PROGRAM) $(ZTEST_OBJS) /out:$@
949 $(MT) -manifest $@.manifest -outputresource:$@;1
951 $(YAZ_MARCDUMP) : "$(BINDIR)" $(YAZ_MARCDUMP_OBJS) $(YAZ_DLL)
952 $(LINK_PROGRAM) $(YAZ_MARCDUMP_OBJS) /out:$@
953 $(MT) -manifest $@.manifest -outputresource:$@;1
956 $(TSTLOG) : "$(BINDIR)" $(TSTLOG_OBJS) $(YAZ_DLL)
957 $(LINK_PROGRAM) $(TSTLOG_OBJS) /out:$@
958 $(MT) -manifest $@.manifest -outputresource:$@;1
960 $(TST_TIMING) : "$(BINDIR)" $(TST_TIMING_OBJS) $(YAZ_DLL)
961 $(LINK_PROGRAM) $(TST_TIMING_OBJS) /out:$@
962 $(MT) -manifest $@.manifest -outputresource:$@;1
964 $(TEST_MUTEX) : "$(BINDIR)" $(TEST_MUTEX_OBJS) $(YAZ_COND_DLL)
965 $(LINK_PROGRAM) $(YAZ_COND_IMPLIB) $(TEST_MUTEX_OBJS) /out:$@
966 $(MT) -manifest $@.manifest -outputresource:$@;1
970 $(DOCDIR)\htmlhelp.chm: $(DOCDIR)\htmlhelp.hhp
984 -del $(SRCDIR)\marc8.c
987 -del $(SRCDIR)\ill-core.c
988 -del $(SRCDIR)\item-req.c
989 -del $(INCLDIR)\yaz\ill-core.h
990 -del $(INCLDIR)\yaz\item-req.h
991 -del $(INCLDIR)\yaz\z-accdes1.h
992 -del $(INCLDIR)\yaz\z-core.h
993 -del $(DATETIME_H_FILES)
994 -del $(UNIVRES_H_FILES)
995 -del $(ESUPDATE_H_FILES)
997 # Because DOS del will only accept one file name to delete,
998 # the _H_ files work only on sets that have just one file.
999 # Z3950_H_FILES had to be spelled out. One more point for MS!
1001 # check directories and create if needed
1002 dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)
1004 $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR):
1005 if not exist "$@/$(NUL)" mkdir "$@"
1008 # Explicit dependencies
1010 # force recompilation of everything, if makefile changed
1012 $(Z3950_OBJS): $(GENERATED_C_FILES) $(GENERATED_H_FILES)
1014 $(ILL_OBJS): $(ILL_CORE_FILES) $(ITEM_REQ_FILES)
1016 # makes sure we generate before compiling anything, as the
1017 # new proto.h refers to the generated files, and is included