xref: /titanic_41/usr/src/uts/sun4u/opl/sys/Makefile (revision 82629e3015252bf18319ba3815c773df23e21436)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# uts/sun4u/opl/sys/Makefile
26#
27
28
29UTSBASE	= ../../..
30
31#
32# include global definitions
33#
34include ../Makefile.opl
35
36#
37# Override defaults.
38#
39FILEMODE	 = 644
40
41HDRS=		opl_hwdesc.h
42
43CHKHDRS=	dm2s.h		\
44		drmach.h	\
45		fiomp.h		\
46		mc-opl.h	\
47		oplkm.h		\
48		oplkm_msg.h
49
50OPLMSUHDRS=	oplmsu.h	\
51		oplmsu_proto.h
52
53PCICMUHDRS=	pcicmu.h	\
54		pcmu_cb.h	\
55		pcmu_counters.h	\
56		pcmu_ecc.h	\
57		pcmu_err.h	\
58		pcmu_ib.h	\
59		pcmu_pbm.h	\
60		pcmu_types.h	\
61		pcmu_util.h
62
63SCFDHDRS=	opcioif.h	\
64		scfdscpif.h	\
65		scfostoescf.h
66
67NGDRHDRS=	$(UTSBASE)/sun4u/ngdr/sys/dr.h \
68		$(UTSBASE)/sun4u/ngdr/sys/dr_util.h
69
70ROOTHDRS=	$(HDRS:%=$(USR_OPL_ISYS_DIR)/%)
71
72ROOTDIR=	$(ROOT)/usr/share/src
73ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
74
75CHECKHDRS=	$(HDRS:%.h=%.check) \
76		$(CHKHDRS:%.h=%.check) \
77		$(OPLMSUHDRS:%.h=oplmsu/%.check) \
78		$(PCICMUHDRS:%.h=pcicmu/%.check) \
79		$(SCFDHDRS:%.h=scfd/%.check) \
80		$(NGDRHDRS:%.h=%.check)
81
82.KEEP_STATE:
83
84.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
85
86install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
87
88check:	$(CHECKHDRS)
89
90#
91# install rules
92#
93$(USR_OPL_ISYS_DIR)/%:	% $(USR_OPL_ISYS_DIR)
94	$(INS.file)
95
96FRC:
97
98include ../Makefile.targ
99