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