]> andersk Git - moira.git/blobdiff - backup/Makefile
invalid addresses entered for hosts cause MR_ADDRESS error
[moira.git] / backup / Makefile
index 780e17ef6b76de9945062e1fd73ec5da1b83d8d2..1d1558f7eea10ed33ed0d1cab5df27e231b2339e 100644 (file)
@@ -1,29 +1,39 @@
+# $Header$
+#
+# (c) Copyright 1988 by the Massachusetts Institute of Technology.
+# For copying and distribution information, please see the file
+# <mit-copyright.h>.
+
 .SUFFIXES:
-.SUFFIXES: .qc .o
+.SUFFIXES: .qc .c .o
 CFLAGS= -O
 
+SRCS = dump_db.c bkup1.c bkup.c dumprest.c rest_db.c rest1.c rest.c
 EQLIBS = /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
 
-.qc.o:
-       eqc $*.qc
-       rm -f $*.o
-       cc -c ${CFLAGS} $*.c
+.qc.c:
+       /usr/rtingres/bin/eqc $*.qc
 
-all: smsbackup smsrestore
+all: mrbackup mrrestore
 
-smsbackup: dump_db.o bkup1.o bkup.o dumprest.o
+mrbackup: dump_db.o bkup1.o bkup.o dumprest.o
        cc -o $@ ${CFLAGS} dump_db.o bkup1.o bkup.o dumprest.o ${EQLIBS}
 
-smsrestore: rest_db.o rest1.o rest.o dumprest.o
+mrrestore: rest_db.o rest1.o rest.o dumprest.o
        cc -o $@ ${CFLAGS} rest_db.o rest1.o rest.o dumprest.o ${EQLIBS}
 
-bkup.qc: ../db/dbbuild db2bkup.awk
-       cc -E ../db/dbbuild | awk -f db2bkup.awk > bkup.qc
+copy_backups: copy_backups.c
+       cc -o $@ ${CFLAGS} -I../include copy_backups.c \
+                ../update/mr_update.o -L../lib \
+               -lmoira -lgdb -lkrb -ldes -lmisc
+
+bkup.qc: ../db/newdb db2bkup.awk
+       cc -E ../db/newdb | awk -f db2bkup.awk > bkup.qc
 
 bkup1.qc: bkup.qc
 
-rest.qc: ../db/dbbuild db2rest.awk
-       cc -E ../db/dbbuild | awk -f db2rest.awk > rest.qc
+rest.qc: ../db/newdb db2rest.awk
+       cc -E ../db/newdb | awk -f db2rest.awk > rest.qc
 
 rest1.qc: rest.qc
 
@@ -32,10 +42,29 @@ lint:
        lint -h rest_db.c rest.c rest1.c dumprest.c | egrep -v '^II'
 
 clean:
-       rm -f *.c *.o smsbackup bkup.qc bkup1.qc smsrestore rest.qc rest1.qc
+       rm -f *.o mrbackup bkup.qc bkup1.qc mrrestore rest.qc rest1.qc
        rm -f core *~
-
-
-
-
-
+       rm -f copy_backups counts
+       rm -f bkup.c bkup1.c counts.c dump_db.c dumprest.c
+       rm -f rest.c rest1.c rest_db.c
+
+install:
+       install -c mrbackup ../bin/mrbackup
+       install -c mrrestore ../bin/mrrestore
+       install -c nightly.sh ../bin/nightly.sh
+
+depend: ${SRCS}
+       mkdep ${CFLAGS} ${SRCS}
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+
+dump_db.o: dump_db.c /usr/include/stdio.h /usr/include/sys/file.h
+dump_db.o: /usr/include/ctype.h /usr/include/mit-copyright.h dump_db.h
+bkup1.o: bkup1.c /usr/include/stdio.h
+bkup.o: bkup.c /usr/include/stdio.h dump_db.h
+dumprest.o: dumprest.c /usr/include/stdio.h /usr/include/sys/file.h
+dumprest.o: /usr/include/strings.h /usr/include/mit-copyright.h
+rest_db.o: rest_db.c /usr/include/sys/file.h /usr/include/stdio.h
+rest_db.o: /usr/include/ctype.h /usr/include/mit-copyright.h dump_db.h
+rest1.o: rest1.c /usr/include/stdio.h
+rest.o: rest.c /usr/include/stdio.h
This page took 0.047274 seconds and 4 git commands to generate.