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