Removed CFLAGS definiton.
[yaz-moved-to-github.git] / ccl / Makefile
1 # Makefile for Email gateway CCL
2 # Europagate, 1995
3 #
4 # $Log: Makefile,v $
5 # Revision 1.5  1996-05-22 08:35:40  adam
6 # Removed CFLAGS definiton.
7 #
8 # Revision 1.4  1995/06/25 10:53:43  quinn
9 # Smallish adjustments.
10 #
11 # Revision 1.3  1995/05/30  10:25:45  quinn
12 # Fixed dependency control
13 #
14 # Revision 1.2  1995/04/17  09:37:36  quinn
15 # *** empty log message ***
16 #
17 # Revision 1.1  1995/04/10  10:28:16  quinn
18 # Added copy of CCL.
19 #
20 # Revision 1.8  1995/04/10  10:22:35  quinn
21 # Added ccl directory.
22 #
23 # Revision 1.7  1995/03/27  12:49:03  adam
24 # Removed CFLAGS def.
25 #
26 # Revision 1.6  1995/02/23  08:31:58  adam
27 # Changed header.
28 #
29 # Revision 1.4  1995/02/22  08:50:28  adam
30 # Definition of CPP changed.
31 #
32 # Revision 1.3  1995/02/14  10:25:55  adam
33 # The constructions 'qualifier rel term ...' implemented.
34 #
35 # Revision 1.2  1995/02/13  15:15:06  adam
36 # Added handling of qualifiers. Not finished yet.
37 #
38 # Revision 1.1  1995/02/13  12:35:20  adam
39 # First version of CCL. Qualifiers aren't handled yet.
40 #
41 SHELL=/bin/sh
42 INCLUDE=-I../include
43 TPROG1=cclsh
44 LIB=../lib/ccl.a
45 PO=cclfind.o ccltoken.o cclerrms.o cclqual.o cclptree.o
46 CPP=$(CC) -E
47 DEFS=$(INCLUDE)
48 RANLIB=ranlib
49
50 all: $(LIB)
51
52 $(TPROG1): $(TPROG1).o $(LIB)
53         $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB)
54
55 $(LIB): $(PO)
56         rm -f $(LIB)
57         ar qc $(LIB) $(PO)
58         $(RANLIB) $(LIB)
59
60 .c.o:
61         $(CC) -c $(DEFS) $(CFLAGS) $<
62
63 clean:
64         rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
65
66 depend: depend2
67
68 depend1:
69
70 depend2:
71         $(CPP) $(INCLUDE) -M *.c >.depend       
72
73 ifeq (.depend,$(wildcard .depend))
74 include .depend
75 endif
76
77 #Depend --- DOT NOT DELETE THIS LINE