]> andersk Git - moira.git/blob - backup/Makefile
added depend target; change sms* to mr*; improved .qc handling
[moira.git] / backup / Makefile
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
9 CFLAGS= -O
10
11 SRCS = dump_db.c bkup1.c bkup.c dumprest.c rest_db.c rest1.c rest.c
12 EQLIBS = /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
13
14 .qc.c:
15         /usr/rtingres/bin/eqc $*.qc
16
17 all: mrbackup mrrestore
18
19 mrbackup: dump_db.o bkup1.o bkup.o dumprest.o
20         cc -o $@ ${CFLAGS} dump_db.o bkup1.o bkup.o dumprest.o ${EQLIBS}
21
22 mrrestore: rest_db.o rest1.o rest.o dumprest.o
23         cc -o $@ ${CFLAGS} rest_db.o rest1.o rest.o dumprest.o ${EQLIBS}
24
25 copy_backups: copy_backups.c
26         cc -o $@ ${CFLAGS} -I../include copy_backups.c \
27                  ../update/sms_update.o -L../lib \
28                 -lsms -lgdb -lkrb -ldes -lmisc
29
30 bkup.qc: ../db/newdb db2bkup.awk
31         cc -E ../db/newdb | awk -f db2bkup.awk > bkup.qc
32
33 bkup1.qc: bkup.qc
34
35 rest.qc: ../db/newdb db2rest.awk
36         cc -E ../db/newdb | awk -f db2rest.awk > rest.qc
37
38 rest1.qc: rest.qc
39
40 lint:
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
44 clean:
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
51 install:
52         install mrbackup ../bin/mrbackup
53         install mrrestore ../bin/mrrestore
54         install nightly.sh ../bin/nightly.sh
55
56 depend: ${SRCS}
57         mkdep ${CFLAGS} ${SRCS}
58
59 # DO NOT DELETE THIS LINE -- mkdep uses it.
60
61 dump_db.o: dump_db.c /usr/include/stdio.h /usr/include/sys/file.h
62 dump_db.o: /usr/include/ctype.h /usr/include/mit-copyright.h dump_db.h
63 bkup1.o: bkup1.c /usr/include/stdio.h
64 bkup.o: bkup.c /usr/include/stdio.h dump_db.h
65 dumprest.o: dumprest.c /usr/include/stdio.h /usr/include/sys/file.h
66 dumprest.o: /usr/include/strings.h /usr/include/mit-copyright.h
67 rest_db.o: rest_db.c /usr/include/sys/file.h /usr/include/stdio.h
68 rest_db.o: /usr/include/ctype.h /usr/include/mit-copyright.h dump_db.h
69 rest1.o: rest1.c /usr/include/stdio.h
70 rest.o: rest.c /usr/include/stdio.h
This page took 0.297342 seconds and 5 git commands to generate.