]> andersk Git - moira.git/blame - backup/Makefile
open DB with SQL, not quel
[moira.git] / backup / Makefile
CommitLineData
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 9CFLAGS= -O
10
3c2454cf 11SRCS = dump_db.c bkup1.c bkup.c dumprest.c rest_db.c rest1.c rest.c
dec49b94 12EQLIBS = /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
13
3c2454cf 14.qc.c:
ec4cc3ed 15 /usr/rtingres/bin/eqc $*.qc
dec49b94 16
3c2454cf 17all: mrbackup mrrestore
dec49b94 18
3c2454cf 19mrbackup: 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 22mrrestore: 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 25copy_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 30bkup.qc: ../db/newdb db2bkup.awk
31 cc -E ../db/newdb | awk -f db2bkup.awk > bkup.qc
dec49b94 32
33bkup1.qc: bkup.qc
34
be63d8bb 35rest.qc: ../db/newdb db2rest.awk
36 cc -E ../db/newdb | awk -f db2rest.awk > rest.qc
dec49b94 37
38rest1.qc: rest.qc
39
40lint:
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
44clean:
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
51install:
a7ef7615 52 install -c mrbackup ../bin/mrbackup
53 install -c mrrestore ../bin/mrrestore
54 install -c nightly.sh ../bin/nightly.sh
dec49b94 55
3c2454cf 56depend: ${SRCS}
57 mkdep ${CFLAGS} ${SRCS}
58
59# DO NOT DELETE THIS LINE -- mkdep uses it.
60
61dump_db.o: dump_db.c /usr/include/stdio.h /usr/include/sys/file.h
62dump_db.o: /usr/include/ctype.h /usr/include/mit-copyright.h dump_db.h
63bkup1.o: bkup1.c /usr/include/stdio.h
64bkup.o: bkup.c /usr/include/stdio.h dump_db.h
65dumprest.o: dumprest.c /usr/include/stdio.h /usr/include/sys/file.h
66dumprest.o: /usr/include/strings.h /usr/include/mit-copyright.h
67rest_db.o: rest_db.c /usr/include/sys/file.h /usr/include/stdio.h
68rest_db.o: /usr/include/ctype.h /usr/include/mit-copyright.h dump_db.h
69rest1.o: rest1.c /usr/include/stdio.h
70rest.o: rest.c /usr/include/stdio.h
This page took 0.084757 seconds and 5 git commands to generate.