xref: /titanic_41/usr/src/uts/common/sys/Makefile.syshdrs (revision 66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24)
1#
2# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# ident	"%Z%%M%	%I%	%E% SMI"
6#
7
8# Common definitions for open and closed headers.
9
10# check files really don't exist
11
12audio/%.check:	audio/%.h
13	$(DOT_H_CHECK)
14
15av/%.check:	av/%.h
16	$(DOT_H_CHECK)
17
18fm/%.check:     fm/%.h
19	$(DOT_H_CHECK)
20
21fm/cpu/%.check:     fm/cpu/%.h
22	$(DOT_H_CHECK)
23
24fm/io/%.check:     fm/io/%.h
25	$(DOT_H_CHECK)
26
27fs/%.check:	fs/%.h
28	$(DOT_H_CHECK)
29
30ib/%.check:		ib/%.h
31	$(DOT_H_CHECK)
32
33ib/clients/ibd/%.check:	ib/clients/ibd/%.h
34	$(DOT_H_CHECK)
35
36ib/ibtl/%.check:	ib/ibtl/%.h
37	$(DOT_H_CHECK)
38
39ib/ibtl/impl/%.check:	ib/ibtl/impl/%.h
40	$(DOT_H_CHECK)
41
42ib/ibnex/%.check:	ib/ibnex/%.h
43	$(DOT_H_CHECK)
44
45ib/mgt/%.check:	ib/mgt/%.h
46	$(DOT_H_CHECK)
47
48ib/mgt/ibmf/%.check:	ib/mgt/ibmf/%.h
49	$(DOT_H_CHECK)
50
51ib/adapters/tavor/%.check:	ib/adapters/tavor/%.h
52	$(DOT_H_CHECK)
53
54lvm/%.check:	lvm/%.h
55	$(DOT_H_CHECK)
56
57pcmcia/%.check:	pcmcia/%.h
58	$(DOT_H_CHECK)
59
60scsi/%.check:		scsi/%.h
61	$(DOT_H_CHECK)
62
63scsi/conf/%.check:	scsi/conf/%.h
64	$(DOT_H_CHECK)
65
66scsi/generic/%.check:	scsi/generic/%.h
67	$(DOT_H_CHECK)
68
69scsi/impl/%.check:	scsi/impl/%.h
70	$(DOT_H_CHECK)
71
72scsi/targets/%.check:	scsi/targets/%.h
73	$(DOT_H_CHECK)
74
75scsi/adapters/%.check:	scsi/adapters/%.h
76	$(DOT_H_CHECK)
77
78sysevent/%.check:     sysevent/%.h
79	$(DOT_H_CHECK)
80
81contract/%.check:     contract/%.h
82	$(DOT_H_CHECK)
83
84usb/%.check:		usb/%.h
85	$(DOT_H_CHECK)
86
87usb/clients/audio/%.check:  usb/clients/audio/%.h
88	$(DOT_H_CHECK)
89
90usb/hubd/%.check:	usb/hubd/%.h
91	$(DOT_H_CHECK)
92
93usb/clients/hid/%.check:	usb/clients/hid/%.h
94	$(DOT_H_CHECK)
95
96usb/clients/mass_storage/%.check:	usb/clients/mass_storage/%.h
97	$(DOT_H_CHECK)
98
99usb/clients/hid/%.check:	usb/clients/hid/%.h
100	$(DOT_H_CHECK)
101
102usb/clients/printer/%.check:  usb/clients/printer/%.h
103	$(DOT_H_CHECK)
104
1051394/%.check:         1394/%.h
106	$(DOT_H_CHECK)
107
108rsm/%.check:	rsm/%.h
109	$(DOT_H_CHECK)
110
111ROOTDIR=	$(ROOT)/usr/include/sys
112
113ROOTDKTPDIR=	$(ROOTDIR)/dktp
114
115sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
116		$(ROOTDIR)/scsi/targets \
117		$(ROOTDIR)/av
118
119i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
120		$(ROOTDIR)/i2o $(ROOTDIR)/agp $(ROOTDIR)/sata
121
122ROOTDIRS=			\
123	$(ROOTDIR)		\
124	$(ROOTDIR)/audio	\
125	$(ROOTDIR)/hotplug	\
126	$(ROOTDIR)/hotplug/pci	\
127	$(ROOTDIR)/crypto	\
128	$(ROOTDIR)/dcam		\
129	$(ROOTDIR)/iso		\
130	$(ROOTDIR)/fm		\
131	$(ROOTDIR)/fm/cpu	\
132	$(ROOTDIR)/fm/io	\
133	$(ROOTDIR)/fs		\
134	$(ROOTDIR)/ib		\
135	$(ROOTDIR)/ib/adapters/tavor	\
136	$(ROOTDIR)/ib/ibtl	\
137	$(ROOTDIR)/ib/ibtl/impl	\
138	$(ROOTDIR)/ib/mgt	\
139	$(ROOTDIR)/ib/mgt/ibmf	\
140	$(ROOTDIR)/ib/ibnex	\
141	$(ROOTDIR)/ib/clients/ibd \
142	$(ROOTDIR)/lvm		\
143	$(ROOTDIR)/pcmcia	\
144	$(ROOTDIR)/scsi		\
145	$(ROOTDIR)/scsi/conf	\
146	$(ROOTDIR)/scsi/generic	\
147	$(ROOTDIR)/scsi/impl	\
148	$(ROOTDIR)/fc4		\
149	$(ROOTDIR)/sysevent     \
150	$(ROOTDIR)/contract     \
151	$(ROOTDIR)/usb		\
152	$(ROOTDIR)/usb/hubd	\
153	$(ROOTDIR)/usb/clients	\
154	$(ROOTDIR)/usb/clients/audio  \
155	$(ROOTDIR)/usb/clients/hid \
156	$(ROOTDIR)/usb/clients/mass_storage	\
157	$(ROOTDIR)/usb/clients/printer  \
158	$(ROOTDIR)/usb/clients/ugen  \
159	$(ROOTDIR)/1394         \
160	$(ROOTDIR)/rsm		\
161	$($(MACH)_ROOTDIRS)
162
163
164ROOTHDRS=				\
165	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
166	$(HDRS:%=$(ROOTDIR)/%)
167
168ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
169
170ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
171
172ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
173
174ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
175
176ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
177ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
178ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
179ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
180ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
181ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
182ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
183ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
184
185ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
186
187ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
188ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
189ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
190
191ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
192
193ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
194
195ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%)
196
197ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
198ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
199ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
200ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
201ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
202ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
203ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
204ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
205
206ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fc4/%)
207
208ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
209ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
210
211ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
212
213ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
214ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
215ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
216ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
217ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
218ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
219ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
220
221ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
222
223ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
224
225ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
226ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
227ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
228ROOTI2OHDRS= $(I2OHDRS:%=$(ROOTDIR)/i2o/%)
229ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
230ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
231
232
233sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
234		$(ROOTFCHDRS) $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \
235		$(ROOTUSBAUDHDRS) \
236		$(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) $(ROOTUSBPRNHDRS) \
237		$(ROOTUGENHDRS)
238
239i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
240		$(ROOTSCSIVHCIHDRS) $(ROOTFCHDRS)	\
241		$(ROOTI2OHDRS) $(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \
242		$(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS)
243
244# install rules
245$(ROOTDIR)/%: %
246	$(INS.file)
247
248$(ROOTDIR)/crypto/%: crypto/%
249	$(INS.file)
250
251$(ROOTDIR)/fm/%:                fm/%
252	$(INS.file)
253
254$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
255	$(INS.file)
256
257$(ROOTDIR)/fm/io/%:                fm/io/%
258	$(INS.file)
259
260$(ROOTDIR)/fs/%: fs/%
261	$(INS.file)
262
263$(ROOTDIR)/ib/%:		ib/%
264	$(INS.file)
265
266$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
267	$(INS.file)
268
269$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
270	$(INS.file)
271
272$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
273	$(INS.file)
274
275$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
276	$(INS.file)
277
278$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
279	$(INS.file)
280
281$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
282	$(INS.file)
283
284$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
285	$(INS.file)
286
287$(ROOTDIR)/lvm/%: lvm/%
288	$(INS.file)
289
290$(ROOTDIR)/pcmcia/%:		pcmcia/%
291	$(INS.file)
292
293$(ROOTDIR)/scsi/%:		scsi/%
294	$(INS.file)
295
296$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
297	$(INS.file)
298
299$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
300	$(INS.file)
301
302$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
303	$(INS.file)
304
305$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
306	$(INS.file)
307
308$(ROOTDIR)/fc4/%:		fc4/%
309	$(INS.file)
310
311$(ROOTDIR)/sysevent/%:		sysevent/%
312	$(INS.file)
313
314$(ROOTDIR)/contract/%:		contract/%
315	$(INS.file)
316
317$(ROOTDIR)/usb/%:		usb/%
318	$(INS.file)
319
320$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
321	$(INS.file)
322
323$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
324	$(INS.file)
325
326$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
327	$(INS.file)
328
329$(ROOTDIR)/dktp/%: dktp/%
330	$(INS.file)
331
332$(ROOTDIR)/1394/%:                    1394/%
333	$(INS.file)
334
335$(ROOTDIR)/rsm/%:	rsm/%
336	$(INS.file)
337
338$(ROOTDIRS):
339	$(INS.dir)
340
341