Makefile revision 0ad2061eab39cb8631cb8f2e91ce483699f50425
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4b6dc226f78862286daa69fba761eac9fd5da16aAutomatic Updater# or http://www.opensolaris.org/os/licensing.
940e4ef72b64a8a82a1038fdf08b324eec6e43a9Michael Graff# See the License for the specific language governing permissions
940e4ef72b64a8a82a1038fdf08b324eec6e43a9Michael Graff# and limitations under the License.
854d0238dbc2908490197984b3b9d558008a53dfMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
854d0238dbc2908490197984b3b9d558008a53dfMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff# fields enclosed by brackets "[]" replaced with your own identifying
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff# information: Portions Copyright [yyyy] [name of copyright owner]
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence# CDDL HEADER END
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# Use is subject to license terms.
2047977ce2dfcfe3a0fa2d638c3242841310fad3Mark Andrews# Macros for libbsm header files. These define user-level only interfaces.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsHDRS = libbsm.h devices.h devalloc.h adt.h adt_event.h audit_private.h
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsGENSRCS = $(COMMONDIR)/adt_xlate.c $(COMMONDIR)/adt_event.h
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# Macros for libbsm database files. These should probably be installed
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# from somewhere else. Until we find that better place, install them
b0ba1a6059b6d6c4b3aa77d8bc84cc443b981e01Mukund SivaramanESFILES = audit_class audit_control audit_event audit_user
ae114ded82e773a4d9058f833f964a17514712a8Brian WellingtonETCSECURITYFILES = $(ESFILES:%=$(ROOTETCSECURITY)/%)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsEETCSECURITYFILES = $(EESFILES:%=$(ROOTETCSECURITY)/%)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# /etc/security/audit/localhost/files is a symbolic link to /var/audit.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# This is provided so that auditreduce will work in the default configuration.
4529cdaedaf1a0a5f8ff89aeca510b7a4475446cBob Halley# message catalogue file
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsMSGFILES = `$(GREP) -l gettext $(COMMONDIR)/*.c`
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# Definitions for XML (DTD AND XSL)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsROOTXMLDIRS = $(ROOTXMLDIR) $(ROOTDTDDIR) $(ROOTXSLDIR)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# $(ROOTUSRLIB) $(ROOTLIBS) $(ROOTLINKS)
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffinstall_h: $(ROOTHDRDIR) $(ROOTHDRS) $(ROOTCHDRS)
9281e7aa775026dc47c01745fdcc438645146877Mark Andrews xmllint --schema $(ADTXSDFILE) --noout $(ADTXMLFILE)
9281e7aa775026dc47c01745fdcc438645146877Mark Andrewsinstall_data: $(ESSRC) $(RESSRC) $(ROOTETCSECURITY) $(ETCSECURITYFILES) \
b589e90689c6e87bf9608424ca8d99571c18bc61Mark Andrewsinstall_dirs: $(AUDITDIRS) $(ARSYMLNK) $(ROOTXMLDIRS)
f7b99290c31abeb20c55fc55391510450ce60423Mark Andrews$(COMMONDIR)/adt_event.check: $(COMMONDIR)/adt_event.h
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrews $(PERL) $(AUDITXML) -o $(COMMONDIR) $(ADTXMLFILE)
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence$(ETCSECURITYFILES) $(EETCSECURITYFILES) $(RESA): \
2047977ce2dfcfe3a0fa2d638c3242841310fad3Mark Andrews# has strings but doesn't use gettext
2047977ce2dfcfe3a0fa2d638c3242841310fad3Mark Andrews $(XGETTEXT) $(XGETFLAGS_ADT) $(COMMONDIR)/adt_xlate.c
2047977ce2dfcfe3a0fa2d638c3242841310fad3Mark Andrews $(SED) "/^domain/d" < messages.po > adt_xlate.po