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