3 # (c) Copyright 1988 by the Massachusetts Institute of Technology.
4 # For copying and distribution information, please see the file
11 EQLIBS = /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
14 /usr/rtingres/bin/eqc $*.qc
19 all: smsbackup smsrestore
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}
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}
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
32 bkup.qc: ../db/dbbuild db2bkup.awk
33 cc -E ../db/dbbuild | awk -f db2bkup.awk > bkup.qc
37 rest.qc: ../db/dbbuild db2rest.awk
38 cc -E ../db/dbbuild | awk -f db2rest.awk > rest.qc
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'
47 rm -f *.o smsbackup bkup.qc bkup1.qc smsrestore rest.qc rest1.qc
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
54 install smsbackup ../bin/smsbackup
55 install smsrestore ../bin/smsrestore
56 install nightly.sh ../bin/nightly.sh