Add copyright
[unix-history] / usr / src / sbin / restore / Makefile
index e0ba8d9..420f06c 100644 (file)
@@ -1,25 +1,42 @@
-# Copyright (c) 1982 Regents of the University of California
 #
 #
-#      @(#)Makefile    4.4     (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.
+#
+#      @(#)Makefile    5.1 (Berkeley) %G%
 #
 DESTDIR=
 CFLAGS= -O
 #
 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: restore rrestore
 
 
-all: rrestor restor
+restore: ${OBJS} tape.o
+       cc ${LDFLAGS} ${CFLAGS} -o restore ${OBJS} tape.o
 
 
-restor: restor.c
-       cc ${LDFLAGS} ${CFLAGS} -o restor restor.c
+rrestore: ${OBJS} rtape.o dumprmt.o
+       cc ${LDFLAGS} -o rrestore ${OBJS} rtape.o dumprmt.o
 
 
-rrestor: dumprmt.o rrestor.o
-       cc ${LDFLAGS} -o rrestor dumprmt.o rrestor.o -ljobs
+rtape.o: tape.c
+       cp tape.c rtape.c
+       cc ${CFLAGS} -c -DRRESTORE rtape.c
+       rm -f rtape.c
 
 
-rrestor.o: restor.c
-       cc ${CFLAGS} -c -DRRESTOR restor.c
-       mv restor.o rrestor.o
+dumprmt.o: ../dump/dumprmt.c
+       cc ${CFLAGS} -c ../dump/dumprmt.c
 
 
-install: rrestor restor
-       install rrestor ${DESTDIR}/etc/rrestor
-       install restor ${DESTDIR}/etc/restor
+install: rrestore 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