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