xref: /openbsd/lib/libutil/Makefile (revision 8529ddd3)
1#	$OpenBSD: Makefile,v 1.38 2014/06/02 18:52:03 deraadt Exp $
2#	$NetBSD: Makefile,v 1.8 1996/05/16 07:03:28 thorpej Exp $
3
4LIB=	util
5
6HDRS=	util.h imsg.h
7SRCS=	bcrypt_pbkdf.c check_expire.c duid.c getmaxpartitions.c \
8	getrawpartition.c login.c \
9	login_tty.c logout.c logwtmp.c opendev.c passwd.c pty.c readlabel.c \
10	login_fbtab.c uucplock.c fparseln.c opendisk.c pidfile.c \
11	fmt_scaled.c imsg.c imsg-buffer.c pkcs5_pbkdf2.c
12
13MAN=	bcrypt_pbkdf.3 check_expire.3 getmaxpartitions.3 getrawpartition.3 \
14	isduid.3 login.3 \
15	opendev.3 openpty.3 pw_init.3 pw_lock.3 readlabelfs.3 uucplock.3 \
16	fparseln.3 opendisk.3 login_fbtab.3 pidfile.3 fmt_scaled.3 imsg_init.3 \
17	pkcs5_pbkdf2.3
18
19MLINKS+=imsg_init.3 imsg_read.3
20MLINKS+=imsg_init.3 imsg_get.3
21MLINKS+=imsg_init.3 imsg_compose.3
22MLINKS+=imsg_init.3 imsg_composev.3
23MLINKS+=imsg_init.3 imsg_create.3
24MLINKS+=imsg_init.3 imsg_add.3
25MLINKS+=imsg_init.3 imsg_close.3
26MLINKS+=imsg_init.3 imsg_free.3
27MLINKS+=imsg_init.3 imsg_flush.3
28MLINKS+=imsg_init.3 imsg_clear.3
29MLINKS+=imsg_init.3 ibuf_open.3
30MLINKS+=imsg_init.3 ibuf_dynamic.3
31MLINKS+=imsg_init.3 ibuf_add.3
32MLINKS+=imsg_init.3 ibuf_reserve.3
33MLINKS+=imsg_init.3 ibuf_seek.3
34MLINKS+=imsg_init.3 ibuf_size.3
35MLINKS+=imsg_init.3 ibuf_left.3
36MLINKS+=imsg_init.3 ibuf_close.3
37MLINKS+=imsg_init.3 ibuf_write.3
38MLINKS+=imsg_init.3 ibuf_free.3
39MLINKS+=imsg_init.3 msgbuf_init.3
40MLINKS+=imsg_init.3 msgbuf_clear.3
41MLINKS+=imsg_init.3 msgbuf_write.3
42MLINKS+=imsg_init.3 msgbuf_drain.3
43MLINKS+=login.3 logout.3
44MLINKS+=login.3 logwtmp.3
45MLINKS+=check_expire.3 login_check_expire.3
46MLINKS+=openpty.3 login_tty.3
47MLINKS+=openpty.3 forkpty.3
48MLINKS+=pw_init.3 pw_setdir.3
49MLINKS+=pw_init.3 pw_file.3
50MLINKS+=pw_init.3 pw_edit.3
51MLINKS+=pw_init.3 pw_prompt.3
52MLINKS+=pw_init.3 pw_copy.3
53MLINKS+=pw_init.3 pw_scan.3
54MLINKS+=pw_init.3 pw_error.3
55MLINKS+=pw_lock.3 pw_mkdb.3
56MLINKS+=pw_lock.3 pw_abort.3
57MLINKS+=uucplock.3 uu_lock.3
58MLINKS+=uucplock.3 uu_unlock.3
59MLINKS+=uucplock.3 uu_lockerr.3
60MLINKS+=uucplock.3 uu_lock_txfr.3
61MLINKS+=fmt_scaled.3 scan_scaled.3
62
63SRCS+=	ohash.c
64HDRS += ohash.h
65
66MAN +=	ohash_init.3 ohash_interval.3
67MLINKS += ohash_init.3 ohash_delete.3 \
68	ohash_init.3 ohash_lookup_interval.3 \
69	ohash_init.3 ohash_lookup_memory.3 \
70	ohash_init.3 ohash_find.3 \
71	ohash_init.3 ohash_remove.3 \
72	ohash_init.3 ohash_insert.3 \
73	ohash_init.3 ohash_first.3 \
74	ohash_init.3 ohash_next.3 \
75	ohash_init.3 ohash_entries.3 \
76	ohash_interval.3 ohash_create_entry.3 \
77	ohash_interval.3 ohash_qlookupi.3 \
78	ohash_interval.3 ohash_qlookup.3
79
80includes:
81	@cd ${.CURDIR}; for i in $(HDRS); do \
82	    j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
83		${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
84		-m 444 $$i ${DESTDIR}/usr/include"; \
85	    echo $$j; \
86	    eval "$$j"; \
87	done
88
89.include <bsd.lib.mk>
90