aboutsummaryrefslogtreecommitdiff
path: root/lib/libulog/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libulog/Makefile')
-rw-r--r--lib/libulog/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/libulog/Makefile b/lib/libulog/Makefile
new file mode 100644
index 000000000000..af26b485bf18
--- /dev/null
+++ b/lib/libulog/Makefile
@@ -0,0 +1,32 @@
+SHLIBDIR?=/lib
+
+.include <src.opts.mk>
+
+LIB= ulog
+SHLIB_MAJOR= 0
+INCS= ulog.h utempter.h
+SRCS= ulog.h ulog_login.c ulog_login_pseudo.c utempter.c
+
+MAN= ulog_login.3 utempter_add_record.3
+MLINKS+=ulog_login.3 ulog_login_pseudo.3 \
+ ulog_login.3 ulog_logout.3 \
+ ulog_login.3 ulog_logout_pseudo.3 \
+ utempter_add_record.3 utempter_remove_added_record.3 \
+ utempter_add_record.3 utempter_remove_record.3 \
+ utempter_add_record.3 addToUtmp.3 \
+ utempter_remove_added_record.3 removeFromUtmp.3 \
+ utempter_remove_record.3 removeLineFromUtmp.3
+
+LIBADD= md
+
+VERSION_DEF= ${SRCTOP}/lib/libc/Versions.def
+SYMBOL_MAPS= ${.CURDIR}/Symbol.map
+
+.if ${MK_INSTALLLIB} != "no"
+SYMLINKS+=libulog.a ${LIBDIR}/libutempter.a
+.endif
+.if !defined(NO_PIC)
+SYMLINKS+=libulog.so ${LIBDIR}/libutempter.so
+.endif
+
+.include <bsd.lib.mk>