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:
Bruce Evans 1994-12-22 17:20:52 +00:00
parent 511cdd1649
commit 14c28f38a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5188

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) && \