xref: /illumos-gate/usr/src/lib/libbsm/Makefile.com (revision 1fa2a66491e7d8ae0be84e7da4da8e812480c710)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
23#
24# Copyright (c) 2018, Joyent, Inc.
25
26LIBRARY =	libbsm.a
27VERS =		.1
28OBJECTS=	adr.o \
29		adrf.o \
30		adrm.o \
31		adt.o \
32		adt_token.o \
33		adt_xlate.o \
34		au_open.o \
35		au_preselect.o \
36		au_to.o \
37		au_usermask.o \
38		audit_allocate.o \
39		audit_class.o \
40		audit_cron.o \
41		audit_crontab.o \
42		audit_at.o \
43		audit_event.o \
44		audit_ftpd.o \
45		audit_halt.o \
46		audit_kadmind.o \
47		audit_krb5kdc.o \
48		audit_mountd.o \
49		audit_plugin.o \
50		audit_reboot.o \
51		audit_rexd.o \
52		audit_rexecd.o \
53		audit_rshd.o \
54		audit_scf.o \
55		audit_settid.o \
56		audit_shutdown.o \
57		bsm.o \
58		generic.o \
59		getauditflags.o \
60		getdaent.o \
61		getdevicerange.o \
62		getdment.o \
63		getdadefs.o \
64		devalloc.o \
65		getfaudflgs.o
66
67#
68# Include common library definitions.
69#
70include ../../Makefile.lib
71
72# install this library in the root filesystem
73include ../../Makefile.rootfs
74
75SRCDIR =	../common
76
77LIBS =		$(DYNLIB)
78
79CFLAGS	+=	$(CCVERBOSE)
80LDLIBS +=	-lsocket -lnsl -lmd -lc -lsecdb -ltsol -linetutil -lscf
81
82CERRWARN +=	-_gcc=-Wno-parentheses
83CERRWARN +=	$(CNOWARN_UNINIT)
84
85# not linted
86SMATCH=off
87
88COMDIR=		../common
89AUDITD=		$(SRC)/cmd/auditd
90
91CPPFLAGS += -I$(COMDIR) -I$(AUDITD)
92CPPFLAGS += -D_REENTRANT
93
94#
95# message catalogue file
96#
97TEXT_DOMAIN= SUNW_OST_OSLIB
98
99.KEEP_STATE:
100
101all: $(LIBS)
102
103
104# Include library targets
105#
106include ../../Makefile.targ
107
108pics/%.o: ../common/%.c
109	$(COMPILE.c) -o $@ $<
110	$(POST_PROCESS_O)
111