xref: /titanic_44/usr/src/lib/libbsm/Makefile.com (revision d291d9f21e8c0417aec99de243dd48bc400002d0)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/libbsm/Makefile
29#
30
31LIBRARY =	libbsm.a
32VERS = 		.1
33OBJECTS=	adr.o \
34		adrf.o \
35		adrm.o \
36		adt.o \
37		adt_token.o \
38		adt_xlate.o \
39		au_open.o \
40		au_preselect.o \
41		au_to.o \
42		au_usermask.o \
43		audit_allocate.o \
44		audit_class.o \
45		audit_cron.o \
46		audit_crontab.o \
47		audit_at.o \
48		audit_event.o \
49		audit_ftpd.o \
50		audit_halt.o \
51		audit_inetd.o \
52		audit_kadmind.o \
53		audit_krb5kdc.o \
54		audit_login.o \
55		audit_mountd.o \
56		audit_mgrs.o \
57		audit_newgrp.o \
58		audit_plugin.o \
59		audit_reboot.o \
60		audit_rexd.o \
61		audit_rexecd.o \
62		audit_rshd.o \
63		audit_settid.o \
64		audit_shutdown.o \
65		audit_uadmin.o \
66		audit_user.o \
67		bsm.o \
68		generic.o \
69		getacinfo.o \
70		getacval.o \
71		getauditflags.o \
72		getdaent.o \
73		getdment.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)
100LDLIBS +=	-lsocket -lnsl -lmd5 -lc -lsecdb
101
102COMDIR=		../common
103
104CPPFLAGS += -I$(COMDIR)
105CPPFLAGS += -D_REENTRANT
106
107#
108# message catalogue file
109#
110TEXT_DOMAIN= SUNW_OST_OSLIB
111
112.KEEP_STATE:
113
114all: $(LIBS)
115
116lint: lintcheck
117
118$(DYNLIB) $(DYNLIB64): 	$(MAPFILE)
119
120$(MAPFILE):
121	@cd $(MAPDIR); pwd; $(MAKE) mapfile
122
123# Include library targets
124#
125include ../../Makefile.targ
126
127pics/%.o: ../common/%.c
128	$(COMPILE.c) -o $@ $<
129	$(POST_PROCESS_O)
130
131# install rule for lint library target
132$(ROOTLINTDIR)/%: ../common/%
133	$(INS.file)
134