1# $FreeBSD$ 2 3SHLIBDIR?=/lib 4 5.include <src.opts.mk> 6 7LIB= ulog 8SHLIB_MAJOR= 0 9INCS= ulog.h utempter.h 10SRCS= ulog.h ulog_login.c ulog_login_pseudo.c utempter.c 11 12MAN= ulog_login.3 utempter_add_record.3 13MLINKS+=ulog_login.3 ulog_login_pseudo.3 \ 14 ulog_login.3 ulog_logout.3 \ 15 ulog_login.3 ulog_logout_pseudo.3 \ 16 utempter_add_record.3 utempter_remove_added_record.3 \ 17 utempter_add_record.3 utempter_remove_record.3 \ 18 utempter_add_record.3 addToUtmp.3 \ 19 utempter_remove_added_record.3 removeFromUtmp.3 \ 20 utempter_remove_record.3 removeLineFromUtmp.3 21 22DPADD= ${LIBMD} 23LDADD= -lmd 24 25VERSION_DEF= ${.CURDIR}/../libc/Versions.def 26SYMBOL_MAPS= ${.CURDIR}/Symbol.map 27 28.if ${MK_INSTALLLIB} != "no" 29SYMLINKS+=libulog.a ${LIBDIR}/libutempter.a 30.endif 31.if !defined(NO_PIC) 32SYMLINKS+=libulog.so ${LIBDIR}/libutempter.so 33.endif 34.if ${MK_PROFILE} != "no" 35SYMLINKS+=libulog_p.a ${LIBDIR}/libutempter_p.a 36.endif 37 38.include <bsd.lib.mk> 39