[BACK]Return to Makefile.inc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / bsd / libfido2

File: [cvs.NetBSD.org] / src / external / bsd / libfido2 / Makefile.inc (download)

Revision 1.1, Tue Mar 3 00:14:17 2020 UTC (5 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, HEAD
Branch point for: phil-wifi

Add build glue

# $NetBSD: Makefile.inc,v 1.1 2020/03/03 00:14:17 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