fix debugging across tapes; account for dumpmap at start of every tape
[unix-history] / usr / src / sbin / restore / Makefile
CommitLineData
5cd16d99
KM
1# Copyright (c) 1982 Regents of the University of California
2#
ae1066e0 3# @(#)Makefile 4.6 (Berkeley) %G%
5cd16d99 4#
2d096f0c
KM
5DESTDIR=
6CFLAGS= -O
ae1066e0
KM
7FILES= main.c restore.c dirs.c symtab.c tape.c utilities.c
8OBJS= main.o restore.o dirs.o symtab.o utilities.o
5cd16d99 9
ae1066e0 10all: restore rrestore
5cd16d99 11
ae1066e0
KM
12restore: ${OBJS} tape.o
13 cc ${LDFLAGS} ${CFLAGS} -o restore ${OBJS} tape.o
141d2aed 14
ae1066e0
KM
15rrestore: ${OBJS} rtape.o dumprmt.o
16 cc ${LDFLAGS} -o rrestore ${OBJS} rtape.o dumprmt.o -ljobs
5cd16d99 17
ae1066e0
KM
18rtape.o: rtape.c
19 cc ${CFLAGS} -c -DRRESTOR rtape.c
5cd16d99 20
ae1066e0
KM
21install: rrestore restore
22 install restore ${DESTDIR}/etc/restor
23 install -m 4755 rrestore ${DESTDIR}/etc/rrestor
5cd16d99
KM
24
25clean:
ae1066e0
KM
26 rm -f restore rrestore *.o errs
27
28lint:
29 lint ${FILES}
30
31print:
32 @pr /usr/include/dumprestor.h restore.h ${FILES}