xref: /titanic_41/usr/src/uts/sun4u/opl/sys/Makefile (revision ba2e4443695ee6a6f420a35cd4fc3d3346d22932)
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=	iomp_drv.h	\
68		opcio.h		\
69		scfdebug.h	\
70		scfdscp.h	\
71		scfdscpif.h	\
72		scfio32.h	\
73		scfkstat.h	\
74		scfostoescf.h	\
75		scfparam.h	\
76		scfreg.h	\
77		scfsnap.h	\
78		scfstate.h	\
79		scfsys.h	\
80		scftimer.h	\
81		scftrace.h
82
83NGDRHDRS=	$(UTSBASE)/sun4u/ngdr/sys/dr.h \
84		$(UTSBASE)/sun4u/ngdr/sys/dr_util.h
85
86ROOTHDRS=	$(HDRS:%=$(USR_OPL_ISYS_DIR)/%)
87
88ROOTDIR=	$(ROOT)/usr/share/src
89ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
90
91ROOTLINK=	$(ROOTDIR)/uts/$(PLATFORM)/sys
92LINKDEST=	../../../../platform/$(PLATFORM)/include/sys
93
94CHECKHDRS=	$(HDRS:%.h=%.check) \
95		$(CHKHDRS:%.h=%.check) \
96		$(OPLMSUHDRS:%.h=oplmsu/%.check) \
97		$(PCICMUHDRS:%.h=pcicmu/%.check) \
98		$(SCFDHDRS:%.h=scfd/%.check) \
99		$(NGDRHDRS:%.h=%.check)
100
101.KEEP_STATE:
102
103.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
104
105install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
106
107check:	$(CHECKHDRS)
108
109#
110# install rules
111#
112$(USR_OPL_ISYS_DIR)/%:	% $(USR_OPL_ISYS_DIR)
113	$(INS.file)
114
115$(ROOTDIRS):
116	$(INS.dir.bin.bin)
117
118# -r because this used to be a directory and is now a link.
119$(ROOTLINK):	$(ROOTDIRS)
120	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
121
122FRC:
123
124include ../Makefile.targ
125