xref: /titanic_41/usr/src/uts/sun4v/sys/Makefile (revision fd9cb95cbb2f626355a60efb9d02c5f0a33c10e6)
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	prom_debug.h		\
62	scb.h			\
63	sun4asi.h		\
64	tod.h			\
65	trapstat.h		\
66	vis.h			\
67	vm_machparam.h		\
68	x_call.h		\
69	xc_impl.h		\
70	zsmach.h
71
72HDRS=	\
73	hypervisor_api.h	\
74	machasi.h		\
75	machclock.h		\
76	machcpuvar.h		\
77	mach_descrip.h		\
78	machintreg.h		\
79	machparam.h		\
80	machsystm.h		\
81	machthread.h		\
82	memtestio_ni.h		\
83	memtestio_v.h		\
84	mmu.h			\
85	niagaraasi.h		\
86	niagararegs.h		\
87	pte.h			\
88	prom_plat.h		\
89	qcn.h			\
90	traptrace.h
91
92ROOTHDRS=		$(HDRS:%=$(USR_PSM_ISYS_DIR)/%)
93SUN4_ROOTHDRS=		$(SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%)
94
95ROOTDIR=		$(ROOT)/usr/share/src
96ROOTDIRS=		$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
97
98ROOTLINK=		$(ROOTDIR)/uts/$(PLATFORM)/sys
99LINKDEST=		../../../../platform/$(PLATFORM)/include/sys
100
101CHECKHDRS=		$(HDRS:%.h=%.check) \
102			$(SUN4_HDRS:%.h=%.cmncheck)
103
104.KEEP_STATE:
105
106.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(SUN4_ROOTHDRS)
107
108install_h: $(ROOTDIRS) .WAIT \
109		$(ROOTHDRS) .WAIT \
110		$(SUN4_ROOTHDRS) .WAIT $(ROOTLINK)
111
112check:	$(CHECKHDRS)
113
114#
115# install rules
116#
117$(USR_PSM_ISYS_DIR)/%:	../../sfmmu/sys/% $(USR_PSM_ISYS_DIR)
118	$(INS.file)
119
120$(USR_PSM_ISYS_DIR)/%:	../../sun4/sys/% $(USR_PSM_ISYS_DIR)
121	$(INS.file)
122
123$(ROOTDIRS):
124	$(INS.dir.root.bin)
125
126# -r because this used to be a directory and is now a link.
127$(ROOTLINK):	$(ROOTDIRS)
128	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
129
130mon/%.check:	mon/%.h
131	$(DOT_H_CHECK)
132
133%.check:	../../sfmmu/sys/%.h
134	$(DOT_H_CHECK)
135%.cmncheck:	../../sun4/sys/%.h
136	$(DOT_H_CHECK)
137
138FRC:
139
140include ../../Makefile.targ
141