1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# Copyright 2023 Oxide Computer Company 26 27include ../../../Makefile.master 28 29# NOTE: hrtcntl.h and hrtsys.h are present in this directory so that the 30# hrtsys system call can be built to facilitate transportability of 31# stock SVr4 programs. Every effort is to be made to prevent objects 32# from being built, so these headers are not exported (installed). 33 34HDRS = \ 35 archsystm.h \ 36 asm_linkage.h \ 37 bootconf.h \ 38 bootregs.h \ 39 bootsvcs.h \ 40 controlregs.h \ 41 cpu.h \ 42 ddi_isa.h \ 43 debugreg.h \ 44 dma_engine.h \ 45 dma_i8237A.h \ 46 ecppio.h \ 47 ecppreg.h \ 48 ecppsys.h \ 49 ecppvar.h \ 50 fasttrap_isa.h \ 51 fp.h \ 52 frame.h \ 53 hypervisor.h \ 54 i8272A.h \ 55 inline.h \ 56 iommulib.h \ 57 kdi_machimpl.h \ 58 kdi_regs.h \ 59 machlock.h \ 60 machsig.h \ 61 machtypes.h \ 62 mc.h \ 63 mc_amd.h \ 64 mc_intel.h \ 65 mca_amd.h \ 66 mca_x86.h \ 67 mcontext.h \ 68 mutex_impl.h \ 69 obpdefs.h \ 70 old_procfs.h \ 71 pcb.h \ 72 pic.h \ 73 pit.h \ 74 pmem.h \ 75 privmregs.h \ 76 privregs.h \ 77 procfs_isa.h \ 78 prom_emul.h \ 79 prom_isa.h \ 80 prom_plat.h \ 81 promif.h \ 82 promimpl.h \ 83 psw.h \ 84 pte.h \ 85 reg.h \ 86 regset.h \ 87 rtc.h \ 88 segment.h \ 89 segments.h \ 90 spl.h \ 91 stack.h \ 92 stat_impl.h \ 93 synch32.h \ 94 sysconfig_impl.h \ 95 sysi86.h \ 96 trap.h \ 97 traptrace.h \ 98 tss.h \ 99 ucode.h \ 100 ucode_amd.h \ 101 ucode_intel.h \ 102 ucontext.h \ 103 utrap.h \ 104 vmparam.h \ 105 x86_archext.h \ 106 xen_errno.h 107 108 109# Headers shared with the various machine architectures are installed via 110# different means, but are checked here, since it is a common point. 111include Makefile.psm 112CHECK_ONLY_HDRS = $(PSM_SHARED_HDRS) 113 114ROOTDIR= $(ROOT)/usr/include/sys 115SCSIDIR= $(ROOTDIR)/scsi 116SCSIDIRS= $(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \ 117 $(SCSIDIR)/impl $(SCSIDIR)/targets 118ROOTFSDIR= $(ROOTDIR)/fs 119ROOTDIRS= $(ROOTDIR) $(ROOTFSDIR) 120 121ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%) 122 123CHECKHDRS = \ 124 $(HDRS:%.h=%.check) \ 125 $(CHECK_ONLY_HDRS:%.h=%.check) \ 126 127# install rules 128$(ROOTDIR)/%: % 129 $(INS.file) 130 131.KEEP_STATE: 132 133.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) 134 135install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) 136 137$(ROOTDIRS): 138 $(INS.dir) 139 140check: $(CHECKHDRS) 141