]> andersk Git - moira.git/blobdiff - backup/Makefile
fixed up path
[moira.git] / backup / Makefile
index 43ad84f5b54a84a7b0ac25c039b601b310dad0c9..1d1558f7eea10ed33ed0d1cab5df27e231b2339e 100644 (file)
@@ -5,37 +5,35 @@
 # <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:
+.qc.c:
        /usr/rtingres/bin/eqc $*.qc
-       rm -f $*.o
-       cc -c ${CFLAGS} $*.c
-       rm -f $*.c
 
-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}
 
 copy_backups: copy_backups.c
        cc -o $@ ${CFLAGS} -I../include copy_backups.c \
-                ../update/sms_update.o -L../lib \
-               -lsms -lgdb -lkrb -ldes -lmisc
+                ../update/mr_update.o -L../lib \
+               -lmoira -lgdb -lkrb -ldes -lmisc
 
-bkup.qc: ../db/dbbuild db2bkup.awk
-       cc -E ../db/dbbuild | awk -f db2bkup.awk > bkup.qc
+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
 
@@ -44,15 +42,29 @@ lint:
        lint -h rest_db.c rest.c rest1.c dumprest.c | egrep -v '^II'
 
 clean:
-       rm -f *.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 smsbackup ../bin/smsbackup
-       install smsrestore ../bin/smsrestore
-       install nightly.sh ../bin/nightly.sh
-
-
+       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.036275 seconds and 4 git commands to generate.