Makefile revision 200203
1# $FreeBSD: head/lib/libulog/Makefile 200203 2009-12-07 05:57:28Z ed $
2
3SHLIBDIR?=/lib
4
5.include <bsd.own.mk>
6
7LIB=	ulog
8SHLIB_MAJOR= 0
9INCS=	ulog.h utempter.h
10SRCS=	ulog.h ulog_getutxent.c ulog_internal.h ulog_login.c \
11	ulog_login_pseudo.c ulog_pututxline.c ulog_util.c utempter.c
12
13MAN=	ulog_getutxent.3 ulog_login.3 ulog_setutxfile.3 \
14	utempter_add_record.3
15MLINKS+=ulog_getutxent.3 ulog_endutxent.3 \
16	ulog_getutxent.3 ulog_getutxline.3 \
17	ulog_getutxent.3 ulog_pututxline.3 \
18	ulog_getutxent.3 ulog_setutxent.3 \
19	ulog_login.3 ulog_login_pseudo.3 \
20	ulog_login.3 ulog_logout.3 \
21	ulog_login.3 ulog_logout_pseudo.3 \
22	ulog_setutxfile.3 ulog_getutxuser.3 \
23	utempter_add_record.3 utempter_remove_added_record.3 \
24	utempter_add_record.3 utempter_remove_record.3 \
25	utempter_add_record.3 addToUtmp.3 \
26	utempter_remove_added_record.3 removeFromUtmp.3 \
27	utempter_remove_record.3 removeLineFromUtmp.3
28
29# Add links to <utmpx.h>-style functions.
30MLINKS+=ulog_endutxent.3 endutxent.3 \
31	ulog_getutxent.3 getutxent.3 \
32	ulog_getutxline.3 getutxline.3 \
33	ulog_pututxline.3 pututxline.3 \
34	ulog_setutxent.3 setutxent.3
35
36WARNS?=	6
37
38VERSION_DEF= ${.CURDIR}/../libc/Versions.def
39SYMBOL_MAPS= ${.CURDIR}/Symbol.map
40
41.if ${MK_INSTALLLIB} != "no"
42SYMLINKS+=libulog.a ${LIBDIR}/libutempter.a
43.endif
44.if !defined(NO_PIC)
45SYMLINKS+=libulog.so ${LIBDIR}/libutempter.so
46.endif
47.if ${MK_PROFILE} != "no"
48SYMLINKS+=libulog_p.a ${LIBDIR}/libutempter_p.a
49.endif
50
51.include <bsd.lib.mk>
52