xref: /illumos-gate/usr/src/cmd/rcm_daemon/Makefile (revision 1e1331ff02be014b4a75626f3a9ab9237f405b35)
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# Copyright (c) 1999-2001 by Sun Microsystems, Inc.
23# All rights reserved.
24#
25# cmd/rcm_daemon/Makefile
26#
27
28include ../Makefile.cmd
29
30#
31# One for each ISA.
32#
33SUBDIRS=	$(MACH)
34
35all	:=	TARGET= all
36install	:=	TARGET= install
37clean	:=	TARGET= clean
38clobber	:=	TARGET= clobber
39_msg	:=	TARGET= _msg
40install_h :=	TARGET= install_h
41
42#definitions for install_h target
43HDRS=		rcm_module.h
44ROOTHDRDIR=	$(ROOT)/usr/include
45ROOTHDRS=	$(HDRS:%=$(ROOTHDRDIR)/%)
46CHECKHDRS=	$(HDRS:%.h=common/%.check)
47$(ROOTHDRS) := FILEMODE = 644
48
49.KEEP_STATE:
50
51install:	install_h $(SUBDIRS)
52
53all _msg:	install_h $(SUBDIRS)
54clean clobber:	$(SUBDIRS)
55
56$(SUBDIRS):	FRC
57	@cd $@; pwd; $(MAKE) $(TARGET)
58
59install_h:	$(ROOTHDRS)
60
61check:		$(CHECKHDRS)
62
63$(ROOTHDRDIR)/%: common/%
64	$(INS.file)
65
66$(ROOTHDRDIR):
67	$(INS.dir)
68
69common/%.check:	common/%.h
70	$(DOT_H_CHECK)
71
72FRC:
73
74#include ../Makefile.targ
75