Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/libfido2/tools/include_check.sh
39507 views
1
#!/bin/sh
2
3
# Copyright (c) 2019 Yubico AB. All rights reserved.
4
# Use of this source code is governed by a BSD-style
5
# license that can be found in the LICENSE file.
6
# SPDX-License-Identifier: BSD-2-Clause
7
8
check() {
9
for f in $(find $1 -maxdepth 1 -name '*.h'); do
10
echo "#include \"$f\"" | \
11
cc $CFLAGS -Isrc -xc -c - -o /dev/null 2>&1
12
echo "$f $CFLAGS $?"
13
done
14
}
15
16
check examples
17
check fuzz
18
check openbsd-compat
19
CFLAGS="${CFLAGS} -D_FIDO_INTERNAL" check src
20
check src/fido.h
21
check src/fido
22
check tools
23
24