#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright 2026 The FreeBSD Foundation
#
# This software were developed by
# Konstantin Belousov <kib@FreeBSD.org> under sponsorship from
# the FreeBSD Foundation.
#

.include <bsd.own.mk>

TESTSDIR=	${TESTSBASE}/lib/libsys
BINDIR=		${TESTSDIR}
MAN=

.if ${MK_ASAN} == "no" && ${MK_UBSAN} == "no"
ATF_TESTS_SH+=	hermetic_test
PROGS+=		hermetic
.endif

CFLAGS.hermetic+=	-ffreestanding
LDFLAGS.hermetic+=	-nostdlib -Wl,-e,begin -lsys

.include <bsd.test.mk>
