xref: /titanic_50/usr/src/cmd/syseventd/Makefile (revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0)
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#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# cmd/syseventd/Makefile
29#
30
31#
32#  The syseventd source is organized in a two-level hierarchy,
33#  with the top level for daemons and modules.  Daemons (cmds)
34#  need to be built with the usr/src/cmd hierarchy of Makefiles
35#  for the proper set of cc flags etc., whereas loadable modules
36#  need usr/src/lib.  Each bottom-level Makefile includes
37#  the relevant set of common Makefiles (for daemons or modules),
38#  and also inherit the upper level set of common Makefiles
39#  for all syseventd components.
40#
41#
42#			   usr/src/cmd/syseventd
43#			          |
44#			       Makefile
45#			       Makefile.com
46#			       Makefile.targ
47#			           |
48#	 	------------------------------------------
49#	 	|                  |                     |
50#	    daemons		modules			etc
51#	       |		   |                     |
52#	    Makefile		Makefile	      Makefile
53#	    Makefile.com	Makefile.com
54#	    Makefile.targ	Makefile.targ
55#               |                     |
56#         ------------------          ------------------
57#         |		  |	     |		       |
58#    syseventd	syseventconfd	devfsadmd_mod	sysevent_conf_mod
59#
60#     Makefile	   Makefile	   Makefile	    Makefile
61#
62
63MANIFEST=	sysevent.xml
64SVCMETHOD=	svc-syseventd
65
66include ../Makefile.cmd
67
68.PARALLEL:
69
70SUBDIRS=			\
71	etc			\
72	daemons			\
73	modules
74
75ROOTMANIFESTDIR=	$(ROOTSVCSYSTEM)
76
77all:=		TARGET= all
78install:=	TARGET= install
79clean:=		TARGET= clean
80clobber:=	TARGET= clobber
81lint:=		TARGET= lint
82_msg:=		TARGET= _msg
83
84$(ROOTMANIFEST):=	FILEMODE= 444
85
86.KEEP_STATE:
87
88all clean clobber lint _msg: $(SUBDIRS)
89
90install: $(SUBDIRS) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
91
92check:	$(CHKMANIFEST)
93
94FRC:
95
96$(SUBDIRS): FRC
97	@cd $@; pwd; $(MAKE) $(TARGET)
98