xref: /freebsd/lib/libbsm/Makefile (revision 8847579c57d6aff2b3371c707dce7a2cee8389aa)
1#
2# $FreeBSD$
3#
4
5OPENBSMDIR=		${.CURDIR}/../../contrib/openbsm
6LIBBSMDIR=		${OPENBSMDIR}/libbsm
7
8LIB=		bsm
9SHLIB_MAJOR=	1
10
11.PATH:		${LIBBSMDIR}
12.PATH:		${OPENBSMDIR}/bsm
13.PATH:		${OPENBSMDIR}/man
14
15SRCS=	bsm_audit.c							\
16	bsm_class.c							\
17	bsm_control.c							\
18	bsm_event.c							\
19	bsm_flags.c							\
20	bsm_io.c							\
21	bsm_mask.c							\
22	bsm_notify.c							\
23	bsm_token.c							\
24	bsm_user.c							\
25	bsm_wrappers.c
26
27#
28# Must use BSM include files from within the contrib area, not the system.
29#
30CFLAGS+=	-I${OPENBSMDIR} -I${LIBBSMDIR} -I${.CURDIR}/../../sys
31
32INCS=		audit_uevents.h libbsm.h
33INCSDIR=	${INCLUDEDIR}/bsm
34
35MAN=	libbsm.3							\
36	au_class.3							\
37	au_control.3							\
38	au_event.3							\
39	au_free_token.3							\
40	au_io.3								\
41	au_mask.3							\
42	au_token.3							\
43	au_user.3							\
44	audit_submit.3
45
46#
47# It seems like maybe some of these should be installed separately, since
48# they're not all libbsm parts.
49#
50MAN+=	audit.2								\
51	audit.log.5							\
52	audit_class.5							\
53	audit_control.5							\
54	audit_event.5							\
55	audit_user.5							\
56	audit_warn.5							\
57	auditctl.2							\
58	auditon.2							\
59	getaudit.2							\
60	getauid.2							\
61	setaudit.2							\
62	setauid.2
63
64MLINKS=	libbsm.3 bsm.3							\
65	au_class.3 getauclassent.3					\
66	au_class.3 getauclassnam.3					\
67	au_class.3 setauclass.3						\
68	au_class.3 endauclass.3						\
69	au_control.3 setac.3						\
70	au_control.3 endac.3						\
71	au_control.3 getacdir.3						\
72	au_control.3 getacmin.3						\
73	au_control.3 getacflg.3						\
74	au_control.3 getacna.3						\
75	au_event.3 setauevent.3						\
76	au_event.3 endauevent.3						\
77	au_event.3 getauevent.3						\
78	au_event.3 getauevnam.3						\
79	au_event.3 getauevnum.3						\
80	au_event.3 getauevnonam.3					\
81	au_io.3	au_fetch_tok.3						\
82	au_io.3	au_print_tok.3						\
83	au_io.3	au_read_rec.3						\
84	au_mask.3 au_preselect.3					\
85	au_mask.3 getauditflagsbin.3					\
86	au_mask.3 getauditflagschar.3					\
87	au_user.3 setauuser.3						\
88	au_user.3 endauuser.3						\
89	au_user.3 getauuserent.3					\
90	au_user.3 getauusernam.3					\
91	au_user.3 au_user_mask.3					\
92	au_user.3 getfauditflags.3					\
93	au_token.3 au_to_arg32.3					\
94	au_token.3 au_to_arg64.3					\
95	au_token.3 au_to_arg.3						\
96	au_token.3 au_to_attr64.3					\
97	au_token.3 au_to_data.3						\
98	au_token.3 au_to_exit.3						\
99	au_token.3 au_to_groups.3					\
100	au_token.3 au_to_newgroups.3					\
101	au_token.3 au_to_in_addr.3					\
102	au_token.3 au_to_in_addr_ex.3					\
103	au_token.3 au_to_ip.3						\
104	au_token.3 au_to_ipc.3						\
105	au_token.3 au_to_ipc_perm.3					\
106	au_token.3 au_to_iport.3					\
107	au_token.3 au_to_opaque.3					\
108	au_token.3 au_to_file.3						\
109	au_token.3 au_to_text.3						\
110	au_token.3 au_to_path.3						\
111	au_token.3 au_to_process32.3					\
112	au_token.3 au_to_process64.3					\
113	au_token.3 au_to_process.3					\
114	au_token.3 au_to_process32_ex.3					\
115	au_token.3 au_to_process64_ex.3					\
116	au_token.3 au_to_process_ex.3					\
117	au_token.3 au_to_return32.3					\
118	au_token.3 au_to_return64.3					\
119	au_token.3 au_to_return.3					\
120	au_token.3 au_to_seq.3						\
121	au_token.3 au_to_socket.3					\
122	au_token.3 au_to_socket_ex_32.3					\
123	au_token.3 au_to_socket_ex_128.3				\
124	au_token.3 au_to_sock_inet32.3					\
125	au_token.3 au_to_sock_inet128.3					\
126	au_token.3 au_to_sock_inet.3					\
127	au_token.3 au_to_subject32.3					\
128	au_token.3 au_to_subject64.3					\
129	au_token.3 au_to_subject.3					\
130	au_token.3 au_to_subject32_ex.3					\
131	au_token.3 au_to_subject64_ex.3					\
132	au_token.3 au_to_subject_ex.3					\
133	au_token.3 au_to_me.3						\
134	au_token.3 au_to_exec_args.3					\
135	au_token.3 au_to_exec_env.3					\
136	au_token.3 au_to_header.3					\
137	au_token.3 au_to_header32.3					\
138	au_token.3 au_to_header64.3					\
139	au_token.3 au_to_trailer.3
140
141.include <bsd.lib.mk>
142