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