From 474036519bbfd3419cd4c402ba4ca79e864da8ac Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 4 Jul 2017 00:59:12 +0000 Subject: let BUILDFIRST just build first, using the same trick guenther@ did in kernel Makefiles (thank you!), also add lex and yacc generated files to that list. Let those lex/yacc variables be defined for bsd.lib.mk as well. Complete the SRCS -> OBJS hints with the library dependency This should fix most dependency problems. Commit now, so that people can check if something else is still amiss. krw@ agrees --- share/mk/bsd.prog.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'share/mk/bsd.prog.mk') diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index c86512e4409..bf852c2c62f 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.prog.mk,v 1.72 2017/07/01 14:41:54 espie Exp $ +# $OpenBSD: bsd.prog.mk,v 1.73 2017/07/04 00:59:11 espie Exp $ # $NetBSD: bsd.prog.mk,v 1.55 1996/04/08 21:19:26 jtc Exp $ # @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 @@ -74,8 +74,8 @@ SRCS?= ${PROG}.c OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/} DEPS+= ${OBJS:R:S/$/.d/} -_LEXINTM+=${SRCS:M*.l:.l=.c} -_YACCINTM+=${SRCS:M*.y:.y=.c} +_LEXINTM?=${SRCS:M*.l:.l=.c} +_YACCINTM?=${SRCS:M*.y:.y=.c} . endif . if defined(OBJS) && !empty(OBJS) -- cgit v1.2.3