Run latex
[egate.git] / ccl / Makefile
1 # Makefile for Email gateway CCL
2 # Europagate, 1995
3 #
4 # $Log: Makefile,v $
5 # Revision 1.12  1996/05/22 08:37:13  adam
6 # Removed CFLAGS definition.
7 #
8 # Revision 1.11  1995/11/10 10:19:10  adam
9 # cclsh now build on 'make all'.
10 #
11 # Revision 1.10  1995/05/11  14:03:56  adam
12 # Changes in the reading of qualifier(s). New function: ccl_qual_fitem.
13 # New variable ccl_case_sensitive, which controls whether reserved
14 # words and field names are case sensitive or not.
15 #
16 # Revision 1.9  1995/04/17  09:31:34  adam
17 # Improved handling of qualifiers. Aliases or reserved words.
18 #
19 # Revision 1.8  1995/04/10  10:22:35  quinn
20 # Added ccl directory.
21 #
22 # Revision 1.7  1995/03/27  12:49:03  adam
23 # Removed CFLAGS def.
24 #
25 # Revision 1.6  1995/02/23  08:31:58  adam
26 # Changed header.
27 #
28 # Revision 1.4  1995/02/22  08:50:28  adam
29 # Definition of CPP changed.
30 #
31 # Revision 1.3  1995/02/14  10:25:55  adam
32 # The constructions 'qualifier rel term ...' implemented.
33 #
34 # Revision 1.2  1995/02/13  15:15:06  adam
35 # Added handling of qualifiers. Not finished yet.
36 #
37 # Revision 1.1  1995/02/13  12:35:20  adam
38 # First version of CCL. Qualifiers aren't handled yet.
39 #
40 SHELL=/bin/sh
41 INCLUDE=-I../include
42 TPROG1=cclsh
43 LIB=../lib/ccl.a
44 PO=cclfind.o ccltoken.o cclerrms.o cclqual.o cclptree.o cclqfile.o cclstr.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)
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) $<
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