LUNA-II (68040 based LUNA) support
[unix-history] / usr / src / sbin / dump / Makefile
index 0184f31..fd4960c 100644 (file)
@@ -1,41 +1,25 @@
-# sccsid = "@(#)Makefile       1.3 (Berkeley) %G%"
-#
+#      @(#)Makefile    5.16 (Berkeley) %G%
+
 #      dump.h                  header file
 #      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
 #      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>