xref: /netbsd-src/lib/libutil/Makefile (revision c4b7a9e7940c62d92a81ee31e05e281e6035fadc)
1*c4b7a9e7Slukem#	$NetBSD: Makefile,v 1.87 2023/06/03 09:09:11 lukem Exp $
2e42a9484Sjtc#	@(#)Makefile	8.1 (Berkeley) 6/4/93
361f28255Scgd
4ec5dbc56SlukemUSE_SHLIBDIR=	yes
5ec5dbc56Slukem
6ebb6fc9eSlukem.include <bsd.own.mk>
7ebb6fc9eSlukem
8c057bf83Schristos.include "${NETBSDSRCDIR}/common/lib/libutil/Makefile.inc"
9c057bf83Schristos
10fa835e8cSmattWARNS?=	5
1161f28255ScgdLIB=	util
1250728e78SchristosCPPFLAGS+=-DLIBC_SCCS -I${.CURDIR}
131e9ca586SchristosLINTFLAGS+=-w
14b1fc4beeSmattSRCS+=	efun.c \
15b1fc4beeSmatt	getbootfile.c getbyteorder.c getlabelsector.c getmaxpartitions.c \
161e9ca586Schristos	getfsspecname.c getmntopts.c getrawpartition.c getdiskrawname.c \
17448f6217Selric	disklabel_dkcksum.c disklabel_scan.c \
1880a77333Schristos	if_media.c kinfo_getvmmap.c \
19961e3a84Sjdolecek	login.c loginx.c login_cap.c login_tty.c logout.c logoutx.c \
2061261c85Schristos	logwtmp.c logwtmpx.c opendisk.c parsedate.y \
2170337075Sdrochner	passwd.c pw_scan.c pidfile.c pidlock.c pty.c \
22e9aa053cSlukem	raise_default_signal.c \
23c9db7e91Schristos	secure_path.c sockaddr_snprintf.c stat_flags.c \
24e7295d23Schristos	strpct.c ttyaction.c ttymsg.c
25e42a9484Sjtc
26b1fc4beeSmattMAN=	efun.3 \
27b1fc4beeSmatt	getbootfile.3 getbyteorder.3 getfstypename.3 getlabelsector.3 \
28da80e3abSchristos	getmaxpartitions.3 getmntopts.3 getrawpartition.3 \
291e9ca586Schristos	getdiskrawname.3 getfsspecname.3 \
3080a77333Schristos	login.3 login_cap.3 loginx.3 kinfo_getvmmap.3 \
31448f6217Selric	disklabel_dkcksum.3 disklabel_scan.3 \
3261261c85Schristos	opendisk.3 openpty.3 parsedate.3 pidfile.3 pidlock.3 \
33b51eecccSchristos	proc_compare.3 pw_getconf.3 pw_init.3 pw_lock.3 secure_path.3 \
34e9aa053cSlukem	raise_default_signal.3 \
35e7295d23Schristos	snprintb.3 sockaddr_snprintf.3 stat_flags.3 strpct.3 ttyaction.3 \
36a086fb29Sabs	ttymsg.3 util.3
37e42a9484Sjtc
385d7e9986SchristosCPPFLAGS.sockaddr_snprintf.c+=-DHAVE_UTIL_H
395d7e9986SchristosCPPFLAGS.sockaddr_snprintf.c+=-DHAVE_NETATALK_AT_H
405d7e9986SchristosCPPFLAGS.sockaddr_snprintf.c+=-DHAVE_NET_IF_DL_H
41b2baa501SrilligLINTFLAGS.if_media.c+=	-X 351	# 'extern' declaration outside header
425d7e9986Schristos
43*c4b7a9e7SlukemCOPTS.logwtmp.c+=	${CC_WNO_STRINGOP_TRUNCATION}
44*c4b7a9e7SlukemCOPTS.logwtmpx.c+=	${CC_WNO_STRINGOP_TRUNCATION}
45573d8656Schristos
4650728e78SchristosYPREFIX=__pd
47ebb6fc9eSlukem.PATH:	${NETBSDSRCDIR}/lib/libc/gen
485b08d89dSthorpej
4950728e78Schristos.include "compat/Makefile.inc"
5050728e78Schristos
510c83fd49SscwMLINKS+=getlabelsector.3 getlabeloffset.3
52a47e2eb7SbouyerMLINKS+=getlabelsector.3 getlabelusesmbr.3
531e9ca586SchristosMLINKS+=getdiskrawname.3 getdiskcookedname.3
54e42a9484SjtcMLINKS+=login.3 logout.3
55e42a9484SjtcMLINKS+=login.3 logwtmp.3
564d8aac4dSmjlMLINKS+=login_cap.3 login_getclass.3
574d8aac4dSmjlMLINKS+=login_cap.3 login_getcapbool.3
584d8aac4dSmjlMLINKS+=login_cap.3 login_getcapnum.3
594d8aac4dSmjlMLINKS+=login_cap.3 login_getcapsize.3
604d8aac4dSmjlMLINKS+=login_cap.3 login_getcapstr.3
614d8aac4dSmjlMLINKS+=login_cap.3 login_getcaptime.3
62d9333799SchristosMLINKS+=login_cap.3 login_getpwclass.3
634d8aac4dSmjlMLINKS+=login_cap.3 login_close.3
644d8aac4dSmjlMLINKS+=login_cap.3 setclasscontext.3
654d8aac4dSmjlMLINKS+=login_cap.3 setusercontext.3
664a47c952SwizMLINKS+=loginx.3 logoutx.3 loginx.3 logwtmpx.3
67deb00514SkreMLINKS+=opendisk.3 opendisk1.3
68e42a9484SjtcMLINKS+=openpty.3 login_tty.3
69e42a9484SjtcMLINKS+=openpty.3 forkpty.3
706b9006e8SroyMLINKS+=pidfile.3 pidfile_clean.3
716b9006e8SroyMLINKS+=pidfile.3 pidfile_lock.3
726b9006e8SroyMLINKS+=pidfile.3 pidfile_read.3
7316338b1cSchristosMLINKS+=pw_getconf.3 pw_getpwconf.3
74e42a9484SjtcMLINKS+=pw_init.3 pw_edit.3
75e42a9484SjtcMLINKS+=pw_init.3 pw_prompt.3
76e42a9484SjtcMLINKS+=pw_init.3 pw_copy.3
7787fe4621SchristosMLINKS+=pw_init.3 pw_copyx.3
78e42a9484SjtcMLINKS+=pw_init.3 pw_scan.3
79e42a9484SjtcMLINKS+=pw_init.3 pw_error.3
80e42a9484SjtcMLINKS+=pw_lock.3 pw_mkdb.3
81e42a9484SjtcMLINKS+=pw_lock.3 pw_abort.3
82a3a468eeStronMLINKS+=pw_lock.3 pw_getprefix.3
83a3a468eeStronMLINKS+=pw_lock.3 pw_setprefix.3
8409ced793ScjsMLINKS+=pidlock.3 ttylock.3
8509ced793ScjsMLINKS+=pidlock.3 ttyunlock.3
86e72710e5SchristosMLINKS+=efun.3 esetfunc.3
87e72710e5SchristosMLINKS+=efun.3 easprintf.3
88e72710e5SchristosMLINKS+=efun.3 estrlcpy.3
89e72710e5SchristosMLINKS+=efun.3 estrlcat.3
90e72710e5SchristosMLINKS+=efun.3 estrdup.3
91060d8639SpookaMLINKS+=efun.3 estrndup.3
9257b77f77SchristosMLINKS+=efun.3 estrtoi.3
9357b77f77SchristosMLINKS+=efun.3 estrtou.3
94e72710e5SchristosMLINKS+=efun.3 emalloc.3
958c97c569SchristosMLINKS+=efun.3 ecalloc.3
96e72710e5SchristosMLINKS+=efun.3 erealloc.3
972cf5f6afSkamilMLINKS+=efun.3 ereallocarr.3
98e72710e5SchristosMLINKS+=efun.3 efopen.3
99e72710e5SchristosMLINKS+=efun.3 evasprintf.3
10033d6b113SchristosMLINKS+=stat_flags.3 string_to_flags.3
10133d6b113SchristosMLINKS+=stat_flags.3 flags_to_string.3
10228469fc2SpgoyetteMLINKS+=snprintb.3 snprintb_m.3
1031d9550a5SjruohoMLINKS+=util.3 libutil.3
10489cf2535SchristosMLINKS+=strpct.3 strspct.3
1059f9499a4SabhinavMLINKS+=getmntopts.3 getmntoptstr.3
1069f9499a4SabhinavMLINKS+=getmntopts.3 getmntoptnum.3
1079f9499a4SabhinavMLINKS+=getmntopts.3 freemntopts.3
10861f28255Scgd
10961f28255Scgd.include <bsd.lib.mk>
110