xref: /titanic_50/usr/src/uts/intel/sys/Makefile (revision b5a2d8455dfa3190fc977c4bec53e91c99012767)
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
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	amd_iommu.h		\
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	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	mutex_impl.h		\
61	obpdefs.h		\
62	old_procfs.h		\
63	pcb.h			\
64	pmem.h			\
65	privmregs.h		\
66	privregs.h		\
67	procfs_isa.h		\
68	prom_emul.h		\
69	prom_isa.h		\
70	prom_plat.h		\
71	promif.h		\
72	promimpl.h		\
73	psw.h			\
74	pte.h			\
75	reg.h			\
76	regset.h		\
77	segment.h		\
78	segments.h		\
79	spl.h			\
80	stack.h			\
81	stat_impl.h		\
82	synch32.h		\
83	sysconfig_impl.h	\
84	sysi86.h		\
85	trap.h			\
86	traptrace.h		\
87	tss.h			\
88	ucontext.h		\
89	utrap.h			\
90	vmparam.h		\
91	x86_archext.h		\
92	xen_errno.h
93
94CLOSEDHDRS = \
95	memtest.h
96
97ROOTDIR=	$(ROOT)/usr/include/sys
98SCSIDIR=	$(ROOTDIR)/scsi
99SCSIDIRS=	$(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \
100		$(SCSIDIR)/impl $(SCSIDIR)/targets
101ROOTFSDIR=	$(ROOTDIR)/fs
102ROOTDIRS=	$(ROOTDIR) $(ROOTFSDIR)
103
104ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
105$(CLOSED_BUILD)ROOTHDRS += $(CLOSEDHDRS:%=$(ROOTDIR)/%)
106
107CHECKHDRS= 			\
108	$(HDRS:%.h=%.check)
109
110$(CLOSED_BUILD)CHECKHDRS += $(CLOSEDHDRS:%.h=$(CLOSED)/uts/intel/sys/%.check)
111
112# install rules
113$(ROOTDIR)/%: %
114	$(INS.file)
115
116$(ROOTDIR)/%:	$(CLOSED)/uts/intel/sys/%
117	$(INS.file)
118
119.KEEP_STATE:
120
121.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
122
123install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS)
124
125$(ROOTDIRS):
126	$(INS.dir)
127
128check:	$(CHECKHDRS)
129