16 lines
474 B
Makefile
16 lines
474 B
Makefile
# $NetBSD: Makefile.inc,v 1.4 2021/06/18 13:57:52 christos Exp $
|
|
|
|
DIST:=${.PARSEDIR}/dist
|
|
|
|
VERS_FILE=${DIST}/CMakeLists.txt
|
|
|
|
.for i in MAJOR MINOR PATCH
|
|
FIDO_${i} != \
|
|
${TOOL_SED} -ne '/FIDO_${i}/s/.*"\([0-9]*\)")$$/\1/p' ${VERS_FILE}
|
|
.endfor
|
|
FIDO_VERSION=${FIDO_MAJOR}.${FIDO_MINOR}.${FIDO_PATCH}
|
|
|
|
CPPFLAGS+=-D_FIDO_MAJOR=${FIDO_MAJOR} -D_FIDO_MINOR=${FIDO_MINOR}
|
|
CPPFLAGS+=-D_FIDO_PATCH=${FIDO_PATCH}
|
|
CPPFLAGS+=-DHAVE_UNISTD_H -DHAVE_ARC4RANDOM_BUF -DHAVE_TIMESPECSUB
|