xref: /illumos-gate/usr/src/lib/libbsm/Makefile.com (revision 622200ad88c6c6382403a01985a94e22484baac6)
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
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		getdment.o \
71		getfaudflgs.o
72
73#
74# Include common library definitions.
75#
76include ../../Makefile.lib
77
78# install this library in the root filesystem
79include ../../Makefile.rootfs
80
81MAPFILE=	$(MAPDIR)/mapfile
82
83SRCS=		$(OBJECTS:%.o=../common/%.c)
84
85LIBS =	 	$(DYNLIB) $(LINTLIB)
86
87LINTSRC= $(LINTLIB:%.ln=%)
88$(LINTLIB) :=	SRCS = ../common/$(LINTSRC)
89ROOTLINTDIR=	$(ROOTLIBDIR)
90ROOTLINT=	$(LINTSRC:%=$(ROOTLINTDIR)/%)
91
92CLEANFILES +=	$(LINTOUT) $(LINTLIB)
93CLOBBERFILES +=	$(MAPFILE)
94
95CFLAGS	+=	$(CCVERBOSE)
96DYNFLAGS +=	-M$(MAPFILE)
97LDLIBS +=	-lsocket -lnsl -lmd5 -lc -lsecdb
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$(DYNLIB) $(DYNLIB64): 	$(MAPFILE)
116
117$(MAPFILE):
118	@cd $(MAPDIR); pwd; $(MAKE) mapfile
119
120# Include library targets
121#
122include ../../Makefile.targ
123
124pics/%.o: ../common/%.c
125	$(COMPILE.c) -o $@ $<
126	$(POST_PROCESS_O)
127
128# install rule for lint library target
129$(ROOTLINTDIR)/%: ../common/%
130	$(INS.file)
131