xref: /illumos-gate/usr/src/cmd/auditd/Makefile (revision 1eea4119ffbe77304e95eb3044905255ff920d33)
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#
22dfc7be02SJan Friedel# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
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 FriedelAUDITCONFIG = $(SRC)/cmd/auditconfig
378523fda3SJan FriedelAUDITD = $(SRC)/cmd/auditd
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateCPPFLAGS += -D_REENTRANT
408523fda3SJan FriedelCPPFLAGS += -I$(LIBBSM) -I$(AUDITCONFIG) -I$(AUDITD)
417c478bd9Sstevel@tonic-gate
428523fda3SJan FriedelLDLIBS += -lbsm -lsecdb -lscf
437c478bd9Sstevel@tonic-gate
448523fda3SJan FriedelOBJS = audit_scf_shared.o auditd.o doorway.o queue.o
458523fda3SJan FriedelSRCS = $(AUDITCONFIG)/audit_scf_shared.c auditd.c doorway.c queue.c
468523fda3SJan Friedel
47*1eea4119SJan 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
618523fda3SJan Friedelaudit_scf%.o:
628523fda3SJan Friedel		$(COMPILE.c) $(AUDITCONFIG)/$(@:%.o=%.c)
638523fda3SJan Friedel
647c478bd9Sstevel@tonic-gatelint:		lint_SRCS
657c478bd9Sstevel@tonic-gate
668523fda3SJan Friedel$(POFILE): $(MSGFILES)
678523fda3SJan Friedel		$(BUILDPO.msgfiles)
688523fda3SJan Friedel
69*1eea4119SJan 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
77*1eea4119SJan Friedelinclude $(SRC)/Makefile.msg.targ
78