3 # (c) Copyright 1988 by the Massachusetts Institute of Technology.
4 # For copying and distribution information, please see the file
11 SRCS = dump_db.c bkup1.c bkup.c dumprest.c rest_db.c rest1.c rest.c
12 EQLIBS = /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
15 /usr/rtingres/bin/eqc $*.qc
17 all: mrbackup mrrestore
19 mrbackup: dump_db.o bkup1.o bkup.o dumprest.o
20 cc -o $@ ${CFLAGS} dump_db.o bkup1.o bkup.o dumprest.o ${EQLIBS}
22 mrrestore: rest_db.o rest1.o rest.o dumprest.o
23 cc -o $@ ${CFLAGS} rest_db.o rest1.o rest.o dumprest.o ${EQLIBS}
25 copy_backups: copy_backups.c
26 cc -o $@ ${CFLAGS} -I../include copy_backups.c \
27 ../update/mr_update.o -L../lib \
28 -lmoira -lgdb -lkrb -ldes -lmisc
30 bkup.qc: ../db/newdb db2bkup.awk
31 cc -E ../db/newdb | awk -f db2bkup.awk > bkup.qc
35 rest.qc: ../db/newdb db2rest.awk
36 cc -E ../db/newdb | awk -f db2rest.awk > rest.qc
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'
45 rm -f *.o mrbackup bkup.qc bkup1.qc mrrestore rest.qc rest1.qc
47 rm -f copy_backups counts
48 rm -f bkup.c bkup1.c counts.c dump_db.c dumprest.c
49 rm -f rest.c rest1.c rest_db.c
52 install -c mrbackup ../bin/mrbackup
53 install -c mrrestore ../bin/mrrestore
54 install -c nightly.sh ../bin/nightly.sh
57 mkdep ${CFLAGS} ${SRCS}
59 # DO NOT DELETE THIS LINE -- mkdep uses it.
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