1*5d97138dSchristos#!/bin/sh
2*5d97138dSchristos
3ca37791eSchristos# Copyright (c) 2019 Yubico AB. All rights reserved.
4ca37791eSchristos# Use of this source code is governed by a BSD-style
5ca37791eSchristos# license that can be found in the LICENSE file.
6ca37791eSchristos
7ca37791eSchristoscheck() {
8ca37791eSchristos	for f in $(find $1 -maxdepth 1 -name '*.h'); do
9ca37791eSchristos		echo "#include \"$f\"" | \
10ca37791eSchristos			cc $CFLAGS -Isrc -xc -c - -o /dev/null 2>&1
11*5d97138dSchristos		echo "$f $CFLAGS $?"
12ca37791eSchristos	done
13ca37791eSchristos}
14ca37791eSchristos
15ca37791eSchristoscheck examples
16ca37791eSchristoscheck fuzz
17ca37791eSchristoscheck openbsd-compat
18*5d97138dSchristosCFLAGS="${CFLAGS} -D_FIDO_INTERNAL" check src
19ca37791eSchristoscheck src/fido.h
20ca37791eSchristoscheck src/fido
21ca37791eSchristoscheck tools
22