xref: /freebsd/lib/libutil/Makefile (revision 5b56413d04e608379c9a306373554a8e4d321bc0)
1SHLIBDIR?= /lib
2
3.include <src.opts.mk>
4
5PACKAGE=	runtime
6
7.PATH: ${SRCTOP}/lib/libc/gen # for pw_scan.c
8
9LIB=	util
10SHLIB_MAJOR= 9
11
12SRCS=	_secure_path.c auth.c cpuset.c expand_number.c flopen.c fparseln.c \
13	ftime.c getlocalbase.c gr_util.c \
14	hexdump.c humanize_number.c kinfo_getfile.c \
15	kinfo_getallproc.c kinfo_getproc.c kinfo_getvmmap.c \
16	kinfo_getvmobject.c kld.c \
17	login_auth.c login_cap.c \
18	login_class.c login_crypt.c login_ok.c login_times.c login_tty.c \
19	pidfile.c property.c pty.c pw_scan.c pw_util.c quotafile.c \
20	realhostname.c stub.c trimdomain.c uucplock.c
21INCS=	libutil.h login_cap.h
22
23CFLAGS+= -DNO__SCCSID
24
25.if ${MK_INET6_SUPPORT} != "no"
26CFLAGS+= -DINET6
27.endif
28
29CFLAGS+= -I${.CURDIR} -I${SRCTOP}/lib/libc/gen/
30
31MAN+=	cpuset.3 expand_number.3 flopen.3 fparseln.3 ftime.3 getlocalbase.3 \
32	hexdump.3 humanize_number.3 kinfo_getallproc.3 kinfo_getfile.3 \
33	kinfo_getproc.3 kinfo_getvmmap.3 kinfo_getvmobject.3 kld.3 \
34	login_auth.3 login_cap.3 \
35	login_class.3 login_ok.3 login_times.3 login_tty.3 pidfile.3 \
36	property.3 pty.3 quotafile.3 realhostname.3 realhostname_sa.3 \
37	_secure_path.3 trimdomain.3 uucplock.3 pw_util.3
38MAN+=	login.conf.5
39MLINKS+=flopen.3 flopenat.3
40MLINKS+=kld.3 kld_isloaded.3 kld.3 kld_load.3
41MLINKS+=login_auth.3 auth_cat.3 login_auth.3 auth_checknologin.3
42MLINKS+=login_cap.3 login_close.3 login_cap.3 login_getcapbool.3 \
43	login_cap.3 login_getcaplist.3 login_cap.3 login_getcapnum.3 \
44	login_cap.3 login_getcapsize.3 login_cap.3 login_getcapstr.3 \
45	login_cap.3 login_getcaptime.3 login_cap.3 login_getclass.3 \
46	login_cap.3 login_getclassbyname.3 login_cap.3 login_getpath.3 \
47	login_cap.3 login_getpwclass.3 login_cap.3 login_getstyle.3 \
48	login_cap.3 login_getuserclass.3 login_cap.3 login_setcryptfmt.3
49MLINKS+=login_class.3 setclasscontext.3 login_class.3 setclassenvironment.3 \
50	login_class.3 setclassresources.3 login_class.3 setusercontext.3
51MLINKS+=login_ok.3 auth_hostok.3 login_ok.3 auth_timeok.3 \
52	login_ok.3 auth_ttyok.3
53MLINKS+=login_times.3 in_lt.3 login_times.3 in_ltm.3 \
54	login_times.3 in_ltms.3 \
55	login_times.3 in_lts.3 \
56	login_times.3 parse_lt.3
57MLINKS+=pidfile.3 pidfile_close.3 \
58	pidfile.3 pidfile_fileno.3 \
59	pidfile.3 pidfile_open.3 \
60	pidfile.3 pidfile_remove.3 \
61	pidfile.3 pidfile_write.3
62MLINKS+=property.3 property_find.3  property.3 properties_free.3
63MLINKS+=property.3 properties_read.3
64MLINKS+=pty.3 forkpty.3  pty.3 openpty.3
65MLINKS+=quotafile.3 quota_close.3 \
66	quotafile.3 quota_fsname.3 \
67	quotafile.3 quota_open.3 \
68	quotafile.3 quota_qfname.3 \
69	quotafile.3 quota_read.3 \
70	quotafile.3 quota_statfs.3 \
71	quotafile.3 quota_write_limits.3 \
72	quotafile.3 quota_write_usage.3
73MLINKS+=uucplock.3 uu_lock.3 uucplock.3 uu_lock_txfr.3 \
74	uucplock.3 uu_lockerr.3 uucplock.3 uu_unlock.3
75MLINKS+=pw_util.3 pw_copy.3 \
76	pw_util.3 pw_dup.3 \
77	pw_util.3 pw_edit.3 \
78	pw_util.3 pw_equal.3 \
79	pw_util.3 pw_fini.3 \
80	pw_util.3 pw_init.3 \
81	pw_util.3 pw_make.3 \
82	pw_util.3 pw_make_v7.3 \
83	pw_util.3 pw_mkdb.3 \
84	pw_util.3 pw_lock.3 \
85	pw_util.3 pw_scan.3 \
86	pw_util.3 pw_tempname.3 \
87	pw_util.3 pw_tmp.3
88MLINKS+=cpuset.3 cpuset_parselist.3
89
90HAS_TESTS=
91SUBDIR.${MK_TESTS}+= tests
92
93.include <bsd.lib.mk>
94