xref: /illumos-gate/usr/src/uts/intel/sys/Makefile (revision 8226594fdd4479be135127f43632f1f995074654)
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# Copyright 2023 Oxide Computer Company
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	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	mcontext.h		\
61	mutex_impl.h		\
62	obpdefs.h		\
63	old_procfs.h		\
64	pcb.h			\
65	pmem.h			\
66	privmregs.h		\
67	privregs.h		\
68	procfs_isa.h		\
69	prom_emul.h		\
70	prom_isa.h		\
71	prom_plat.h		\
72	promif.h		\
73	promimpl.h		\
74	psw.h			\
75	pte.h			\
76	reg.h			\
77	regset.h		\
78	segment.h		\
79	segments.h		\
80	spl.h			\
81	stack.h			\
82	stat_impl.h		\
83	synch32.h		\
84	sysconfig_impl.h	\
85	sysi86.h		\
86	trap.h			\
87	traptrace.h		\
88	tss.h			\
89	ucode.h			\
90	ucode_amd.h		\
91	ucode_intel.h		\
92	ucontext.h		\
93	utrap.h			\
94	vmparam.h		\
95	x86_archext.h		\
96	xen_errno.h
97
98
99# Headers shared with the various machine architectures are installed via
100# different means, but are checked here, since it is a common point.
101include Makefile.psm
102CHECK_ONLY_HDRS = $(PSM_SHARED_HDRS)
103
104ROOTDIR=	$(ROOT)/usr/include/sys
105SCSIDIR=	$(ROOTDIR)/scsi
106SCSIDIRS=	$(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \
107		$(SCSIDIR)/impl $(SCSIDIR)/targets
108ROOTFSDIR=	$(ROOTDIR)/fs
109ROOTDIRS=	$(ROOTDIR) $(ROOTFSDIR)
110
111ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
112
113CHECKHDRS = \
114	$(HDRS:%.h=%.check)		\
115	$(CHECK_ONLY_HDRS:%.h=%.check)	\
116
117# install rules
118$(ROOTDIR)/%: %
119	$(INS.file)
120
121.KEEP_STATE:
122
123.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
124
125install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS)
126
127$(ROOTDIRS):
128	$(INS.dir)
129
130check:	$(CHECKHDRS)
131