xref: /titanic_50/usr/src/uts/sparc/sys/Makefile (revision 54925bf60766fbb4f1f2d7c843721406a7b7a3fb)
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
28include ../../../Makefile.master
29
30HDRS=  \
31	archsystm.h	\
32	asm_linkage.h	\
33	cmpregs.h	\
34	cpu.h		\
35	ddi_isa.h	\
36	fasttrap_isa.h	\
37	frame.h		\
38	fsr.h		\
39	inline.h	\
40	kdi_machimpl.h	\
41	machelf.h	\
42	machlock.h	\
43	machsig.h	\
44	machtypes.h	\
45	old_procfs.h	\
46	pcb.h		\
47	procfs_isa.h	\
48	psw.h		\
49	reg.h		\
50	regset.h	\
51	spl.h		\
52	stack.h		\
53	stat_impl.h	\
54	synch32.h	\
55	trap.h		\
56	ucontext.h      \
57	utrap.h		\
58	vmparam.h	\
59	sysconfig_impl.h
60
61FPUHDRS= \
62	fpu_simulator.h \
63	fpusystm.h \
64	globals.h \
65	ieee.h
66
67FMCPUHDRS= \
68	UltraSPARC-II.h \
69	UltraSPARC-III.h \
70	UltraSPARC-T1.h \
71	SPARC64-VI.h
72
73ROOTDIR=	$(ROOT)/usr/include/sys
74ROOTDIRS= \
75	$(ROOTDIR) \
76	$(ROOTDIR)/fm/cpu \
77	$(ROOTDIR)/fpu
78
79ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
80ROOTFPUHDRS= $(FPUHDRS:%=$(ROOTDIR)/fpu/%)
81ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
82
83fpu/%.check:	fpu/%.h
84	$(DOT_H_CHECK)
85
86fm/cpu/%.check:	fm/cpu/%.h
87	$(DOT_H_CHECK)
88
89CHECKHDRS= \
90	$(HDRS:%.h=%.check) \
91	$(FPUHDRS:%.h=fpu/%.check) \
92	$(FMCPUHDRS:%.h=fm/cpu/%.check)
93
94# install rules
95$(ROOTDIR)/%: %
96	$(INS.file)
97
98$(ROOTDIR)/fpu/%: fpu/%
99	$(INS.file)
100
101$(ROOTDIR)/fm/cpu/%: fm/cpu/%
102	$(INS.file)
103
104.KEEP_STATE:
105
106.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTFPUHDRS) $(ROOTFMCPUHDRS)
107
108install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTFPUHDRS) $(ROOTFMCPUHDRS)
109
110$(ROOTDIRS):
111	$(INS.dir)
112
113check:	$(CHECKHDRS)
114