xref: /titanic_41/usr/src/cmd/auditd/Makefile (revision 66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29PROG = auditd
30
31include ../Makefile.cmd
32
33MANIFEST = auditd.xml
34ROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
35ROOTMETHOD = $(ROOTLIBSVCMETHOD)/svc-auditd
36
37LIBBSM = $(SRC)/lib/libbsm/common
38
39CPPFLAGS += -D_REENTRANT
40CPPFLAGS += -I$(LIBBSM)
41
42LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
43LINTFLAGS += -m
44
45TEXT_DOMAIN=SUNW_OST_OSCMD
46
47LDLIBS += -lbsm -lnsl -lsecdb -lsocket
48
49OBJS= auditd.o doorway.o queue.o
50SRCS= $(OBJS:%.o=%.c)
51
52$(ROOTSVCSYSTEM)/auditd.xml := OWNER = root
53$(ROOTSVCSYSTEM)/auditd.xml := GROUP = sys
54$(ROOTSVCSYSTEM)/auditd.xml := FILEMODE = 0444
55
56$(ROOTLIBSVCMETHOD)/svc-auditd := OWNER = root
57$(ROOTLIBSVCMETHOD)/svc-auditd := GROUP = bin
58$(ROOTLIBSVCMETHOD)/svc-auditd := FILEMODE = 0555
59
60.KEEP_STATE:
61
62all:		$(PROG) $(SUBDIRS)
63
64install:	all $(ROOTUSRSBINPROG) $(SUBDIRS) \
65		$(ROOTMANIFEST) $(ROOTMETHOD)
66
67$(PROG):	$(OBJS)
68		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
69		$(POST_PROCESS)
70
71lint:		lint_SRCS
72
73clean:		$(SUBDIRS)
74
75clobber:	$(SUBDIRS) local_clobber
76
77local_clobber:
78		rm -f $(OBJS) $(PROG).po
79
80check:		$(CHKMANIFEST)
81
82$(SUBDIRS):	FRC
83		@cd $@; pwd; $(MAKE) $(TARGET)
84
85FRC:
86
87include ../Makefile.targ
88