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 2008 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25 26include ../../../Makefile.master 27 28# NOTE: hrtcntl.h and hrtsys.h are present in this directory so that the 29# hrtsys system call can be built to facilitate transportability of 30# stock SVr4 programs. Every effort is to be made to prevent objects 31# from being built, so these headers are not exported (installed). 32 33HDRS = \ 34 archsystm.h \ 35 asm_linkage.h \ 36 bootconf.h \ 37 bootregs.h \ 38 bootsvcs.h \ 39 controlregs.h \ 40 cpu.h \ 41 ddi_isa.h \ 42 debugreg.h \ 43 dnet.h \ 44 fasttrap_isa.h \ 45 fp.h \ 46 frame.h \ 47 inline.h \ 48 iommulib.h \ 49 hypervisor.h \ 50 kdi_machimpl.h \ 51 kdi_regs.h \ 52 machlock.h \ 53 machsig.h \ 54 machtypes.h \ 55 mc.h \ 56 mc_amd.h \ 57 mc_intel.h \ 58 mca_amd.h \ 59 mca_x86.h \ 60 mii.h \ 61 miipriv.h \ 62 mutex_impl.h \ 63 obpdefs.h \ 64 old_procfs.h \ 65 pcb.h \ 66 pmem.h \ 67 privmregs.h \ 68 privregs.h \ 69 procfs_isa.h \ 70 prom_emul.h \ 71 prom_isa.h \ 72 prom_plat.h \ 73 promif.h \ 74 promimpl.h \ 75 psw.h \ 76 pte.h \ 77 reg.h \ 78 regset.h \ 79 segment.h \ 80 segments.h \ 81 spl.h \ 82 stack.h \ 83 stat_impl.h \ 84 synch32.h \ 85 sysconfig_impl.h \ 86 sysi86.h \ 87 trap.h \ 88 traptrace.h \ 89 tss.h \ 90 ucontext.h \ 91 utrap.h \ 92 vmparam.h \ 93 x86_archext.h \ 94 xen_errno.h 95 96CLOSEDHDRS = \ 97 memtest.h 98 99SUBHDRS = \ 100 dktp/mscsi.h 101 102ROOTDIR= $(ROOT)/usr/include/sys 103SCSIDIR= $(ROOTDIR)/scsi 104SCSIDIRS= $(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \ 105 $(SCSIDIR)/impl $(SCSIDIR)/targets 106DKTPDIR= $(ROOTDIR)/dktp 107DKTPDIRS= $(DKTPDIR) 108ROOTFSDIR= $(ROOTDIR)/fs 109ROOTDIRS= $(ROOTDIR) $(ROOTFSDIR) 110 111ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%) $(SUBHDRS:%=$(ROOTDIR)/%) 112$(CLOSED_BUILD)ROOTHDRS += $(CLOSEDHDRS:%=$(ROOTDIR)/%) 113 114CHECKHDRS= \ 115 $(HDRS:%.h=%.check) \ 116 $(SUBHDRS:%.h=%.check) 117 118$(CLOSED_BUILD)CHECKHDRS += $(CLOSEDHDRS:%.h=$(CLOSED)/uts/intel/sys/%.check) 119 120# install rules 121$(ROOTDIR)/%: % 122 $(INS.file) 123 124$(ROOTDIR)/%: $(CLOSED)/uts/intel/sys/% 125 $(INS.file) 126 127.KEEP_STATE: 128 129.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) 130 131install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) 132 133$(ROOTDIRS): 134 $(INS.dir) 135 136check: $(CHECKHDRS) 137