1#	$OpenBSD: Makefile,v 1.45 2023/12/12 15:49:21 claudio Exp $
2#	$NetBSD: Makefile,v 1.8 1996/05/16 07:03:28 thorpej Exp $
3
4LIB=	util
5
6VERSION_SCRIPT=	${.CURDIR}/Symbols.map
7
8HDRS=	ber.h util.h imsg.h
9SRCS=	bcrypt_pbkdf.c ber.c check_expire.c duid.c getmaxpartitions.c \
10	getrawpartition.c login.c \
11	login_tty.c logout.c logwtmp.c opendev.c passwd.c pty.c readlabel.c \
12	login_fbtab.c uucplock.c fparseln.c opendisk.c pidfile.c \
13	fmt_scaled.c imsg.c imsg-buffer.c pkcs5_pbkdf2.c
14
15MAN=	bcrypt_pbkdf.3 \
16	check_expire.3 getmaxpartitions.3 \
17	getrawpartition.3 \
18	isduid.3 login.3 \
19	ober_add_string.3 ober_get_string.3 ober_oid_cmp.3 \
20	ober_read_elements.3 ober_set_header.3 \
21	opendev.3 openpty.3 pw_init.3 pw_lock.3 readlabelfs.3 uu_lock.3 \
22	fparseln.3 opendisk.3 login_fbtab.3 pidfile.3 fmt_scaled.3 imsg_init.3 \
23	ibuf_add.3 pkcs5_pbkdf2.3
24
25SRCS+=	ohash.c
26HDRS += ohash.h
27
28MAN +=	ohash_init.3 ohash_interval.3
29
30includes:
31	@cd ${.CURDIR}; for i in $(HDRS); do \
32	    j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
33		${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
34		-m 444 $$i ${DESTDIR}/usr/include"; \
35	    echo $$j; \
36	    eval "$$j"; \
37	done
38
39.include <bsd.lib.mk>
40