xref: /titanic_50/usr/src/lib/libbsm/Makefile.com (revision 0778188f242b11e5d53f771c9e8a069354b3d5d4)
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
25LIBRARY =	libbsm.a
26VERS = 		.1
27OBJECTS=	adr.o \
28		adrf.o \
29		adrm.o \
30		adt.o \
31		adt_token.o \
32		adt_xlate.o \
33		au_open.o \
34		au_preselect.o \
35		au_to.o \
36		au_usermask.o \
37		audit_allocate.o \
38		audit_class.o \
39		audit_cron.o \
40		audit_crontab.o \
41		audit_at.o \
42		audit_event.o \
43		audit_ftpd.o \
44		audit_halt.o \
45		audit_kadmind.o \
46		audit_krb5kdc.o \
47		audit_mountd.o \
48		audit_plugin.o \
49		audit_reboot.o \
50		audit_rexd.o \
51		audit_rexecd.o \
52		audit_rshd.o \
53		audit_scf.o \
54		audit_settid.o \
55		audit_shutdown.o \
56		bsm.o \
57		generic.o \
58		getauditflags.o \
59		getdaent.o \
60		getdevicerange.o \
61		getdment.o \
62		getdadefs.o \
63		devalloc.o \
64		getfaudflgs.o
65
66#
67# Include common library definitions.
68#
69include ../../Makefile.lib
70
71# install this library in the root filesystem
72include ../../Makefile.rootfs
73
74SRCDIR =	../common
75
76LIBS =	 	$(DYNLIB) $(LINTLIB)
77
78LINTSRC= $(LINTLIB:%.ln=%)
79$(LINTLIB) :=	SRCS = ../common/$(LINTSRC)
80ROOTLINTDIR=	$(ROOTLIBDIR)
81ROOTLINT=	$(LINTSRC:%=$(ROOTLINTDIR)/%)
82
83CLEANFILES +=	$(LINTOUT) $(LINTLIB)
84
85CFLAGS	+=	$(CCVERBOSE)
86LDLIBS +=	-lsocket -lnsl -lmd -lc -lsecdb -ltsol -linetutil -lscf
87
88CERRWARN +=	-_gcc=-Wno-parentheses
89CERRWARN +=	-_gcc=-Wno-uninitialized
90
91COMDIR=		../common
92AUDITD=		$(SRC)/cmd/auditd
93
94CPPFLAGS += -I$(COMDIR) -I$(AUDITD)
95CPPFLAGS += -D_REENTRANT
96
97#
98# message catalogue file
99#
100TEXT_DOMAIN= SUNW_OST_OSLIB
101
102.KEEP_STATE:
103
104all: $(LIBS)
105
106lint: lintcheck
107
108# Include library targets
109#
110include ../../Makefile.targ
111
112pics/%.o: ../common/%.c
113	$(COMPILE.c) -o $@ $<
114	$(POST_PROCESS_O)
115
116# install rule for lint library target
117$(ROOTLINTDIR)/%: ../common/%
118	$(INS.file)
119