From aa8cb2a456e63ef8b17b36b02ca73b22e4a130c5 Mon Sep 17 00:00:00 2001 From: lukem Date: Wed, 12 Jan 2005 00:32:59 +0000 Subject: [PATCH] If RESCUEDIR is defined, automatically add that to CPPFLAGS --- share/mk/bsd.prog.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index eeefc62afb5f..ec60a61ef006 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prog.mk,v 1.203 2005/01/08 09:53:38 lukem Exp $ +# $NetBSD: bsd.prog.mk,v 1.204 2005/01/12 00:32:59 lukem Exp $ # @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94 .ifndef HOSTPROG @@ -112,6 +112,10 @@ SRCS?= ${PROG}.cc SRCS?= ${PROG}.c .endif +.if defined(RESCUEDIR) +CPPFLAGS+= -DRESCUEDIR=\"${RESCUEDIR}\" +.endif + _YPSRCS= ${SRCS:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS:M*.y:.y=.h}} DPSRCS+= ${_YPSRCS}