#	sleep(1) for the phone, from src/bin/sleep (docs/PORTING-USERLAND.md)
#
# timespecadd/timespecsub, LC_C_LOCALE, strtod_l and SIGINFO (= SIGPWR on
# Makronix) come from libmxlinux (lib/mxlinux/include/mxlinux.h); sleep was
# their first user (mx_sleep.h until 2026-11-11).
#
# floor() is in libm, as src/bin/sleep/Makefile says (LDADD+= -lm,
# DPADD+= ${LIBM}).  LIBM is the host's /usr/lib/libm.a by default
# (src/share/mk/bsd.hostprog.mk:38) and does not exist here; -lm needs no
# path (the linker searches --sysroot), but DPADD is a dependency of the
# link and is pointed at the phone's library.
LDADD+=		-lm
LIBM=		${MX_SYSROOT}/usr/lib/libm.so

MX_SRCDIR=	bin/sleep

.include "../mk/mx.prog.mk"
