Cleaning up. Seems to work all right
[yaz-moved-to-github.git] / win / makefile
1 # Makefile.mak - makefile for MS NMAKE 
2 # $Id: makefile,v 1.7 1999-06-09 15:10:08 heikki Exp $
3 #
4 # Programmed by
5 #  HL: Heikki Levanto, Index Data
6 #
7 # Log at the end of the file
8 #
9 # Missing
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...
14 #  
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
21
22 ###########################################################
23 ############### Parameters 
24 ###########################################################
25
26 DEBUG=0   # 0 for release, 1 for debug
27
28 NEW_Z3950=0  # 0= use old asn files
29              # 1= generate files from *.asn (needs tcl)
30
31
32 default: all
33
34 all: dirs proto_h dll client server ztest 
35
36 generate: generated_files
37
38 ###########################################################
39 ############### Directories
40 ###########################################################
41 # The current directory is supposed to be something like
42 # ..../Yaz/Win, everything is relative to that
43 ROOTDIR=..   # The home of Yaz
44
45 INCLDIR=$(ROOTDIR)\include  # our includes
46 LIBDIR=$(ROOTDIR)\lib       # We produce .lib, .exp etc there
47 BINDIR=$(ROOTDIR)\bin       # We produce exes and dlls there
48 WINDIR=$(ROOTDIR)\win       # all these Win make things
49 OBJDIR=$(WINDIR)\obj        # where we store intermediate files
50 UNIXDIR=$(ROOTDIR)\unix     # corresponding unix things
51 SRCDIR=$(ROOTDIR)           # for the case we move them under src
52
53 ASNDIR=$(SRCDIR)\ASN
54 COMSTACKDIR=$(SRCDIR)\COMSTACK
55 ODRDIR=$(SRCDIR)\ODR
56 UTILDIR=$(SRCDIR)\UTIL
57 ZUTILDIR=$(SRCDIR)\ZUTIL
58 RETDIR=$(SRCDIR)\RETRIEVAL
59 Z3950DIR=$(SRCDIR)\Z39.50
60
61 CLIENTDIR=$(SRCDIR)\CLIENT
62 SERVERDIR=$(SRCDIR)\SERVER
63 ZTESTDIR=$(SRCDIR)\ZTEST
64
65 TMPDIR=$(ROOTDIR)\win\tmp
66 TMP=$(TMPDIR)
67
68 ###########################################################
69 ############### Targets - what to make
70 ###########################################################
71
72
73 DLL=$(BINDIR)\Yaz.dll
74 IMPLIB=$(LIBDIR)\Yaz.lib
75
76 CLIENT=$(BINDIR)\client.exe
77 SERVER=$(LIBDIR)\server.lib
78 ZTEST=$(BINDIR)\ztest.exe
79 PROTOH=$(INCLDIR)\proto.h
80
81 # shortcut names defined here
82 dll : $(DLL) 
83 client: $(CLIENT)
84 server: $(SERVER)
85 ztest: $(ZTEST)
86 proto_h: $(PROTOH)
87
88 ###########################################################
89 ############### Compiler and linker options 
90 ###########################################################
91
92
93 ### C and CPP compiler  (the same thing)
94 # Note: $(CPP) has already been defined in the environment
95 # (if you set things up right!)
96
97 COMMON_C_OPTIONS=          \
98   /nologo /W3 /GX /FD /c   \
99   /D "WIN32" /D "_WINDOWS" \
100   /FR"$(OBJDIR)\\"         \
101   /Fo"$(OBJDIR)\\"         \
102   /Fd"$(OBJDIR)\\" 
103
104 COMMON_C_INCLUDES= \
105   /I"$(SRCDIR)\include"
106
107 DEBUG_C_OPTIONS=  \
108   /D "_DEBUG"      \
109   /MDd  /Od /YX /Zi /Gm
110
111 RELEASE_C_OPTIONS=  \
112   /D "NDEBUG"        \
113   /MD /O2
114
115 # /W3  = warning level
116 # /GX  = Enable exception handling
117 # /FD  = Generate file dependencies (what ever they are)
118 # /c   = compile without linking
119 # /FR  = Generate browse info (.sbr file that gets combined into .bsc)
120 # /Fo  = object file name (or at least path)
121 # /Fd  = debug database name (or path)
122 # /MD  = Runtime library: Multithread DLL
123 # /MDd = Runtime library: Multithread DLL (debug)
124 # /Od  = Disable optimising (debug)
125 # /O2  = Optimize for speed
126 # /YX  = Automatic use of precomipled headers
127 # /Gm  = Minimal rebuild (some cpp class stuff)
128 # /Zi  = Program database for debuggers
129 # /ZI  = Pgm database with special "edit&continue" stuff - not available in C5
130
131
132 ### Linker options
133 LINK=link.exe
134
135 LINK_LIBS= kernel32.lib user32.lib   gdi32.lib   winspool.lib \
136            comdlg32.lib advapi32.lib shell32.lib ole32.lib    \
137            oleaut32.lib uuid.lib     odbc32.lib  odbccp32.lib \
138            wsock32.lib  advapi32.lib
139
140 COMMON_LNK_OPTIONS= /nologo \
141                     /subsystem:windows \
142                     /machine:i386 \
143                           /incremental:no
144
145 DEBUG_LNK_OPTIONS= /debug 
146
147 RELEASE_LNK_OPTIONS=  /pdb:none
148
149 DLL_LINK_OPTIONS= /dll  
150 CLIENT_LINK_OPTIONS = /subsystem:console  
151 SERVER_LINK_OPTIONS = -lib 
152 ZTEST_LINK_OPTIONS = /subsystem:console  
153
154 # TCL
155 TCL="C:\Program Files\Tcl\bin\tclsh80.exe"
156
157 COMMON_TCL_OPTIONS= ..\util\yc.tcl -d z.tcl -I$(INCLDIR)
158
159
160 # Final opt variables
161 !if $(DEBUG)
162 COPT=   $(COMMON_C_OPTIONS)   $(DEBUG_C_OPTIONS)     $(COMMON_C_INCLUDES)
163 MTLOPT= $(COMMON_MTL_OPTIONS) $(DEBUG_MTL_OPTIONS)
164 RCOPT=  $(COMMON_RC_OPTIONS)  $(DEBUG_RC_OPTIONS)
165 LNKOPT= $(COMMON_LNK_OPTIONS) $(DEBUG_LNK_OPTIONS)   $(LNK_LIBS)
166 TCLOPT= $(COMMON_TCL_OPTIONS)
167
168 !else
169 COPT=   $(COMMON_C_OPTIONS)   $(RELEASE_C_OPTIONS)   $(COMMON_C_INCLUDES) 
170 MTLOPT= $(COMMON_MTL_OPTIONS) $(RELEASE_MTL_OPTIONS)
171 RCOPT=  $(COMMON_RC_OPTIONS)  $(RELEASE_RC_OPTIONS)
172 LNKOPT= $(COMMON_LNK_OPTIONS) $(RELEASE_LNK_OPTIONS) $(LNK_LIBS)
173 TCLOPT= $(COMMON_TCL_OPTIONS)
174 !endif
175
176
177
178 ###########################################################
179 ###############  Source and object modules
180 ###########################################################
181
182 # Note: Ordinary source files are not specified here at 
183 # all, make finds them in suitable dirs. The object modules
184 # need to be specified, though
185
186 YAZ_CLIENT_OBJS= \
187    $(OBJDIR)\client.obj
188
189 YAZ_SERVER_OBJS= \
190         "$(OBJDIR)\eventl.obj" \
191         "$(OBJDIR)\requestq.obj" \
192         "$(OBJDIR)\service.obj" \
193         "$(OBJDIR)\seshigh.obj" \
194         "$(OBJDIR)\statserv.obj" \
195         "$(OBJDIR)\tcpdchk.obj" 
196
197 ZTEST_OBJS= \
198         "$(OBJDIR)\read-grs.obj" \
199         "$(OBJDIR)\ztest.obj" 
200         
201
202 YAZ_ASN_OBJS= \
203    $(OBJDIR)\proto.obj \
204    $(OBJDIR)\prt-acc.obj \
205    $(OBJDIR)\prt-add.obj \
206    $(OBJDIR)\prt-arc.obj \
207    $(OBJDIR)\prt-dat.obj \
208    $(OBJDIR)\prt-dia.obj \
209    $(OBJDIR)\prt-esp.obj \
210    $(OBJDIR)\prt-exd.obj \
211    $(OBJDIR)\prt-exp.obj \
212    $(OBJDIR)\prt-grs.obj \
213    $(OBJDIR)\prt-rsc.obj \
214    $(OBJDIR)\prt-univ.obj 
215
216 YAZ_COMSTACK_OBJS= \
217    $(OBJDIR)\comstack.obj \
218    $(OBJDIR)\tcpip.obj \
219    $(OBJDIR)\waislen.obj 
220
221 YAZ_ODR_OBJS= \
222    $(OBJDIR)\ber_any.obj \
223    $(OBJDIR)\ber_bit.obj \
224    $(OBJDIR)\ber_bool.obj \
225    $(OBJDIR)\ber_int.obj \
226    $(OBJDIR)\ber_len.obj \
227    $(OBJDIR)\ber_null.obj \
228    $(OBJDIR)\ber_oct.obj \
229    $(OBJDIR)\ber_oid.obj \
230    $(OBJDIR)\ber_tag.obj \
231    $(OBJDIR)\dumpber.obj \
232    $(OBJDIR)\odr.obj \
233    $(OBJDIR)\odr_any.obj \
234    $(OBJDIR)\odr_bit.obj \
235    $(OBJDIR)\odr_bool.obj \
236    $(OBJDIR)\odr_choice.obj \
237    $(OBJDIR)\odr_cons.obj \
238    $(OBJDIR)\odr_enum.obj \
239    $(OBJDIR)\odr_int.obj \
240    $(OBJDIR)\odr_mem.obj \
241    $(OBJDIR)\odr_null.obj \
242    $(OBJDIR)\odr_oct.obj \
243    $(OBJDIR)\odr_oid.obj \
244    $(OBJDIR)\odr_priv.obj \
245    $(OBJDIR)\odr_seq.obj \
246    $(OBJDIR)\odr_tag.obj \
247    $(OBJDIR)\odr_use.obj \
248    $(OBJDIR)\odr_util.obj 
249
250 YAZ_UTIL_OBJS= \
251    $(OBJDIR)\atoin.obj \
252    $(OBJDIR)\dmalloc.obj \
253    $(OBJDIR)\log.obj \
254    $(OBJDIR)\marcdisp.obj \
255    $(OBJDIR)\nmem.obj \
256    $(OBJDIR)\nmemsdup.obj \
257    $(OBJDIR)\oid.obj \
258    $(OBJDIR)\options.obj \
259    $(OBJDIR)\readconf.obj \
260    $(OBJDIR)\tpath.obj \
261    $(OBJDIR)\wrbuf.obj \
262    $(OBJDIR)\xmalloc.obj \
263    $(OBJDIR)\matchstr.obj 
264
265 YAZ_ZUTIL_OBJS= \
266    $(OBJDIR)\diagbib1.obj \
267    $(OBJDIR)\zget.obj \
268    $(OBJDIR)\prt-ext.obj \
269    $(OBJDIR)\logrpn.obj \
270    $(OBJDIR)\pquery.obj \
271    $(OBJDIR)\yaz-ccl.obj \
272    $(OBJDIR)\otherinfo.obj
273
274 YAZ_RET_OBJS= \
275    $(OBJDIR)\d1_absyn.obj\
276    $(OBJDIR)\d1_attset.obj\
277    $(OBJDIR)\d1_doespec.obj\
278    $(OBJDIR)\d1_espec.obj\
279    $(OBJDIR)\d1_expout.obj\
280    $(OBJDIR)\d1_grs.obj\
281    $(OBJDIR)\d1_handle.obj\
282    $(OBJDIR)\d1_map.obj\
283    $(OBJDIR)\d1_marc.obj\
284    $(OBJDIR)\d1_prtree.obj\
285    $(OBJDIR)\d1_read.obj\
286    $(OBJDIR)\d1_soif.obj\
287    $(OBJDIR)\d1_sumout.obj\
288    $(OBJDIR)\d1_sutrs.obj\
289    $(OBJDIR)\d1_tagset.obj\
290    $(OBJDIR)\d1_varset.obj\
291    $(OBJDIR)\d1_write.obj
292
293 Z3950_OBJS= \
294    $(OBJDIR)\z-date.obj\
295    $(OBJDIR)\z-univ.obj\
296    $(OBJDIR)\zes-update.obj\
297    $(OBJDIR)\z-accdes1.obj \
298    $(OBJDIR)\z-accform1.obj \
299    $(OBJDIR)\z-acckrb1.obj \
300    $(OBJDIR)\z-core.obj \
301    $(OBJDIR)\z-diag1.obj \
302    $(OBJDIR)\z-espec1.obj \
303    $(OBJDIR)\z-estask.obj \
304    $(OBJDIR)\z-exp.obj \
305    $(OBJDIR)\z-grs.obj \
306    $(OBJDIR)\z-opac.obj \
307    $(OBJDIR)\z-uifr1.obj \
308    $(OBJDIR)\z-rrf1.obj \
309    $(OBJDIR)\z-rrf2.obj \
310    $(OBJDIR)\z-sum.obj \
311    $(OBJDIR)\z-sutrs.obj \
312    $(OBJDIR)\zes-expi.obj \
313    $(OBJDIR)\zes-exps.obj \
314    $(OBJDIR)\zes-order.obj \
315    $(OBJDIR)\zes-pquery.obj \
316    $(OBJDIR)\zes-psched.obj \
317    $(OBJDIR)\zes-pset.obj \
318    $(OBJDIR)\zes-update0.obj 
319
320 COMMON_YAZ_OBJS= \
321    $(YAZ_COMSTACK_OBJS) \
322    $(YAZ_ODR_OBJS) \
323    $(YAZ_UTIL_OBJS) \
324    $(YAZ_ZUTIL_OBJS) \
325    $(YAZ_RET_OBJS)
326
327 !if $(NEW_Z3950)
328 YAZ_OBJS= \
329         $(COMMON_YAZ_OBJS) \
330         $(Z3950_OBJS)
331 !else
332 YAZ_OBJS= \
333         $(COMMON_YAZ_OBJS) \
334         $(YAZ_ASN_OBJS)
335 !endif
336
337 DLL_OBJS= $(YAZ_OBJS)
338
339 ALL_OBJS= \
340         $(YAZ_OBJS) \
341         $(YAZ_CLIENT_OBJS) \
342         $(YAZ_SERVER_OBJS) \
343         $(ZTEST_OBJS)
344
345
346 ##########################################################
347 ############## proto.h
348 ##########################################################
349
350 !if $(NEW_Z3950)
351 $(PROTOH): makefile $(INCLDIR)\z-proto.h
352         type $(INCLDIR)\z-proto.h > $(INCLDIR)\proto.h
353 !else
354 $(PROTOH): makefile $(INCLDIR)\prt-proto.h 
355         type $(INCLDIR)\prt-proto.h > $(INCLDIR)\proto.h
356 !endif
357
358
359 ###########################################################
360 ############### Generated C and H files
361 ###########################################################
362
363 Z3950_C_DIR=$(Z3950DIR)   
364 #!!! Should be moved to OBJ, but that requires too much trickery
365
366 # Files generated from datetime.asn
367 DATETIME_H_FILES = $(INCLDIR)\z-date.h
368 DATETIME_C_FILES = $(Z3950_C_DIR)\z-date.c
369
370 # Files generated from univres.asn
371 UNIVRES_H_FILES = $(INCLDIR)\z-univ.h
372 UNIVRES_C_FILES = $(Z3950_C_DIR)\z-univ.c
373
374 # Files generated from esupdate.asn
375 ESUPDATE_H_FILES = $(INCLDIR)\zes-update.h
376 ESUPDATE_C_FILES = $(Z3950_C_DIR)\zes-update.c
377
378 # Files created from z3950v3.asn
379 Z3950V3_H_FILES= \
380    $(INCLDIR)\z-accdes1.h \
381    $(INCLDIR)\z-core.h
382
383 Z3950V3_C_FILES= \
384    $(Z3950_C_DIR)\z-accdes1.c \
385    $(Z3950_C_DIR)\z-accform1.c \
386    $(Z3950_C_DIR)\z-acckrb1.c \
387    $(Z3950_C_DIR)\z-core.c \
388    $(Z3950_C_DIR)\z-diag1.c \
389    $(Z3950_C_DIR)\z-espec1.c \
390    $(Z3950_C_DIR)\z-estask.c \
391    $(Z3950_C_DIR)\z-exp.c \
392    $(Z3950_C_DIR)\z-grs.c \
393    $(Z3950_C_DIR)\z-opac.c \
394    $(Z3950_C_DIR)\z-uifr1.c \
395    $(Z3950_C_DIR)\z-rrf1.c \
396    $(Z3950_C_DIR)\z-rrf2.c \
397    $(Z3950_C_DIR)\z-sum.c \
398    $(Z3950_C_DIR)\z-sutrs.c \
399    $(Z3950_C_DIR)\zes-expi.c \
400    $(Z3950_C_DIR)\zes-exps.c \
401    $(Z3950_C_DIR)\zes-order.c \
402    $(Z3950_C_DIR)\zes-pquery.c \
403    $(Z3950_C_DIR)\zes-psched.c \
404    $(Z3950_C_DIR)\zes-pset.c \
405    $(Z3950_C_DIR)\zes-update0.c 
406
407 DATETIME_FILES = $(DATETIME_H_FILES) $(DATETIME_C_FILES)
408 UNIVRES_FILES = $(UNIVRES_H_FILES) $(UNIVRES_C_FILES)
409 ESUPDATE_FILES = $(ESUPDATE_H_FILES) $(ESUPDATE_C_FILES)
410 Z3950V3_FILES= $(Z3950V3_C_FILES) $(Z3950V3_H_FILES)
411
412 GENERATED_C_FILES= \
413    $(Z3950V3_C_FILES)  \
414    $(ESUPDATE_C_FILES) \
415    $(UNIVRES_C_FILES)  \
416    $(DATETIME_C_FILES)
417
418 GENERATED_H_FILES= \
419    $(Z3950V3_H_FILES)  \
420    $(ESUPDATE_H_FILES) \
421    $(UNIVRES_H_FILES)  \
422    $(DATETIME_H_FILES)
423
424 generated_files: \
425         $(GENERATED_H_FILES) \
426         $(GENERATED_C_FILES) \
427         $(PROTOH)
428
429 ###########################################################
430 ############### Compiling 
431 ###########################################################
432
433 # Note: This defines where to look for the necessary
434 # source files. Funny way of doing it, but it works.
435
436 # DLL sources
437 {$(SRCDIR)}.cpp{$(OBJDIR)}.obj:
438         @$(CPP) $(COPT) $<
439
440 # Yaz client
441 {$(CLIENTDIR)}.c{$(OBJDIR)}.obj:
442         @$(CPP) $(COPT) $<      /D"_CONSOLE"
443
444 # Ztest
445 {$(ZTESTDIR)}.c{$(OBJDIR)}.obj:
446         @$(CPP) $(COPT) $< /D"_CONSOLE" /D"_MBCS"
447
448 # Server
449 {$(SERVERDIR)}.c{$(OBJDIR)}.obj:
450         @$(CPP) $(COPT) $< 
451
452 # Various YAZ source directories
453 {$(ASNDIR)}.c{$(OBJDIR)}.obj:
454         @$(CPP) $(COPT) $< 
455
456 {$(COMSTACKDIR)}.c{$(OBJDIR)}.obj:
457         @$(CPP) $(COPT) $< 
458
459 {$(ODRDIR)}.c{$(OBJDIR)}.obj:
460         @$(CPP) $(COPT) $< 
461
462 {$(UTILDIR)}.c{$(OBJDIR)}.obj:
463         @$(CPP) $(COPT) $< 
464
465 {$(ZUTILDIR)}.c{$(OBJDIR)}.obj:
466         @$(CPP) $(COPT) $< 
467
468 {$(RETDIR)}.c{$(OBJDIR)}.obj:
469         @$(CPP) $(COPT) $<
470
471 {$(Z3950_C_DIR)}.c{$(OBJDIR)}.obj:
472         @$(CPP) $(COPT) $< 
473
474
475 ############### ASN-generated files
476
477 $(Z3950V3_FILES): $(Z3950DIR)\z3950v3.asn
478         @cd $(Z3950DIR)
479         $(TCL) $(TCLOPT) z3950v3.asn
480         @cd $(WINDIR)
481
482 $(DATETIME_FILES): $(Z3950DIR)\datetime.asn
483         @cd $(Z3950DIR)
484         $(TCL) $(TCLOPT) datetime.asn
485         @cd $(WINDIR)
486
487 $(UNIVRES_FILES): $(Z3950DIR)\univres.asn
488         @cd $(Z3950DIR)
489         $(TCL) $(TCLOPT) univres.asn
490         @cd $(WINDIR)
491
492 $(ESUPDATE_FILES): $(Z3950DIR)\esupdate.asn
493         @cd $(Z3950DIR)
494         $(TCL) $(TCLOPT) esupdate.asn
495         @cd $(WINDIR)
496
497 ###########################################################
498 ############### Linking
499 ###########################################################
500
501 $(DLL) $(IMPLIB): "$(BINDIR)" $(DLL_OBJS) 
502         @echo Linking the dll  $(DLL)
503         $(LINK) @<<
504                 $(LNKOPT) 
505                 $(LINK_LIBS) 
506                 $(DLL_LINK_OPTIONS)
507                 $(DLL_OBJS) 
508                 /out:$(DLL) 
509                 /implib:$(IMPLIB)
510                 /pdb:"$(LIBDIR)/yaz.pdb" 
511                 /map:"$(LIBDIR)/yaz.map"  
512 <<
513
514 $(CLIENT) : "$(BINDIR)" $(YAZ_CLIENT_OBJS) 
515         @echo Linking the client  $(CLIENT)
516         $(LINK) @<<
517         $(LNKOPT) 
518                 $(CLIENT_LINK_OPTIONS)
519                 $(LINK_LIBS) 
520                 $(IMPLIB)
521                 $(YAZ_CLIENT_OBJS) 
522                 /out:$(CLIENT) 
523 <<
524
525 $(ZTEST) : "$(BINDIR)" $(ZTEST_OBJS) $(SERVER) $(DLL)
526         @echo Linking the ztest  $(ZTEST)
527         $(LINK) @<<
528         $(LNKOPT) 
529                 $(ZTEST_LINK_OPTIONS)
530                 $(LINK_LIBS) 
531                 shell32.lib 
532                 $(IMPLIB)
533                 $(SERVER)
534                 $(ZTEST_OBJS) 
535                 /out:$(ZTEST) 
536 <<
537
538
539 $(SERVER) : "$(BINDIR)" $(YAZ_SERVER_OBJS) 
540         @echo Linking the server  $(SERVER)
541         $(LINK) $(SERVER_LINK_OPTIONS) @<<
542                 /nologo
543                 $(IMPLIB)
544                 $(YAZ_SERVER_OBJS) 
545                 /out:$(SERVER) 
546 <<
547
548 # note that this links a lib, so it uses completely different options.
549
550
551
552 ###########################################################
553 ############### Special operations
554 ###########################################################
555
556
557 ############## clean
558 clean:
559         del $(OBJDIR)\*.obj
560         del $(OBJDIR)\*.sbr
561         del $(DLL) 
562         del $(CLIENT)
563         del $(SERVER)
564         del $(ZTEST)
565         del $(TMPDIR)\*.
566         del $(PROTOH)
567
568 realclean: clean
569         del $(Z3950_C_DIR)\*.c
570         del $(Z3950_C_DIR)\*.h
571         del $(INCLDIR)\z-accdes1.h
572         del $(INCLDIR)\z-core.h
573         del $(DATETIME_H_FILES)
574         del $(UNIVRES_H_FILES)
575         del $(ESUPDATE_H_FILES)
576
577 # Because DOS del will only accept one file name to delete,
578 # the _H_ files work only on sets that have just one file.
579 # Z3950_H_FILES had to be spelled out. One more point for MS!
580
581 ########### check directories and create if needed
582 dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)
583
584 $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR):
585         if not exist "$@/$(NUL)" mkdir "$@"
586
587
588 ###########################################################
589 ############### Explicit dependencies
590 ###########################################################
591
592 $(ALL_OBJS): makefile $(PROTOH)
593
594 # force recompilation of everything, if makefile changed
595
596 $(Z3950_OBJS): $(GENERATED_C_FILES) $(GENERATED_H_FILES)
597
598 !if $(NEW_Z3950)
599 $(PROTOH): $(GENERATED_C_FILES) $(GENERATED_H_FILES)
600 !endif
601 # makes sure we generate before compiling anything, as the
602 # new proto.h refers to the generated files, and is included
603 # in various places
604
605 ###########################################################
606 ############### Log
607 ###########################################################
608 #
609 # $Log: makefile,v $
610 # Revision 1.7  1999-06-09 15:10:08  heikki
611 # Cleaning up. Seems to work all right
612 #
613 # Revision 1.6  1999/06/09 13:33:32  heikki
614 # Compiles and links both old and new type stuff all right
615 #
616 # Revision 1.5  1999/06/09 11:05:30  heikki
617 # At least it can compile
618 #
619 # Revision 1.4  1999/06/09 09:41:09  heikki
620 # More work on the ASN-generated files.
621 #
622 # Revision 1.3  1999/06/08 14:32:30  heikki
623 # Proto.h works all right, removed linker warnings from server.lib
624 #
625 # Revision 1.2  1999/06/08 14:07:24  heikki
626 # Renamed a pile of files
627 # Tmpdir (to get around Ms leaving temp files around, and crashing
628 # when too many with same number...)
629 #
630 # Revision 1.1  1999/06/08 12:15:41  heikki
631 # Renamed to makefile (.nothing) (from .mak)
632 # Working on the proto.h problems and alternative confiigurations
633 #
634 # Revision 1.5  1999/06/04 10:04:28  heikki
635 # Cleaning up
636 #
637 # Revision 1.4  1999/06/02 13:23:29  heikki
638 # Debug options for C compiler
639 #
640 # Revision 1.3  1999/05/19 08:26:22  heikki
641 # Added comments
642 #
643 #
644
645
646