]> andersk Git - moira.git/blob - backup/Makefile
change separator character from ':' to '|'
[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 .o
9 CFLAGS= -O
10
11 EQLIBS = /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
12
13 .qc.o:
14         /usr/rtingres/bin/eqc $*.qc
15         rm -f $*.o
16         cc -c ${CFLAGS} $*.c
17         rm -f $*.c
18
19 all: smsbackup smsrestore
20
21 smsbackup: dump_db.o bkup1.o bkup.o dumprest.o
22         cc -o $@ ${CFLAGS} dump_db.o bkup1.o bkup.o dumprest.o ${EQLIBS}
23
24 smsrestore: rest_db.o rest1.o rest.o dumprest.o
25         cc -o $@ ${CFLAGS} rest_db.o rest1.o rest.o dumprest.o ${EQLIBS}
26
27 copy_backups: copy_backups.c
28         cc -o $@ ${CFLAGS} -I../include copy_backups.c \
29                  ../update/sms_update.o -L../lib \
30                 -lsms -lgdb -lkrb -ldes -lmisc
31
32 bkup.qc: ../db/newdb db2bkup.awk
33         cc -E ../db/newdb | awk -f db2bkup.awk > bkup.qc
34
35 bkup1.qc: bkup.qc
36
37 rest.qc: ../db/newdb db2rest.awk
38         cc -E ../db/newdb | awk -f db2rest.awk > rest.qc
39
40 rest1.qc: rest.qc
41
42 lint:
43         lint -h dump_db.c bkup.c bkup1.c dumprest.c | egrep -v '^II'
44         lint -h rest_db.c rest.c rest1.c dumprest.c | egrep -v '^II'
45
46 clean:
47         rm -f *.o smsbackup bkup.qc bkup1.qc smsrestore rest.qc rest1.qc
48         rm -f core *~
49         rm -f copy_backups counts
50         rm -f bkup.c bkup1.c counts.c dump_db.c dumprest.c
51         rm -f rest.c rest1.c rest_db.c
52
53 install:
54         install smsbackup ../bin/smsbackup
55         install smsrestore ../bin/smsrestore
56         install nightly.sh ../bin/nightly.sh
57
58
This page took 0.038245 seconds and 5 git commands to generate.