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