If RESCUEDIR is defined, automatically add that to CPPFLAGS

This commit is contained in:
lukem 2005-01-12 00:32:59 +00:00
parent 73b0466ba9
commit aa8cb2a456

View File

@ -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}