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