xref: /titanic_44/usr/src/uts/intel/sys/Makefile (revision e79c98e6c943cb3032f272714ff4ce6137d40394)
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 2007 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28include ../../../Makefile.master
29
30# NOTE: hrtcntl.h and hrtsys.h are present in this directory so that the
31#	hrtsys system call can be built to facilitate transportability of
32#	stock SVr4 programs.  Every effort is to be made to prevent objects
33#	from being built, so these headers are not exported (installed).
34
35HDRS	=			\
36	archsystm.h		\
37	asm_linkage.h		\
38	bootconf.h		\
39	bootregs.h		\
40	bootsvcs.h		\
41	controlregs.h		\
42	cpu.h			\
43	ddi_isa.h		\
44	debugreg.h		\
45	dnet.h			\
46	fasttrap_isa.h		\
47	fp.h			\
48	frame.h			\
49	inline.h		\
50	hypervisor.h		\
51	kd.h			\
52	kdi_machimpl.h		\
53	kdi_regs.h		\
54	machelf.h		\
55	machlock.h		\
56	machsig.h		\
57	machtypes.h		\
58	mc.h			\
59	mc_amd.h		\
60	mc_intel.h		\
61	mca_amd.h		\
62	mca_x86.h		\
63	mii.h			\
64	miipriv.h		\
65	mutex_impl.h		\
66	obpdefs.h		\
67	old_procfs.h		\
68	pcb.h			\
69	pmem.h			\
70	privmregs.h		\
71	privregs.h		\
72	procfs_isa.h		\
73	prom_emul.h		\
74	prom_isa.h		\
75	prom_plat.h		\
76	promif.h		\
77	promimpl.h		\
78	psw.h			\
79	pte.h			\
80	reg.h			\
81	regset.h		\
82	segment.h		\
83	segments.h		\
84	spl.h			\
85	stack.h			\
86	stat_impl.h		\
87	synch32.h		\
88	sysconfig_impl.h	\
89	sysi86.h		\
90	trap.h			\
91	traptrace.h		\
92	tss.h			\
93	ucontext.h		\
94	utrap.h			\
95	vmparam.h		\
96	x86_archext.h		\
97	xen_errno.h
98
99CLOSEDHDRS = \
100	memtest.h \
101	sbpro.h
102
103SUBHDRS	=			\
104	dktp/mscsi.h
105
106ROOTDIR=	$(ROOT)/usr/include/sys
107SCSIDIR=	$(ROOTDIR)/scsi
108SCSIDIRS=	$(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \
109		$(SCSIDIR)/impl $(SCSIDIR)/targets
110DKTPDIR=	$(ROOTDIR)/dktp
111DKTPDIRS=	$(DKTPDIR)
112ROOTFSDIR=	$(ROOTDIR)/fs
113ROOTDIRS=	$(ROOTDIR) $(ROOTFSDIR)
114
115ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%) $(SUBHDRS:%=$(ROOTDIR)/%)
116$(CLOSED_BUILD)ROOTHDRS += $(CLOSEDHDRS:%=$(ROOTDIR)/%)
117
118CHECKHDRS= 			\
119	$(HDRS:%.h=%.check)	\
120	$(SUBHDRS:%.h=%.check)
121
122$(CLOSED_BUILD)CHECKHDRS += $(CLOSEDHDRS:%.h=$(CLOSED)/uts/intel/sys/%.check)
123
124# install rules
125$(ROOTDIR)/%: %
126	$(INS.file)
127
128$(ROOTDIR)/%:	$(CLOSED)/uts/intel/sys/%
129	$(INS.file)
130
131.KEEP_STATE:
132
133.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
134
135install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS)
136
137$(ROOTDIRS):
138	$(INS.dir)
139
140check:	$(CHECKHDRS)
141