12208eadfSEd Schouten# $FreeBSD$ 22208eadfSEd Schouten 36e8021eaSEd SchoutenSHLIBDIR?=/lib 46e8021eaSEd Schouten 504b0c5bbSEd Schouten.include <bsd.own.mk> 604b0c5bbSEd Schouten 72208eadfSEd SchoutenLIB= ulog 82208eadfSEd SchoutenSHLIB_MAJOR= 0 904b0c5bbSEd SchoutenINCS= ulog.h utempter.h 1042782e47SEd SchoutenSRCS= ulog.h ulog_getutxent.c ulog_internal.h ulog_login.c \ 1104b0c5bbSEd Schouten ulog_login_pseudo.c ulog_pututxline.c ulog_util.c utempter.c 122208eadfSEd Schouten 1304b0c5bbSEd SchoutenMAN= ulog_getutxent.3 ulog_login.3 ulog_setutxfile.3 \ 1404b0c5bbSEd Schouten utempter_add_record.3 152208eadfSEd SchoutenMLINKS+=ulog_getutxent.3 ulog_endutxent.3 \ 1642782e47SEd Schouten ulog_getutxent.3 ulog_getutxline.3 \ 1742782e47SEd Schouten ulog_getutxent.3 ulog_pututxline.3 \ 182208eadfSEd Schouten ulog_getutxent.3 ulog_setutxent.3 \ 192208eadfSEd Schouten ulog_login.3 ulog_login_pseudo.3 \ 202208eadfSEd Schouten ulog_login.3 ulog_logout.3 \ 2142782e47SEd Schouten ulog_login.3 ulog_logout_pseudo.3 \ 2204b0c5bbSEd Schouten ulog_setutxfile.3 ulog_getutxuser.3 \ 2304b0c5bbSEd Schouten utempter_add_record.3 utempter_remove_added_record.3 \ 2404b0c5bbSEd Schouten utempter_add_record.3 utempter_remove_record.3 \ 2504b0c5bbSEd Schouten utempter_add_record.3 addToUtmp.3 \ 2604b0c5bbSEd Schouten utempter_remove_added_record.3 removeFromUtmp.3 \ 2704b0c5bbSEd Schouten utempter_remove_record.3 removeLineFromUtmp.3 2842782e47SEd Schouten 2942782e47SEd Schouten# Add links to <utmpx.h>-style functions. 3042782e47SEd SchoutenMLINKS+=ulog_endutxent.3 endutxent.3 \ 3142782e47SEd Schouten ulog_getutxent.3 getutxent.3 \ 3242782e47SEd Schouten ulog_getutxline.3 getutxline.3 \ 3342782e47SEd Schouten ulog_pututxline.3 pututxline.3 \ 3442782e47SEd Schouten ulog_setutxent.3 setutxent.3 352208eadfSEd Schouten 362208eadfSEd SchoutenWARNS?= 6 372208eadfSEd Schouten 382208eadfSEd SchoutenVERSION_DEF= ${.CURDIR}/../libc/Versions.def 392208eadfSEd SchoutenSYMBOL_MAPS= ${.CURDIR}/Symbol.map 402208eadfSEd Schouten 4104b0c5bbSEd Schouten.if ${MK_INSTALLLIB} != "no" 4204b0c5bbSEd SchoutenSYMLINKS+=libulog.a ${LIBDIR}/libutempter.a 4304b0c5bbSEd Schouten.endif 4404b0c5bbSEd Schouten.if !defined(NO_PIC) 4504b0c5bbSEd SchoutenSYMLINKS+=libulog.so ${LIBDIR}/libutempter.so 4604b0c5bbSEd Schouten.endif 4704b0c5bbSEd Schouten.if ${MK_PROFILE} != "no" 4804b0c5bbSEd SchoutenSYMLINKS+=libulog_p.a ${LIBDIR}/libutempter_p.a 4904b0c5bbSEd Schouten.endif 5004b0c5bbSEd Schouten 512208eadfSEd Schouten.include <bsd.lib.mk> 52