xref: /titanic_51/usr/src/lib/libbsm/Makefile.com (revision cfb7311ca709ca6f4d930977c7498455556b5312)
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 2010 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
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_settid.o \
55		audit_shutdown.o \
56		audit_user.o \
57		bsm.o \
58		generic.o \
59		getacinfo.o \
60		getacval.o \
61		getauditflags.o \
62		getdaent.o \
63		getdevicerange.o \
64		getdment.o \
65		getdadefs.o \
66		devalloc.o \
67		getfaudflgs.o
68
69#
70# Include common library definitions.
71#
72include ../../Makefile.lib
73
74# install this library in the root filesystem
75include ../../Makefile.rootfs
76
77SRCDIR =	../common
78
79LIBS =	 	$(DYNLIB) $(LINTLIB)
80
81LINTSRC= $(LINTLIB:%.ln=%)
82$(LINTLIB) :=	SRCS = ../common/$(LINTSRC)
83ROOTLINTDIR=	$(ROOTLIBDIR)
84ROOTLINT=	$(LINTSRC:%=$(ROOTLINTDIR)/%)
85
86CLEANFILES +=	$(LINTOUT) $(LINTLIB)
87
88CFLAGS	+=	$(CCVERBOSE)
89LDLIBS +=	-lsocket -lnsl -lmd -lc -lsecdb -ltsol -linetutil
90
91COMDIR=		../common
92
93CPPFLAGS += -I$(COMDIR)
94CPPFLAGS += -D_REENTRANT
95
96#
97# message catalogue file
98#
99TEXT_DOMAIN= SUNW_OST_OSLIB
100
101.KEEP_STATE:
102
103all: $(LIBS)
104
105lint: lintcheck
106
107# Include library targets
108#
109include ../../Makefile.targ
110
111pics/%.o: ../common/%.c
112	$(COMPILE.c) -o $@ $<
113	$(POST_PROCESS_O)
114
115# install rule for lint library target
116$(ROOTLINTDIR)/%: ../common/%
117	$(INS.file)
118