xref: /illumos-gate/usr/src/uts/common/sys/Makefile.syshdrs (revision e4b86885570d77af552e9cf94f142f4d744fb8c8)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24
25# Common definitions for open and closed headers.
26
27# check files really don't exist
28
29audio/%.check:	audio/%.h
30	$(DOT_H_CHECK)
31
32av/%.check:	av/%.h
33	$(DOT_H_CHECK)
34
35fm/%.check:     fm/%.h
36	$(DOT_H_CHECK)
37
38fm/cpu/%.check:	fm/cpu/%.h
39	$(DOT_H_CHECK)
40
41fm/fs/%.check:	fm/fs/%.h
42	$(DOT_H_CHECK)
43
44fm/io/%.check:	fm/io/%.h
45	$(DOT_H_CHECK)
46
47fs/%.check:	fs/%.h
48	$(DOT_H_CHECK)
49
50ib/%.check:		ib/%.h
51	$(DOT_H_CHECK)
52
53ib/clients/ibd/%.check:	ib/clients/ibd/%.h
54	$(DOT_H_CHECK)
55
56ib/ibtl/%.check:	ib/ibtl/%.h
57	$(DOT_H_CHECK)
58
59ib/ibtl/impl/%.check:	ib/ibtl/impl/%.h
60	$(DOT_H_CHECK)
61
62ib/ibnex/%.check:	ib/ibnex/%.h
63	$(DOT_H_CHECK)
64
65ib/mgt/%.check:	ib/mgt/%.h
66	$(DOT_H_CHECK)
67
68ib/mgt/ibmf/%.check:	ib/mgt/ibmf/%.h
69	$(DOT_H_CHECK)
70
71ib/adapters/tavor/%.check:	ib/adapters/tavor/%.h
72	$(DOT_H_CHECK)
73
74lvm/%.check:	lvm/%.h
75	$(DOT_H_CHECK)
76
77pcmcia/%.check:	pcmcia/%.h
78	$(DOT_H_CHECK)
79
80scsi/%.check:		scsi/%.h
81	$(DOT_H_CHECK)
82
83scsi/conf/%.check:	scsi/conf/%.h
84	$(DOT_H_CHECK)
85
86scsi/generic/%.check:	scsi/generic/%.h
87	$(DOT_H_CHECK)
88
89scsi/impl/%.check:	scsi/impl/%.h
90	$(DOT_H_CHECK)
91
92scsi/targets/%.check:	scsi/targets/%.h
93	$(DOT_H_CHECK)
94
95scsi/adapters/%.check:	scsi/adapters/%.h
96	$(DOT_H_CHECK)
97
98sdcard/%.check:		sdcard/%.h
99	$(DOT_H_CHECK)
100
101sysevent/%.check:     sysevent/%.h
102	$(DOT_H_CHECK)
103
104contract/%.check:     contract/%.h
105	$(DOT_H_CHECK)
106
107usb/%.check:		usb/%.h
108	$(DOT_H_CHECK)
109
110usb/clients/audio/%.check:  usb/clients/audio/%.h
111	$(DOT_H_CHECK)
112
113usb/hubd/%.check:	usb/hubd/%.h
114	$(DOT_H_CHECK)
115
116usb/clients/hid/%.check:	usb/clients/hid/%.h
117	$(DOT_H_CHECK)
118
119usb/clients/mass_storage/%.check:	usb/clients/mass_storage/%.h
120	$(DOT_H_CHECK)
121
122usb/clients/hid/%.check:	usb/clients/hid/%.h
123	$(DOT_H_CHECK)
124
125usb/clients/printer/%.check:  usb/clients/printer/%.h
126	$(DOT_H_CHECK)
127
128usb/clients/usbcdc/%.check:	usb/clients/usbcdc/%.h
129	$(DOT_H_CHECK)
130
131usb/clients/video/usbvc/%.check:  usb/clients/video/usbvc/%.h
132	$(DOT_H_CHECK)
133
1341394/%.check:         1394/%.h
135	$(DOT_H_CHECK)
136
137rsm/%.check:	rsm/%.h
138	$(DOT_H_CHECK)
139
140tsol/%.check:	tsol/%.h
141	$(DOT_H_CHECK)
142
143ROOTDIR=	$(ROOT)/usr/include/sys
144
145ROOTDKTPDIR=	$(ROOTDIR)/dktp
146
147sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
148		$(ROOTDIR)/scsi/targets \
149		$(ROOTDIR)/av
150
151i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
152		$(ROOTDIR)/agp $(ROOTDIR)/sata
153
154ROOTDIRS=			\
155	$(ROOTDIR)		\
156	$(ROOTDIR)/audio	\
157	$(ROOTDIR)/hotplug	\
158	$(ROOTDIR)/hotplug/pci	\
159	$(ROOTDIR)/crypto	\
160	$(ROOTDIR)/dcam		\
161	$(ROOTDIR)/iso		\
162	$(ROOTDIR)/fm		\
163	$(ROOTDIR)/fm/cpu	\
164	$(ROOTDIR)/fm/fs	\
165	$(ROOTDIR)/fm/io	\
166	$(ROOTDIR)/fs		\
167	$(ROOTDIR)/ib		\
168	$(ROOTDIR)/ib/adapters/tavor	\
169	$(ROOTDIR)/ib/ibtl	\
170	$(ROOTDIR)/ib/ibtl/impl	\
171	$(ROOTDIR)/ib/mgt	\
172	$(ROOTDIR)/ib/mgt/ibmf	\
173	$(ROOTDIR)/ib/ibnex	\
174	$(ROOTDIR)/ib/clients/ibd \
175	$(ROOTDIR)/lvm		\
176	$(ROOTDIR)/pcmcia	\
177	$(ROOTDIR)/scsi		\
178	$(ROOTDIR)/scsi/conf	\
179	$(ROOTDIR)/scsi/generic	\
180	$(ROOTDIR)/scsi/impl	\
181	$(ROOTDIR)/fc4		\
182	$(ROOTDIR)/sdcard	\
183	$(ROOTDIR)/sysevent     \
184	$(ROOTDIR)/contract     \
185	$(ROOTDIR)/usb		\
186	$(ROOTDIR)/usb/hubd	\
187	$(ROOTDIR)/usb/clients	\
188	$(ROOTDIR)/usb/clients/audio  \
189	$(ROOTDIR)/usb/clients/hid \
190	$(ROOTDIR)/usb/clients/mass_storage	\
191	$(ROOTDIR)/usb/clients/printer  \
192	$(ROOTDIR)/usb/clients/usbcdc  \
193	$(ROOTDIR)/usb/clients/video/usbvc  \
194	$(ROOTDIR)/usb/clients/ugen  \
195	$(ROOTDIR)/1394         \
196	$(ROOTDIR)/rsm		\
197	$(ROOTDIR)/tsol		\
198	$($(MACH)_ROOTDIRS)
199
200
201ROOTHDRS=				\
202	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
203	$(HDRS:%=$(ROOTDIR)/%)
204
205ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
206
207ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
208
209ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
210
211ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
212
213ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
214ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
215ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
216ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
217ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
218ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
219ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
220ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
221
222ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
223
224ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
225ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
226ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
227ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%)
228
229ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
230
231ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
232
233ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%)
234
235ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
236ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
237ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
238ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
239ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
240ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
241ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
242ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
243ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
244
245ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fc4/%)
246
247ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
248
249ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
250ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
251
252ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
253
254ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
255ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
256ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
257ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
258ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
259ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
260ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
261ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
262ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
263
264ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
265
266ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
267
268ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
269ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
270ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
271ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
272ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
273
274ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
275
276sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
277		$(ROOTFCHDRS) $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \
278		$(ROOTUSBAUDHDRS) \
279		$(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) $(ROOTUSBPRNHDRS) \
280		$(ROOTUGENHDRS) $(ROOTUSBVIDHDRS)
281
282i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
283		$(ROOTSCSIVHCIHDRS) $(ROOTFCHDRS)	\
284		$(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \
285		$(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS)
286
287# install rules
288$(ROOTDIR)/%: %
289	$(INS.file)
290
291$(ROOTDIR)/crypto/%: crypto/%
292	$(INS.file)
293
294$(ROOTDIR)/fm/%:                fm/%
295	$(INS.file)
296
297$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
298	$(INS.file)
299
300$(ROOTDIR)/fm/io/%:                fm/io/%
301	$(INS.file)
302
303$(ROOTDIR)/fs/%: fs/%
304	$(INS.file)
305
306$(ROOTDIR)/ib/%:		ib/%
307	$(INS.file)
308
309$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
310	$(INS.file)
311
312$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
313	$(INS.file)
314
315$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
316	$(INS.file)
317
318$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
319	$(INS.file)
320
321$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
322	$(INS.file)
323
324$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
325	$(INS.file)
326
327$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
328	$(INS.file)
329
330$(ROOTDIR)/lvm/%: lvm/%
331	$(INS.file)
332
333$(ROOTDIR)/pcmcia/%:		pcmcia/%
334	$(INS.file)
335
336$(ROOTDIR)/scsi/%:		scsi/%
337	$(INS.file)
338
339$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
340	$(INS.file)
341
342$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
343	$(INS.file)
344
345$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
346	$(INS.file)
347
348$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
349	$(INS.file)
350
351$(ROOTDIR)/fc4/%:		fc4/%
352	$(INS.file)
353
354$(ROOTDIR)/sdcard/%:		sdcard/%
355	$(INS.file)
356
357$(ROOTDIR)/sysevent/%:		sysevent/%
358	$(INS.file)
359
360$(ROOTDIR)/contract/%:		contract/%
361	$(INS.file)
362
363$(ROOTDIR)/usb/%:		usb/%
364	$(INS.file)
365
366$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
367	$(INS.file)
368
369$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
370	$(INS.file)
371
372$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
373	$(INS.file)
374
375$(ROOTDIR)/dktp/%: dktp/%
376	$(INS.file)
377
378$(ROOTDIR)/1394/%:                    1394/%
379	$(INS.file)
380
381$(ROOTDIR)/rsm/%:	rsm/%
382	$(INS.file)
383
384$(ROOTDIR)/tsol/%:	tsol/%
385	$(INS.file)
386
387$(ROOTDIRS):
388	$(INS.dir)
389
390