Removed CFLAGS def.
[egate.git] / ccl / Makefile
1 # Makefile for Email gateway CCL
2 # Europagate, 1995
3 #
4 # $Log: Makefile,v $
5 # Revision 1.7  1995/03/27 12:49:03  adam
6 # Removed CFLAGS def.
7 #
8 # Revision 1.6  1995/02/23  08:31:58  adam
9 # Changed header.
10 #
11 # Revision 1.4  1995/02/22  08:50:28  adam
12 # Definition of CPP changed.
13 #
14 # Revision 1.3  1995/02/14  10:25:55  adam
15 # The constructions 'qualifier rel term ...' implemented.
16 #
17 # Revision 1.2  1995/02/13  15:15:06  adam
18 # Added handling of qualifiers. Not finished yet.
19 #
20 # Revision 1.1  1995/02/13  12:35:20  adam
21 # First version of CCL. Qualifiers aren't handled yet.
22 #
23 SHELL=/bin/sh
24 INCLUDE=-I../include
25 #CFLAGS=-g -Wall -pedantic -ansi
26 TPROG1=cclsh
27 LIB=../lib/ccl.a
28 PO=cclfind.o ccltoken.o cclerrms.o cclqual.o cclptree.o
29 CPP=$(CC) -E
30 DEFS=$(INCLUDE)
31
32 all: $(TPROG1)
33
34 $(TPROG1): $(TPROG1).o $(LIB) ../lib/util.a
35         $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/util.a
36
37 $(LIB): $(PO)
38         rm -f $(LIB)
39         ar qc $(LIB) $(PO)
40         ranlib $(LIB)
41
42 .c.o:
43         $(CC) -c $(DEFS) $(CFLAGS) $<
44
45 clean:
46         rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
47
48 depend: depend2
49
50 depend1:
51         mv Makefile Makefile.tmp
52         sed '/^#Depend/q' <Makefile.tmp >Makefile
53         $(CPP) $(INCLUDE) -M *.c >>Makefile
54         -rm Makefile.tmp
55
56 depend2:
57         $(CPP) $(INCLUDE) -M *.c >.depend       
58
59 ifeq (.depend,$(wildcard .depend))
60 include .depend
61 endif
62
63 #Depend --- DOT NOT DELETE THIS LINE