-# sccsid = "@(#)Makefile 1.3 (Berkeley) %G%"
-#
+# @(#)Makefile 5.16 (Berkeley) %G%
+
# dump.h header file
-# dumpitime.c reads /etc/ddate
-# dumpmain.c driver
-# dumpoptr.c operator interface
-# dumptape.c handles the mag tape and opening/closing
-# dumptraverse.c traverses the file system
+# itime.c reads /etc/dumpdates
+# main.c driver
+# optr.c operator interface
+# dumprmt.c handles remote tape via rmt(8)
+# tape.c handles the mag tape and opening/closing
+# traverse.c traverses the file system
# unctime.c undo ctime
#
# DEBUG use local directory to find ddate and dumpdates
# TDEBUG trace out the process forking
-#
-PSRCS = \
- dump.h dumpmain.c dumptraverse.c dumptape.c dumpoptr.c dumpitime.c
-
-SRCS = \
- dump.h dumpitime.c \
- dumpmain.c dumpoptr.c dumptape.c \
- dumptraverse.c unctime.c
-
-OBJS = \
- dumpitime.o \
- dumpmain.o dumpoptr.o \
- dumptape.o dumptraverse.o unctime.o
-
-DFLAGS =
-CFLAGS = -O $(DFLAGS)
-
-dump: $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) -o dump
-install:
- install -s dump $(DESTDIR)/etc
-clean:
- rm -f *.o dump
-lint:
- lint $(DFLAGS) $(SRCS)
+PROG= dump
+LINKS= ${BINDIR}/dump ${BINDIR}/rdump
+CFLAGS+=-DRDUMP
+SRCS= itime.c main.c optr.c dumprmt.c tape.c traverse.c unctime.c
+BINOWN= root
+BINGRP= tty
+BINMODE=6555
+MAN8= dump.0
+MLINKS+=dump.8 rdump.8
-psrcs:
- echo $(PSRCS)
+.include <bsd.prog.mk>