]>
Commit | Line | Data |
---|---|---|
1 | # $Header$ | |
2 | # Database consistency checker | |
3 | # | |
4 | # (c) Copyright 1988 by the Massachusetts Institute of Technology. | |
5 | # For copying and distribution information, please see the file | |
6 | # <mit-copyright.h>. | |
7 | ||
8 | ||
9 | .SUFFIXES: | |
10 | .SUFFIXES: .o .c .dc .sc | |
11 | CFLAGS= -I/usr/athena/include -I../include -I../lib -O | |
12 | ||
13 | AWK=awk | |
14 | ||
15 | SRCS = dbck.c fix.c phase1.c phase2.c phase3.c phase4.c members.c | |
16 | OBJS = dbck.o fix.o phase1.o phase2.o phase3.o phase4.o | |
17 | ||
18 | EQLIBS = ../lib/libmoira.a ../server/libmrglue.a /usr/ingres/lib/libingres.a -lm | |
19 | ||
20 | .dc.sc: | |
21 | $(AWK) -f /mit/moiradev/src/util/imake.includes/ingres.awk < $< > $*.sc | |
22 | ||
23 | .sc.c: | |
24 | /usr/ingres/bin/esqlc -p $*.sc | |
25 | ||
26 | all: dbck members | |
27 | ||
28 | dbck: ${OBJS} | |
29 | cc -o $@ ${CFLAGS} ${OBJS} ${EQLIBS} | |
30 | ||
31 | dbck.c: dbck.sc | |
32 | dbck.o: dbck.h dbck.c | |
33 | fix.o: fix.c dbck.h | |
34 | fix.c: fix.sc | |
35 | phase1.o: phase1.c dbck.h | |
36 | phase1.c: phase1.sc | |
37 | phase2.o: phase2.c | |
38 | phase2.c: phase2.sc | |
39 | phase3.o: phase3.c | |
40 | phase3.c: phase3.sc | |
41 | phase4.o: phase4.c | |
42 | phase4.c: phase4.sc | |
43 | members.c: members.sc | |
44 | members.o: members.c | |
45 | ||
46 | members: members.o | |
47 | cc -o members members.o ${EQLIBS} | |
48 | ||
49 | clean: | |
50 | rm -f *.o | |
51 | rm -f dbck.sc fix.sc phase1.sc phase2.sc phase3.sc phase4.sc | |
52 | rm -f dbck.c fix.c phase1.c phase2.c phase3.c phase4.c dbck | |
53 | rm -f members.sc members.c members | |
54 | rm -f core *~ | |
55 | ||
56 | install: dbck | |
57 | install -c dbck ../bin/dbck | |
58 | ||
59 | depend: ${SRCS} | |
60 | makedepend ${CFLAGS} ${SRCS} | |
61 | ||
62 |