xref: /titanic_41/usr/src/uts/sun4v/sys/Makefile (revision 779fc935796a940997d18b31d64a9fec9c6b40f6)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28# uts/sun4v/sys/Makefile
29#
30# include global definitions
31UTSBASE	= ../..
32
33#
34# include global definitions
35#
36include ../Makefile.sun4v
37
38#
39# Override defaults.
40#
41FILEMODE	 = 644
42GROUP = bin
43
44SUN4_HDRS=			\
45	clock.h			\
46	cmp.h			\
47	cpc_ultra.h		\
48	cpu_sgnblk_defs.h 	\
49	ddi_subrdefs.h		\
50	dvma.h			\
51	eeprom.h		\
52	fcode.h			\
53	idprom.h		\
54	intr.h			\
55	intreg.h		\
56	ivintr.h		\
57	memlist_plat.h	 	\
58	memnode.h		\
59	memtestio.h		\
60	nexusdebug.h		\
61	nexusintr_impl.h	\
62	prom_debug.h		\
63	scb.h			\
64	sun4asi.h		\
65	tod.h			\
66	trapstat.h		\
67	vis.h			\
68	vm_machparam.h		\
69	x_call.h		\
70	xc_impl.h		\
71	zsmach.h
72
73HDRS=	\
74	hypervisor_api.h	\
75	machasi.h		\
76	machclock.h		\
77	machcpuvar.h		\
78	mach_descrip.h		\
79	machintreg.h		\
80	machparam.h		\
81	machsystm.h		\
82	machthread.h		\
83	memtestio_ni.h		\
84	memtestio_v.h		\
85	mmu.h			\
86	niagaraasi.h		\
87	niagararegs.h		\
88	pte.h			\
89	prom_plat.h		\
90	qcn.h			\
91	traptrace.h
92
93ROOTHDRS=		$(HDRS:%=$(USR_PSM_ISYS_DIR)/%)
94SUN4_ROOTHDRS=		$(SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%)
95
96ROOTDIR=		$(ROOT)/usr/share/src
97ROOTDIRS=		$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
98
99ROOTLINK=		$(ROOTDIR)/uts/$(PLATFORM)/sys
100LINKDEST=		../../../../platform/$(PLATFORM)/include/sys
101
102CHECKHDRS=		$(HDRS:%.h=%.check) \
103			$(SUN4_HDRS:%.h=%.cmncheck)
104
105.KEEP_STATE:
106
107.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(SUN4_ROOTHDRS)
108
109install_h: $(ROOTDIRS) .WAIT \
110		$(ROOTHDRS) .WAIT \
111		$(SUN4_ROOTHDRS) .WAIT $(ROOTLINK)
112
113check:	$(CHECKHDRS)
114
115#
116# install rules
117#
118$(USR_PSM_ISYS_DIR)/%:	../../sfmmu/sys/% $(USR_PSM_ISYS_DIR)
119	$(INS.file)
120
121$(USR_PSM_ISYS_DIR)/%:	../../sun4/sys/% $(USR_PSM_ISYS_DIR)
122	$(INS.file)
123
124$(ROOTDIRS):
125	$(INS.dir.root.bin)
126
127# -r because this used to be a directory and is now a link.
128$(ROOTLINK):	$(ROOTDIRS)
129	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
130
131mon/%.check:	mon/%.h
132	$(DOT_H_CHECK)
133
134%.check:	../../sfmmu/sys/%.h
135	$(DOT_H_CHECK)
136%.cmncheck:	../../sun4/sys/%.h
137	$(DOT_H_CHECK)
138
139FRC:
140
141include ../../Makefile.targ
142