xref: /titanic_51/usr/src/lib/libbsm/Makefile.com (revision a776e90690d98f629ab57f6493ff5949af9d65bd)
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 2007 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)
91
92LAZYLIBS =	$(ZLAZYLOAD) -ltsol $(ZNOLAZYLOAD)
93LDLIBS +=	-lsocket -lnsl -lmd -lc -lsecdb $(LAZYLIBS)
94lint :=		LAZYLIBS = -ltsol
95
96COMDIR=		../common
97
98CPPFLAGS += -I$(COMDIR)
99CPPFLAGS += -D_REENTRANT
100
101#
102# message catalogue file
103#
104TEXT_DOMAIN= SUNW_OST_OSLIB
105
106.KEEP_STATE:
107
108all: $(LIBS)
109
110lint: lintcheck
111
112# Include library targets
113#
114include ../../Makefile.targ
115
116pics/%.o: ../common/%.c
117	$(COMPILE.c) -o $@ $<
118	$(POST_PROCESS_O)
119
120# install rule for lint library target
121$(ROOTLINTDIR)/%: ../common/%
122	$(INS.file)
123