1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate# 28*7c478bd9Sstevel@tonic-gate 29*7c478bd9Sstevel@tonic-gateinclude ../../../Makefile.master 30*7c478bd9Sstevel@tonic-gate 31*7c478bd9Sstevel@tonic-gate# NOTE: hrtcntl.h and hrtsys.h are present in this directory so that the 32*7c478bd9Sstevel@tonic-gate# hrtsys system call can be built to facilitate transportability of 33*7c478bd9Sstevel@tonic-gate# stock SVr4 programs. Every effort is to be made to prevent objects 34*7c478bd9Sstevel@tonic-gate# from being built, so these headers are not exported (installed). 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gateHDRS = \ 37*7c478bd9Sstevel@tonic-gate archsystm.h \ 38*7c478bd9Sstevel@tonic-gate asm_linkage.h \ 39*7c478bd9Sstevel@tonic-gate bootconf.h \ 40*7c478bd9Sstevel@tonic-gate bootregs.h \ 41*7c478bd9Sstevel@tonic-gate bootsvcs.h \ 42*7c478bd9Sstevel@tonic-gate controlregs.h \ 43*7c478bd9Sstevel@tonic-gate cpu.h \ 44*7c478bd9Sstevel@tonic-gate ddi_isa.h \ 45*7c478bd9Sstevel@tonic-gate debugreg.h \ 46*7c478bd9Sstevel@tonic-gate dnet.h \ 47*7c478bd9Sstevel@tonic-gate fasttrap_isa.h \ 48*7c478bd9Sstevel@tonic-gate fp.h \ 49*7c478bd9Sstevel@tonic-gate frame.h \ 50*7c478bd9Sstevel@tonic-gate immu.h \ 51*7c478bd9Sstevel@tonic-gate inline.h \ 52*7c478bd9Sstevel@tonic-gate kd.h \ 53*7c478bd9Sstevel@tonic-gate kdi_machimpl.h \ 54*7c478bd9Sstevel@tonic-gate machelf.h \ 55*7c478bd9Sstevel@tonic-gate machlock.h \ 56*7c478bd9Sstevel@tonic-gate machsig.h \ 57*7c478bd9Sstevel@tonic-gate machtypes.h \ 58*7c478bd9Sstevel@tonic-gate mii.h \ 59*7c478bd9Sstevel@tonic-gate miipriv.h \ 60*7c478bd9Sstevel@tonic-gate mmu.h \ 61*7c478bd9Sstevel@tonic-gate mouse.h \ 62*7c478bd9Sstevel@tonic-gate mutex_impl.h \ 63*7c478bd9Sstevel@tonic-gate obpdefs.h \ 64*7c478bd9Sstevel@tonic-gate old_procfs.h \ 65*7c478bd9Sstevel@tonic-gate pcb.h \ 66*7c478bd9Sstevel@tonic-gate privregs.h \ 67*7c478bd9Sstevel@tonic-gate procfs_isa.h \ 68*7c478bd9Sstevel@tonic-gate prom_emul.h \ 69*7c478bd9Sstevel@tonic-gate prom_isa.h \ 70*7c478bd9Sstevel@tonic-gate prom_plat.h \ 71*7c478bd9Sstevel@tonic-gate promif.h \ 72*7c478bd9Sstevel@tonic-gate promimpl.h \ 73*7c478bd9Sstevel@tonic-gate psw.h \ 74*7c478bd9Sstevel@tonic-gate pte.h \ 75*7c478bd9Sstevel@tonic-gate reg.h \ 76*7c478bd9Sstevel@tonic-gate regset.h \ 77*7c478bd9Sstevel@tonic-gate sbpro.h \ 78*7c478bd9Sstevel@tonic-gate segment.h \ 79*7c478bd9Sstevel@tonic-gate segments.h \ 80*7c478bd9Sstevel@tonic-gate spl.h \ 81*7c478bd9Sstevel@tonic-gate stack.h \ 82*7c478bd9Sstevel@tonic-gate stat_impl.h \ 83*7c478bd9Sstevel@tonic-gate synch32.h \ 84*7c478bd9Sstevel@tonic-gate sysconfig_impl.h \ 85*7c478bd9Sstevel@tonic-gate sysi86.h \ 86*7c478bd9Sstevel@tonic-gate trap.h \ 87*7c478bd9Sstevel@tonic-gate traptrace.h \ 88*7c478bd9Sstevel@tonic-gate tss.h \ 89*7c478bd9Sstevel@tonic-gate ucontext.h \ 90*7c478bd9Sstevel@tonic-gate utrap.h \ 91*7c478bd9Sstevel@tonic-gate vmparam.h \ 92*7c478bd9Sstevel@tonic-gate x86_archext.h 93*7c478bd9Sstevel@tonic-gate 94*7c478bd9Sstevel@tonic-gateSUBHDRS = \ 95*7c478bd9Sstevel@tonic-gate dktp/cdtypes.h \ 96*7c478bd9Sstevel@tonic-gate dktp/mscsi.h \ 97*7c478bd9Sstevel@tonic-gate dktp/scdk.h \ 98*7c478bd9Sstevel@tonic-gate dktp/scdkwatch.h \ 99*7c478bd9Sstevel@tonic-gate dktp/sctarget.h \ 100*7c478bd9Sstevel@tonic-gate dktp/tgcd.h \ 101*7c478bd9Sstevel@tonic-gate dktp/tgpassthru.h 102*7c478bd9Sstevel@tonic-gate 103*7c478bd9Sstevel@tonic-gateFSHDRS = \ 104*7c478bd9Sstevel@tonic-gate seg_xmem.h \ 105*7c478bd9Sstevel@tonic-gate xmem.h 106*7c478bd9Sstevel@tonic-gate 107*7c478bd9Sstevel@tonic-gateROOTDIR= $(ROOT)/usr/include/sys 108*7c478bd9Sstevel@tonic-gateSCSIDIR= $(ROOTDIR)/scsi 109*7c478bd9Sstevel@tonic-gateSCSIDIRS= $(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \ 110*7c478bd9Sstevel@tonic-gate $(SCSIDIR)/impl $(SCSIDIR)/targets 111*7c478bd9Sstevel@tonic-gateDKTPDIR= $(ROOTDIR)/dktp 112*7c478bd9Sstevel@tonic-gateDKTPDIRS= $(DKTPDIR) 113*7c478bd9Sstevel@tonic-gateROOTFSDIR= $(ROOTDIR)/fs 114*7c478bd9Sstevel@tonic-gateROOTDIRS= $(ROOTDIR) $(ROOTFSDIR) 115*7c478bd9Sstevel@tonic-gate 116*7c478bd9Sstevel@tonic-gateROOTHDRS= $(HDRS:%=$(ROOTDIR)/%) $(SUBHDRS:%=$(ROOTDIR)/%) 117*7c478bd9Sstevel@tonic-gateROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%) 118*7c478bd9Sstevel@tonic-gate 119*7c478bd9Sstevel@tonic-gateCHECKHDRS= \ 120*7c478bd9Sstevel@tonic-gate $(HDRS:%.h=%.check) \ 121*7c478bd9Sstevel@tonic-gate $(SUBHDRS:%.h=%.check) \ 122*7c478bd9Sstevel@tonic-gate $(FSHDRS:%.h=fs/%.check) 123*7c478bd9Sstevel@tonic-gate 124*7c478bd9Sstevel@tonic-gate# install rules 125*7c478bd9Sstevel@tonic-gate$(ROOTDIR)/%: % 126*7c478bd9Sstevel@tonic-gate $(INS.file) 127*7c478bd9Sstevel@tonic-gate 128*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 129*7c478bd9Sstevel@tonic-gate 130*7c478bd9Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTFSHDRS) 131*7c478bd9Sstevel@tonic-gate 132*7c478bd9Sstevel@tonic-gateinstall_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTFSHDRS) 133*7c478bd9Sstevel@tonic-gate 134*7c478bd9Sstevel@tonic-gate$(ROOTDIRS): 135*7c478bd9Sstevel@tonic-gate $(INS.dir) 136*7c478bd9Sstevel@tonic-gate 137*7c478bd9Sstevel@tonic-gatecheck: $(CHECKHDRS) 138