PROG= bc

BCSRCS= execute.c global.c load.c main.c number.c storage.c util.c
GENSRCS= bc.c scan.c
SRCS= ${GENSRCS} ${BCSRCS}

CFLAGS+= -D_POSIX_SOURCE -I$(.CURDIR)
CLEANFILES+= ${GENSRCS} y.tab.h

.include <bsd.prog.mk>

PROG= bc

BCSRCS= execute.c global.c load.c main.c number.c storage.c util.c
GENSRCS= bc.c scan.c
SRCS= ${GENSRCS} ${BCSRCS}

CFLAGS+= -D_POSIX_SOURCE -I.
CLEANFILES+= ${GENSRCS} y.tab.h

.include <bsd.prog.mk>

Change -I$(.CURDIR) to -I. in CFLAGS. As Bruce pointed out $(...) is bad style and without -I. this program would not compile unless ${.OBJDIR} == ${.CURDIR}.
Change -I$(.CURDIR) to -I. in CFLAGS.  As Bruce pointed out
$(...) is bad style and without -I. this program would not
compile unless ${.OBJDIR} == ${.CURDIR}.

Submitted by: bde
