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# 24*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gatePROG = auditd 277c478bd9Sstevel@tonic-gate 28a192e900SamaguireMANIFEST = auditd.xml 29a192e900SamaguireSVCMETHOD = svc-auditd 30a192e900Samaguire 318523fda3SJan Friedelinclude $(SRC)/cmd/Makefile.cmd 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateROOTMANIFESTDIR = $(ROOTSVCSYSTEM) 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateLIBBSM = $(SRC)/lib/libbsm/common 368523fda3SJan FriedelAUDITD = $(SRC)/cmd/auditd 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateCPPFLAGS += -D_REENTRANT 39f8994074SJan FriedelCPPFLAGS += -I$(LIBBSM) -I$(AUDITD) 407c478bd9Sstevel@tonic-gate 417014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 427014882cSRichard Lowe 43*5661bb76SJohn LevonSMOFF += macros 44*5661bb76SJohn Levon 45f8994074SJan FriedelLDLIBS += -lbsm -lsecdb 467c478bd9Sstevel@tonic-gate 47f8994074SJan FriedelOBJS = auditd.o doorway.o queue.o 48f8994074SJan FriedelSRCS = $(OBJS:%.o=%.c) 498523fda3SJan Friedel 501eea4119SJan FriedelPOFILE = $(PROG).po 518523fda3SJan FriedelMSGFILES = $(SRCS) 528523fda3SJan Friedel 537c478bd9Sstevel@tonic-gate.KEEP_STATE: 547c478bd9Sstevel@tonic-gate 55a192e900Samaguireall: $(PROG) 567c478bd9Sstevel@tonic-gate 57a192e900Samaguireinstall: all $(ROOTUSRSBINPROG) \ 58a192e900Samaguire $(ROOTMANIFEST) $(ROOTSVCMETHOD) 597c478bd9Sstevel@tonic-gate 608523fda3SJan Friedel$(PROG): $(SRCS) $(OBJS) 617c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 627c478bd9Sstevel@tonic-gate $(POST_PROCESS) 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gatelint: lint_SRCS 657c478bd9Sstevel@tonic-gate 668523fda3SJan Friedel$(POFILE): $(MSGFILES) 678523fda3SJan Friedel $(BUILDPO.msgfiles) 688523fda3SJan Friedel 691eea4119SJan Friedel_msg: $(MSGDOMAINPOFILE) 708523fda3SJan Friedel 71a192e900Samaguireclean: 72a192e900Samaguire $(RM) $(OBJS) 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gatecheck: $(CHKMANIFEST) 757c478bd9Sstevel@tonic-gate 768523fda3SJan Friedelinclude $(SRC)/cmd/Makefile.targ 771eea4119SJan Friedelinclude $(SRC)/Makefile.msg.targ 78