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 57c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate# with the License. 87c478bd9Sstevel@tonic-gate# 97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate# and limitations under the License. 137c478bd9Sstevel@tonic-gate# 147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate# 207c478bd9Sstevel@tonic-gate# CDDL HEADER END 217c478bd9Sstevel@tonic-gate# 227c478bd9Sstevel@tonic-gate# 23*7aec1d6eScindi# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateinclude ../../../Makefile.master 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gateHDRS= \ 327c478bd9Sstevel@tonic-gate archsystm.h \ 337c478bd9Sstevel@tonic-gate asm_linkage.h \ 347c478bd9Sstevel@tonic-gate cmpregs.h \ 357c478bd9Sstevel@tonic-gate cpu.h \ 367c478bd9Sstevel@tonic-gate ddi_isa.h \ 377c478bd9Sstevel@tonic-gate fasttrap_isa.h \ 387c478bd9Sstevel@tonic-gate frame.h \ 397c478bd9Sstevel@tonic-gate fsr.h \ 407c478bd9Sstevel@tonic-gate inline.h \ 417c478bd9Sstevel@tonic-gate kdi_machimpl.h \ 427c478bd9Sstevel@tonic-gate machelf.h \ 437c478bd9Sstevel@tonic-gate machlock.h \ 447c478bd9Sstevel@tonic-gate machsig.h \ 457c478bd9Sstevel@tonic-gate machtypes.h \ 467c478bd9Sstevel@tonic-gate old_procfs.h \ 477c478bd9Sstevel@tonic-gate pcb.h \ 487c478bd9Sstevel@tonic-gate procfs_isa.h \ 497c478bd9Sstevel@tonic-gate psw.h \ 507c478bd9Sstevel@tonic-gate reg.h \ 517c478bd9Sstevel@tonic-gate regset.h \ 527c478bd9Sstevel@tonic-gate spl.h \ 537c478bd9Sstevel@tonic-gate stack.h \ 547c478bd9Sstevel@tonic-gate stat_impl.h \ 557c478bd9Sstevel@tonic-gate synch32.h \ 567c478bd9Sstevel@tonic-gate trap.h \ 577c478bd9Sstevel@tonic-gate ucontext.h \ 587c478bd9Sstevel@tonic-gate utrap.h \ 597c478bd9Sstevel@tonic-gate vmparam.h \ 607c478bd9Sstevel@tonic-gate sysconfig_impl.h 617c478bd9Sstevel@tonic-gate 62*7aec1d6eScindiFPUHDRS= \ 63*7aec1d6eScindi fpu_simulator.h \ 64*7aec1d6eScindi fpusystm.h \ 65*7aec1d6eScindi globals.h \ 66*7aec1d6eScindi ieee.h 67*7aec1d6eScindi 68*7aec1d6eScindiFMCPUHDRS= \ 69*7aec1d6eScindi UltraSPARC-II.h \ 70*7aec1d6eScindi UltraSPARC-III.h \ 71*7aec1d6eScindi UltraSPARC-T1.h 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateROOTDIR= $(ROOT)/usr/include/sys 74*7aec1d6eScindiROOTDIRS= \ 75*7aec1d6eScindi $(ROOTDIR) \ 76*7aec1d6eScindi $(ROOTDIR)/fm/cpu \ 77*7aec1d6eScindi $(ROOTDIR)/fpu 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gateROOTHDRS= $(HDRS:%=$(ROOTDIR)/%) 807c478bd9Sstevel@tonic-gateROOTFPUHDRS= $(FPUHDRS:%=$(ROOTDIR)/fpu/%) 81*7aec1d6eScindiROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%) 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gatefpu/%.check: fpu/%.h 847c478bd9Sstevel@tonic-gate $(DOT_H_CHECK) 857c478bd9Sstevel@tonic-gate 86*7aec1d6eScindifm/cpu/%.check: fm/cpu/%.h 87*7aec1d6eScindi $(DOT_H_CHECK) 88*7aec1d6eScindi 89*7aec1d6eScindiCHECKHDRS= \ 90*7aec1d6eScindi $(HDRS:%.h=%.check) \ 91*7aec1d6eScindi $(FPUHDRS:%.h=fpu/%.check) \ 92*7aec1d6eScindi $(FMCPUHDRS:%.h=fm/cpu/%.check) 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gate# install rules 957c478bd9Sstevel@tonic-gate$(ROOTDIR)/%: % 967c478bd9Sstevel@tonic-gate $(INS.file) 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gate$(ROOTDIR)/fpu/%: fpu/% 997c478bd9Sstevel@tonic-gate $(INS.file) 1007c478bd9Sstevel@tonic-gate 101*7aec1d6eScindi$(ROOTDIR)/fm/cpu/%: fm/cpu/% 102*7aec1d6eScindi $(INS.file) 103*7aec1d6eScindi 1047c478bd9Sstevel@tonic-gate.KEEP_STATE: 1057c478bd9Sstevel@tonic-gate 106*7aec1d6eScindi.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTFPUHDRS) $(ROOTFMCPUHDRS) 1077c478bd9Sstevel@tonic-gate 108*7aec1d6eScindiinstall_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTFPUHDRS) $(ROOTFMCPUHDRS) 1097c478bd9Sstevel@tonic-gate 1107c478bd9Sstevel@tonic-gate$(ROOTDIRS): 1117c478bd9Sstevel@tonic-gate $(INS.dir) 1127c478bd9Sstevel@tonic-gate 1137c478bd9Sstevel@tonic-gatecheck: $(CHECKHDRS) 114