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