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 57c70629eStaylor# Common Development and Distribution License (the "License"). 67c70629eStaylor# 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# 22bdb9230aSGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 25d32f26eeSAndy Fiddaman# Copyright 2023 Oxide Computer Company 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateinclude ../../../Makefile.master 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate# NOTE: hrtcntl.h and hrtsys.h are present in this directory so that the 307c478bd9Sstevel@tonic-gate# hrtsys system call can be built to facilitate transportability of 317c478bd9Sstevel@tonic-gate# stock SVr4 programs. Every effort is to be made to prevent objects 327c478bd9Sstevel@tonic-gate# from being built, so these headers are not exported (installed). 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateHDRS = \ 357c478bd9Sstevel@tonic-gate archsystm.h \ 367c478bd9Sstevel@tonic-gate asm_linkage.h \ 377c478bd9Sstevel@tonic-gate bootconf.h \ 387c478bd9Sstevel@tonic-gate bootregs.h \ 397c478bd9Sstevel@tonic-gate bootsvcs.h \ 407c478bd9Sstevel@tonic-gate controlregs.h \ 417c478bd9Sstevel@tonic-gate cpu.h \ 427c478bd9Sstevel@tonic-gate ddi_isa.h \ 437c478bd9Sstevel@tonic-gate debugreg.h \ 44*5b6ecd7fSRichard Lowe dma_engine.h \ 45*5b6ecd7fSRichard Lowe dma_i8237A.h \ 46*5b6ecd7fSRichard Lowe ecppio.h \ 47*5b6ecd7fSRichard Lowe ecppreg.h \ 48*5b6ecd7fSRichard Lowe ecppsys.h \ 49*5b6ecd7fSRichard Lowe ecppvar.h \ 507c478bd9Sstevel@tonic-gate fasttrap_isa.h \ 517c478bd9Sstevel@tonic-gate fp.h \ 527c478bd9Sstevel@tonic-gate frame.h \ 53*5b6ecd7fSRichard Lowe hypervisor.h \ 54*5b6ecd7fSRichard Lowe i8272A.h \ 557c478bd9Sstevel@tonic-gate inline.h \ 5620906b23SVikram Hegde iommulib.h \ 577c478bd9Sstevel@tonic-gate kdi_machimpl.h \ 58ae115bc7Smrj kdi_regs.h \ 597c478bd9Sstevel@tonic-gate machlock.h \ 607c478bd9Sstevel@tonic-gate machsig.h \ 617c478bd9Sstevel@tonic-gate machtypes.h \ 627aec1d6eScindi mc.h \ 637aec1d6eScindi mc_amd.h \ 6420c794b3Sgavinm mc_intel.h \ 657aec1d6eScindi mca_amd.h \ 667aec1d6eScindi mca_x86.h \ 67bc0e9132SGordon Ross mcontext.h \ 687c478bd9Sstevel@tonic-gate mutex_impl.h \ 697c478bd9Sstevel@tonic-gate obpdefs.h \ 707c478bd9Sstevel@tonic-gate old_procfs.h \ 717c478bd9Sstevel@tonic-gate pcb.h \ 72*5b6ecd7fSRichard Lowe pic.h \ 73*5b6ecd7fSRichard Lowe pit.h \ 74ae115bc7Smrj pmem.h \ 75843e1988Sjohnlev privmregs.h \ 767c478bd9Sstevel@tonic-gate privregs.h \ 777c478bd9Sstevel@tonic-gate procfs_isa.h \ 787c478bd9Sstevel@tonic-gate prom_emul.h \ 797c478bd9Sstevel@tonic-gate prom_isa.h \ 807c478bd9Sstevel@tonic-gate prom_plat.h \ 817c478bd9Sstevel@tonic-gate promif.h \ 827c478bd9Sstevel@tonic-gate promimpl.h \ 837c478bd9Sstevel@tonic-gate psw.h \ 847c478bd9Sstevel@tonic-gate pte.h \ 857c478bd9Sstevel@tonic-gate reg.h \ 867c478bd9Sstevel@tonic-gate regset.h \ 87*5b6ecd7fSRichard Lowe rtc.h \ 887c478bd9Sstevel@tonic-gate segment.h \ 897c478bd9Sstevel@tonic-gate segments.h \ 907c478bd9Sstevel@tonic-gate spl.h \ 917c478bd9Sstevel@tonic-gate stack.h \ 927c478bd9Sstevel@tonic-gate stat_impl.h \ 937c478bd9Sstevel@tonic-gate synch32.h \ 947c478bd9Sstevel@tonic-gate sysconfig_impl.h \ 957c478bd9Sstevel@tonic-gate sysi86.h \ 967c478bd9Sstevel@tonic-gate trap.h \ 977c478bd9Sstevel@tonic-gate traptrace.h \ 987c478bd9Sstevel@tonic-gate tss.h \ 99d32f26eeSAndy Fiddaman ucode.h \ 100d32f26eeSAndy Fiddaman ucode_amd.h \ 101d32f26eeSAndy Fiddaman ucode_intel.h \ 1027c478bd9Sstevel@tonic-gate ucontext.h \ 1037c478bd9Sstevel@tonic-gate utrap.h \ 1047c478bd9Sstevel@tonic-gate vmparam.h \ 105551bc2a6Smrj x86_archext.h \ 106551bc2a6Smrj xen_errno.h 1077c478bd9Sstevel@tonic-gate 1087c8c0b82SPatrick Mooney 1097c8c0b82SPatrick Mooney# Headers shared with the various machine architectures are installed via 1107c8c0b82SPatrick Mooney# different means, but are checked here, since it is a common point. 1117c8c0b82SPatrick Mooneyinclude Makefile.psm 1127c8c0b82SPatrick MooneyCHECK_ONLY_HDRS = $(PSM_SHARED_HDRS) 1137c8c0b82SPatrick Mooney 1147c478bd9Sstevel@tonic-gateROOTDIR= $(ROOT)/usr/include/sys 1157c478bd9Sstevel@tonic-gateSCSIDIR= $(ROOTDIR)/scsi 1167c478bd9Sstevel@tonic-gateSCSIDIRS= $(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \ 1177c478bd9Sstevel@tonic-gate $(SCSIDIR)/impl $(SCSIDIR)/targets 1187c478bd9Sstevel@tonic-gateROOTFSDIR= $(ROOTDIR)/fs 1197c478bd9Sstevel@tonic-gateROOTDIRS= $(ROOTDIR) $(ROOTFSDIR) 1207c478bd9Sstevel@tonic-gate 12157f4a14aSGarrett D'AmoreROOTHDRS= $(HDRS:%=$(ROOTDIR)/%) 122fb9f9b97Skupfer 1237c478bd9Sstevel@tonic-gateCHECKHDRS = \ 1247c8c0b82SPatrick Mooney $(HDRS:%.h=%.check) \ 1257c8c0b82SPatrick Mooney $(CHECK_ONLY_HDRS:%.h=%.check) \ 1267c478bd9Sstevel@tonic-gate 1277c478bd9Sstevel@tonic-gate# install rules 1287c478bd9Sstevel@tonic-gate$(ROOTDIR)/%: % 1297c478bd9Sstevel@tonic-gate $(INS.file) 1307c478bd9Sstevel@tonic-gate 1317c478bd9Sstevel@tonic-gate.KEEP_STATE: 1327c478bd9Sstevel@tonic-gate 1334fceebdfSblakej.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) 1347c478bd9Sstevel@tonic-gate 1354fceebdfSblakejinstall_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) 1367c478bd9Sstevel@tonic-gate 1377c478bd9Sstevel@tonic-gate$(ROOTDIRS): 1387c478bd9Sstevel@tonic-gate $(INS.dir) 1397c478bd9Sstevel@tonic-gate 1407c478bd9Sstevel@tonic-gatecheck: $(CHECKHDRS) 141