xref: /titanic_41/usr/src/uts/sun4u/opl/sys/Makefile (revision 986fd29a0dc13f7608ef7f508f6e700bd7bc2720)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27# uts/sun4u/opl/sys/Makefile
28#
29
30
31UTSBASE	= ../../..
32
33#
34# include global definitions
35#
36include ../Makefile.opl
37
38#
39# Override defaults.
40#
41FILEMODE	 = 644
42OWNER = bin
43GROUP = bin
44
45HDRS=		opl_hwdesc.h
46
47CHKHDRS=	dm2s.h		\
48		drmach.h	\
49		fiomp.h		\
50		mc-opl.h	\
51		oplkm.h		\
52		oplkm_msg.h
53
54OPLMSUHDRS=	oplmsu.h	\
55		oplmsu_proto.h
56
57PCICMUHDRS=	pcicmu.h	\
58		pcmu_cb.h	\
59		pcmu_counters.h	\
60		pcmu_ecc.h	\
61		pcmu_err.h	\
62		pcmu_ib.h	\
63		pcmu_pbm.h	\
64		pcmu_types.h	\
65		pcmu_util.h
66
67SCFDHDRS=	opcioif.h	\
68		scfdscpif.h	\
69		scfostoescf.h
70
71NGDRHDRS=	$(UTSBASE)/sun4u/ngdr/sys/dr.h \
72		$(UTSBASE)/sun4u/ngdr/sys/dr_util.h
73
74ROOTHDRS=	$(HDRS:%=$(USR_OPL_ISYS_DIR)/%)
75
76ROOTDIR=	$(ROOT)/usr/share/src
77ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
78
79ROOTLINK=	$(ROOTDIR)/uts/$(PLATFORM)/sys
80LINKDEST=	../../../../platform/$(PLATFORM)/include/sys
81
82CHECKHDRS=	$(HDRS:%.h=%.check) \
83		$(CHKHDRS:%.h=%.check) \
84		$(OPLMSUHDRS:%.h=oplmsu/%.check) \
85		$(PCICMUHDRS:%.h=pcicmu/%.check) \
86		$(SCFDHDRS:%.h=scfd/%.check) \
87		$(NGDRHDRS:%.h=%.check)
88
89.KEEP_STATE:
90
91.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
92
93install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
94
95check:	$(CHECKHDRS)
96
97#
98# install rules
99#
100$(USR_OPL_ISYS_DIR)/%:	% $(USR_OPL_ISYS_DIR)
101	$(INS.file)
102
103$(ROOTDIRS):
104	$(INS.dir.bin.bin)
105
106# -r because this used to be a directory and is now a link.
107$(ROOTLINK):	$(ROOTDIRS)
108	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
109
110FRC:
111
112include ../Makefile.targ
113