must flush stderr before reading from the terminal
[unix-history] / usr / src / sbin / restore / Makefile
... / ...
CommitLineData
1# Copyright (c) 1982 Regents of the University of California
2#
3# @(#)Makefile 4.7 (Berkeley) %G%
4#
5DESTDIR=
6CFLAGS= -O
7FILES= main.c restore.c dirs.c symtab.c tape.c utilities.c
8OBJS= main.o restore.o dirs.o symtab.o utilities.o
9
10all: restore rrestore
11
12restore: ${OBJS} tape.o
13 cc ${LDFLAGS} ${CFLAGS} -o restore ${OBJS} tape.o
14
15rrestore: ${OBJS} rtape.o dumprmt.o
16 cc ${LDFLAGS} -o rrestore ${OBJS} rtape.o dumprmt.o -ljobs
17
18rtape.o: rtape.c
19 cc ${CFLAGS} -c -DRRESTOR rtape.c
20
21install: rrestore restore
22 install restore ${DESTDIR}/etc/restor
23 install -m 4755 rrestore ${DESTDIR}/etc/rrestor
24
25clean:
26 rm -f restore rrestore *.o errs
27
28lint:
29 lint ${FILES}
30
31print:
32 @pr /usr/include/dumprestor.h restore.h ${FILES}
33
34${OBJS}: restore.h