xref: /titanic_50/usr/src/uts/sun4u/starcat/sys/Makefile (revision ff17c8bf86c3e567734be83f90267edee20f580f)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#ident	"%Z%%M%	%I%	%E% SMI"
26#
27UTSBASE	= ../../..
28
29#
30# include global definitions
31#
32include ../Makefile.starcat
33
34#
35# Override defaults.
36#
37FILEMODE	 = 644
38OWNER = bin
39GROUP = bin
40
41HDRS=
42
43
44CHKHDRS=	axq.h dman.h domaind.h drmach.h \
45		iosramio.h iosramreg.h iosramvar.h \
46		sc_cvc.h sc_cvcio.h \
47		sckm_msg.h sckm_io.h
48
49STARHDRS=	$(UTSBASE)/sun4u/ngdr/sys/dr.h \
50		$(UTSBASE)/sun4u/ngdr/sys/dr_util.h
51
52ROOTHDRS=	$(HDRS:%=$(USR_STARCAT_ISYS_DIR)/%)
53
54ROOTDIR=	$(ROOT)/usr/share/src
55ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
56
57CHECKHDRS=	$(HDRS:%.h=%.check) \
58		$(CHKHDRS:%.h=%.check) \
59		$(STARHDRS:%.h=%.check)
60
61.KEEP_STATE:
62
63.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
64
65install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
66
67check:	$(CHECKHDRS)
68
69#
70# install rules
71#
72$(USR_STARCAT_ISYS_DIR)/%:	% $(USR_STARCAT_ISYS_DIR)
73	$(INS.file)
74
75$(ROOTDIRS):
76	$(INS.dir.bin.bin)
77
78FRC:
79
80include ../Makefile.targ
81