xref: /titanic_52/usr/src/uts/sparc/sys/Makefile (revision bc0e91320069f0bcaee43e80a7ea686d9efa2d08)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
525cf1a30Sjl139090# Common Development and Distribution License (the "License").
625cf1a30Sjl139090# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22ba2be530Sab196087# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gateinclude ../../../Makefile.master
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateHDRS=  \
297c478bd9Sstevel@tonic-gate	archsystm.h	\
307c478bd9Sstevel@tonic-gate	asm_linkage.h	\
317c478bd9Sstevel@tonic-gate	cmpregs.h	\
327c478bd9Sstevel@tonic-gate	cpu.h		\
337c478bd9Sstevel@tonic-gate	ddi_isa.h	\
347c478bd9Sstevel@tonic-gate	fasttrap_isa.h	\
357c478bd9Sstevel@tonic-gate	frame.h		\
367c478bd9Sstevel@tonic-gate	fsr.h		\
377c478bd9Sstevel@tonic-gate	inline.h	\
387c478bd9Sstevel@tonic-gate	kdi_machimpl.h	\
397c478bd9Sstevel@tonic-gate	machlock.h	\
407c478bd9Sstevel@tonic-gate	machsig.h	\
417c478bd9Sstevel@tonic-gate	machtypes.h	\
42*bc0e9132SGordon Ross	mcontext.h	\
437c478bd9Sstevel@tonic-gate	old_procfs.h	\
447c478bd9Sstevel@tonic-gate	pcb.h		\
457c478bd9Sstevel@tonic-gate	procfs_isa.h	\
467c478bd9Sstevel@tonic-gate	psw.h		\
477c478bd9Sstevel@tonic-gate	reg.h		\
487c478bd9Sstevel@tonic-gate	regset.h	\
497c478bd9Sstevel@tonic-gate	spl.h		\
507c478bd9Sstevel@tonic-gate	stack.h		\
517c478bd9Sstevel@tonic-gate	stat_impl.h	\
527c478bd9Sstevel@tonic-gate	synch32.h	\
537c478bd9Sstevel@tonic-gate	trap.h		\
547c478bd9Sstevel@tonic-gate	ucontext.h      \
557c478bd9Sstevel@tonic-gate	utrap.h		\
567c478bd9Sstevel@tonic-gate	vmparam.h	\
577c478bd9Sstevel@tonic-gate	sysconfig_impl.h
587c478bd9Sstevel@tonic-gate
597aec1d6eScindiFPUHDRS= \
607aec1d6eScindi	fpu_simulator.h \
617aec1d6eScindi	fpusystm.h \
627aec1d6eScindi	globals.h \
637aec1d6eScindi	ieee.h
647aec1d6eScindi
657aec1d6eScindiFMCPUHDRS= \
667aec1d6eScindi	UltraSPARC-II.h \
677aec1d6eScindi	UltraSPARC-III.h \
6825cf1a30Sjl139090	UltraSPARC-T1.h \
6925cf1a30Sjl139090	SPARC64-VI.h
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gateROOTDIR=	$(ROOT)/usr/include/sys
727aec1d6eScindiROOTDIRS= \
737aec1d6eScindi	$(ROOTDIR) \
747aec1d6eScindi	$(ROOTDIR)/fm/cpu \
757aec1d6eScindi	$(ROOTDIR)/fpu
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gateROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
787c478bd9Sstevel@tonic-gateROOTFPUHDRS= $(FPUHDRS:%=$(ROOTDIR)/fpu/%)
797aec1d6eScindiROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gatefpu/%.check:	fpu/%.h
827c478bd9Sstevel@tonic-gate	$(DOT_H_CHECK)
837c478bd9Sstevel@tonic-gate
847aec1d6eScindifm/cpu/%.check:	fm/cpu/%.h
857aec1d6eScindi	$(DOT_H_CHECK)
867aec1d6eScindi
877aec1d6eScindiCHECKHDRS= \
887aec1d6eScindi	$(HDRS:%.h=%.check) \
897aec1d6eScindi	$(FPUHDRS:%.h=fpu/%.check) \
907aec1d6eScindi	$(FMCPUHDRS:%.h=fm/cpu/%.check)
917c478bd9Sstevel@tonic-gate
927c478bd9Sstevel@tonic-gate# install rules
937c478bd9Sstevel@tonic-gate$(ROOTDIR)/%: %
947c478bd9Sstevel@tonic-gate	$(INS.file)
957c478bd9Sstevel@tonic-gate
967c478bd9Sstevel@tonic-gate$(ROOTDIR)/fpu/%: fpu/%
977c478bd9Sstevel@tonic-gate	$(INS.file)
987c478bd9Sstevel@tonic-gate
997aec1d6eScindi$(ROOTDIR)/fm/cpu/%: fm/cpu/%
1007aec1d6eScindi	$(INS.file)
1017aec1d6eScindi
1027c478bd9Sstevel@tonic-gate.KEEP_STATE:
1037c478bd9Sstevel@tonic-gate
1047aec1d6eScindi.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTFPUHDRS) $(ROOTFMCPUHDRS)
1057c478bd9Sstevel@tonic-gate
1067aec1d6eScindiinstall_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTFPUHDRS) $(ROOTFMCPUHDRS)
1077c478bd9Sstevel@tonic-gate
1087c478bd9Sstevel@tonic-gate$(ROOTDIRS):
1097c478bd9Sstevel@tonic-gate	$(INS.dir)
1107c478bd9Sstevel@tonic-gate
1117c478bd9Sstevel@tonic-gatecheck:	$(CHECKHDRS)
112