xref: /titanic_41/usr/src/uts/sparc/sys/Makefile (revision ba2be53024c0b999e74ba9adcd7d80fec5df8c57)
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#
22*ba2be530Sab196087# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateinclude ../../../Makefile.master
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gateHDRS=  \
317c478bd9Sstevel@tonic-gate	archsystm.h	\
327c478bd9Sstevel@tonic-gate	asm_linkage.h	\
337c478bd9Sstevel@tonic-gate	cmpregs.h	\
347c478bd9Sstevel@tonic-gate	cpu.h		\
357c478bd9Sstevel@tonic-gate	ddi_isa.h	\
367c478bd9Sstevel@tonic-gate	fasttrap_isa.h	\
377c478bd9Sstevel@tonic-gate	frame.h		\
387c478bd9Sstevel@tonic-gate	fsr.h		\
397c478bd9Sstevel@tonic-gate	inline.h	\
407c478bd9Sstevel@tonic-gate	kdi_machimpl.h	\
417c478bd9Sstevel@tonic-gate	machlock.h	\
427c478bd9Sstevel@tonic-gate	machsig.h	\
437c478bd9Sstevel@tonic-gate	machtypes.h	\
447c478bd9Sstevel@tonic-gate	old_procfs.h	\
457c478bd9Sstevel@tonic-gate	pcb.h		\
467c478bd9Sstevel@tonic-gate	procfs_isa.h	\
477c478bd9Sstevel@tonic-gate	psw.h		\
487c478bd9Sstevel@tonic-gate	reg.h		\
497c478bd9Sstevel@tonic-gate	regset.h	\
507c478bd9Sstevel@tonic-gate	spl.h		\
517c478bd9Sstevel@tonic-gate	stack.h		\
527c478bd9Sstevel@tonic-gate	stat_impl.h	\
537c478bd9Sstevel@tonic-gate	synch32.h	\
547c478bd9Sstevel@tonic-gate	trap.h		\
557c478bd9Sstevel@tonic-gate	ucontext.h      \
567c478bd9Sstevel@tonic-gate	utrap.h		\
577c478bd9Sstevel@tonic-gate	vmparam.h	\
587c478bd9Sstevel@tonic-gate	sysconfig_impl.h
597c478bd9Sstevel@tonic-gate
607aec1d6eScindiFPUHDRS= \
617aec1d6eScindi	fpu_simulator.h \
627aec1d6eScindi	fpusystm.h \
637aec1d6eScindi	globals.h \
647aec1d6eScindi	ieee.h
657aec1d6eScindi
667aec1d6eScindiFMCPUHDRS= \
677aec1d6eScindi	UltraSPARC-II.h \
687aec1d6eScindi	UltraSPARC-III.h \
6925cf1a30Sjl139090	UltraSPARC-T1.h \
7025cf1a30Sjl139090	SPARC64-VI.h
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateROOTDIR=	$(ROOT)/usr/include/sys
737aec1d6eScindiROOTDIRS= \
747aec1d6eScindi	$(ROOTDIR) \
757aec1d6eScindi	$(ROOTDIR)/fm/cpu \
767aec1d6eScindi	$(ROOTDIR)/fpu
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gateROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
797c478bd9Sstevel@tonic-gateROOTFPUHDRS= $(FPUHDRS:%=$(ROOTDIR)/fpu/%)
807aec1d6eScindiROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gatefpu/%.check:	fpu/%.h
837c478bd9Sstevel@tonic-gate	$(DOT_H_CHECK)
847c478bd9Sstevel@tonic-gate
857aec1d6eScindifm/cpu/%.check:	fm/cpu/%.h
867aec1d6eScindi	$(DOT_H_CHECK)
877aec1d6eScindi
887aec1d6eScindiCHECKHDRS= \
897aec1d6eScindi	$(HDRS:%.h=%.check) \
907aec1d6eScindi	$(FPUHDRS:%.h=fpu/%.check) \
917aec1d6eScindi	$(FMCPUHDRS:%.h=fm/cpu/%.check)
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gate# install rules
947c478bd9Sstevel@tonic-gate$(ROOTDIR)/%: %
957c478bd9Sstevel@tonic-gate	$(INS.file)
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gate$(ROOTDIR)/fpu/%: fpu/%
987c478bd9Sstevel@tonic-gate	$(INS.file)
997c478bd9Sstevel@tonic-gate
1007aec1d6eScindi$(ROOTDIR)/fm/cpu/%: fm/cpu/%
1017aec1d6eScindi	$(INS.file)
1027aec1d6eScindi
1037c478bd9Sstevel@tonic-gate.KEEP_STATE:
1047c478bd9Sstevel@tonic-gate
1057aec1d6eScindi.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTFPUHDRS) $(ROOTFMCPUHDRS)
1067c478bd9Sstevel@tonic-gate
1077aec1d6eScindiinstall_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTFPUHDRS) $(ROOTFMCPUHDRS)
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gate$(ROOTDIRS):
1107c478bd9Sstevel@tonic-gate	$(INS.dir)
1117c478bd9Sstevel@tonic-gate
1127c478bd9Sstevel@tonic-gatecheck:	$(CHECKHDRS)
113