]>
Commit | Line | Data |
---|---|---|
f0a492af | 1 | # $Header$ |
2 | # | |
3 | # (c) Copyright 1988 by the Massachusetts Institute of Technology. | |
4 | # For copying and distribution information, please see the file | |
5 | # <mit-copyright.h>. | |
6 | ||
dec49b94 | 7 | .SUFFIXES: |
3c2454cf | 8 | .SUFFIXES: .qc .c .o |
dec49b94 | 9 | CFLAGS= -O |
10 | ||
3c2454cf | 11 | SRCS = dump_db.c bkup1.c bkup.c dumprest.c rest_db.c rest1.c rest.c |
dec49b94 | 12 | EQLIBS = /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib |
13 | ||
3c2454cf | 14 | .qc.c: |
ec4cc3ed | 15 | /usr/rtingres/bin/eqc $*.qc |
dec49b94 | 16 | |
3c2454cf | 17 | all: mrbackup mrrestore |
dec49b94 | 18 | |
3c2454cf | 19 | mrbackup: dump_db.o bkup1.o bkup.o dumprest.o |
dec49b94 | 20 | cc -o $@ ${CFLAGS} dump_db.o bkup1.o bkup.o dumprest.o ${EQLIBS} |
21 | ||
3c2454cf | 22 | mrrestore: rest_db.o rest1.o rest.o dumprest.o |
dec49b94 | 23 | cc -o $@ ${CFLAGS} rest_db.o rest1.o rest.o dumprest.o ${EQLIBS} |
24 | ||
79b2a9d6 | 25 | copy_backups: copy_backups.c |
26 | cc -o $@ ${CFLAGS} -I../include copy_backups.c \ | |
2ce085d2 | 27 | ../update/mr_update.o -L../lib \ |
28 | -lmoira -lgdb -lkrb -ldes -lmisc | |
79b2a9d6 | 29 | |
be63d8bb | 30 | bkup.qc: ../db/newdb db2bkup.awk |
31 | cc -E ../db/newdb | awk -f db2bkup.awk > bkup.qc | |
dec49b94 | 32 | |
33 | bkup1.qc: bkup.qc | |
34 | ||
be63d8bb | 35 | rest.qc: ../db/newdb db2rest.awk |
36 | cc -E ../db/newdb | awk -f db2rest.awk > rest.qc | |
dec49b94 | 37 | |
38 | rest1.qc: rest.qc | |
39 | ||
40 | lint: | |
41 | lint -h dump_db.c bkup.c bkup1.c dumprest.c | egrep -v '^II' | |
42 | lint -h rest_db.c rest.c rest1.c dumprest.c | egrep -v '^II' | |
43 | ||
44 | clean: | |
3c2454cf | 45 | rm -f *.o mrbackup bkup.qc bkup1.qc mrrestore rest.qc rest1.qc |
dec49b94 | 46 | rm -f core *~ |
bdd746a9 | 47 | rm -f copy_backups counts |
79b2a9d6 | 48 | rm -f bkup.c bkup1.c counts.c dump_db.c dumprest.c |
bdd746a9 | 49 | rm -f rest.c rest1.c rest_db.c |
79b2a9d6 | 50 | |
51 | install: | |
a7ef7615 | 52 | install -c mrbackup ../bin/mrbackup |
53 | install -c mrrestore ../bin/mrrestore | |
54 | install -c nightly.sh ../bin/nightly.sh | |
dec49b94 | 55 | |
3c2454cf | 56 | depend: ${SRCS} |
57 | mkdep ${CFLAGS} ${SRCS} | |
58 | ||
59 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
60 | ||
61 | dump_db.o: dump_db.c /usr/include/stdio.h /usr/include/sys/file.h | |
62 | dump_db.o: /usr/include/ctype.h /usr/include/mit-copyright.h dump_db.h | |
63 | bkup1.o: bkup1.c /usr/include/stdio.h | |
64 | bkup.o: bkup.c /usr/include/stdio.h dump_db.h | |
65 | dumprest.o: dumprest.c /usr/include/stdio.h /usr/include/sys/file.h | |
66 | dumprest.o: /usr/include/strings.h /usr/include/mit-copyright.h | |
67 | rest_db.o: rest_db.c /usr/include/sys/file.h /usr/include/stdio.h | |
68 | rest_db.o: /usr/include/ctype.h /usr/include/mit-copyright.h dump_db.h | |
69 | rest1.o: rest1.c /usr/include/stdio.h | |
70 | rest.o: rest.c /usr/include/stdio.h |