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 5a192e900Samaguire# Common Development and Distribution License (the "License"). 6a192e900Samaguire# 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# 217c478bd9Sstevel@tonic-gate# 22f8994074SJan Friedel# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved. 237c478bd9Sstevel@tonic-gate# 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gatePROG = auditd 267c478bd9Sstevel@tonic-gate 27a192e900SamaguireMANIFEST = auditd.xml 28a192e900SamaguireSVCMETHOD = svc-auditd 29a192e900Samaguire 308523fda3SJan Friedelinclude $(SRC)/cmd/Makefile.cmd 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateROOTMANIFESTDIR = $(ROOTSVCSYSTEM) 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateLIBBSM = $(SRC)/lib/libbsm/common 358523fda3SJan FriedelAUDITD = $(SRC)/cmd/auditd 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gateCPPFLAGS += -D_REENTRANT 38f8994074SJan FriedelCPPFLAGS += -I$(LIBBSM) -I$(AUDITD) 397c478bd9Sstevel@tonic-gate 40*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 41*7014882cSRichard Lowe 42f8994074SJan FriedelLDLIBS += -lbsm -lsecdb 437c478bd9Sstevel@tonic-gate 44f8994074SJan FriedelOBJS = auditd.o doorway.o queue.o 45f8994074SJan FriedelSRCS = $(OBJS:%.o=%.c) 468523fda3SJan Friedel 471eea4119SJan FriedelPOFILE = $(PROG).po 488523fda3SJan FriedelMSGFILES = $(SRCS) 498523fda3SJan Friedel 507c478bd9Sstevel@tonic-gate.KEEP_STATE: 517c478bd9Sstevel@tonic-gate 52a192e900Samaguireall: $(PROG) 537c478bd9Sstevel@tonic-gate 54a192e900Samaguireinstall: all $(ROOTUSRSBINPROG) \ 55a192e900Samaguire $(ROOTMANIFEST) $(ROOTSVCMETHOD) 567c478bd9Sstevel@tonic-gate 578523fda3SJan Friedel$(PROG): $(SRCS) $(OBJS) 587c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 597c478bd9Sstevel@tonic-gate $(POST_PROCESS) 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gatelint: lint_SRCS 627c478bd9Sstevel@tonic-gate 638523fda3SJan Friedel$(POFILE): $(MSGFILES) 648523fda3SJan Friedel $(BUILDPO.msgfiles) 658523fda3SJan Friedel 661eea4119SJan Friedel_msg: $(MSGDOMAINPOFILE) 678523fda3SJan Friedel 68a192e900Samaguireclean: 69a192e900Samaguire $(RM) $(OBJS) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gatecheck: $(CHKMANIFEST) 727c478bd9Sstevel@tonic-gate 738523fda3SJan Friedelinclude $(SRC)/cmd/Makefile.targ 741eea4119SJan Friedelinclude $(SRC)/Makefile.msg.targ 75