xref: /titanic_41/usr/src/uts/sparc/sys/Makefile (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
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 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29include ../../../Makefile.master
30
31HDRS=  \
32	archsystm.h	\
33	asm_linkage.h	\
34	cmpregs.h	\
35	cpu.h		\
36	ddi_isa.h	\
37	fasttrap_isa.h	\
38	frame.h		\
39	fsr.h		\
40	inline.h	\
41	kdi_machimpl.h	\
42	machelf.h	\
43	machlock.h	\
44	machsig.h	\
45	machtypes.h	\
46	old_procfs.h	\
47	pcb.h		\
48	procfs_isa.h	\
49	psw.h		\
50	reg.h		\
51	regset.h	\
52	spl.h		\
53	stack.h		\
54	stat_impl.h	\
55	synch32.h	\
56	trap.h		\
57	ucontext.h      \
58	utrap.h		\
59	vmparam.h	\
60	sysconfig_impl.h
61
62FPUHDRS= \
63	fpu_simulator.h \
64	fpusystm.h \
65	globals.h \
66	ieee.h
67
68FMCPUHDRS= \
69	UltraSPARC-II.h \
70	UltraSPARC-III.h \
71	UltraSPARC-T1.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