]> andersk Git - moira.git/commitdiff
added depend target; change sms* to mr*; improved .qc handling
authormar <mar>
Mon, 4 Dec 1989 12:10:16 +0000 (12:10 +0000)
committermar <mar>
Mon, 4 Dec 1989 12:10:16 +0000 (12:10 +0000)
backup/Makefile

index ec454f30b9b0548632405031cab2c7efe55ec631..90164d9f0da792a5888a466fc41a47baef0ee90c 100644 (file)
@@ -5,23 +5,21 @@
 # <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
@@ -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 mrbackup ../bin/mrbackup
+       install mrrestore ../bin/mrrestore
        install 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.127059 seconds and 5 git commands to generate.