xref: /illumos-gate/usr/src/lib/libbsm/Makefile.com (revision 0173c38a73f34277e0c97a19fedfd25d81ba8380)
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 2006 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_inetd.o \
49		audit_kadmind.o \
50		audit_krb5kdc.o \
51		audit_mountd.o \
52		audit_newgrp.o \
53		audit_plugin.o \
54		audit_reboot.o \
55		audit_rexd.o \
56		audit_rexecd.o \
57		audit_rshd.o \
58		audit_settid.o \
59		audit_shutdown.o \
60		audit_uadmin.o \
61		audit_user.o \
62		bsm.o \
63		generic.o \
64		getacinfo.o \
65		getacval.o \
66		getauditflags.o \
67		getdaent.o \
68		getdevicerange.o \
69		getdment.o \
70		getdadefs.o \
71		devalloc.o \
72		getfaudflgs.o
73
74#
75# Include common library definitions.
76#
77include ../../Makefile.lib
78
79# install this library in the root filesystem
80include ../../Makefile.rootfs
81
82SRCDIR =	../common
83
84LIBS =	 	$(DYNLIB) $(LINTLIB)
85
86LINTSRC= $(LINTLIB:%.ln=%)
87$(LINTLIB) :=	SRCS = ../common/$(LINTSRC)
88ROOTLINTDIR=	$(ROOTLIBDIR)
89ROOTLINT=	$(LINTSRC:%=$(ROOTLINTDIR)/%)
90
91CLEANFILES +=	$(LINTOUT) $(LINTLIB)
92
93CFLAGS	+=	$(CCVERBOSE)
94
95LAZYLIBS =	$(ZLAZYLOAD) -ltsol $(ZNOLAZYLOAD)
96LDLIBS +=	-lsocket -lnsl -lmd -lc -lsecdb $(LAZYLIBS)
97lint :=		LAZYLIBS = -ltsol
98
99COMDIR=		../common
100
101CPPFLAGS += -I$(COMDIR)
102CPPFLAGS += -D_REENTRANT
103
104#
105# message catalogue file
106#
107TEXT_DOMAIN= SUNW_OST_OSLIB
108
109.KEEP_STATE:
110
111all: $(LIBS)
112
113lint: lintcheck
114
115# Include library targets
116#
117include ../../Makefile.targ
118
119pics/%.o: ../common/%.c
120	$(COMPILE.c) -o $@ $<
121	$(POST_PROCESS_O)
122
123# install rule for lint library target
124$(ROOTLINTDIR)/%: ../common/%
125	$(INS.file)
126