xref: /titanic_52/usr/src/cmd/auditset/Makefile (revision f89940742f5d14dde79b69b98a414dd7b7f585c7)
1*f8994074SJan Friedel#
2*f8994074SJan Friedel# CDDL HEADER START
3*f8994074SJan Friedel#
4*f8994074SJan Friedel# The contents of this file are subject to the terms of the
5*f8994074SJan Friedel# Common Development and Distribution License (the "License").
6*f8994074SJan Friedel# You may not use this file except in compliance with the License.
7*f8994074SJan Friedel#
8*f8994074SJan Friedel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*f8994074SJan Friedel# or http://www.opensolaris.org/os/licensing.
10*f8994074SJan Friedel# See the License for the specific language governing permissions
11*f8994074SJan Friedel# and limitations under the License.
12*f8994074SJan Friedel#
13*f8994074SJan Friedel# When distributing Covered Code, include this CDDL HEADER in each
14*f8994074SJan Friedel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*f8994074SJan Friedel# If applicable, add the following below this CDDL HEADER, with the
16*f8994074SJan Friedel# fields enclosed by brackets "[]" replaced with your own identifying
17*f8994074SJan Friedel# information: Portions Copyright [yyyy] [name of copyright owner]
18*f8994074SJan Friedel#
19*f8994074SJan Friedel# CDDL HEADER END
20*f8994074SJan Friedel#
21*f8994074SJan Friedel# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
22*f8994074SJan Friedel#
23*f8994074SJan Friedel#
24*f8994074SJan Friedel# Makefile for auditset
25*f8994074SJan Friedel
26*f8994074SJan FriedelPROG = svc-auditset
27*f8994074SJan FriedelSVCMETHOD = $(PROG)
28*f8994074SJan Friedel
29*f8994074SJan FriedelMANIFEST = auditset.xml
30*f8994074SJan Friedel
31*f8994074SJan Friedelinclude $(SRC)/cmd/Makefile.cmd
32*f8994074SJan Friedel
33*f8994074SJan FriedelROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
34*f8994074SJan Friedel
35*f8994074SJan FriedelLIBBSM = $(SRC)/lib/libbsm/common
36*f8994074SJan Friedel
37*f8994074SJan FriedelLDLIBS += -lbsm
38*f8994074SJan Friedel
39*f8994074SJan FriedelOBJS = svc-auditset.o
40*f8994074SJan FriedelSRCS = $(OBJS:%.o=%.c)
41*f8994074SJan Friedel
42*f8994074SJan FriedelPOFILE = $(PROG).po
43*f8994074SJan FriedelMSGFILES = $(SRCS)
44*f8994074SJan Friedel
45*f8994074SJan FriedelCPPFLAGS += -I$(LIBBSM)
46*f8994074SJan Friedel
47*f8994074SJan Friedel.KEEP_STATE:
48*f8994074SJan Friedel
49*f8994074SJan Friedelall: $(PROG)
50*f8994074SJan Friedel
51*f8994074SJan Friedelinstall: all $(ROOTMANIFEST) $(ROOTSVCMETHOD)
52*f8994074SJan Friedel
53*f8994074SJan Friedel$(PROG): $(SRCS) $(OBJS)
54*f8994074SJan Friedel	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
55*f8994074SJan Friedel	$(POST_PROCESS)
56*f8994074SJan Friedel
57*f8994074SJan Friedel$(POFILE): $(MSGFILES)
58*f8994074SJan Friedel	$(BUILDPO.msgfiles)
59*f8994074SJan Friedel
60*f8994074SJan Friedel_msg: $(MSGDOMAINPOFILE)
61*f8994074SJan Friedel
62*f8994074SJan Friedelclean:
63*f8994074SJan Friedel	$(RM) $(OBJS)
64*f8994074SJan Friedel
65*f8994074SJan Friedellint:	lint_SRCS
66*f8994074SJan Friedel
67*f8994074SJan Friedelcheck:          $(CHKMANIFEST)
68*f8994074SJan Friedel
69*f8994074SJan Friedelinclude $(SRC)/cmd/Makefile.targ
70*f8994074SJan Friedelinclude $(SRC)/Makefile.msg.targ
71