xref: /illumos-gate/usr/src/uts/intel/sys/Makefile (revision 656d76456fa4392118fe5f8dcb500fd7c1637d84)
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#
26
27include ../../../Makefile.master
28
29# NOTE: hrtcntl.h and hrtsys.h are present in this directory so that the
30#	hrtsys system call can be built to facilitate transportability of
31#	stock SVr4 programs.  Every effort is to be made to prevent objects
32#	from being built, so these headers are not exported (installed).
33
34HDRS	=			\
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	dnet.h			\
45	fasttrap_isa.h		\
46	fp.h			\
47	frame.h			\
48	inline.h		\
49	iommulib.h		\
50	hypervisor.h		\
51	kd.h			\
52	kdi_machimpl.h		\
53	kdi_regs.h		\
54	machlock.h		\
55	machsig.h		\
56	machtypes.h		\
57	mc.h			\
58	mc_amd.h		\
59	mc_intel.h		\
60	mca_amd.h		\
61	mca_x86.h		\
62	mii.h			\
63	miipriv.h		\
64	mutex_impl.h		\
65	obpdefs.h		\
66	old_procfs.h		\
67	pcb.h			\
68	pmem.h			\
69	privmregs.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	xen_errno.h
97
98CLOSEDHDRS = \
99	memtest.h
100
101SUBHDRS	=			\
102	dktp/mscsi.h
103
104ROOTDIR=	$(ROOT)/usr/include/sys
105SCSIDIR=	$(ROOTDIR)/scsi
106SCSIDIRS=	$(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \
107		$(SCSIDIR)/impl $(SCSIDIR)/targets
108DKTPDIR=	$(ROOTDIR)/dktp
109DKTPDIRS=	$(DKTPDIR)
110ROOTFSDIR=	$(ROOTDIR)/fs
111ROOTDIRS=	$(ROOTDIR) $(ROOTFSDIR)
112
113ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%) $(SUBHDRS:%=$(ROOTDIR)/%)
114$(CLOSED_BUILD)ROOTHDRS += $(CLOSEDHDRS:%=$(ROOTDIR)/%)
115
116CHECKHDRS= 			\
117	$(HDRS:%.h=%.check)	\
118	$(SUBHDRS:%.h=%.check)
119
120$(CLOSED_BUILD)CHECKHDRS += $(CLOSEDHDRS:%.h=$(CLOSED)/uts/intel/sys/%.check)
121
122# install rules
123$(ROOTDIR)/%: %
124	$(INS.file)
125
126$(ROOTDIR)/%:	$(CLOSED)/uts/intel/sys/%
127	$(INS.file)
128
129.KEEP_STATE:
130
131.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
132
133install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS)
134
135$(ROOTDIRS):
136	$(INS.dir)
137
138check:	$(CHECKHDRS)
139