xref: /titanic_44/usr/src/lib/libbsm/Makefile.com (revision 587032cf0967234b39ccb50adca936a367841063)
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# lib/libbsm/Makefile.com
28#
29
30LIBRARY =	libbsm.a
31VERS = 		.1
32OBJECTS=	adr.o \
33		adrf.o \
34		adrm.o \
35		adt.o \
36		adt_token.o \
37		adt_xlate.o \
38		au_open.o \
39		au_preselect.o \
40		au_to.o \
41		au_usermask.o \
42		audit_allocate.o \
43		audit_class.o \
44		audit_cron.o \
45		audit_crontab.o \
46		audit_at.o \
47		audit_event.o \
48		audit_ftpd.o \
49		audit_halt.o \
50		audit_inetd.o \
51		audit_kadmind.o \
52		audit_krb5kdc.o \
53		audit_mountd.o \
54		audit_newgrp.o \
55		audit_plugin.o \
56		audit_reboot.o \
57		audit_rexd.o \
58		audit_rexecd.o \
59		audit_rshd.o \
60		audit_settid.o \
61		audit_shutdown.o \
62		audit_uadmin.o \
63		audit_user.o \
64		bsm.o \
65		generic.o \
66		getacinfo.o \
67		getacval.o \
68		getauditflags.o \
69		getdaent.o \
70		getdevicerange.o \
71		getdment.o \
72		getdadefs.o \
73		devalloc.o \
74		getfaudflgs.o
75
76#
77# Include common library definitions.
78#
79include ../../Makefile.lib
80
81# install this library in the root filesystem
82include ../../Makefile.rootfs
83
84MAPFILE=	$(MAPDIR)/mapfile
85
86SRCS=		$(OBJECTS:%.o=../common/%.c)
87
88LIBS =	 	$(DYNLIB) $(LINTLIB)
89
90LINTSRC= $(LINTLIB:%.ln=%)
91$(LINTLIB) :=	SRCS = ../common/$(LINTSRC)
92ROOTLINTDIR=	$(ROOTLIBDIR)
93ROOTLINT=	$(LINTSRC:%=$(ROOTLINTDIR)/%)
94
95CLEANFILES +=	$(LINTOUT) $(LINTLIB)
96CLOBBERFILES +=	$(MAPFILE)
97
98CFLAGS	+=	$(CCVERBOSE)
99DYNFLAGS +=	-M$(MAPFILE)
100
101LAZYLIBS =	$(ZLAZYLOAD) -ltsol $(ZNOLAZYLOAD)
102LDLIBS +=	-lsocket -lnsl -lmd -lc -lsecdb $(LAZYLIBS)
103lint :=		LAZYLIBS = -ltsol
104
105COMDIR=		../common
106
107CPPFLAGS += -I$(COMDIR)
108CPPFLAGS += -D_REENTRANT
109
110#
111# message catalogue file
112#
113TEXT_DOMAIN= SUNW_OST_OSLIB
114
115.KEEP_STATE:
116
117all: $(LIBS)
118
119lint: lintcheck
120
121$(DYNLIB) $(DYNLIB64): 	$(MAPFILE)
122
123$(MAPFILE):
124	@cd $(MAPDIR); pwd; $(MAKE) mapfile
125
126# Include library targets
127#
128include ../../Makefile.targ
129
130pics/%.o: ../common/%.c
131	$(COMPILE.c) -o $@ $<
132	$(POST_PROCESS_O)
133
134# install rule for lint library target
135$(ROOTLINTDIR)/%: ../common/%
136	$(INS.file)
137