17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*8523fda3SJan Friedel# Common Development and Distribution License (the "License"). 6*8523fda3SJan Friedel# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 21*8523fda3SJan Friedel# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22*8523fda3SJan Friedel# Use is subject to license terms. 237c478bd9Sstevel@tonic-gate# 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# Makefile for auditconfig 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gatePROG = auditconfig 287c478bd9Sstevel@tonic-gate 29*8523fda3SJan Friedelinclude $(SRC)/cmd/Makefile.cmd 307c478bd9Sstevel@tonic-gate 31*8523fda3SJan FriedelPOFILE = auditconfig.po 32*8523fda3SJan FriedelMSGFILES = $(SRCS) 337c478bd9Sstevel@tonic-gate 34*8523fda3SJan FriedelLIBBSM = $(SRC)/lib/libbsm/common 35*8523fda3SJan FriedelAUDITCONFIG = $(SRC)/cmd/auditconfig 36*8523fda3SJan FriedelAUDITD = $(SRC)/cmd/auditd 37*8523fda3SJan Friedel 38*8523fda3SJan FriedelLDLIBS += -lnsl -lbsm -lscf 39*8523fda3SJan Friedel 40*8523fda3SJan FriedelOBJS = audit_scf.o audit_scf_shared.o auditconfig.o 41*8523fda3SJan FriedelSRCS = $(OBJS:%.o=%.c) 42*8523fda3SJan Friedel 43*8523fda3SJan FriedelCPPFLAGS += -I$(LIBBSM) -I$(AUDITD) -I$(AUDITCONFIG) 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate.KEEP_STATE: 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateinstall: all $(ROOTUSRSBINPROG) 487c478bd9Sstevel@tonic-gateall: $(PROG) 497c478bd9Sstevel@tonic-gate 50*8523fda3SJan Friedel$(PROG): $(SRCS) $(OBJS) 51*8523fda3SJan Friedel $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 52*8523fda3SJan Friedel $(POST_PROCESS) 53*8523fda3SJan Friedel 54*8523fda3SJan Friedel 55*8523fda3SJan Friedel$(POFILE): $(MSGFILES) 56*8523fda3SJan Friedel $(BUILDPO.msgfiles) 57*8523fda3SJan Friedel 58*8523fda3SJan Friedel#_msg: $(MSGDOMAINPOFILE) 59*8523fda3SJan Friedel 607c478bd9Sstevel@tonic-gateclean: 61*8523fda3SJan Friedel $(RM) $(OBJS) 627c478bd9Sstevel@tonic-gate 63*8523fda3SJan Friedellint: lint_SRCS 647c478bd9Sstevel@tonic-gate 65*8523fda3SJan Friedelinclude $(SRC)/cmd/Makefile.targ 66*8523fda3SJan Friedel#include $(SRC)/Makefile.msg.targ 67*8523fda3SJan FriedelBUILDPO.msgfiles = \ 68*8523fda3SJan Friedel $(RM) messages.po $(TEXT_DOMAIN).po; \ 69*8523fda3SJan Friedel $(TOUCH) $(TEXT_DOMAIN).po; \ 70*8523fda3SJan Friedel $(XGETTEXT) $(XGETFLAGS) $(MSGFILES); \ 71*8523fda3SJan Friedel $(SED) -e '/^\# msgid/,/^\# msgstr/d' -e '/^domain/d' \ 72*8523fda3SJan Friedel -e '/^\#$$/d' -e '/^\#, /d' \ 73*8523fda3SJan Friedel messages.po $(TEXT_DOMAIN).po > $(POFILE); \ 74*8523fda3SJan Friedel $(RM) messages.po $(TEXT_DOMAIN).po 75