xref: /titanic_50/usr/src/uts/intel/sys/Makefile (revision b56bf881a9655cb27b53cba1468312f7c6dfb0a2)
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	archsystm.h		\
35	asm_linkage.h		\
36	bootconf.h		\
37	bootregs.h		\
38	bootsvcs.h		\
39	controlregs.h		\
40	cpu.h			\
41	ddi_isa.h		\
42	debugreg.h		\
43	fasttrap_isa.h		\
44	fp.h			\
45	frame.h			\
46	inline.h		\
47	iommulib.h		\
48	hypervisor.h		\
49	kdi_machimpl.h		\
50	kdi_regs.h		\
51	machlock.h		\
52	machsig.h		\
53	machtypes.h		\
54	mc.h			\
55	mc_amd.h		\
56	mc_intel.h		\
57	mca_amd.h		\
58	mca_x86.h		\
59	mutex_impl.h		\
60	obpdefs.h		\
61	old_procfs.h		\
62	pcb.h			\
63	pmem.h			\
64	privmregs.h		\
65	privregs.h		\
66	procfs_isa.h		\
67	prom_emul.h		\
68	prom_isa.h		\
69	prom_plat.h		\
70	promif.h		\
71	promimpl.h		\
72	psw.h			\
73	pte.h			\
74	reg.h			\
75	regset.h		\
76	segment.h		\
77	segments.h		\
78	spl.h			\
79	stack.h			\
80	stat_impl.h		\
81	synch32.h		\
82	sysconfig_impl.h	\
83	sysi86.h		\
84	trap.h			\
85	traptrace.h		\
86	tss.h			\
87	ucontext.h		\
88	utrap.h			\
89	vmparam.h		\
90	x86_archext.h		\
91	xen_errno.h
92
93CLOSEDHDRS = \
94	memtest.h
95
96ROOTDIR=	$(ROOT)/usr/include/sys
97SCSIDIR=	$(ROOTDIR)/scsi
98SCSIDIRS=	$(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \
99		$(SCSIDIR)/impl $(SCSIDIR)/targets
100ROOTFSDIR=	$(ROOTDIR)/fs
101ROOTDIRS=	$(ROOTDIR) $(ROOTFSDIR)
102
103ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
104$(CLOSED_BUILD)ROOTHDRS += $(CLOSEDHDRS:%=$(ROOTDIR)/%)
105
106CHECKHDRS= 			\
107	$(HDRS:%.h=%.check)
108
109$(CLOSED_BUILD)CHECKHDRS += $(CLOSEDHDRS:%.h=$(CLOSED)/uts/intel/sys/%.check)
110
111# install rules
112$(ROOTDIR)/%: %
113	$(INS.file)
114
115$(ROOTDIR)/%:	$(CLOSED)/uts/intel/sys/%
116	$(INS.file)
117
118.KEEP_STATE:
119
120.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
121
122install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS)
123
124$(ROOTDIRS):
125	$(INS.dir)
126
127check:	$(CHECKHDRS)
128