xref: /titanic_52/usr/src/uts/sparc/sys/Makefile (revision bdfc6d18da790deeec2e0eb09c625902defe2498)
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 2004 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=   fpu_simulator.h	fpusystm.h	globals.h	ieee.h
63
64ROOTDIR=	$(ROOT)/usr/include/sys
65ROOTDIRS=	$(ROOTDIR) $(ROOTDIR)/fpu
66
67ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
68ROOTFPUHDRS= $(FPUHDRS:%=$(ROOTDIR)/fpu/%)
69
70fpu/%.check:	fpu/%.h
71	$(DOT_H_CHECK)
72
73CHECKHDRS= $(HDRS:%.h=%.check) \
74	$(FPUHDRS:%.h=fpu/%.check)
75
76# install rules
77$(ROOTDIR)/%: %
78	$(INS.file)
79
80$(ROOTDIR)/fpu/%: fpu/%
81	$(INS.file)
82
83.KEEP_STATE:
84
85.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTFPUHDRS)
86
87install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTFPUHDRS)
88
89$(ROOTDIRS):
90	$(INS.dir)
91
92check:	$(CHECKHDRS)
93