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