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