386BSD 0.1 development
[unix-history] / usr / src / sbin / restore / Makefile
index e0ba8d9..4791fa8 100644 (file)
@@ -1,25 +1,23 @@
-# Copyright (c) 1982 Regents of the University of California
-#
-#      @(#)Makefile    4.4     (Berkeley)      %G%
-#
-DESTDIR=
-CFLAGS= -O
+#      @(#)Makefile    5.10 (Berkeley) 5/11/90
 
 
-all: rrestor restor
+PROG=  restore
+SRCS=  main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c
+ROBJS= main.o interactive.o restore.o dirs.o symtab.o rtape.o utilities.o \
+       dumprmt.o
+MAN8=  restore.0 rrestore.0
+.PATH: ${.CURDIR}/../dump
+CLEANFILES+=dumprmt.o rtape.o rrestore
 
 
-restor: restor.c
-       cc ${LDFLAGS} ${CFLAGS} -o restor restor.c
+all: rrestore
 
 
-rrestor: dumprmt.o rrestor.o
-       cc ${LDFLAGS} -o rrestor dumprmt.o rrestor.o -ljobs
+rrestore: ${ROBJS} ${LIBC}
+       ${CC} ${CFLAGS} -o ${.TARGET} ${ROBJS}
 
 
-rrestor.o: restor.c
-       cc ${CFLAGS} -c -DRRESTOR restor.c
-       mv restor.o rrestor.o
+rtape.o: tape.c ${LIBC}
+       ${CC} ${CFLAGS} -c -DRRESTORE ${.CURDIR}/tape.c -o ${.TARGET}
 
 
-install: rrestor restor
-       install rrestor ${DESTDIR}/etc/rrestor
-       install restor ${DESTDIR}/etc/restor
+afterinstall:
+       install ${STRIP} -o root -g ${BINGRP} -m 4755 rrestore \
+           ${DESTDIR}${BINDIR}
 
 
-clean:
-       rm -f restor rrestor *.o errs
+.include <bsd.prog.mk>