1 # makefile.mak - makefile for MS NMAKE
2 # $Id: makefile,v 1.30 2001-10-28 23:28:26 adam Exp $
5 # HL: Heikki Levanto, Index Data
7 # Log at the end of the file
10 # - Move MS-C's whatnots into win direcotry
11 # - The TCL script produces C and H files in the same dir as the
12 # ASN files. H's are copied to INCL, C's are left there.
13 # They should be produced into OBJ...
15 # Envoronment problems
16 # - You need to have the proper path and environment for VC set
17 # up. There is a bat file VCVARS32.BAT that sets most of it up
18 # for you. You can find this somewhere near DevStudio\VC\BIN
19 # - RegSvr32 must also be along the path, often in WINDOWS\SYSTEM
20 # - TCL has to be available too, if compiling for NEW_Z3950
22 ###########################################################
23 ############### Parameters
24 ###########################################################
26 DEBUG=0 # 0 for release, 1 for debug
30 all: dirs yaz_date_h generate dll client ztest zoomsh
32 generate: generated_files
34 ###########################################################
35 ############### Directories
36 ###########################################################
37 # The current directory is supposed to be something like
38 # ..../Yaz/Win, everything is relative to that
39 ROOTDIR=.. # The home of Yaz
41 INCLDIR=$(ROOTDIR)\include # our includes
42 LIBDIR=$(ROOTDIR)\lib # We produce .lib, .exp etc there
43 BINDIR=$(ROOTDIR)\bin # We produce exes and dlls there
44 WINDIR=$(ROOTDIR)\win # all these Win make things
45 OBJDIR=$(WINDIR)\obj # where we store intermediate files
46 UNIXDIR=$(ROOTDIR)\unix # corresponding unix things
47 SRCDIR=$(ROOTDIR) # for the case we move them under src
50 COMSTACKDIR=$(SRCDIR)\COMSTACK
52 UTILDIR=$(SRCDIR)\UTIL
53 ZUTILDIR=$(SRCDIR)\ZUTIL
54 RETDIR=$(SRCDIR)\RETRIEVAL
55 Z3950DIR=$(SRCDIR)\Z39.50
58 ZOOMDIR=$(SRCDIR)\zoom
60 CLIENTDIR=$(SRCDIR)\CLIENT
61 SERVERDIR=$(SRCDIR)\SERVER
62 ZTESTDIR=$(SRCDIR)\ZTEST
64 TMPDIR=$(ROOTDIR)\win\tmp
67 ###########################################################
68 ############### Targets - what to make
69 ###########################################################
73 IMPLIB=$(LIBDIR)\Yaz.lib
75 CLIENT=$(BINDIR)\yaz-client.exe
76 ZOOMSH=$(BINDIR)\zoomsh.exe
77 ZTEST=$(BINDIR)\yaz-ztest.exe
78 YAZ_DATE_H=$(INCLDIR)\yaz\yaz-date.h
80 ZOOMTST1=$(BINDIR)\zoomtst1.exe
81 ZOOMTST2=$(BINDIR)\zoomtst2.exe
82 ZOOMTST3=$(BINDIR)\zoomtst3.exe
83 ZOOMTST4=$(BINDIR)\zoomtst4.exe
84 ZOOMTST5=$(BINDIR)\zoomtst5.exe
85 ZOOMTST6=$(BINDIR)\zoomtst6.exe
86 ZOOMTST7=$(BINDIR)\zoomtst7.exe
89 # shortcut names defined here
93 zoomsh: $(ZOOMSH) $(ZOOMTST1) $(ZOOMTST2) $(ZOOMTST3) \
94 $(ZOOMTST4) $(ZOOMTST5) $(ZOOMTST6) $(ZOOMTST7)
95 yaz_date_h: $(YAZ_DATE_H)
97 ###########################################################
98 ############### Compiler and linker options
99 ###########################################################
102 ### C and CPP compiler (the same thing)
103 # Note: $(CPP) has already been defined in the environment
104 # (if you set things up right!)
107 /nologo /W3 /GX /FD /c \
108 /D "YAZ_MODULE_ill=1" \
109 /D "YAZ_MODULE_ccl=1" \
117 /I"$(SRCDIR)\include"
127 # /W3 = warning level
128 # /GX = Enable exception handling
129 # /FD = Generate file dependencies (what ever they are)
130 # /c = compile without linking
131 # /FR = Generate browse info (.sbr file that gets combined into .bsc)
132 # /Fo = object file name (or at least path)
133 # /Fd = debug database name (or path)
134 # /MD = Runtime library: Multithread DLL
135 # /MDd = Runtime library: Multithread DLL (debug)
136 # /Od = Disable optimising (debug)
137 # /O2 = Optimize for speed
138 # /YX = Automatic use of precomipled headers
139 # /Gm = Minimal rebuild (some cpp class stuff)
140 # /Zi = Program database for debuggers
141 # /ZI = Pgm database with special "edit&continue" stuff - not available in C5
147 LINK_LIBS= kernel32.lib user32.lib gdi32.lib \
148 advapi32.lib uuid.lib \
149 wsock32.lib advapi32.lib
151 COMMON_LNK_OPTIONS= /nologo \
156 DEBUG_LNK_OPTIONS= /debug
158 RELEASE_LNK_OPTIONS= /pdb:none
160 DLL_LINK_OPTIONS= /dll
161 CLIENT_LINK_OPTIONS = /subsystem:console
162 ZOOMSH_LINK_OPTIONS = /subsystem:console
163 SERVER_LINK_OPTIONS = -lib
164 ZTEST_LINK_OPTIONS = /subsystem:console
167 TCL="C:\Program Files\Tcl\bin\tclsh83.exe"
170 COMMON_TCL_OPTIONS= ..\util\yaz-comp -I$(INCLDIR) -i yaz
172 # Final opt variables
174 COPT= $(COMMON_C_OPTIONS) $(DEBUG_C_OPTIONS) $(COMMON_C_INCLUDES)
175 MTLOPT= $(COMMON_MTL_OPTIONS) $(DEBUG_MTL_OPTIONS)
176 RCOPT= $(COMMON_RC_OPTIONS) $(DEBUG_RC_OPTIONS)
177 LNKOPT= $(COMMON_LNK_OPTIONS) $(DEBUG_LNK_OPTIONS) $(LNK_LIBS)
178 TCLOPT= $(COMMON_TCL_OPTIONS)
181 COPT= $(COMMON_C_OPTIONS) $(RELEASE_C_OPTIONS) $(COMMON_C_INCLUDES)
182 MTLOPT= $(COMMON_MTL_OPTIONS) $(RELEASE_MTL_OPTIONS)
183 RCOPT= $(COMMON_RC_OPTIONS) $(RELEASE_RC_OPTIONS)
184 LNKOPT= $(COMMON_LNK_OPTIONS) $(RELEASE_LNK_OPTIONS) $(LNK_LIBS)
185 TCLOPT= $(COMMON_TCL_OPTIONS)
190 ###########################################################
191 ############### Source and object modules
192 ###########################################################
194 # Note: Ordinary source files are not specified here at
195 # all, make finds them in suitable dirs. The object modules
196 # need to be specified, though
199 $(OBJDIR)\client.obj \
205 YAZ_ZOOMTST1_OBJS = \
206 $(OBJDIR)\zoomtst1.obj
207 YAZ_ZOOMTST2_OBJS = \
208 $(OBJDIR)\zoomtst2.obj
209 YAZ_ZOOMTST3_OBJS = \
210 $(OBJDIR)\zoomtst3.obj
211 YAZ_ZOOMTST4_OBJS = \
212 $(OBJDIR)\zoomtst4.obj
213 YAZ_ZOOMTST5_OBJS = \
214 $(OBJDIR)\zoomtst5.obj
215 YAZ_ZOOMTST6_OBJS = \
216 $(OBJDIR)\zoomtst6.obj
217 YAZ_ZOOMTST7_OBJS = \
218 $(OBJDIR)\zoomtst7.obj
221 "$(OBJDIR)\eventl.obj" \
222 "$(OBJDIR)\requestq.obj" \
223 "$(OBJDIR)\service.obj" \
224 "$(OBJDIR)\seshigh.obj" \
225 "$(OBJDIR)\statserv.obj" \
226 "$(OBJDIR)\tcpdchk.obj"
229 "$(OBJDIR)\read-grs.obj" \
230 "$(OBJDIR)\ztest.obj"
233 $(OBJDIR)\cclerrms.obj \
234 $(OBJDIR)\cclfind.obj \
235 $(OBJDIR)\cclptree.obj \
236 $(OBJDIR)\cclqfile.obj \
237 $(OBJDIR)\cclqual.obj \
238 $(OBJDIR)\cclstr.obj \
239 $(OBJDIR)\ccltoken.obj
242 $(OBJDIR)\comstack.obj \
243 $(OBJDIR)\tcpip.obj \
244 $(OBJDIR)\waislen.obj
247 $(OBJDIR)\ber_any.obj \
248 $(OBJDIR)\ber_bit.obj \
249 $(OBJDIR)\ber_bool.obj \
250 $(OBJDIR)\ber_int.obj \
251 $(OBJDIR)\ber_len.obj \
252 $(OBJDIR)\ber_null.obj \
253 $(OBJDIR)\ber_oct.obj \
254 $(OBJDIR)\ber_oid.obj \
255 $(OBJDIR)\ber_tag.obj \
256 $(OBJDIR)\dumpber.obj \
258 $(OBJDIR)\odr_any.obj \
259 $(OBJDIR)\odr_bit.obj \
260 $(OBJDIR)\odr_bool.obj \
261 $(OBJDIR)\odr_choice.obj \
262 $(OBJDIR)\odr_cons.obj \
263 $(OBJDIR)\odr_enum.obj \
264 $(OBJDIR)\odr_int.obj \
265 $(OBJDIR)\odr_mem.obj \
266 $(OBJDIR)\odr_null.obj \
267 $(OBJDIR)\odr_oct.obj \
268 $(OBJDIR)\odr_oid.obj \
269 $(OBJDIR)\odr_seq.obj \
270 $(OBJDIR)\odr_tag.obj \
271 $(OBJDIR)\odr_use.obj \
272 $(OBJDIR)\odr_util.obj
275 $(OBJDIR)\atoin.obj \
277 $(OBJDIR)\marcdisp.obj \
279 $(OBJDIR)\nmemsdup.obj \
281 $(OBJDIR)\options.obj \
282 $(OBJDIR)\readconf.obj \
283 $(OBJDIR)\tpath.obj \
284 $(OBJDIR)\wrbuf.obj \
285 $(OBJDIR)\xmalloc.obj \
286 $(OBJDIR)\matchstr.obj
289 $(OBJDIR)\diagbib1.obj \
291 $(OBJDIR)\logrpn.obj \
292 $(OBJDIR)\pquery.obj \
293 $(OBJDIR)\yaz-ccl.obj \
294 $(OBJDIR)\otherinfo.obj \
295 $(OBJDIR)\sortspec.obj \
296 $(OBJDIR)\z3950oid.obj
300 $(OBJDIR)\d1_absyn.obj\
301 $(OBJDIR)\d1_attset.obj\
302 $(OBJDIR)\d1_doespec.obj\
303 $(OBJDIR)\d1_espec.obj\
304 $(OBJDIR)\d1_expout.obj\
305 $(OBJDIR)\d1_grs.obj\
306 $(OBJDIR)\d1_handle.obj\
307 $(OBJDIR)\d1_map.obj\
308 $(OBJDIR)\d1_marc.obj\
309 $(OBJDIR)\d1_prtree.obj\
310 $(OBJDIR)\d1_read.obj\
311 $(OBJDIR)\d1_soif.obj\
312 $(OBJDIR)\d1_sumout.obj\
313 $(OBJDIR)\d1_sutrs.obj\
314 $(OBJDIR)\d1_tagset.obj\
315 $(OBJDIR)\d1_varset.obj\
316 $(OBJDIR)\d1_write.obj\
320 $(OBJDIR)\z-date.obj\
321 $(OBJDIR)\z-univ.obj\
322 $(OBJDIR)\zes-update.obj\
323 $(OBJDIR)\zes-admin.obj \
324 $(OBJDIR)\z-accdes1.obj \
325 $(OBJDIR)\z-accform1.obj \
326 $(OBJDIR)\z-acckrb1.obj \
327 $(OBJDIR)\z-core.obj \
328 $(OBJDIR)\z-diag1.obj \
329 $(OBJDIR)\z-espec1.obj \
330 $(OBJDIR)\z-estask.obj \
331 $(OBJDIR)\z-exp.obj \
332 $(OBJDIR)\z-grs.obj \
333 $(OBJDIR)\z-opac.obj \
334 $(OBJDIR)\z-uifr1.obj \
335 $(OBJDIR)\z-rrf1.obj \
336 $(OBJDIR)\z-rrf2.obj \
337 $(OBJDIR)\z-sum.obj \
338 $(OBJDIR)\z-sutrs.obj \
339 $(OBJDIR)\zes-expi.obj \
340 $(OBJDIR)\zes-exps.obj \
341 $(OBJDIR)\zes-order.obj \
342 $(OBJDIR)\zes-pquery.obj \
343 $(OBJDIR)\zes-psched.obj \
344 $(OBJDIR)\zes-pset.obj \
345 $(OBJDIR)\zes-update0.obj \
346 $(OBJDIR)\prt-ext.obj
349 $(OBJDIR)\ill-get.obj\
350 $(OBJDIR)\ill-core.obj\
351 $(OBJDIR)\item-req.obj
354 $(OBJDIR)\zoom-c.obj \
355 $(OBJDIR)\zoom-opt.obj
360 $(YAZ_COMSTACK_OBJS) \
372 DLL_OBJS= $(YAZ_OBJS)
379 ###########################################################
380 ############### Generated C and H files
382 ######################################################
384 Z3950_C_DIR=$(Z3950DIR)
386 #!!! Should be moved to OBJ, but that requires too much trickery
388 # Files generated from datetime.asn
389 DATETIME_H_FILES = $(INCLDIR)\yaz\z-date.h
390 DATETIME_C_FILES = $(Z3950_C_DIR)\z-date.c
392 # Files generated from univres.asn
393 UNIVRES_H_FILES = $(INCLDIR)\yaz\z-univ.h
394 UNIVRES_C_FILES = $(Z3950_C_DIR)\z-univ.c
396 # Files generated from esupdate.asn
397 ESUPDATE_H_FILES = $(INCLDIR)\yaz\zes-update.h
398 ESUPDATE_C_FILES = $(Z3950_C_DIR)\zes-update.c
400 # Files generated from esadmin.asn
401 ESADMIN_H_FILES = $(INCLDIR)\yaz\zes-admin.h
402 ESADMIN_C_FILES = $(Z3950_C_DIR)\zes-admin.c
404 # Files created from z3950v3.asn
406 $(INCLDIR)\yaz\z-accdes1.h \
407 $(INCLDIR)\yaz\z-core.h
410 $(Z3950_C_DIR)\z-accdes1.c \
411 $(Z3950_C_DIR)\z-accform1.c \
412 $(Z3950_C_DIR)\z-acckrb1.c \
413 $(Z3950_C_DIR)\z-core.c \
414 $(Z3950_C_DIR)\z-diag1.c \
415 $(Z3950_C_DIR)\z-espec1.c \
416 $(Z3950_C_DIR)\z-estask.c \
417 $(Z3950_C_DIR)\z-exp.c \
418 $(Z3950_C_DIR)\z-grs.c \
419 $(Z3950_C_DIR)\z-opac.c \
420 $(Z3950_C_DIR)\z-uifr1.c \
421 $(Z3950_C_DIR)\z-rrf1.c \
422 $(Z3950_C_DIR)\z-rrf2.c \
423 $(Z3950_C_DIR)\z-sum.c \
424 $(Z3950_C_DIR)\z-sutrs.c \
425 $(Z3950_C_DIR)\zes-expi.c \
426 $(Z3950_C_DIR)\zes-exps.c \
427 $(Z3950_C_DIR)\zes-order.c \
428 $(Z3950_C_DIR)\zes-pquery.c \
429 $(Z3950_C_DIR)\zes-psched.c \
430 $(Z3950_C_DIR)\zes-pset.c \
431 $(Z3950_C_DIR)\zes-update0.c
433 # Files generated from ill9702.asn
435 $(INCLDIR)\yaz\ill-core.h
438 $(ILL_C_DIR)\ill-core.c
440 # Files generated from itemreq.asn
442 $(INCLDIR)\yaz\item-req.h
445 $(ILL_C_DIR)\item-req.c
448 DATETIME_FILES = $(DATETIME_H_FILES) $(DATETIME_C_FILES)
449 UNIVRES_FILES = $(UNIVRES_H_FILES) $(UNIVRES_C_FILES)
450 ESUPDATE_FILES = $(ESUPDATE_H_FILES) $(ESUPDATE_C_FILES)
451 ESADMIN_FILES = $(ESADMIN_H_FILES) $(ESADMIN_C_FILES)
452 Z3950V3_FILES= $(Z3950V3_C_FILES) $(Z3950V3_H_FILES)
453 ILL_CORE_FILES= $(ILL_CORE_C_FILES) $(ILL_CORE_H_FILES)
454 ITEM_REQ_FILES= $(ITEM_REQ_C_FILES) $(ITEM_REQ_H_FILES)
458 $(ESUPDATE_C_FILES) \
460 $(DATETIME_C_FILES) \
465 $(ESUPDATE_H_FILES) \
467 $(DATETIME_H_FILES) \
471 $(GENERATED_H_FILES) \
472 $(GENERATED_C_FILES) \
474 ###########################################################
475 ############### Compiling
476 ###########################################################
478 # Note: This defines where to look for the necessary
479 # source files. Funny way of doing it, but it works.
482 {$(SRCDIR)}.cpp{$(OBJDIR)}.obj:
486 {$(CLIENTDIR)}.c{$(OBJDIR)}.obj:
487 @$(CPP) $(COPT) $< /D"_CONSOLE"
490 {$(ZTESTDIR)}.c{$(OBJDIR)}.obj:
491 @$(CPP) $(COPT) $< /D"_CONSOLE"
494 {$(SERVERDIR)}.c{$(OBJDIR)}.obj:
497 # Various YAZ source directories
498 {$(ASNDIR)}.c{$(OBJDIR)}.obj:
501 {$(COMSTACKDIR)}.c{$(OBJDIR)}.obj:
504 {$(ODRDIR)}.c{$(OBJDIR)}.obj:
507 {$(UTILDIR)}.c{$(OBJDIR)}.obj:
510 {$(ZUTILDIR)}.c{$(OBJDIR)}.obj:
513 {$(RETDIR)}.c{$(OBJDIR)}.obj:
516 {$(Z3950_C_DIR)}.c{$(OBJDIR)}.obj:
519 {$(ILL_C_DIR)}.c{$(OBJDIR)}.obj:
522 {$(CCLDIR)}.c{$(OBJDIR)}.obj:
525 {$(ZOOMDIR)}.c{$(OBJDIR)}.obj:
528 ############### ASN-generated files
534 $(TCL) util\cvs-date.tcl include\yaz\yaz-date.h
537 $(Z3950V3_FILES): $(Z3950DIR)\z3950v3.asn
539 $(TCL) $(TCLOPT) -d z.tcl z3950v3.asn
542 $(DATETIME_FILES): $(Z3950DIR)\datetime.asn
544 $(TCL) $(TCLOPT) -d z.tcl datetime.asn
547 $(UNIVRES_FILES): $(Z3950DIR)\univres.asn
549 $(TCL) $(TCLOPT) -d z.tcl univres.asn
552 $(ESUPDATE_FILES): $(Z3950DIR)\esupdate.asn
554 $(TCL) $(TCLOPT) -d z.tcl esupdate.asn
557 $(ESADMIN_FILES): $(Z3950DIR)\esadmin.asn
559 $(TCL) $(TCLOPT) -d z.tcl esadmin.asn
562 $(ILL_CORE_FILES): $(ILLDIR)\ill9702.asn
564 $(TCL) $(TCLOPT) -d ill.tcl ill9702.asn
567 $(ITEM_REQ_FILES): $(ILLDIR)\item-req.asn
569 $(TCL) $(TCLOPT) -d ill.tcl item-req.asn
575 ###########################################################
576 ############### Resources
577 ###########################################################
579 ### The RC compiler (resource files)
581 COMMON_RC_OPTIONS= /l 0x406 /i"$(ROOTDIR)"
582 DEBUG_RC_OPTIONS=/d "_DEBUG"
583 RELEASE_RC_OPTIONS=/d "NDEBUG"
585 YAZ_RES=$(OBJDIR)\yaz.res
586 YAZ_RC=$(WINDIR)\yaz.rc
594 $(YAZ_RES): $(YAZ_RC)
595 $(RSC) $(RSOPT) /fo"$(YAZ_RES)" $(YAZ_RC)
597 ###########################################################
598 ############### Linking
599 ###########################################################
601 $(DLL) $(IMPLIB): "$(BINDIR)" $(DLL_OBJS) $(YAZ_RES)
602 @echo Linking the dll $(DLL)
610 /implib:"$(LIBDIR)\yaz.lib"
611 /pdb:"$(LIBDIR)\yaz.pdb"
612 /map:"$(LIBDIR)\yaz.map"
615 $(CLIENT) : "$(BINDIR)" $(YAZ_CLIENT_OBJS)
616 @echo Linking $(CLIENT)
619 $(CLIENT_LINK_OPTIONS)
623 /pdb:"$(LIBDIR)\yaz-client.pdb"
624 /map:"$(LIBDIR)\yaz-client.map"
628 $(ZOOMSH) : "$(BINDIR)" $(YAZ_ZOOMSH_OBJS)
629 @echo Linking $(ZOOMSH)
632 $(ZOOMSH_LINK_OPTIONS)
636 /pdb:"$(LIBDIR)\zoomsh.pdb"
637 /map:"$(LIBDIR)\zoomsh.map"
641 $(ZOOMTST1) : "$(BINDIR)" $(YAZ_ZOOMTST1_OBJS)
642 @echo Linking $(ZOOMTST1)
645 $(ZOOMSH_LINK_OPTIONS)
649 /pdb:"$(LIBDIR)\zoomtst1.pdb"
650 /map:"$(LIBDIR)\zoomtst1.map"
654 $(ZOOMTST2) : "$(BINDIR)" $(YAZ_ZOOMTST2_OBJS)
655 @echo Linking $(ZOOMTST2)
658 $(ZOOMSH_LINK_OPTIONS)
662 /pdb:"$(LIBDIR)\zoomtst2.pdb"
663 /map:"$(LIBDIR)\zoomtst2.map"
667 $(ZOOMTST3) : "$(BINDIR)" $(YAZ_ZOOMTST3_OBJS)
668 @echo Linking $(ZOOMTST3)
671 $(ZOOMSH_LINK_OPTIONS)
675 /pdb:"$(LIBDIR)\zoomtst3.pdb"
676 /map:"$(LIBDIR)\zoomtst3.map"
680 $(ZOOMTST4) : "$(BINDIR)" $(YAZ_ZOOMTST4_OBJS)
681 @echo Linking $(ZOOMTST4)
684 $(ZOOMSH_LINK_OPTIONS)
688 /pdb:"$(LIBDIR)\zoomtst4.pdb"
689 /map:"$(LIBDIR)\zoomtst4.map"
693 $(ZOOMTST5) : "$(BINDIR)" $(YAZ_ZOOMTST5_OBJS)
694 @echo Linking $(ZOOMTST5)
697 $(ZOOMSH_LINK_OPTIONS)
701 /pdb:"$(LIBDIR)\zoomtst5.pdb"
702 /map:"$(LIBDIR)\zoomtst5.map"
706 $(ZOOMTST6) : "$(BINDIR)" $(YAZ_ZOOMTST6_OBJS)
707 @echo Linking $(ZOOMTST6)
710 $(ZOOMSH_LINK_OPTIONS)
714 /pdb:"$(LIBDIR)\zoomtst6.pdb"
715 /map:"$(LIBDIR)\zoomtst6.map"
719 $(ZOOMTST7) : "$(BINDIR)" $(YAZ_ZOOMTST7_OBJS)
720 @echo Linking $(ZOOMTST7)
723 $(ZOOMSH_LINK_OPTIONS)
727 /pdb:"$(LIBDIR)\zoomtst7.pdb"
728 /map:"$(LIBDIR)\zoomtst7.map"
732 $(ZTEST) : "$(BINDIR)" $(ZTEST_OBJS) $(DLL)
733 @echo Linking the ztest $(ZTEST)
736 $(ZTEST_LINK_OPTIONS)
741 /implib:"$(LIBDIR)\yaz-ztest.lib"
742 /pdb:"$(LIBDIR)\yaz-ztest.pdb"
743 /map:"$(LIBDIR)\yaz-ztest.map"
748 # note that this links a lib, so it uses completely different options.
750 ###########################################################
751 ############### Special operations
752 ###########################################################
767 del $(Z3950_C_DIR)\*.c
768 del $(Z3950_C_DIR)\*.h
769 del $(INCLDIR)\yaz\z-accdes1.h
770 del $(INCLDIR)\yaz\z-core.h
771 del $(DATETIME_H_FILES)
772 del $(UNIVRES_H_FILES)
773 del $(ESUPDATE_H_FILES)
775 # Because DOS del will only accept one file name to delete,
776 # the _H_ files work only on sets that have just one file.
777 # Z3950_H_FILES had to be spelled out. One more point for MS!
779 ########### check directories and create if needed
780 dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)
782 $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR):
783 if not exist "$@/$(NUL)" mkdir "$@"
786 ###########################################################
787 ############### Explicit dependencies
788 ###########################################################
790 # force recompilation of everything, if makefile changed
792 $(Z3950_OBJS): $(GENERATED_C_FILES) $(GENERATED_H_FILES)
794 $(ILL_OBJS): $(ILL_CORE_FILES) $(ITEM_REQ_FILES)
796 # makes sure we generate before compiling anything, as the
797 # new proto.h refers to the generated files, and is included
800 ###########################################################
802 ###########################################################
805 # Revision 1.30 2001-10-28 23:28:26 adam
806 # Enable CCL-to-RPN for YAZ client on WIN32.
808 # Revision 1.29 2001/10/25 12:46:07 adam
809 # codecs not built as they should.
811 # Revision 1.28 2001/10/25 10:45:08 adam
814 # Revision 1.27 2001/10/24 12:24:43 adam
815 # WIN32 updates: ZOOM runs, nmem_init/nmem_exit called in DllMain.
817 # Revision 1.26 2001/09/27 12:09:18 adam
818 # Function nmem_exit calls oid_exit (when reference is 0).
820 # Revision 1.25 2001/09/24 21:51:56 adam
821 # New Z39.50 OID utilities: yaz_oidval_to_z3950oid, yaz_str_to_z3950oid
822 # and yaz_z3950oid_to_str.
824 # Revision 1.24 2001/08/14 12:05:58 adam
827 # Revision 1.23 2001/05/18 11:42:03 adam
828 # YAZ Build date for WIN32.
830 # Revision 1.22 2001/03/09 14:58:20 adam
831 # Updated version resource.
833 # Revision 1.21 2001/02/28 16:56:33 adam
834 # Added version info for WIN32.
836 # Revision 1.20 2000/12/01 17:56:41 adam
837 # on WIN32 function statserv_closedown closes socket(s) to provoke close.
839 # Revision 1.19 2000/11/16 13:03:13 adam
840 # Function ccl_rpn_query sets attributeSet to Bib-1.
842 # Revision 1.18 2000/11/01 14:47:00 adam
843 # Added CCL support for WIN32.
845 # Revision 1.17 2000/10/06 12:01:12 adam
846 # Updates regarding ASN-code generation (mostly).
848 # Revision 1.16 2000/05/05 13:48:15 adam
851 # Revision 1.15 2000/04/17 14:21:38 adam
854 # Revision 1.14 2000/03/02 08:48:21 adam
855 # Renamed ASN.1 compiler to yaz-comp (used to be yc.tcl).
857 # Revision 1.13 2000/02/28 11:13:03 adam
858 # Removed odr_priv.obj.
860 # Revision 1.12 2000/01/06 11:27:16 adam
863 # Revision 1.11 1999/12/21 14:16:20 ian
864 # Changed retrieval module to allow data1 trees with no associated absyn.
865 # Also added a simple interface for extracting values from data1 trees using
866 # a string based tagpath.
868 # Revision 1.10 1999/12/08 13:10:48 adam
871 # Revision 1.9 1999/11/30 13:47:12 adam
872 # Improved installation. Moved header files to include/yaz.
874 # Revision 1.8 1999/07/21 08:48:02 adam
875 # Removed dmalloc.obj.
877 # Revision 1.7 1999/06/09 15:10:08 heikki
878 # Cleaning up. Seems to work all right
880 # Revision 1.6 1999/06/09 13:33:32 heikki
881 # Compiles and links both old and new type stuff all right
883 # Revision 1.5 1999/06/09 11:05:30 heikki
884 # At least it can compile
886 # Revision 1.4 1999/06/09 09:41:09 heikki
887 # More work on the ASN-generated files.
889 # Revision 1.3 1999/06/08 14:32:30 heikki
890 # Proto.h works all right, removed linker warnings from server.lib
892 # Revision 1.2 1999/06/08 14:07:24 heikki
893 # Renamed a pile of files
894 # Tmpdir (to get around Ms leaving temp files around, and crashing
895 # when too many with same number...)
897 # Revision 1.1 1999/06/08 12:15:41 heikki
898 # Renamed to makefile (.nothing) (from .mak)
899 # Working on the proto.h problems and alternative confiigurations
901 # Revision 1.5 1999/06/04 10:04:28 heikki
904 # Revision 1.4 1999/06/02 13:23:29 heikki
905 # Debug options for C compiler
907 # Revision 1.3 1999/05/19 08:26:22 heikki