head	1.5;
access;
symbols
	netbsd-11-0-RC5:1.4
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.6
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.4
	perseant-exfatfs-base:1.4
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.2
	netbsd-10-base:1.4
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.4
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	cjep_staticlib_x:1.2.0.2
	cjep_staticlib_x-base:1.2
	phil-wifi-20200421:1.1
	phil-wifi:1.1.0.2
	phil-wifi-20200411:1.1
	phil-wifi-20200406:1.1;
locks; strict;
comment	@# @;


1.5
date	2025.12.17.15.54.44;	author nia;	state Exp;
branches;
next	1.4;
commitid	bYKlaW4f2M6ziMmG;

1.4
date	2021.06.18.13.57.52;	author christos;	state Exp;
branches;
next	1.3;
commitid	n6KVceBKbhpSsCXC;

1.3
date	2021.06.17.01.15.44;	author christos;	state Exp;
branches;
next	1.2;
commitid	CvDWUKt4wDnlhqXC;

1.2
date	2020.12.04.18.27.44;	author christos;	state Exp;
branches;
next	1.1;
commitid	9RQaLCS9gXf3gsyC;

1.1
date	2020.03.03.00.14.17;	author christos;	state Exp;
branches
	1.1.2.1;
next	;
commitid	TCrxb2kg0x7Z4TYB;

1.1.2.1
date	2020.03.03.00.14.17;	author martin;	state dead;
branches;
next	1.1.2.2;
commitid	X01YhRUPVUDaec4C;

1.1.2.2
date	2020.04.13.07.46.06;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;


desc
@@


1.5
log
@libfido2: Detect more NetBSD libc features.

These would usually be auto-detected by the build system.
@
text
@# $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
CPPFLAGS+=-DHAVE_ENDIAN_H -DHAVE_ERR_H -DHAVE_SIGNAL_H
CPPFLAGS+=-DHAVE_STRLCAT -DHAVE_STRLCPY
CPPFLAGS+=-DHAVE_STRSEP -DHAVE_SYSCONF
@


1.4
log
@fix sun2 build
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.3 2021/06/17 01:15:44 christos Exp $
d16 3
@


1.3
log
@merge conflicts and update between libfido 1.5.0 and 1.7.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.2 2020/12/04 18:27:44 christos Exp $
a15 3

LDFLAGS+=-lz
DPFLAGS+=${LIBZ}
@


1.2
log
@merge changes
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.1 2020/03/03 00:14:17 christos Exp $
d16 3
@


1.1
log
@Add build glue
@
text
@d1 1
a1 1
# $NetBSD$
d15 1
a15 1
CPPFLAGS+=-DHAVE_UNISTD_H
@


1.1.2.1
log
@file Makefile.inc was added on branch phil-wifi on 2020-04-13 07:46:06 +0000
@
text
@d1 15
@


1.1.2.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@a0 15
# $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
@


