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