X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..7b00c0c43f52e9d27168e67a26aac19065cdb40c:/util/Makefile.inc diff --git a/util/Makefile.inc b/util/Makefile.inc index a38699a..69f132e 100644 --- a/util/Makefile.inc +++ b/util/Makefile.inc @@ -1,8 +1,26 @@ .PATH: ${.CURDIR}/${MACHINE_ARCH}/util ${.CURDIR}/util -MISRCS += login.c login_tty.c logout.c logwtmp.c pty.c fparseln.c \ - opendev.c +MISRCS += login_tty.c logwtmp.c pty.c fparseln.c opendev.c + +.ifdef FEATURE_LEGACY_UTMP_APIS +MISRCS += login.c logout.c +.endif + +.for _src in fparseln.c +CFLAGS-${_src} += -D__FBSDID=__RCSID +.endfor .if ${LIB} == "c" -MAN3 += fparseln.3 opendev.3 +MAN3 += fparseln.3 opendev.3 openpty.3 + +.ifdef FEATURE_LEGACY_UTMP_APIS +MAN3 += login.3 +.endif + +MLINKS += openpty.3 forkpty.3 +MLINKS += openpty.3 login_tty.3 +.ifdef FEATURE_LEGACY_UTMP_APIS +MLINKS += login.3 logwtmp.3 +MLINKS += login.3 logout.3 +.endif .endif