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 2004 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_su.o \ 66 audit_uadmin.o \ 67 audit_user.o \ 68 bsm.o \ 69 generic.o \ 70 getacinfo.o \ 71 getacval.o \ 72 getauditflags.o \ 73 getdaent.o \ 74 getdment.o \ 75 getfaudflgs.o 76 77# 78# Include common library definitions. 79# 80include ../../Makefile.lib 81 82# install this library in the root filesystem 83include ../../Makefile.rootfs 84 85MAPFILE= $(MAPDIR)/mapfile 86 87SRCS= $(OBJECTS:%.o=../common/%.c) 88 89LIBS = $(DYNLIB) $(LINTLIB) 90 91LINTSRC= $(LINTLIB:%.ln=%) 92$(LINTLIB) := SRCS = ../common/$(LINTSRC) 93ROOTLINTDIR= $(ROOTLIBDIR) 94ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%) 95 96CLEANFILES += $(LINTOUT) $(LINTLIB) 97CLOBBERFILES += $(MAPFILE) 98 99CFLAGS += $(CCVERBOSE) 100DYNFLAGS += -M$(MAPFILE) 101LDLIBS += -lsocket -lnsl -lmd5 -lc -lsecdb 102 103COMDIR= ../common 104 105CPPFLAGS += -I$(COMDIR) 106CPPFLAGS += -D_REENTRANT 107 108# 109# message catalogue file 110# 111TEXT_DOMAIN= SUNW_OST_OSLIB 112 113.KEEP_STATE: 114 115all: $(LIBS) 116 117lint: lintcheck 118 119$(DYNLIB) $(DYNLIB64): $(MAPFILE) 120 121$(MAPFILE): 122 @cd $(MAPDIR); pwd; $(MAKE) mapfile 123 124# Include library targets 125# 126include ../../Makefile.targ 127 128pics/%.o: ../common/%.c 129 $(COMPILE.c) -o $@ $< 130 $(POST_PROCESS_O) 131 132# install rule for lint library target 133$(ROOTLINTDIR)/%: ../common/% 134 $(INS.file) 135