]> git.saurik.com Git - apple/libc.git/blobdiff - util/Makefile.inc
Libc-763.13.tar.gz
[apple/libc.git] / util / Makefile.inc
index a8d0c8083ec4ca13fca74abe61076736929dd28c..69f132e2da33b2623d4bb13ba470df3e5028f9e5 100644 (file)
@@ -1,8 +1,26 @@
 .PATH: ${.CURDIR}/${MACHINE_ARCH}/util ${.CURDIR}/util
 
-SRCS += 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