xref: /titanic_53/usr/src/cmd/auditd/Makefile (revision f89940742f5d14dde79b69b98a414dd7b7f585c7)
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#
22*f8994074SJan 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
38*f8994074SJan FriedelCPPFLAGS += -I$(LIBBSM) -I$(AUDITD)
397c478bd9Sstevel@tonic-gate
40*f8994074SJan FriedelLDLIBS += -lbsm -lsecdb
417c478bd9Sstevel@tonic-gate
42*f8994074SJan FriedelOBJS = auditd.o doorway.o queue.o
43*f8994074SJan FriedelSRCS = $(OBJS:%.o=%.c)
448523fda3SJan Friedel
451eea4119SJan FriedelPOFILE =	$(PROG).po
468523fda3SJan FriedelMSGFILES =	$(SRCS)
478523fda3SJan Friedel
487c478bd9Sstevel@tonic-gate.KEEP_STATE:
497c478bd9Sstevel@tonic-gate
50a192e900Samaguireall:		$(PROG)
517c478bd9Sstevel@tonic-gate
52a192e900Samaguireinstall:	all $(ROOTUSRSBINPROG) \
53a192e900Samaguire		$(ROOTMANIFEST) $(ROOTSVCMETHOD)
547c478bd9Sstevel@tonic-gate
558523fda3SJan Friedel$(PROG):	$(SRCS) $(OBJS)
567c478bd9Sstevel@tonic-gate		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
577c478bd9Sstevel@tonic-gate		$(POST_PROCESS)
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gatelint:		lint_SRCS
607c478bd9Sstevel@tonic-gate
618523fda3SJan Friedel$(POFILE): $(MSGFILES)
628523fda3SJan Friedel		$(BUILDPO.msgfiles)
638523fda3SJan Friedel
641eea4119SJan Friedel_msg: $(MSGDOMAINPOFILE)
658523fda3SJan Friedel
66a192e900Samaguireclean:
67a192e900Samaguire		$(RM) $(OBJS)
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gatecheck:		$(CHKMANIFEST)
707c478bd9Sstevel@tonic-gate
718523fda3SJan Friedelinclude $(SRC)/cmd/Makefile.targ
721eea4119SJan Friedelinclude $(SRC)/Makefile.msg.targ
73