Makefile revision 7d87efa8fdfb9453670f2832df666fdae8291a84
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen#
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# CDDL HEADER START
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen#
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# The contents of this file are subject to the terms of the
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# Common Development and Distribution License (the "License").
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# You may not use this file except in compliance with the License.
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen#
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# or http://www.opensolaris.org/os/licensing.
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# See the License for the specific language governing permissions
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# and limitations under the License.
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen#
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# When distributing Covered Code, include this CDDL HEADER in each
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# If applicable, add the following below this CDDL HEADER, with the
0bc4d63d9f8840bb1db75f1a23db3b159f6612a2Johan Engelen# fields enclosed by brackets "[]" replaced with your own identifying
6b758e6a30ea6f0a640c847643b78d9b109dc5b2Johan Engelen# information: Portions Copyright [yyyy] [name of copyright owner]
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen#
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# CDDL HEADER END
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen#
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen#
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# Use is subject to license terms.
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen#
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engeleninclude ../../../Makefile.master
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# NOTE: hrtcntl.h and hrtsys.h are present in this directory so that the
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# hrtsys system call can be built to facilitate transportability of
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# stock SVr4 programs. Every effort is to be made to prevent objects
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen# from being built, so these headers are not exported (installed).
6b758e6a30ea6f0a640c847643b78d9b109dc5b2Johan Engelen
0bc4d63d9f8840bb1db75f1a23db3b159f6612a2Johan EngelenHDRS = \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen amd_iommu.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen archsystm.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen asm_linkage.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen bootconf.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen bootregs.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen bootsvcs.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen controlregs.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen cpu.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen ddi_isa.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen debugreg.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen fasttrap_isa.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen fp.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen frame.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen inline.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen iommulib.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen hypervisor.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen kdi_machimpl.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen kdi_regs.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen machlock.h \
4fe8248cd521387d0829c423bf4492e2cbdfd7cdJohan Engelen machsig.h \
machtypes.h \
mc.h \
mc_amd.h \
mc_intel.h \
mca_amd.h \
mca_x86.h \
mutex_impl.h \
obpdefs.h \
old_procfs.h \
pcb.h \
pmem.h \
privmregs.h \
privregs.h \
procfs_isa.h \
prom_emul.h \
prom_isa.h \
prom_plat.h \
promif.h \
promimpl.h \
psw.h \
pte.h \
reg.h \
regset.h \
segment.h \
segments.h \
spl.h \
stack.h \
stat_impl.h \
synch32.h \
sysconfig_impl.h \
sysi86.h \
trap.h \
traptrace.h \
tss.h \
ucontext.h \
utrap.h \
vmparam.h \
x86_archext.h \
xen_errno.h
CLOSEDHDRS = \
memtest.h
ROOTDIR= $(ROOT)/usr/include/sys
SCSIDIR= $(ROOTDIR)/scsi
SCSIDIRS= $(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \
$(SCSIDIR)/impl $(SCSIDIR)/targets
ROOTFSDIR= $(ROOTDIR)/fs
ROOTDIRS= $(ROOTDIR) $(ROOTFSDIR)
ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
$(CLOSED_BUILD)ROOTHDRS += $(CLOSEDHDRS:%=$(ROOTDIR)/%)
CHECKHDRS= \
$(HDRS:%.h=%.check)
$(CLOSED_BUILD)CHECKHDRS += $(CLOSEDHDRS:%.h=$(CLOSED)/uts/intel/sys/%.check)
# install rules
$(ROOTDIR)/%: %
$(INS.file)
$(ROOTDIR)/%: $(CLOSED)/uts/intel/sys/%
$(INS.file)
.KEEP_STATE:
.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS)
$(ROOTDIRS):
$(INS.dir)
check: $(CHECKHDRS)