xref: /titanic_51/usr/src/uts/intel/sys/Makefile (revision fa9e4066f08beec538e775443c5be79dd423fcab)
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	mouse.h			\
62	mutex_impl.h		\
63	obpdefs.h		\
64	old_procfs.h		\
65	pcb.h			\
66	privregs.h		\
67	procfs_isa.h		\
68	prom_emul.h		\
69	prom_isa.h		\
70	prom_plat.h		\
71	promif.h		\
72	promimpl.h		\
73	psw.h			\
74	pte.h			\
75	reg.h			\
76	regset.h		\
77	sbpro.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	ucontext.h		\
90	utrap.h			\
91	vmparam.h		\
92	x86_archext.h
93
94SUBHDRS	=			\
95	dktp/cdtypes.h		\
96	dktp/mscsi.h		\
97	dktp/scdk.h		\
98	dktp/scdkwatch.h	\
99	dktp/sctarget.h		\
100	dktp/tgcd.h		\
101	dktp/tgpassthru.h
102
103FSHDRS =			\
104	seg_xmem.h		\
105	xmem.h
106
107ROOTDIR=	$(ROOT)/usr/include/sys
108SCSIDIR=	$(ROOTDIR)/scsi
109SCSIDIRS=	$(SCSIDIR) $(SCSIDIR)/conf $(SCSIDIR)/generic \
110		$(SCSIDIR)/impl $(SCSIDIR)/targets
111DKTPDIR=	$(ROOTDIR)/dktp
112DKTPDIRS=	$(DKTPDIR)
113ROOTFSDIR=	$(ROOTDIR)/fs
114ROOTDIRS=	$(ROOTDIR) $(ROOTFSDIR)
115
116ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%) $(SUBHDRS:%=$(ROOTDIR)/%)
117ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
118
119CHECKHDRS= 			\
120	$(HDRS:%.h=%.check)	\
121	$(SUBHDRS:%.h=%.check)	\
122	$(FSHDRS:%.h=fs/%.check)
123
124# install rules
125$(ROOTDIR)/%: %
126	$(INS.file)
127
128.KEEP_STATE:
129
130.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTFSHDRS)
131
132install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTFSHDRS)
133
134$(ROOTDIRS):
135	$(INS.dir)
136
137check:	$(CHECKHDRS)
138