0f39bfab160885732def8fb3769946d97c491744
[yaz-moved-to-github.git] / ccl / Makefile.in
1 # Makefile for Email gateway CCL
2 # Europagate, 1995
3 #
4 # $Log: Makefile.in,v $
5 # Revision 1.5  1999-06-09 09:43:31  adam
6 # Header files moved to include (used to be z39.50).
7 #
8 # Revision 1.4  1999/03/31 11:15:37  adam
9 # Fixed memory leaks in ccl_find_str and ccl_qual_rm.
10 #
11 # Revision 1.3  1998/10/28 15:10:03  adam
12 # Added --with-yc option to configure. For the data1_node in data1.h:
13 # decreased size of localdata and removed member "line" which wasn't useful.
14 #
15 # Revision 1.2  1998/08/25 16:19:39  adam
16 # Minor changes to Makefile(s).
17 #
18 # Revision 1.1  1998/08/21 14:13:26  adam
19 # Added GNU Configure script to build Makefiles.
20 #
21 # Revision 1.8  1997/09/17 12:10:28  adam
22 # YAZ version 1.4.
23 #
24 # Revision 1.7  1997/04/30 08:52:05  quinn
25 # Null
26 #
27 # Revision 1.6  1996/10/11  15:00:24  adam
28 # CCL parser from Europagate Email gateway 1.0.
29 #
30 # Revision 1.12  1996/05/22  08:37:13  adam
31 # Removed CFLAGS definition.
32 #
33 # Revision 1.11  1995/11/10 10:19:10  adam
34 # cclsh now build on 'make all'.
35 #
36 # Revision 1.10  1995/05/11  14:03:56  adam
37 # Changes in the reading of qualifier(s). New function: ccl_qual_fitem.
38 # New variable ccl_case_sensitive, which controls whether reserved
39 # words and field names are case sensitive or not.
40 #
41 # Revision 1.9  1995/04/17  09:31:34  adam
42 # Improved handling of qualifiers. Aliases or reserved words.
43 #
44 # Revision 1.8  1995/04/10  10:22:35  quinn
45 # Added ccl directory.
46 #
47 # Revision 1.7  1995/03/27  12:49:03  adam
48 # Removed CFLAGS def.
49 #
50 # Revision 1.6  1995/02/23  08:31:58  adam
51 # Changed header.
52 #
53 # Revision 1.4  1995/02/22  08:50:28  adam
54 # Definition of CPP changed.
55 #
56 # Revision 1.3  1995/02/14  10:25:55  adam
57 # The constructions 'qualifier rel term ...' implemented.
58 #
59 # Revision 1.2  1995/02/13  15:15:06  adam
60 # Added handling of qualifiers. Not finished yet.
61 #
62 # Revision 1.1  1995/02/13  12:35:20  adam
63 # First version of CCL. Qualifiers aren't handled yet.
64 #
65 SHELL=/bin/sh
66
67 CC=@CC@
68 CPP=@CPP@
69 RANLIB=@RANLIB@
70 CDEFS=@DEFS@
71 LIBS=@LIBS@
72
73 INCLUDE=-I../include
74 PROG=cclsh
75 LIB=../lib/libccl.a
76 PO=cclfind.o ccltoken.o cclerrms.o cclqual.o cclptree.o cclqfile.o cclstr.o
77 DEFS=$(INCLUDE) $(CDEFS)
78
79 all: $(LIB)
80
81 $(PROG): $(PROG).o $(LIB)
82         $(CC) $(CFLAGS) -o $(PROG) $(PROG).o $(LIB) $(LIBS)
83
84 $(LIB): $(PO)
85         rm -f $(LIB)
86         ar qc $(LIB) $(PO)
87         $(RANLIB) $(LIB)
88
89 .c.o:
90         $(CC) -c $(DEFS) $(CFLAGS) $<
91
92 clean:
93         rm -f *.log *.[oa] $(PROG) core mon.out gmon.out errlist *~
94
95 depend:
96         sed '/^#Depend/q' <Makefile >Makefile.tmp
97         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
98         mv -f Makefile.tmp Makefile
99
100 #Depend --- DOT NOT DELETE THIS LINE