1 # This file is part of the YAZ toolkit.
2 # Copyright (C) 1995-2011 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
23 ICU_INCLUDE = c:\icu\include
27 LIBXSLT_DIR=c:\libxslt-1.1.26.win32
31 LIBXML2_DIR=c:\libxml2-2.7.6.win32
33 # zlib compression (used by libxml2)
34 ZLIB_DIR = c:\zlib-1.2.3.win32
36 # get WIN32 binaries libxml2 & iconv & zlib from here:
37 # http://www.zlatkovic.com/libxml.en.html
45 all: dirs generate dll sc_test client ztest yazicu zoomsh utilprog \
46 testprog iconv icu libxml2 libxslt yaz_url
48 NSIS="c:\program files\nsis\makensis.exe"
49 HHC="c:\program files\html help workshop\hhc.exe"
51 dist: yaz.win32.nsi yaz.nsi distclean
55 dist64: yaz.win64.nsi yaz.nsi distclean
60 nmake DEBUG=0 HAVE_LIBXSLT=1 HAVE_LIBXML2=1 HAVE_ICONV=0 HAVE_ICU=1 LIBXML2_DIR=c:\libxml2-2.7.8.win64 LIBXSLT_DIR=c:\libxslt-1.1.26.win64 ICU_LIB=\icu64\lib64 ICU_INCLUDE=\icu64\include ICU_BIN=\icu64\bin64
76 # The current directory is supposed to be something like
77 # ..../yaz/win, everything is relative to that
78 ROOTDIR=.. # The home of yaz
80 INCLDIR=$(ROOTDIR)\include # our includes
81 LIBDIR=$(ROOTDIR)\lib # We produce .lib, .exp etc there
82 BINDIR=$(ROOTDIR)\bin # We produce exes and dlls there
83 WINDIR=$(ROOTDIR)\win # all these Win make things
84 SRCDIR=$(ROOTDIR)\src # for the case we move them under src
85 DOCDIR=$(ROOTDIR)\doc # where the doc is
87 # where we store intermediate files
94 CLIENTDIR=$(ROOTDIR)\CLIENT
95 ZTESTDIR=$(ROOTDIR)\ZTEST
96 ZOOMDIR=$(ROOTDIR)\ZOOM
97 UTILDIR=$(ROOTDIR)\UTIL
98 TESTDIR=$(ROOTDIR)\TEST
100 TMPDIR=$(ROOTDIR)\win\tmp
103 # Targets - what to make
106 YAZ_DLL=$(BINDIR)\yaz4d.dll
107 YAZ_IMPLIB=$(LIBDIR)\yaz4d.lib
108 YAZ_ICU_DLL=$(BINDIR)\yaz_icu4d.dll
109 YAZ_ICU_IMPLIB=$(LIBDIR)\yaz_icu4d.lib
110 YAZ_COND_DLL=$(BINDIR)\yaz_cond4d.dll
111 YAZ_COND_IMPLIB=$(LIBDIR)\yaz_cond4d.lib
113 YAZ_DLL=$(BINDIR)\yaz4.dll
114 YAZ_IMPLIB=$(LIBDIR)\yaz4.lib
115 YAZ_ICU_DLL=$(BINDIR)\yaz_icu4.dll
116 YAZ_ICU_IMPLIB=$(LIBDIR)\yaz_icu4.lib
117 YAZ_COND_DLL=$(BINDIR)\yaz_cond4.dll
118 YAZ_COND_IMPLIB=$(LIBDIR)\yaz_cond4.lib
121 CLIENT=$(BINDIR)\yaz-client.exe
122 YAZ_ICU=$(BINDIR)\yaz-icu.exe
123 YAZ_URL=$(BINDIR)\yaz-url.exe
124 ZOOMSH=$(BINDIR)\zoomsh.exe
125 ZTEST=$(BINDIR)\yaz-ztest.exe
126 SC_TEST=$(BINDIR)\sc_test.exe
128 ZOOMTST1=$(BINDIR)\zoomtst1.exe
129 ZOOMTST2=$(BINDIR)\zoomtst2.exe
130 ZOOMTST3=$(BINDIR)\zoomtst3.exe
131 ZOOMTST4=$(BINDIR)\zoomtst4.exe
132 ZOOMTST5=$(BINDIR)\zoomtst5.exe
133 ZOOMTST6=$(BINDIR)\zoomtst6.exe
134 ZOOMTST7=$(BINDIR)\zoomtst7.exe
135 ZOOMTST8=$(BINDIR)\zoomtst8.exe
136 ZOOMTST9=$(BINDIR)\zoomtst9.exe
137 ZOOMTST10=$(BINDIR)\zoomtst10.exe
139 CQL2PQF=$(BINDIR)\cql2pqf.exe
140 CQL2XCQL=$(BINDIR)\cql2xcql.exe
141 YAZ_MARCDUMP=$(BINDIR)\yaz-marcdump.exe
143 TSTLOG=$(BINDIR)\test_log.exe
144 TST_TIMING=$(BINDIR)\test_timing.exe
145 TEST_MUTEX=$(BINDIR)\test_mutex.exe
147 # shortcut names defined here
148 dll: dirs generate $(YAZ_DLL) $(YAZ_COND_DLL)
149 client: dirs generate $(CLIENT)
150 ztest: dirs generate $(ZTEST)
154 zoomsh: $(ZOOMSH) $(ZOOMTST1) $(ZOOMTST2) $(ZOOMTST3) \
155 $(ZOOMTST4) $(ZOOMTST5) $(ZOOMTST6) $(ZOOMTST7) $(ZOOMTST8) $(ZOOMTST9) \
160 utilprog: $(CQL2PQF) $(CQL2XCQL) $(YAZ_MARCDUMP)
161 testprog: $(TSTLOG) $(TST_TIMING) $(TEST_MUTEX)
163 htmlhelp: $(DOCDIR)\htmlhelp.chm
165 # Modules and conditional flags, etc
170 /I"$(ICONV_DIR)\include"
172 "$(ICONV_DIR)\lib\iconv.lib"
173 iconv: $(BINDIR)\iconv.dll
176 copy "$(ICONV_DIR)\bin\iconv.dll" $(BINDIR)
185 ###TRYING ICU FLAGS HERE WORKS ####
186 ## ADAM ARE THESE FLAGS OK and the DLL sufficient ##
187 ##IT COMPILES AND SEEMS TO WORK
191 /D YAZ_HAVE_ICU=1 /D HAVE_ICU_H=1 /I"$(ICU_INCLUDE)"
193 $(ICU_LIB)\icudt.lib $(ICU_LIB)\icuin.lib $(ICU_LIB)\icuuc.lib
194 icu: $(BINDIR)\icudt42.dll $(BINDIR)\icuin42.dll $(BINDIR)\icuuc42.dll
195 yazicu: dirs generate $(YAZ_ICU)
197 $(BINDIR)\icudt42.dll:
198 copy "$(ICU_BIN)\icudt42.dll" $(BINDIR)
199 $(BINDIR)\icuin42.dll:
200 copy "$(ICU_BIN)\icuin42.dll" $(BINDIR)
201 $(BINDIR)\icuuc42.dll:
202 copy "$(ICU_BIN)\icuuc42.dll" $(BINDIR)
214 LIBXML2_LIB="$(LIBXML2_DIR)\lib\libxml2.lib"
215 LIBXML2_DEF=/D YAZ_HAVE_XML2=1 /I"$(LIBXML2_DIR)\include"
216 libxml2: $(BINDIR)\libxml2.dll $(BINDIR)\zlib1.dll
218 $(BINDIR)\libxml2.dll:
219 copy "$(LIBXML2_DIR)\bin\libxml2.dll" $(BINDIR)
222 copy "$(ZLIB_DIR)\bin\zlib1.dll" $(BINDIR)
226 LIBXML2_DEF=/D YAZ_HAVE_XML2=0
232 LIBXSLT_LIB="$(LIBXSLT_DIR)\lib\libxslt.lib"
234 /D HAVE_XSLTSAVERESULTTOSTRING=1 \
236 /I"$(LIBXSLT_DIR)\include"
237 libxslt: $(BINDIR)\libxslt.dll
239 $(BINDIR)\libxslt.dll:
240 copy "$(LIBXSLT_DIR)\bin\libxslt.dll" $(BINDIR)
244 LIBXSLT_DEF=/D YAZ_HAVE_XSLT=0
249 ### C and CPP compiler (the same thing)
250 # Note: $(CPP) has already been defined in the environment
251 # (if you set things up right!)
254 /nologo /W3 /EHsc /FD /c \
259 /D "_CRT_SECURE_NO_DEPRECATE" \
260 /D "_CRT_NONSTDC_NO_DEPRECATE" \
268 /I"$(ROOTDIR)\include" \
269 /I"$(ROOTDIR)\libstemmer_c\include"
279 # /W3 = warning level
280 # /GX = Enable exception handling
281 # /FD = Generate file dependencies (what ever they are)
282 # /c = compile without linking
283 # /FR = Generate browse info (.sbr file that gets combined into .bsc)
284 # /Fo = object file name (or at least path)
285 # /Fd = debug database name (or path)
286 # /MD = Runtime library: Multithread DLL
287 # /MDd = Runtime library: Multithread DLL (debug)
288 # /Od = Disable optimising (debug)
289 # /O2 = Optimize for speed
290 # /Gm = Minimal rebuild (some cpp class stuff)
291 # /Zi = Program database for debuggers
292 # /ZI = Pgm database with special "edit&continue" stuff - not available in C5
304 LINK_LIBS= kernel32.lib ws2_32.lib advapi32.lib \
305 $(ICONV_LIB) $(LIBXML2_LIB) $(LIBXSLT_LIB)
307 COMMON_LNK_OPTIONS= /nologo /subsystem:windows /incremental:no
309 DEBUG_LNK_OPTIONS= /debug
313 DLL_LINK_OPTIONS= /dll
314 CLIENT_LINK_OPTIONS = /subsystem:console
316 COMMON_TCL_OPTIONS= ..\util\yaz-asncomp -I$(INCLDIR) -i yaz
318 # Final opt variables
320 COPT= $(COMMON_C_OPTIONS) $(DEBUG_C_OPTIONS) $(COMMON_C_INCLUDES)
321 LNKOPT= $(COMMON_LNK_OPTIONS) $(DEBUG_LNK_OPTIONS) $(LNK_LIBS)
322 TCLOPT= $(COMMON_TCL_OPTIONS)
325 COPT= $(COMMON_C_OPTIONS) $(RELEASE_C_OPTIONS) $(COMMON_C_INCLUDES)
326 LNKOPT= $(COMMON_LNK_OPTIONS) $(RELEASE_LNK_OPTIONS) $(LNK_LIBS)
327 TCLOPT= $(COMMON_TCL_OPTIONS)
330 LINK_PROGRAM = $(LINK) $(LNKOPT) \
331 $(CLIENT_LINK_OPTIONS) $(LINK_LIBS) $(YAZ_IMPLIB)
333 LINK_DLL = $(LINK) $(LNKOPT) \
334 $(LINK_LIBS) $(DLL_LINK_OPTIONS)
336 # Source and object modules
338 # Note: Ordinary source files are not specified here at
339 # all, make finds them in suitable dirs. The object modules
340 # need to be specified, though
343 $(OBJDIR)\client.obj \
344 $(OBJDIR)\tabcomplete.obj \
345 $(OBJDIR)\admin.obj \
346 $(OBJDIR)\fhistory.obj
348 YAZ_ICU_OBJS= $(OBJDIR)\yaz-icu.obj
349 YAZ_URL_OBJS= $(OBJDIR)\yaz-url.obj
350 COND_DLL_OBJS= $(OBJDIR)\condvar.obj
353 $(OBJDIR)\dummy-opac.obj \
354 $(OBJDIR)\read-marc.obj \
355 $(OBJDIR)\read-grs.obj \
359 $(OBJDIR)\sc_test.obj
364 YAZ_ZOOMTST1_OBJS = \
365 $(OBJDIR)\zoomtst1.obj
366 YAZ_ZOOMTST2_OBJS = \
367 $(OBJDIR)\zoomtst2.obj
368 YAZ_ZOOMTST3_OBJS = \
369 $(OBJDIR)\zoomtst3.obj
370 YAZ_ZOOMTST4_OBJS = \
371 $(OBJDIR)\zoomtst4.obj
372 YAZ_ZOOMTST5_OBJS = \
373 $(OBJDIR)\zoomtst5.obj
374 YAZ_ZOOMTST6_OBJS = \
375 $(OBJDIR)\zoomtst6.obj
376 YAZ_ZOOMTST7_OBJS = \
377 $(OBJDIR)\zoomtst7.obj
378 YAZ_ZOOMTST8_OBJS = \
379 $(OBJDIR)\zoomtst8.obj
380 YAZ_ZOOMTST9_OBJS = \
381 $(OBJDIR)\zoomtst9.obj
382 YAZ_ZOOMTST10_OBJS = \
383 $(OBJDIR)\zoomtst10.obj
386 $(OBJDIR)\cql2pqf.obj
387 YAZ_CQL2XCQL_OBJS = \
388 $(OBJDIR)\cql2xcql.obj
389 YAZ_MARCDUMP_OBJS = \
390 $(OBJDIR)\marcdump.obj
394 $(OBJDIR)\test_log.obj
397 $(OBJDIR)\test_timing.obj
400 $(OBJDIR)\test_mutex.obj
403 $(OBJDIR)\diag_map.obj \
404 $(OBJDIR)\base64.obj \
405 $(OBJDIR)\version.obj \
406 $(OBJDIR)\oid_std.obj \
407 $(OBJDIR)\eventl.obj \
408 $(OBJDIR)\requestq.obj \
409 $(OBJDIR)\seshigh.obj \
410 $(OBJDIR)\statserv.obj \
411 $(OBJDIR)\tcpdchk.obj \
412 $(OBJDIR)\cclerrms.obj \
413 $(OBJDIR)\cclfind.obj \
414 $(OBJDIR)\cclptree.obj \
415 $(OBJDIR)\cclqfile.obj \
416 $(OBJDIR)\cclqual.obj \
417 $(OBJDIR)\cclstr.obj \
418 $(OBJDIR)\ccltoken.obj \
419 $(OBJDIR)\cclxmlconfig.obj \
420 $(OBJDIR)\ccl_stop_words.obj \
421 $(OBJDIR)\comstack.obj \
422 $(OBJDIR)\tcpip.obj \
423 $(OBJDIR)\waislen.obj \
424 $(OBJDIR)\ber_any.obj \
425 $(OBJDIR)\ber_bit.obj \
426 $(OBJDIR)\ber_bool.obj \
427 $(OBJDIR)\ber_int.obj \
428 $(OBJDIR)\ber_len.obj \
429 $(OBJDIR)\ber_null.obj \
430 $(OBJDIR)\ber_oct.obj \
431 $(OBJDIR)\ber_oid.obj \
432 $(OBJDIR)\ber_tag.obj \
433 $(OBJDIR)\dumpber.obj \
434 $(OBJDIR)\errno.obj \
436 $(OBJDIR)\odr_any.obj \
437 $(OBJDIR)\odr_bit.obj \
438 $(OBJDIR)\odr_bool.obj \
439 $(OBJDIR)\odr_choice.obj \
440 $(OBJDIR)\odr_cons.obj \
441 $(OBJDIR)\odr_enum.obj \
442 $(OBJDIR)\odr_int.obj \
443 $(OBJDIR)\odr_mem.obj \
444 $(OBJDIR)\odr_null.obj \
445 $(OBJDIR)\odr_oct.obj \
446 $(OBJDIR)\odr_oid.obj \
447 $(OBJDIR)\odr_seq.obj \
448 $(OBJDIR)\odr_tag.obj \
449 $(OBJDIR)\odr_use.obj \
450 $(OBJDIR)\odr_util.obj \
451 $(OBJDIR)\atoin.obj \
453 $(OBJDIR)\marcdisp.obj \
454 $(OBJDIR)\marc_read_xml.obj \
455 $(OBJDIR)\marc_read_iso2709.obj \
456 $(OBJDIR)\marc_read_line.obj \
458 $(OBJDIR)\nmemsdup.obj \
459 $(OBJDIR)\oid_db.obj \
460 $(OBJDIR)\oid_util.obj \
461 $(OBJDIR)\options.obj \
462 $(OBJDIR)\readconf.obj \
463 $(OBJDIR)\tpath.obj \
464 $(OBJDIR)\wrbuf.obj \
465 $(OBJDIR)\xmalloc.obj \
466 $(OBJDIR)\matchstr.obj \
467 $(OBJDIR)\siconv.obj \
468 $(OBJDIR)\iso5428.obj \
471 $(OBJDIR)\advancegreek.obj \
472 $(OBJDIR)\snprintf.obj \
473 $(OBJDIR)\marc8.obj \
474 $(OBJDIR)\marc8r.obj \
475 $(OBJDIR)\iso5426.obj \
476 $(OBJDIR)\record_conv.obj \
477 $(OBJDIR)\retrieval.obj \
479 $(OBJDIR)\diagbib1.obj \
480 $(OBJDIR)\diagsru_update.obj \
481 $(OBJDIR)\diagsrw.obj \
482 $(OBJDIR)\diag-entry.obj \
484 $(OBJDIR)\logrpn.obj \
485 $(OBJDIR)\querytowrbuf.obj \
486 $(OBJDIR)\pquery.obj \
487 $(OBJDIR)\yaz-ccl.obj \
488 $(OBJDIR)\otherinfo.obj \
489 $(OBJDIR)\sortspec.obj \
490 $(OBJDIR)\charneg.obj \
491 $(OBJDIR)\grs1disp.obj \
492 $(OBJDIR)\opacdisp.obj \
496 $(OBJDIR)\solrtransform.obj \
498 $(OBJDIR)\srwutil.obj \
499 $(OBJDIR)\zoom-c.obj \
500 $(OBJDIR)\zoom-event.obj \
501 $(OBJDIR)\zoom-record-cache.obj \
502 $(OBJDIR)\zoom-z3950.obj \
503 $(OBJDIR)\zoom-sru.obj \
504 $(OBJDIR)\zoom-query.obj \
505 $(OBJDIR)\record_render.obj \
506 $(OBJDIR)\facet.obj \
507 $(OBJDIR)\zoom-opt.obj \
508 $(OBJDIR)\zoom-socket.obj \
509 $(OBJDIR)\initopt.obj \
510 $(OBJDIR)\xmlquery.obj \
511 $(OBJDIR)\xmlerror.obj \
514 $(OBJDIR)\cql2ccl.obj \
515 $(OBJDIR)\cql_sortkeys.obj \
516 $(OBJDIR)\cqlstdio.obj \
517 $(OBJDIR)\cqlstring.obj \
518 $(OBJDIR)\cqltransform.obj \
519 $(OBJDIR)\cqlutil.obj \
520 $(OBJDIR)\cqlstrer.obj \
521 $(OBJDIR)\rpn2cql.obj \
522 $(OBJDIR)\rpn2solr.obj \
523 $(OBJDIR)\xcqlutil.obj \
524 $(OBJDIR)\elementset.obj \
525 $(OBJDIR)\timing.obj \
527 $(OBJDIR)\query-charset.obj \
528 $(OBJDIR)\tokenizer.obj \
529 $(OBJDIR)\copy_types.obj \
531 $(OBJDIR)\match_glob.obj \
533 $(OBJDIR)\daemon.obj \
534 $(OBJDIR)\iconv_encode_iso_8859_1.obj \
535 $(OBJDIR)\iconv_encode_marc8.obj \
536 $(OBJDIR)\iconv_decode_marc8.obj \
537 $(OBJDIR)\iconv_encode_wchar.obj \
538 $(OBJDIR)\iconv_decode_iso5426.obj \
539 $(OBJDIR)\iconv_decode_danmarc.obj \
540 $(OBJDIR)\mutex.obj \
541 $(OBJDIR)\thread_create.obj \
542 $(OBJDIR)\spipe.obj \
543 $(OBJDIR)\gettimeofday.obj \
546 $(OBJDIR)\xml_include.obj \
547 $(OBJDIR)\file_glob.obj \
548 $(OBJDIR)\thread_id.obj \
549 $(OBJDIR)\dirent.obj \
553 $(OBJDIR)\z-date.obj\
554 $(OBJDIR)\z-univ.obj\
555 $(OBJDIR)\zes-update.obj\
556 $(OBJDIR)\zes-admin.obj \
557 $(OBJDIR)\z-accdes1.obj \
558 $(OBJDIR)\z-accform1.obj \
559 $(OBJDIR)\z-acckrb1.obj \
560 $(OBJDIR)\z-core.obj \
561 $(OBJDIR)\z-diag1.obj \
562 $(OBJDIR)\z-espec1.obj \
563 $(OBJDIR)\z-estask.obj \
564 $(OBJDIR)\z-exp.obj \
565 $(OBJDIR)\z-grs.obj \
566 $(OBJDIR)\z-opac.obj \
567 $(OBJDIR)\z-uifr1.obj \
568 $(OBJDIR)\z-rrf1.obj \
569 $(OBJDIR)\z-rrf2.obj \
570 $(OBJDIR)\z-sum.obj \
571 $(OBJDIR)\z-sutrs.obj \
572 $(OBJDIR)\zes-expi.obj \
573 $(OBJDIR)\zes-exps.obj \
574 $(OBJDIR)\zes-order.obj \
575 $(OBJDIR)\zes-pquery.obj \
576 $(OBJDIR)\zes-psched.obj \
577 $(OBJDIR)\zes-pset.obj \
578 $(OBJDIR)\zes-update0.obj \
579 $(OBJDIR)\prt-ext.obj \
580 $(OBJDIR)\z-charneg.obj \
581 $(OBJDIR)\z-mterm2.obj \
582 $(OBJDIR)\z-oclcui.obj \
583 $(OBJDIR)\z-facet-1.obj
586 $(OBJDIR)\ill-get.obj\
587 $(OBJDIR)\ill-core.obj\
588 $(OBJDIR)\item-req.obj
591 $(OBJDIR)\libstemmer.obj \
593 $(OBJDIR)\utilities.obj \
594 $(OBJDIR)\stem_UTF_8_porter.obj \
595 $(OBJDIR)\stem_UTF_8_english.obj
603 $(OBJDIR)\icu_chain.obj \
604 $(OBJDIR)\icu_utf16.obj \
605 $(OBJDIR)\icu_utf8.obj \
606 $(OBJDIR)\icu_transform.obj \
607 $(OBJDIR)\icu_casemap.obj \
608 $(OBJDIR)\icu_tokenizer.obj \
609 $(OBJDIR)\icu_sortkey.obj \
610 $(OBJDIR)\stemmer.obj \
613 # Generated C and H files
615 Z3950_C_DIR=$(SRCDIR)
617 #!!! Should be moved to OBJ, but that requires too much trickery
619 # Files generated from datetime.asn
620 DATETIME_H_FILES = $(INCLDIR)\yaz\z-date.h
621 DATETIME_C_FILES = $(Z3950_C_DIR)\z-date.c
623 # Files generated from univres.asn
624 UNIVRES_H_FILES = $(INCLDIR)\yaz\z-univ.h
625 UNIVRES_C_FILES = $(Z3950_C_DIR)\z-univ.c
627 # Files generated from esupdate.asn
628 ESUPDATE_H_FILES = $(INCLDIR)\yaz\zes-update.h
629 ESUPDATE_C_FILES = $(Z3950_C_DIR)\zes-update.c
631 # Files generated from esadmin.asn
632 ESADMIN_H_FILES = $(INCLDIR)\yaz\zes-admin.h
633 ESADMIN_C_FILES = $(Z3950_C_DIR)\zes-admin.c
635 # Files generated from esadmin.asn
636 CHARNEG_H_FILES = $(INCLDIR)\yaz\z-charneg.h
637 CHARNEG_C_FILES = $(Z3950_C_DIR)\z-charneg.c
639 # Files generated from mterm2.asn
640 MTERM2_H_FILES = $(INCLDIR)\yaz\z-mterm2.h
641 MTERM2_C_FILES = $(Z3950_C_DIR)\z-mterm2.c
643 # Files generated from mterm2.asn
644 OCLCUI_H_FILES = $(INCLDIR)\yaz\z-oclcui.h
645 OCLCUI_C_FILES = $(Z3950_C_DIR)\z-oclcui.c
647 # Files generated from facet.asn
648 FACET_H_FILES = $(INCLDIR)\yaz\z-facet-1.h
649 FACET_C_FILES = $(Z3950_C_DIR)\z-facet-1.c
651 # Files created from z3950v3.asn
653 $(INCLDIR)\yaz\z-accdes1.h \
654 $(INCLDIR)\yaz\z-core.h
657 $(Z3950_C_DIR)\z-accdes1.c \
658 $(Z3950_C_DIR)\z-accform1.c \
659 $(Z3950_C_DIR)\z-acckrb1.c \
660 $(Z3950_C_DIR)\z-core.c \
661 $(Z3950_C_DIR)\z-diag1.c \
662 $(Z3950_C_DIR)\z-espec1.c \
663 $(Z3950_C_DIR)\z-estask.c \
664 $(Z3950_C_DIR)\z-exp.c \
665 $(Z3950_C_DIR)\z-grs.c \
666 $(Z3950_C_DIR)\z-opac.c \
667 $(Z3950_C_DIR)\z-uifr1.c \
668 $(Z3950_C_DIR)\z-rrf1.c \
669 $(Z3950_C_DIR)\z-rrf2.c \
670 $(Z3950_C_DIR)\z-sum.c \
671 $(Z3950_C_DIR)\z-sutrs.c \
672 $(Z3950_C_DIR)\zes-expi.c \
673 $(Z3950_C_DIR)\zes-exps.c \
674 $(Z3950_C_DIR)\zes-order.c \
675 $(Z3950_C_DIR)\zes-pquery.c \
676 $(Z3950_C_DIR)\zes-psched.c \
677 $(Z3950_C_DIR)\zes-pset.c \
678 $(Z3950_C_DIR)\zes-update0.c
680 # Files generated from ill9702.asn
682 $(INCLDIR)\yaz\ill-core.h
685 $(ILL_C_DIR)\ill-core.c
687 # Files generated from itemreq.asn
689 $(INCLDIR)\yaz\item-req.h
692 $(ILL_C_DIR)\item-req.c
695 DATETIME_FILES = $(DATETIME_H_FILES) $(DATETIME_C_FILES)
696 UNIVRES_FILES = $(UNIVRES_H_FILES) $(UNIVRES_C_FILES)
697 ESUPDATE_FILES = $(ESUPDATE_H_FILES) $(ESUPDATE_C_FILES)
698 ESADMIN_FILES = $(ESADMIN_H_FILES) $(ESADMIN_C_FILES)
699 Z3950V3_FILES= $(Z3950V3_C_FILES) $(Z3950V3_H_FILES)
700 ILL_CORE_FILES= $(ILL_CORE_C_FILES) $(ILL_CORE_H_FILES)
701 ITEM_REQ_FILES= $(ITEM_REQ_C_FILES) $(ITEM_REQ_H_FILES)
702 CHARNEG_FILES = $(CHARNEG_C_FILES) $(CHARNEG_H_FILES)
703 MTERM2_FILES = $(MTERM2_C_FILES) $(MTERM2_H_FILES)
704 OCLCUI_FILES = $(OCLCUI_C_FILES) $(OCLCUI_H_FILES)
705 FACET_FILES = $(FACET_C_FILES) $(FACET_H_FILES)
709 $(ESUPDATE_C_FILES) \
711 $(DATETIME_C_FILES) \
717 $(ILL_CORE_C_FILES) \
722 $(ESUPDATE_H_FILES) \
724 $(DATETIME_H_FILES) \
730 $(ILL_CORE_H_FILES) \
734 $(GENERATED_H_FILES) \
735 $(GENERATED_C_FILES) \
736 $(SRCDIR)\diagsrw.c \
737 $(SRCDIR)\diagbib1.c \
738 $(SRCDIR)\diagsru_update.c \
739 $(INCLDIR)\yaz\yaz-version.h
743 # Note: This defines where to look for the necessary
744 # source files. Funny way of doing it, but it works.
747 {$(CLIENTDIR)}.c{$(OBJDIR)}.obj:
748 $(CPP) $(COPT) $< /D"_CONSOLE"
751 {$(ZTESTDIR)}.c{$(OBJDIR)}.obj:
752 $(CPP) $(COPT) $< /D"_CONSOLE"
755 {$(SERVERDIR)}.c{$(OBJDIR)}.obj:
758 # Various YAZ source directories
759 {$(SRCDIR)}.c{$(OBJDIR)}.obj:
760 $(CPP) $(COPT) /D"YAZ_DLL" $<
762 {$(ZOOMDIR)}.c{$(OBJDIR)}.obj:
765 {$(UTILDIR)}.c{$(OBJDIR)}.obj:
768 {$(TESTDIR)}.c{$(OBJDIR)}.obj:
771 {$(ROOTDIR)\libstemmer_c\libstemmer}.c{$(OBJDIR)}.obj:
774 {$(ROOTDIR)\libstemmer_c\runtime}.c{$(OBJDIR)}.obj:
777 {$(ROOTDIR)\libstemmer_c\src_c}.c{$(OBJDIR)}.obj:
780 # ASN-generated files
784 $(Z3950V3_FILES): $(SRCDIR)\z3950v3.asn
786 $(TCL) $(TCLOPT) -d z.tcl z3950v3.asn
789 $(DATETIME_FILES): $(SRCDIR)\datetime.asn
791 $(TCL) $(TCLOPT) -d z.tcl datetime.asn
794 $(UNIVRES_FILES): $(SRCDIR)\univres.asn
796 $(TCL) $(TCLOPT) -d z.tcl univres.asn
799 $(ESUPDATE_FILES): $(SRCDIR)\esupdate.asn
801 $(TCL) $(TCLOPT) -d z.tcl esupdate.asn
804 $(ESADMIN_FILES): $(SRCDIR)\esadmin.asn
806 $(TCL) $(TCLOPT) -d z.tcl esadmin.asn
809 $(CHARNEG_FILES): $(SRCDIR)\charneg-3.asn
811 $(TCL) $(TCLOPT) -d z.tcl charneg-3.asn
814 $(MTERM2_FILES): $(SRCDIR)\mterm2.asn
816 $(TCL) $(TCLOPT) -d z.tcl mterm2.asn
819 $(OCLCUI_FILES): $(SRCDIR)\oclcui.asn
821 $(TCL) $(TCLOPT) -d z.tcl oclcui.asn
824 $(FACET_FILES): $(SRCDIR)\facet.asn
826 $(TCL) $(TCLOPT) -d z.tcl facet.asn
829 $(ILL_CORE_FILES): $(SRCDIR)\ill9702.asn
831 $(TCL) $(TCLOPT) -d ill.tcl ill9702.asn
834 $(ITEM_REQ_FILES): $(SRCDIR)\item-req.asn
836 $(TCL) $(TCLOPT) -d ill.tcl item-req.asn
839 $(SRCDIR)\marc8.c: $(SRCDIR)\codetables.xml $(SRCDIR)\charconv.tcl
841 $(TCL) charconv.tcl -p marc8 codetables.xml -o marc8.c
843 $(SRCDIR)\marc8r.c: $(SRCDIR)\codetables.xml $(SRCDIR)\charconv.tcl
845 $(TCL) charconv.tcl -r -p marc8r codetables.xml -o marc8r.c
847 $(SRCDIR)\iso5426.c: $(SRCDIR)\codetables-iso5426.xml $(SRCDIR)\charconv.tcl
849 $(TCL) charconv.tcl -r -p iso5426 codetables-iso5426.xml -o iso5426.c
851 $(SRCDIR)\oid_std.c: $(SRCDIR)\oid.csv
853 $(TCL) oidtoc.tcl $(SRCDIR) oid.csv oid_std.c oid_std.h
855 $(SRCDIR)\diagbib1.c: $(SRCDIR)\bib1.csv
857 $(TCL) csvtobib1.tcl $(SRCDIR)
859 $(SRCDIR)\diagsrw.c: $(SRCDIR)\srw.csv
861 $(TCL) csvtosrw.tcl $(SRCDIR)
863 $(SRCDIR)\diagsru_update.c: $(SRCDIR)\sru_update.csv
865 $(TCL) csvtosru_update.tcl $(SRCDIR)
867 $(INCLDIR)\yaz\yaz-version.h: $(ROOTDIR)/configure.ac
869 $(TCL) mk_version.tcl $(ROOTDIR)/configure.ac $(INCLDIR)\yaz\yaz-version.h
875 $(SRCDIR)\cql.c: $(SRCDIR)\cql.y
877 $(BISON) -y -p cql_ -o cql.c cql.y
882 # The RC compiler (resource files)
885 YAZ_RC=$(WINDIR)\yaz.rc
886 YAZ_RES=$(OBJDIR)\yaz.res
887 YAZ_ICU_RES=$(OBJDIR)\yaz_icu.res
895 $(YAZ_RES): $(YAZ_RC)
896 $(RSC) $(RSOPT) /I"../include" /fo"$(YAZ_RES)" $(YAZ_RC)
898 $(YAZ_ICU_RES): $(YAZ_RC)
899 $(RSC) $(RSOPT) /DICU=1 /I"../include" /fo"$(YAZ_ICU_RES)" $(YAZ_RC)
903 $(YAZ_DLL) $(YAZ_IMPLIB): "$(BINDIR)" $(DLL_OBJS) $(YAZ_RES)
908 /implib:"$(YAZ_IMPLIB)"
909 $(MT) -manifest $@.manifest -outputresource:$@;2
911 $(YAZ_ICU_DLL) $(YAZ_ICU_IMPLIB): "$(BINDIR)" $(ICU_DLL_OBJS) $(YAZ_ICU_RES)
912 $(LINK_DLL) $(ICU_LIBS) $(YAZ_IMPLIB)\
916 /implib:"$(YAZ_ICU_IMPLIB)"
917 $(MT) -manifest $@.manifest -outputresource:$@;2
919 $(YAZ_COND_DLL) $(YAZ_COND_IMPLIB): "$(BINDIR)" $(COND_DLL_OBJS) $(YAZ_COND_RES)
920 $(LINK_DLL) $(COND_LIB) $(YAZ_IMPLIB)\
924 /implib:"$(YAZ_COND_IMPLIB)"
925 $(MT) -manifest $@.manifest -outputresource:$@;2
927 $(CLIENT) : "$(BINDIR)" $(YAZ_CLIENT_OBJS) $(YAZ_DLL)
928 $(LINK_PROGRAM) $(YAZ_CLIENT_OBJS) /out:$@
929 $(MT) -manifest $@.manifest -outputresource:$@;1
931 $(YAZ_ICU) : "$(BINDIR)" $(YAZ_ICU_OBJS) $(YAZ_ICU_DLL)
932 $(LINK_PROGRAM) $(ICU_LIBS) $(YAZ_ICU_IMPLIB) $(YAZ_ICU_OBJS) /out:$@
933 $(MT) -manifest $@.manifest -outputresource:$@;1
935 $(YAZ_URL) : "$(BINDIR)" $(YAZ_URL_OBJS) $(YAZ_DLL)
936 $(LINK_PROGRAM) $(YAZ_URL_OBJS) /out:$@
937 $(MT) -manifest $@.manifest -outputresource:$@;1
939 $(SC_TEST) : "$(BINDIR)" $(SC_TEST_OBJS) $(YAZ_DLL)
940 $(LINK_PROGRAM) $(SC_TEST_OBJS) /out:$@
941 $(MT) -manifest $@.manifest -outputresource:$@;1
943 $(ZOOMSH) : "$(BINDIR)" $(YAZ_ZOOMSH_OBJS) $(YAZ_DLL)
944 $(LINK_PROGRAM) $(YAZ_ZOOMSH_OBJS) /out:$@
945 $(MT) -manifest $@.manifest -outputresource:$@;1
947 $(ZOOMTST1) : "$(BINDIR)" $(YAZ_ZOOMTST1_OBJS) $(YAZ_DLL)
948 $(LINK_PROGRAM) $(YAZ_ZOOMTST1_OBJS) /out:$@
949 $(MT) -manifest $@.manifest -outputresource:$@;1
951 $(ZOOMTST2) : "$(BINDIR)" $(YAZ_ZOOMTST2_OBJS) $(YAZ_DLL)
952 $(LINK_PROGRAM) $(YAZ_ZOOMTST2_OBJS) /out:$@
953 $(MT) -manifest $@.manifest -outputresource:$@;1
955 $(ZOOMTST3) : "$(BINDIR)" $(YAZ_ZOOMTST3_OBJS) $(YAZ_DLL)
956 $(LINK_PROGRAM) $(YAZ_ZOOMTST3_OBJS) /out:$@
957 $(MT) -manifest $@.manifest -outputresource:$@;1
959 $(ZOOMTST4) : "$(BINDIR)" $(YAZ_ZOOMTST4_OBJS) $(YAZ_DLL)
960 $(LINK_PROGRAM) $(YAZ_ZOOMTST4_OBJS) /out:$@
961 $(MT) -manifest $@.manifest -outputresource:$@;1
963 $(ZOOMTST5) : "$(BINDIR)" $(YAZ_ZOOMTST5_OBJS) $(YAZ_DLL)
964 $(LINK_PROGRAM) $(YAZ_ZOOMTST5_OBJS) /out:$@
965 $(MT) -manifest $@.manifest -outputresource:$@;1
967 $(ZOOMTST6) : "$(BINDIR)" $(YAZ_ZOOMTST6_OBJS) $(YAZ_DLL)
968 $(LINK_PROGRAM) $(YAZ_ZOOMTST6_OBJS) /out:$@
969 $(MT) -manifest $@.manifest -outputresource:$@;1
971 $(ZOOMTST7) : "$(BINDIR)" $(YAZ_ZOOMTST7_OBJS) $(YAZ_DLL)
972 $(LINK_PROGRAM) $(YAZ_ZOOMTST7_OBJS) /out:$@
973 $(MT) -manifest $@.manifest -outputresource:$@;1
975 $(ZOOMTST8) : "$(BINDIR)" $(YAZ_ZOOMTST8_OBJS) $(YAZ_DLL)
976 $(LINK_PROGRAM) $(YAZ_ZOOMTST8_OBJS) /out:$@
977 $(MT) -manifest $@.manifest -outputresource:$@;1
979 $(ZOOMTST9) : "$(BINDIR)" $(YAZ_ZOOMTST9_OBJS) $(YAZ_DLL)
980 $(LINK_PROGRAM) $(YAZ_ZOOMTST9_OBJS) /out:$@
981 $(MT) -manifest $@.manifest -outputresource:$@;1
983 $(ZOOMTST10) : "$(BINDIR)" $(YAZ_ZOOMTST10_OBJS) $(YAZ_DLL)
984 $(LINK_PROGRAM) $(YAZ_ZOOMTST10_OBJS) /out:$@
985 $(MT) -manifest $@.manifest -outputresource:$@;1
987 $(CQL2PQF) : "$(BINDIR)" $(YAZ_CQL2PQF_OBJS) $(YAZ_DLL)
988 $(LINK_PROGRAM) $(YAZ_CQL2PQF_OBJS) /out:$@
989 $(MT) -manifest $@.manifest -outputresource:$@;1
991 $(CQL2XCQL) : "$(BINDIR)" $(YAZ_CQL2XCQL_OBJS) $(YAZ_DLL)
992 $(LINK_PROGRAM) $(YAZ_CQL2XCQL_OBJS) /out:$@
993 $(MT) -manifest $@.manifest -outputresource:$@;1
995 $(ZTEST) : "$(BINDIR)" $(ZTEST_OBJS) $(YAZ_DLL)
996 $(LINK_PROGRAM) $(ZTEST_OBJS) /out:$@
997 $(MT) -manifest $@.manifest -outputresource:$@;1
999 $(YAZ_MARCDUMP) : "$(BINDIR)" $(YAZ_MARCDUMP_OBJS) $(YAZ_DLL)
1000 $(LINK_PROGRAM) $(YAZ_MARCDUMP_OBJS) /out:$@
1001 $(MT) -manifest $@.manifest -outputresource:$@;1
1004 $(TSTLOG) : "$(BINDIR)" $(TSTLOG_OBJS) $(YAZ_DLL)
1005 $(LINK_PROGRAM) $(TSTLOG_OBJS) /out:$@
1006 $(MT) -manifest $@.manifest -outputresource:$@;1
1008 $(TST_TIMING) : "$(BINDIR)" $(TST_TIMING_OBJS) $(YAZ_DLL)
1009 $(LINK_PROGRAM) $(TST_TIMING_OBJS) /out:$@
1010 $(MT) -manifest $@.manifest -outputresource:$@;1
1012 $(TEST_MUTEX) : "$(BINDIR)" $(TEST_MUTEX_OBJS) $(YAZ_COND_DLL)
1013 $(LINK_PROGRAM) $(YAZ_COND_IMPLIB) $(TEST_MUTEX_OBJS) /out:$@
1014 $(MT) -manifest $@.manifest -outputresource:$@;1
1018 $(DOCDIR)\htmlhelp.chm: $(DOCDIR)\htmlhelp.hhp
1020 -$(HHC) htmlhelp.hhp
1024 -del $(BINDIR)\*.exe
1025 -del $(BINDIR)\*.dll
1026 -del $(BINDIR)\*.pdb
1028 -del $(LIBDIR)\*.LIB
1029 -del $(OBJDIR)\*.OBJ
1032 -del $(SRCDIR)\marc8.c
1033 -del $(SRCDIR)\cql.c
1034 -del $(SRCDIR)\z-*.c
1035 -del $(SRCDIR)\ill-core.c
1036 -del $(SRCDIR)\item-req.c
1037 -del $(INCLDIR)\yaz\ill-core.h
1038 -del $(INCLDIR)\yaz\item-req.h
1039 -del $(INCLDIR)\yaz\z-accdes1.h
1040 -del $(INCLDIR)\yaz\z-core.h
1041 -del $(DATETIME_H_FILES)
1042 -del $(UNIVRES_H_FILES)
1043 -del $(ESUPDATE_H_FILES)
1045 # Because DOS del will only accept one file name to delete,
1046 # the _H_ files work only on sets that have just one file.
1047 # Z3950_H_FILES had to be spelled out. One more point for MS!
1049 # check directories and create if needed
1050 dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)
1052 $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR):
1053 if not exist "$@/$(NUL)" mkdir "$@"
1056 # Explicit dependencies
1058 # force recompilation of everything, if makefile changed
1060 $(Z3950_OBJS): $(GENERATED_C_FILES) $(GENERATED_H_FILES)
1062 $(ILL_OBJS): $(ILL_CORE_FILES) $(ITEM_REQ_FILES)
1064 # makes sure we generate before compiling anything, as the
1065 # new proto.h refers to the generated files, and is included