xref: /titanic_44/usr/src/uts/intel/sys/Makefile (revision aad98a6d8e89f8f5a62a1793da807d4bc5e5b159)
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	sbpro.h			\
77	segment.h		\
78	segments.h		\
79	spl.h			\
80	stack.h			\
81	stat_impl.h		\
82	synch32.h		\
83	sysconfig_impl.h	\
84	sysi86.h		\
85	trap.h			\
86	traptrace.h		\
87	tss.h			\
88	ucontext.h		\
89	utrap.h			\
90	vmparam.h		\
91	x86_archext.h
92
93SUBHDRS	=			\
94	dktp/cdtypes.h		\
95	dktp/mscsi.h		\
96	dktp/scdk.h		\
97	dktp/scdkwatch.h	\
98	dktp/sctarget.h		\
99	dktp/tgcd.h		\
100	dktp/tgpassthru.h
101
102FSHDRS =			\
103	seg_xmem.h		\
104	xmem.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)/%)
116ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
117
118CHECKHDRS= 			\
119	$(HDRS:%.h=%.check)	\
120	$(SUBHDRS:%.h=%.check)	\
121	$(FSHDRS:%.h=fs/%.check)
122
123# install rules
124$(ROOTDIR)/%: %
125	$(INS.file)
126
127.KEEP_STATE:
128
129.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTFSHDRS)
130
131install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTFSHDRS)
132
133$(ROOTDIRS):
134	$(INS.dir)
135
136check:	$(CHECKHDRS)
137