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