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