projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add copyright
[unix-history]
/
usr
/
src
/
sbin
/
restore
/
Makefile
diff --git
a/usr/src/sbin/restore/Makefile
b/usr/src/sbin/restore/Makefile
index
44881b3
..
420f06c
100644
(file)
--- a/
usr/src/sbin/restore/Makefile
+++ b/
usr/src/sbin/restore/Makefile
@@
-1,30
+1,42
@@
-# Copyright (c) 1982 Regents of the University of California
#
#
-# @(#)Makefile 4.1 (Berkeley) %G%
+# Copyright (c) 1983 Regents of the University of California.
+# All rights reserved. The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
#
#
-NETSER= /usr/src/ucb/netser
-
-OBJS= dumprmt.o ${NETSER}/rcmd.o
-CFLAGS=
+# @(#)Makefile 5.1 (Berkeley) %G%
+#
+DESTDIR=
+CFLAGS= -O
+FILES= main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c
+OBJS= main.o interactive.o restore.o dirs.o symtab.o utilities.o
-all: r
restor restor
+all: r
estore rrestore
-r
restor: ${OBJS} rrestor
.o
- cc
-o rrestor ${OBJS} rrestor.o -ljobs
+r
estore: ${OBJS} tape
.o
+ cc
${LDFLAGS} ${CFLAGS} -o restore ${OBJS} tape.o
-r
estor: ${OBJS} restor
.o
- cc
-o restor ${OBJS} restor.o -ljobs
+r
restore: ${OBJS} rtape.o dumprmt
.o
+ cc
${LDFLAGS} -o rrestore ${OBJS} rtape.o dumprmt.o
-rrestor.o: restor.c
- cc -c -DRRESTOR restor.c
- mv restor.o rrestor.o
+rtape.o: tape.c
+ cp tape.c rtape.c
+ cc ${CFLAGS} -c -DRRESTORE rtape.c
+ rm -f rtape.c
-
restor.o: restor
.c
- cc
-c restor
.c
+
dumprmt.o: ../dump/dumprmt
.c
+ cc
${CFLAGS} -c ../dump/dumprmt
.c
-install: rrestor
restor
- cp rrestor /etc
- cp restor /etc
+install: rrestor
e restore
+ install restore ${DESTDIR}/etc/restore
+ install -m 4755 rrestore ${DESTDIR}/etc/rrestore
clean:
clean:
- rm -f restor rrestor *.o errs
+ rm -f restore rrestore *.o errs a.out core
+
+lint:
+ lint ${FILES}
+
+print:
+ @pr /usr/include/dumprestor.h restore.h ${FILES}
+
+${OBJS}: restore.h