386BSD 0.1 development
[unix-history] / usr / src / sbin / restore / Makefile
index 2974850..4791fa8 100644 (file)
@@ -1,27 +1,23 @@
-# Copyright (c) 1982 Regents of the University of California
-#
-#      @(#)Makefile    4.2     (Berkeley)      %G%
-#
-NETSER=        /usr/src/ucb/netser
+#      @(#)Makefile    5.10 (Berkeley) 5/11/90
 
 
-OBJS=  dumprmt.o ${NETSER}/rcmd.o
-CFLAGS=
+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
 
 
-all: rrestor restor
+all: rrestore
 
 
-restor: restor.c
-       cc -o restor restor.c
+rrestore: ${ROBJS} ${LIBC}
+       ${CC} ${CFLAGS} -o ${.TARGET} ${ROBJS}
 
 
-rrestor: ${OBJS} rrestor.o
-       cc -o rrestor ${OBJS} rrestor.o -ljobs
+rtape.o: tape.c ${LIBC}
+       ${CC} ${CFLAGS} -c -DRRESTORE ${.CURDIR}/tape.c -o ${.TARGET}
 
 
-rrestor.o: restor.c
-       cc -c -DRRESTOR restor.c
-       mv restor.o rrestor.o
+afterinstall:
+       install ${STRIP} -o root -g ${BINGRP} -m 4755 rrestore \
+           ${DESTDIR}${BINDIR}
 
 
-install: rrestor restor
-       cp rrestor /etc
-       cp restor /etc
-
-clean:
-       rm -f restor rrestor *.o errs
+.include <bsd.prog.mk>