Don't use `MKDEP= -p' even for the case of a single source file since we

always make an intermediate object file.
This commit is contained in:
bde 1994-12-22 17:20:52 +00:00
parent d2ba4e11a5
commit 86c3132950

View File

@ -1,5 +1,5 @@
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.prog.mk,v 1.12 1994/11/13 21:05:27 phk Exp $
# $Id: bsd.prog.mk,v 1.13 1994/11/14 04:28:44 bde Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@ -90,6 +90,8 @@ SRCS= ${PROG}.c
${PROG}: ${DPSRCS} ${SRCS} ${LIBC} ${DPADD}
${CC} ${LDFLAGS} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${SRCS} \
${LDDESTDIR} ${LDADD}
MKDEP= -p
.else
# Always make an intermediate object file because:
# - it saves time rebuilding when only the library has changed
@ -101,8 +103,6 @@ ${PROG}: ${DPSRCS} ${OBJS} ${LIBC} ${DPADD}
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDDESTDIR} ${LDADD}
.endif
MKDEP= -p
.endif
.if !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \