]>
Commit | Line | Data |
---|---|---|
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: |
8 | .SUFFIXES: .qc .o | |
9 | CFLAGS= -O | |
10 | ||
11 | EQLIBS = /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib | |
12 | ||
13 | .qc.o: | |
ec4cc3ed | 14 | /usr/rtingres/bin/eqc $*.qc |
dec49b94 | 15 | rm -f $*.o |
16 | cc -c ${CFLAGS} $*.c | |
79b2a9d6 | 17 | rm -f $*.c |
dec49b94 | 18 | |
f0a492af | 19 | all: smsbackup smsrestore |
dec49b94 | 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 | ||
79b2a9d6 | 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 | ||
dec49b94 | 32 | bkup.qc: ../db/dbbuild db2bkup.awk |
33 | cc -E ../db/dbbuild | awk -f db2bkup.awk > bkup.qc | |
34 | ||
35 | bkup1.qc: bkup.qc | |
36 | ||
37 | rest.qc: ../db/dbbuild db2rest.awk | |
38 | cc -E ../db/dbbuild | 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: | |
79b2a9d6 | 47 | rm -f *.o smsbackup bkup.qc bkup1.qc smsrestore rest.qc rest1.qc |
dec49b94 | 48 | rm -f core *~ |
bdd746a9 | 49 | rm -f copy_backups counts |
79b2a9d6 | 50 | rm -f bkup.c bkup1.c counts.c dump_db.c dumprest.c |
bdd746a9 | 51 | rm -f rest.c rest1.c rest_db.c |
79b2a9d6 | 52 | |
53 | install: | |
54 | install smsbackup ../bin/smsbackup | |
55 | install smsrestore ../bin/smsrestore | |
79b2a9d6 | 56 | install nightly.sh ../bin/nightly.sh |
dec49b94 | 57 | |
58 |