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