xref: /onnv-gate/usr/src/uts/intel/sys/Makefile (revision 10566:b09132fd6cd8)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
52015Staylor# Common Development and Distribution License (the "License").
62015Staylor# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*9860Sgdamore@opensolaris.org# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate
260Sstevel@tonic-gateinclude ../../../Makefile.master
270Sstevel@tonic-gate
280Sstevel@tonic-gate# NOTE: hrtcntl.h and hrtsys.h are present in this directory so that the
290Sstevel@tonic-gate#	hrtsys system call can be built to facilitate transportability of
300Sstevel@tonic-gate#	stock SVr4 programs.  Every effort is to be made to prevent objects
310Sstevel@tonic-gate#	from being built, so these headers are not exported (installed).
320Sstevel@tonic-gate
330Sstevel@tonic-gateHDRS	=			\
340Sstevel@tonic-gate	archsystm.h		\
350Sstevel@tonic-gate	asm_linkage.h		\
360Sstevel@tonic-gate	bootconf.h		\
370Sstevel@tonic-gate	bootregs.h		\
380Sstevel@tonic-gate	bootsvcs.h		\
390Sstevel@tonic-gate	controlregs.h		\
400Sstevel@tonic-gate	cpu.h			\
410Sstevel@tonic-gate	ddi_isa.h		\
420Sstevel@tonic-gate	debugreg.h		\
430Sstevel@tonic-gate	fasttrap_isa.h		\
440Sstevel@tonic-gate	fp.h			\
450Sstevel@tonic-gate	frame.h			\
460Sstevel@tonic-gate	inline.h		\
477613SVikram.Hegde@Sun.COM	iommulib.h		\
485741Smrj	hypervisor.h		\
490Sstevel@tonic-gate	kdi_machimpl.h		\
503446Smrj	kdi_regs.h		\
510Sstevel@tonic-gate	machlock.h		\
520Sstevel@tonic-gate	machsig.h		\
530Sstevel@tonic-gate	machtypes.h		\
541414Scindi	mc.h			\
551414Scindi	mc_amd.h		\
565254Sgavinm	mc_intel.h		\
571414Scindi	mca_amd.h		\
581414Scindi	mca_x86.h		\
590Sstevel@tonic-gate	mutex_impl.h		\
600Sstevel@tonic-gate	obpdefs.h		\
610Sstevel@tonic-gate	old_procfs.h		\
620Sstevel@tonic-gate	pcb.h			\
633446Smrj	pmem.h			\
645084Sjohnlev	privmregs.h		\
650Sstevel@tonic-gate	privregs.h		\
660Sstevel@tonic-gate	procfs_isa.h		\
670Sstevel@tonic-gate	prom_emul.h		\
680Sstevel@tonic-gate	prom_isa.h		\
690Sstevel@tonic-gate	prom_plat.h		\
700Sstevel@tonic-gate	promif.h		\
710Sstevel@tonic-gate	promimpl.h		\
720Sstevel@tonic-gate	psw.h			\
730Sstevel@tonic-gate	pte.h			\
740Sstevel@tonic-gate	reg.h			\
750Sstevel@tonic-gate	regset.h		\
760Sstevel@tonic-gate	segment.h		\
770Sstevel@tonic-gate	segments.h		\
780Sstevel@tonic-gate	spl.h			\
790Sstevel@tonic-gate	stack.h			\
800Sstevel@tonic-gate	stat_impl.h		\
810Sstevel@tonic-gate	synch32.h		\
820Sstevel@tonic-gate	sysconfig_impl.h	\
830Sstevel@tonic-gate	sysi86.h		\
840Sstevel@tonic-gate	trap.h			\
850Sstevel@tonic-gate	traptrace.h		\
860Sstevel@tonic-gate	tss.h			\
870Sstevel@tonic-gate	ucontext.h		\
880Sstevel@tonic-gate	utrap.h			\
890Sstevel@tonic-gate	vmparam.h		\
905741Smrj	x86_archext.h		\
915741Smrj	xen_errno.h
920Sstevel@tonic-gate
931167SkupferCLOSEDHDRS = \
946856Sgd78059	memtest.h
951167Skupfer
960Sstevel@tonic-gateROOTDIR=	$(ROOT)/usr/include/sys
970Sstevel@tonic-gateSCSIDIR=	$(ROOTDIR)/scsi
980Sstevel@tonic-gateSCSIDIRS=	$(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \
990Sstevel@tonic-gate		$(SCSIDIR)/impl $(SCSIDIR)/targets
1000Sstevel@tonic-gateROOTFSDIR=	$(ROOTDIR)/fs
1010Sstevel@tonic-gateROOTDIRS=	$(ROOTDIR) $(ROOTFSDIR)
1020Sstevel@tonic-gate
1039840Sgdamore@opensolaris.orgROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
1041167Skupfer$(CLOSED_BUILD)ROOTHDRS += $(CLOSEDHDRS:%=$(ROOTDIR)/%)
1051167Skupfer
1060Sstevel@tonic-gateCHECKHDRS= 			\
1079840Sgdamore@opensolaris.org	$(HDRS:%.h=%.check)
1080Sstevel@tonic-gate
1091167Skupfer$(CLOSED_BUILD)CHECKHDRS += $(CLOSEDHDRS:%.h=$(CLOSED)/uts/intel/sys/%.check)
1101167Skupfer
1110Sstevel@tonic-gate# install rules
1120Sstevel@tonic-gate$(ROOTDIR)/%: %
1130Sstevel@tonic-gate	$(INS.file)
1140Sstevel@tonic-gate
1151167Skupfer$(ROOTDIR)/%:	$(CLOSED)/uts/intel/sys/%
1161167Skupfer	$(INS.file)
1171167Skupfer
1180Sstevel@tonic-gate.KEEP_STATE:
1190Sstevel@tonic-gate
1203445Sblakej.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
1210Sstevel@tonic-gate
1223445Sblakejinstall_h: $(ROOTDIRS) .WAIT $(ROOTHDRS)
1230Sstevel@tonic-gate
1240Sstevel@tonic-gate$(ROOTDIRS):
1250Sstevel@tonic-gate	$(INS.dir)
1260Sstevel@tonic-gate
1270Sstevel@tonic-gatecheck:	$(CHECKHDRS)
128