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