NetBSD/sbin/dump/Makefile
cgd f51f1b4c04 from Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>:
Some reordering and modifications in the Makefiles for sh, dump,
    restore to get dependicies right.  The README in /usr/share/mk
    states that it's a Bad Thing(tm) to add something after
    .include <bsd.prog.mk>, but this seems the only way to get the
    dependencies right.
1993-11-14 15:35:34 +00:00

40 lines
1.1 KiB
Makefile

# from: @(#)Makefile 5.12 (Berkeley) 3/7/91
# $Id: Makefile,v 1.12 1993/11/14 15:35:48 cgd Exp $
#
# dump.h header file
# dumpitime.c reads /etc/dumpdates
# dumpmain.c driver
# dumpoptr.c operator interface
# dumptape.c handles the mag tape and opening/closing
# dumptraverse.c traverses the file system
# unctime.c undo ctime
#
# DEBUG use local directory to find ddate and dumpdates
# TDEBUG trace out the process forking
PROG= dump
SRCS= dumpitime.c dumpmain.c dumpoptr.c dumptape.c dumptraverse.c \
unctime.c
ROBJS= dumpitime.o dumprmain.o dumpoptr.o dumprmt.o dumprtape.o \
dumptraverse.o unctime.o
BINGRP= tty
MAN8= dump.0 rdump.0
CLEANFILES=dumprmain.o dumprtape.o dumprmt.o rdump
all: rdump
dumprmain.o: dumpmain.o
${CC} -c -DRDUMP ${CFLAGS} ${.CURDIR}/dumpmain.c -o ${.TARGET}
dumprtape.o: dumptape.o
${CC} -c -DRDUMP ${CFLAGS} ${.CURDIR}/dumptape.c -o ${.TARGET}
afterinstall:
install ${COPY} ${STRIP} -o root -g ${BINGRP} -m 6555 rdump \
${DESTDIR}${BINDIR}
.include <bsd.prog.mk>
rdump: ${LIBCRT0} ${ROBJS} ${LIBC} ${DPADD}
${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${ROBJS} ${LDADD}