xref: /titanic_51/usr/src/cmd/syseventd/Makefile.com (revision de3d2ce46fc25c7b67ccbae4afe5f15e5357568f)
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 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29#
30# Compile flags & libraries for all sysevent daemons and modules
31#
32# NOTE: any library added to the next line must be present in the CD miniroot
33#	together with all of their dependencies.
34#
35LDLIBS += -lsysevent
36
37CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
38CPPFLAGS += -D_REENTRANT
39CFLAGS += $(CCVERBOSE)
40LINTFLAGS += -m
41
42#
43# install specifics - directories
44#
45
46ROOTETC=$(ROOT)/etc
47ROOTLIB=$(ROOT)/usr/lib
48
49ROOTLIBSYSEVENTDIR = $(ROOTLIB)/sysevent
50ROOTLIBSYSEVENTSYSEVENTD = $(ROOTLIBSYSEVENTDIR)/syseventd
51ROOTLIBSYSEVENTSYSEVENTCONFD = $(ROOTLIBSYSEVENTDIR)/syseventconfd
52ROOTLIBSYSEVENTMODULEDIR= $(ROOTLIBSYSEVENTDIR)/modules
53ROOTETCSYSEVENTDIR = $(ROOTETC)/sysevent
54ROOTETCSYSEVENTCONFIGDIR= $(ROOTETCSYSEVENTDIR)/config
55
56#
57# To play well with what we inherit from Makefile.lib
58#
59LIBLINKS =
60DYNLIB = 	$(LIBRARY:%=%.so)
61LIBS =		$(DYNLIB)
62ROOTLIBDIR =	$(ROOTLIBSYSEVENTMODULEDIR)
63
64#
65# install macro for syseventd & syseventconfd
66#
67ROOTLIBSYSEVENTSYSEVENTD = $(PROG:%=$(ROOTLIBSYSEVENTDIR)/%)
68
69#
70# install macro for /etc/sysevent/config files
71#
72ROOTETCSYSEVENTCONFIGFILES= $(CONFIG_FILES:%=$(ROOTETCSYSEVENTCONFIGDIR)/%)
73
74#
75# explicit ownership and permissions
76#
77
78$(ROOTLIBSYSEVENTDIR) :=		OWNER= root
79$(ROOTLIBSYSEVENTDIR) :=		GROUP= bin
80
81$(ROOTLIBSYSEVENTSYSEVENTD) :=		OWNER= root
82$(ROOTLIBSYSEVENTSYSEVENTD) :=		GROUP= bin
83
84$(ROOTLIBSYSEVENTSYSEVENTCONFD) :=	OWNER= root
85$(ROOTLIBSYSEVENTSYSEVENTCONFD) :=	GROUP= bin
86
87$(ROOTLIBSYSEVENTMODULEDIR) :=		OWNER= root
88$(ROOTLIBSYSEVENTMODULEDIR) :=		GROUP= bin
89
90$(ROOTETCSYSEVENTDIR) :=		OWNER= root
91$(ROOTETCSYSEVENTDIR) :=		GROUP= sys
92
93$(ROOTETCSYSEVENTCONFIGDIR) :=		OWNER= root
94$(ROOTETCSYSEVENTCONFIGDIR) :=		GROUP= sys
95
96$(ROOTETCSYSEVENTCONFIGFILES) :=	OWNER= root
97$(ROOTETCSYSEVENTCONFIGFILES) :=	GROUP= sys
98$(ROOTETCSYSEVENTCONFIGFILES) :=	FILEMODE= 0444
99