xref: /titanic_41/usr/src/uts/intel/sys/Makefile (revision 749f21d359d8fbd020c974a1a5227316221bfc9c)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29include ../../../Makefile.master
30
31# NOTE: hrtcntl.h and hrtsys.h are present in this directory so that the
32#	hrtsys system call can be built to facilitate transportability of
33#	stock SVr4 programs.  Every effort is to be made to prevent objects
34#	from being built, so these headers are not exported (installed).
35
36HDRS	=			\
37	archsystm.h		\
38	asm_linkage.h		\
39	bootconf.h		\
40	bootregs.h		\
41	bootsvcs.h		\
42	controlregs.h		\
43	cpu.h			\
44	ddi_isa.h		\
45	debugreg.h		\
46	dnet.h			\
47	fasttrap_isa.h		\
48	fp.h			\
49	frame.h			\
50	immu.h			\
51	inline.h		\
52	kd.h			\
53	kdi_machimpl.h		\
54	machelf.h		\
55	machlock.h		\
56	machsig.h		\
57	machtypes.h		\
58	mii.h			\
59	miipriv.h		\
60	mmu.h			\
61	mutex_impl.h		\
62	obpdefs.h		\
63	old_procfs.h		\
64	pcb.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
92CLOSEDHDRS = \
93	sbpro.h
94
95SUBHDRS	=			\
96	dktp/cdtypes.h		\
97	dktp/mscsi.h		\
98	dktp/scdk.h		\
99	dktp/scdkwatch.h	\
100	dktp/sctarget.h		\
101	dktp/tgcd.h		\
102	dktp/tgpassthru.h
103
104FSHDRS =			\
105	seg_xmem.h		\
106	xmem.h
107
108ROOTDIR=	$(ROOT)/usr/include/sys
109SCSIDIR=	$(ROOTDIR)/scsi
110SCSIDIRS=	$(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \
111		$(SCSIDIR)/impl $(SCSIDIR)/targets
112DKTPDIR=	$(ROOTDIR)/dktp
113DKTPDIRS=	$(DKTPDIR)
114ROOTFSDIR=	$(ROOTDIR)/fs
115ROOTDIRS=	$(ROOTDIR) $(ROOTFSDIR)
116
117ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%) $(SUBHDRS:%=$(ROOTDIR)/%)
118$(CLOSED_BUILD)ROOTHDRS += $(CLOSEDHDRS:%=$(ROOTDIR)/%)
119
120ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
121
122CHECKHDRS= 			\
123	$(HDRS:%.h=%.check)	\
124	$(SUBHDRS:%.h=%.check)	\
125	$(CLOSEDHDRS:%.h=$(CLOSED)/uts/intel/sys/%.check) \
126	$(FSHDRS:%.h=fs/%.check)
127
128$(CLOSED_BUILD)CHECKHDRS += $(CLOSEDHDRS:%.h=$(CLOSED)/uts/intel/sys/%.check)
129
130# install rules
131$(ROOTDIR)/%: %
132	$(INS.file)
133
134$(ROOTDIR)/%:	$(CLOSED)/uts/intel/sys/%
135	$(INS.file)
136
137.KEEP_STATE:
138
139.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTFSHDRS)
140
141install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTFSHDRS)
142
143$(ROOTDIRS):
144	$(INS.dir)
145
146check:	$(CHECKHDRS)
147