11.87Slukem#	$NetBSD: Makefile,v 1.87 2023/06/03 09:09:11 lukem Exp $
21.7Sjtc#	@(#)Makefile	8.1 (Berkeley) 6/4/93
31.1Scgd
41.35SlukemUSE_SHLIBDIR=	yes
51.35Slukem
61.34Slukem.include <bsd.own.mk>
71.34Slukem
81.57Schristos.include "${NETBSDSRCDIR}/common/lib/libutil/Makefile.inc"
91.57Schristos
101.71SmattWARNS?=	5
111.1ScgdLIB=	util
121.59SchristosCPPFLAGS+=-DLIBC_SCCS -I${.CURDIR}
131.73SchristosLINTFLAGS+=-w
141.74SmattSRCS+=	efun.c \
151.74Smatt	getbootfile.c getbyteorder.c getlabelsector.c getmaxpartitions.c \
161.73Schristos	getfsspecname.c getmntopts.c getrawpartition.c getdiskrawname.c \
171.40Selric	disklabel_dkcksum.c disklabel_scan.c \
181.78Schristos	if_media.c kinfo_getvmmap.c \
191.39Sjdolecek	login.c loginx.c login_cap.c login_tty.c logout.c logoutx.c \
201.53Schristos	logwtmp.c logwtmpx.c opendisk.c parsedate.y \
211.63Sdrochner	passwd.c pw_scan.c pidfile.c pidlock.c pty.c \
221.56Slukem	raise_default_signal.c \
231.67Schristos	secure_path.c sockaddr_snprintf.c stat_flags.c \
241.64Schristos	strpct.c ttyaction.c ttymsg.c
251.7Sjtc
261.74SmattMAN=	efun.3 \
271.74Smatt	getbootfile.3 getbyteorder.3 getfstypename.3 getlabelsector.3 \
281.69Schristos	getmaxpartitions.3 getmntopts.3 getrawpartition.3 \
291.73Schristos	getdiskrawname.3 getfsspecname.3 \
301.78Schristos	login.3 login_cap.3 loginx.3 kinfo_getvmmap.3 \
311.40Selric	disklabel_dkcksum.3 disklabel_scan.3 \
321.53Schristos	opendisk.3 openpty.3 parsedate.3 pidfile.3 pidlock.3 \
331.68Schristos	proc_compare.3 pw_getconf.3 pw_init.3 pw_lock.3 secure_path.3 \
341.56Slukem	raise_default_signal.3 \
351.64Schristos	snprintb.3 sockaddr_snprintf.3 stat_flags.3 strpct.3 ttyaction.3 \
361.36Sabs	ttymsg.3 util.3
371.19Sthorpej
381.80SchristosCPPFLAGS.sockaddr_snprintf.c+=-DHAVE_UTIL_H
391.80SchristosCPPFLAGS.sockaddr_snprintf.c+=-DHAVE_NETATALK_AT_H
401.80SchristosCPPFLAGS.sockaddr_snprintf.c+=-DHAVE_NET_IF_DL_H
411.86SrilligLINTFLAGS.if_media.c+=	-X 351	# 'extern' declaration outside header
421.80Schristos
431.87SlukemCOPTS.logwtmp.c+=	${CC_WNO_STRINGOP_TRUNCATION}
441.87SlukemCOPTS.logwtmpx.c+=	${CC_WNO_STRINGOP_TRUNCATION}
451.83Schristos
461.59SchristosYPREFIX=__pd
471.34Slukem.PATH:	${NETBSDSRCDIR}/lib/libc/gen
481.7Sjtc
491.59Schristos.include "compat/Makefile.inc"
501.59Schristos
511.42SscwMLINKS+=getlabelsector.3 getlabeloffset.3
521.66SbouyerMLINKS+=getlabelsector.3 getlabelusesmbr.3
531.73SchristosMLINKS+=getdiskrawname.3 getdiskcookedname.3
541.7SjtcMLINKS+=login.3 logout.3
551.7SjtcMLINKS+=login.3 logwtmp.3
561.25SmjlMLINKS+=login_cap.3 login_getclass.3
571.25SmjlMLINKS+=login_cap.3 login_getcapbool.3
581.25SmjlMLINKS+=login_cap.3 login_getcapnum.3
591.25SmjlMLINKS+=login_cap.3 login_getcapsize.3
601.25SmjlMLINKS+=login_cap.3 login_getcapstr.3
611.25SmjlMLINKS+=login_cap.3 login_getcaptime.3
621.75SchristosMLINKS+=login_cap.3 login_getpwclass.3
631.25SmjlMLINKS+=login_cap.3 login_close.3
641.25SmjlMLINKS+=login_cap.3 setclasscontext.3
651.25SmjlMLINKS+=login_cap.3 setusercontext.3
661.38SwizMLINKS+=loginx.3 logoutx.3 loginx.3 logwtmpx.3
671.82SkreMLINKS+=opendisk.3 opendisk1.3
681.7SjtcMLINKS+=openpty.3 login_tty.3
691.7SjtcMLINKS+=openpty.3 forkpty.3
701.79SroyMLINKS+=pidfile.3 pidfile_clean.3
711.79SroyMLINKS+=pidfile.3 pidfile_lock.3
721.79SroyMLINKS+=pidfile.3 pidfile_read.3
731.58SchristosMLINKS+=pw_getconf.3 pw_getpwconf.3
741.7SjtcMLINKS+=pw_init.3 pw_edit.3
751.7SjtcMLINKS+=pw_init.3 pw_prompt.3
761.7SjtcMLINKS+=pw_init.3 pw_copy.3
771.62SchristosMLINKS+=pw_init.3 pw_copyx.3
781.7SjtcMLINKS+=pw_init.3 pw_scan.3
791.7SjtcMLINKS+=pw_init.3 pw_error.3
801.7SjtcMLINKS+=pw_lock.3 pw_mkdb.3
811.7SjtcMLINKS+=pw_lock.3 pw_abort.3
821.28StronMLINKS+=pw_lock.3 pw_getprefix.3
831.28StronMLINKS+=pw_lock.3 pw_setprefix.3
841.15ScjsMLINKS+=pidlock.3 ttylock.3
851.15ScjsMLINKS+=pidlock.3 ttyunlock.3
861.50SchristosMLINKS+=efun.3 esetfunc.3
871.50SchristosMLINKS+=efun.3 easprintf.3
881.50SchristosMLINKS+=efun.3 estrlcpy.3
891.50SchristosMLINKS+=efun.3 estrlcat.3
901.50SchristosMLINKS+=efun.3 estrdup.3
911.55SpookaMLINKS+=efun.3 estrndup.3
921.76SchristosMLINKS+=efun.3 estrtoi.3
931.76SchristosMLINKS+=efun.3 estrtou.3
941.50SchristosMLINKS+=efun.3 emalloc.3
951.51SchristosMLINKS+=efun.3 ecalloc.3
961.50SchristosMLINKS+=efun.3 erealloc.3
971.77SkamilMLINKS+=efun.3 ereallocarr.3
981.50SchristosMLINKS+=efun.3 efopen.3
991.50SchristosMLINKS+=efun.3 evasprintf.3
1001.54SchristosMLINKS+=stat_flags.3 string_to_flags.3
1011.54SchristosMLINKS+=stat_flags.3 flags_to_string.3
1021.61SpgoyetteMLINKS+=snprintb.3 snprintb_m.3
1031.65SjruohoMLINKS+=util.3 libutil.3
1041.70SchristosMLINKS+=strpct.3 strspct.3
1051.81SabhinavMLINKS+=getmntopts.3 getmntoptstr.3
1061.81SabhinavMLINKS+=getmntopts.3 getmntoptnum.3
1071.81SabhinavMLINKS+=getmntopts.3 freemntopts.3
1081.1Scgd
1091.1Scgd.include <bsd.lib.mk>
110