]> andersk Git - moira.git/blame_incremental - backup/Makefile
fixed a cast
[moira.git] / backup / Makefile
... / ...
CommitLineData
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
7.SUFFIXES:
8.SUFFIXES: .qc .c .o
9CFLAGS= -O
10
11SRCS = dump_db.c bkup1.c bkup.c dumprest.c rest_db.c rest1.c rest.c
12EQLIBS = /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
13
14.qc.c:
15 /usr/rtingres/bin/eqc $*.qc
16
17all: mrbackup mrrestore
18
19mrbackup: dump_db.o bkup1.o bkup.o dumprest.o
20 cc -o $@ ${CFLAGS} dump_db.o bkup1.o bkup.o dumprest.o ${EQLIBS}
21
22mrrestore: rest_db.o rest1.o rest.o dumprest.o
23 cc -o $@ ${CFLAGS} rest_db.o rest1.o rest.o dumprest.o ${EQLIBS}
24
25copy_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
29
30bkup.qc: ../db/newdb db2bkup.awk
31 cc -E ../db/newdb | awk -f db2bkup.awk > bkup.qc
32
33bkup1.qc: bkup.qc
34
35rest.qc: ../db/newdb db2rest.awk
36 cc -E ../db/newdb | awk -f db2rest.awk > rest.qc
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:
45 rm -f *.o mrbackup bkup.qc bkup1.qc mrrestore rest.qc rest1.qc
46 rm -f core *~
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
50
51install:
52 install -c mrbackup ../bin/mrbackup
53 install -c mrrestore ../bin/mrrestore
54 install -c nightly.sh ../bin/nightly.sh
55
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.033975 seconds and 5 git commands to generate.