f51f1b4c04
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.
25 lines
706 B
Makefile
25 lines
706 B
Makefile
# from: @(#)Makefile 5.10 (Berkeley) 5/11/90
|
|
# $Id: Makefile,v 1.9 1993/11/14 15:36:05 cgd Exp $
|
|
|
|
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: rrestore
|
|
|
|
rtape.o: tape.c ${LIBC}
|
|
${CC} ${CFLAGS} -c -DRRESTORE ${.CURDIR}/tape.c -o ${.TARGET}
|
|
|
|
afterinstall:
|
|
install ${COPY} ${STRIP} -o root -g ${BINGRP} -m 4755 rrestore \
|
|
${DESTDIR}${BINDIR}
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
rrestore: ${LIBCRT0} ${ROBJS} ${LIBC} ${DPADD}
|
|
${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${ROBJS} ${LDADD}
|