PROG=	cb2c
SRCS=	${PROG}.c basic20_scan.l basic20_parse.y codegen.c symtbl.c
WARNS=	6
VERSION="`date +"%y"`.`date +"%m"`.`git describe --all --long | cut -d "-" -f 3`"
CFLAGS+=-DCB2C_VERSION=\"${VERSION}\"
CFLAGS+=-O0
CFLAGS+=-Wsuggest-attribute=const
CFLAGS+=-Wsuggest-attribute=noreturn
CFLAGS+=-Wsuggest-attribute=format
.ifdef DEBUG
LFLAGS+=-d
YFLAGS+=-t -v
CFLAGS+=-DDEBUG
.endif

#DEBUG_FLAGS=

CLEANFILES+=*.core *.output c.out

.include <bsd.prog.mk>
