Fixed bug in zass_open - variable initialized after use
[egate.git] / zlayer / Makefile
1 # Makefile for Email gateway Z39.50 interface
2 # Europagate, 1995
3 #
4 # $Log: Makefile,v $
5 # Revision 1.11  1995/04/19 09:24:01  quinn
6 # Fixed bug in zass_open - variable initialized after use
7 #
8 # Revision 1.10  1995/04/19  07:31:28  adam
9 # Minor changes.
10 #
11 # Revision 1.9  1995/04/17  11:26:52  quinn
12 # Added YAZ version of zaccess
13 #
14 # Revision 1.8  1995/04/17  09:36:44  adam
15 # Minor changes in makefile.
16 #
17 # Revision 1.7  1995/03/27  12:52:25  adam
18 # Minor changes.
19 #
20 # Revision 1.6  1995/02/23  10:09:39  adam
21 # Minor changes.
22 #
23 # Revision 1.5  1995/02/23  08:32:25  adam
24 # Changed header.
25 #
26 # Revision 1.3  1995/02/22  08:51:49  adam
27 # Definition of CPP changed.
28 #
29 # Revision 1.2  1995/02/16  15:01:38  quinn
30 # Polished some library-references
31 #
32 # Revision 1.1  1995/02/16  14:47:55  quinn
33 # First kick.
34 #
35 SHELL=/bin/sh
36
37 #ZDEFS=-DLOW_TO_HIGH -Dfar=
38 #ZPRE=/home/proj/zdist/zdist102b1-1/libz3950
39 #ZINC=-I$(ZPRE)
40 #ZLIB=$(ZPRE)/libz3950.a
41
42 ZINC=-I../../yaz/include
43 ZDEFS=  # -DUSE_XTIMOSI
44 ZLIB=../../yaz/lib/libyaz.a
45
46 INCLUDE=-I. -I../include $(ZINC)
47 #CFLAGS=-g -Wall -pedantic -ansi
48 TPROG1=test
49 LIB=../lib/libzass.a
50 PO=zaccess-yaz.o
51 CPP=$(CC) -E
52 DEFS=$(INCLUDE)
53 CFILES=zaccess.c
54
55 all: $(LIB)
56
57 $(TPROG1): $(TPROG1).o $(LIB) 
58         $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) $(ZLIB) ../lib/libres+log.a
59
60 $(LIB): $(PO)
61         rm -f $(LIB)
62         ar qc $(LIB) $(PO)
63         ranlib $(LIB)
64
65 .c.o:
66         $(CC) -c $(DEFS) $(CFLAGS) $(ZDEFS) $<
67
68 clean:
69         rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
70
71 depend: depend2
72
73 depend1:
74         sed '/^#Depend/q' <Makefile >Makefile.tmp
75         $(CPP) $(DEFS) -M $(CFILES) >>Makefile.tmp
76         mv -f Makefile.tmp Makefile
77
78 depend2:
79         $(CPP) $(DEFS) -M $(CFILES) >.depend    
80
81 #GNU make style depend
82 ifeq (.depend,$(wildcard .depend))
83 include .depend
84 endif
85
86 #Depend --- DOT NOT DELETE THIS LINE