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 (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
22 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
23 #
24
25 # Common definitions for open and closed headers.
26
27 # check files really don't exist
28
29 audio/%.check: audio/%.h
30 $(DOT_H_CHECK)
31
32 av/%.check: av/%.h
33 $(DOT_H_CHECK)
34
35 fm/%.check: fm/%.h
36 $(DOT_H_CHECK)
37
38 fm/cpu/%.check: fm/cpu/%.h
39 $(DOT_H_CHECK)
40
41 fm/fs/%.check: fm/fs/%.h
42 $(DOT_H_CHECK)
126 $(DOT_H_CHECK)
127
128 sysevent/%.check: sysevent/%.h
129 $(DOT_H_CHECK)
130
131 contract/%.check: contract/%.h
132 $(DOT_H_CHECK)
133
134 usb/%.check: usb/%.h
135 $(DOT_H_CHECK)
136
137 usb/clients/audio/%.check: usb/clients/audio/%.h
138 $(DOT_H_CHECK)
139
140 usb/hubd/%.check: usb/hubd/%.h
141 $(DOT_H_CHECK)
142
143 usb/clients/hid/%.check: usb/clients/hid/%.h
144 $(DOT_H_CHECK)
145
146 usb/clients/hwarc/%.check: usb/clients/hwarc/%.h
147 $(DOT_H_CHECK)
148
149 usb/clients/mass_storage/%.check: usb/clients/mass_storage/%.h
150 $(DOT_H_CHECK)
151
152 usb/clients/printer/%.check: usb/clients/printer/%.h
153 $(DOT_H_CHECK)
154
155 usb/clients/usbcdc/%.check: usb/clients/usbcdc/%.h
156 $(DOT_H_CHECK)
157
158 usb/clients/video/usbvc/%.check: usb/clients/video/usbvc/%.h
159 $(DOT_H_CHECK)
160
161 usb/clients/usbinput/usbwcm/%.check: usb/clients/usbinput/usbwcm/%.h
162 $(DOT_H_CHECK)
163
164 1394/%.check: 1394/%.h
165 $(DOT_H_CHECK)
166
167 rsm/%.check: rsm/%.h
168 $(DOT_H_CHECK)
212 $(ROOTDIR)/ib/clients/of/rdma \
213 $(ROOTDIR)/ib/clients/of/sol_ofs \
214 $(ROOTDIR)/ib/clients/of/sol_uverbs \
215 $(ROOTDIR)/ib/clients/of/sol_umad \
216 $(ROOTDIR)/ib/clients/of/sol_ucma \
217 $(ROOTDIR)/idm \
218 $(ROOTDIR)/iscsit \
219 $(ROOTDIR)/lvm \
220 $(ROOTDIR)/scsi \
221 $(ROOTDIR)/scsi/conf \
222 $(ROOTDIR)/scsi/generic \
223 $(ROOTDIR)/scsi/impl \
224 $(ROOTDIR)/sdcard \
225 $(ROOTDIR)/sysevent \
226 $(ROOTDIR)/contract \
227 $(ROOTDIR)/usb \
228 $(ROOTDIR)/usb/hubd \
229 $(ROOTDIR)/usb/clients \
230 $(ROOTDIR)/usb/clients/audio \
231 $(ROOTDIR)/usb/clients/hid \
232 $(ROOTDIR)/usb/clients/hwarc \
233 $(ROOTDIR)/usb/clients/mass_storage \
234 $(ROOTDIR)/usb/clients/printer \
235 $(ROOTDIR)/usb/clients/usbcdc \
236 $(ROOTDIR)/usb/clients/video/usbvc \
237 $(ROOTDIR)/usb/clients/usbinput/usbwcm \
238 $(ROOTDIR)/usb/clients/ugen \
239 $(ROOTDIR)/uwb \
240 $(ROOTDIR)/uwb/uwba \
241 $(ROOTDIR)/1394 \
242 $(ROOTDIR)/rsm \
243 $(ROOTDIR)/tsol \
244 $($(MACH)_ROOTDIRS)
245
246
247 ROOTHDRS= \
248 $($(MACH)_HDRS:%=$(ROOTDIR)/%) \
249 $(HDRS:%=$(ROOTDIR)/%)
250
251 ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
252
253 ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
254
255 ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
256
257 ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
258
259 ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
260 ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
294 ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
295 ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
296 ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
297 ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
298 ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
299 ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
300
301 ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
302 ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
303 ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
304 ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
305
306 ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
307
308 ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
309 ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
310
311 ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
312
313 ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
314 ROOTUWBHDRS= $(UWBHDRS:%=$(ROOTDIR)/uwb/%)
315 ROOTUWBAHDRS= $(UWBAHDRS:%=$(ROOTDIR)/uwb/uwba/%)
316 ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
317 ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
318 ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
319 ROOTUSBHWARCHDRS = $(USBHWARCHDRS:%=$(ROOTDIR)/usb/clients/hwarc/%)
320 ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
321 ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
322 ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
323 ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
324 ROOTUSBWCMHDRS= $(USBWCMHDRS:%=$(ROOTDIR)/usb/clients/usbinput/usbwcm/%)
325 ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
326
327 ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
328
329 ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
330
331 ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
332 ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
333 ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
334 ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
335 ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
336
337 ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
338
339 sparc_ROOTHDRS= $(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
340 $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) \
341 $(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
342 $(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS) \
343 $(ROOTUWBHDRS) $(ROOTUWBAHDRS) $(ROOTUSBHWARCHDRS)
344
345 i386_ROOTHDRS= $(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS) \
346 $(ROOTSCSIVHCIHDRS) $(ROOTHOTPLUGHDRS) \
347 $(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS) \
348 $(ROOTUWBHDRS) $(ROOTUWBAHDRS) $(ROOTUSBHWARCHDRS)
349
350 # install rules
351 $(ROOTDIR)/%: %
352 $(INS.file)
353
354 $(ROOTDIR)/crypto/%: crypto/%
355 $(INS.file)
356
357 $(ROOTDIR)/fc4/%: fc4/%
358 $(INS.file)
359
360 $(ROOTDIR)/fibre-channel/%: fibre-channel/%
361 $(INS.file)
362
363 $(ROOTDIR)/fibre-channel/impl/%: fibre-channel/impl/%
364 $(INS.file)
365
366 $(ROOTDIR)/fibre-channel/ulp/: fibre-channel/ulp/%
367 $(INS.file)
368
|
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 (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
22 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
23 #
24
25 # Common definitions for open and closed headers.
26
27 # check files really don't exist
28
29 audio/%.check: audio/%.h
30 $(DOT_H_CHECK)
31
32 av/%.check: av/%.h
33 $(DOT_H_CHECK)
34
35 fm/%.check: fm/%.h
36 $(DOT_H_CHECK)
37
38 fm/cpu/%.check: fm/cpu/%.h
39 $(DOT_H_CHECK)
40
41 fm/fs/%.check: fm/fs/%.h
42 $(DOT_H_CHECK)
126 $(DOT_H_CHECK)
127
128 sysevent/%.check: sysevent/%.h
129 $(DOT_H_CHECK)
130
131 contract/%.check: contract/%.h
132 $(DOT_H_CHECK)
133
134 usb/%.check: usb/%.h
135 $(DOT_H_CHECK)
136
137 usb/clients/audio/%.check: usb/clients/audio/%.h
138 $(DOT_H_CHECK)
139
140 usb/hubd/%.check: usb/hubd/%.h
141 $(DOT_H_CHECK)
142
143 usb/clients/hid/%.check: usb/clients/hid/%.h
144 $(DOT_H_CHECK)
145
146 usb/clients/mass_storage/%.check: usb/clients/mass_storage/%.h
147 $(DOT_H_CHECK)
148
149 usb/clients/printer/%.check: usb/clients/printer/%.h
150 $(DOT_H_CHECK)
151
152 usb/clients/usbcdc/%.check: usb/clients/usbcdc/%.h
153 $(DOT_H_CHECK)
154
155 usb/clients/video/usbvc/%.check: usb/clients/video/usbvc/%.h
156 $(DOT_H_CHECK)
157
158 usb/clients/usbinput/usbwcm/%.check: usb/clients/usbinput/usbwcm/%.h
159 $(DOT_H_CHECK)
160
161 1394/%.check: 1394/%.h
162 $(DOT_H_CHECK)
163
164 rsm/%.check: rsm/%.h
165 $(DOT_H_CHECK)
209 $(ROOTDIR)/ib/clients/of/rdma \
210 $(ROOTDIR)/ib/clients/of/sol_ofs \
211 $(ROOTDIR)/ib/clients/of/sol_uverbs \
212 $(ROOTDIR)/ib/clients/of/sol_umad \
213 $(ROOTDIR)/ib/clients/of/sol_ucma \
214 $(ROOTDIR)/idm \
215 $(ROOTDIR)/iscsit \
216 $(ROOTDIR)/lvm \
217 $(ROOTDIR)/scsi \
218 $(ROOTDIR)/scsi/conf \
219 $(ROOTDIR)/scsi/generic \
220 $(ROOTDIR)/scsi/impl \
221 $(ROOTDIR)/sdcard \
222 $(ROOTDIR)/sysevent \
223 $(ROOTDIR)/contract \
224 $(ROOTDIR)/usb \
225 $(ROOTDIR)/usb/hubd \
226 $(ROOTDIR)/usb/clients \
227 $(ROOTDIR)/usb/clients/audio \
228 $(ROOTDIR)/usb/clients/hid \
229 $(ROOTDIR)/usb/clients/mass_storage \
230 $(ROOTDIR)/usb/clients/printer \
231 $(ROOTDIR)/usb/clients/usbcdc \
232 $(ROOTDIR)/usb/clients/video/usbvc \
233 $(ROOTDIR)/usb/clients/usbinput/usbwcm \
234 $(ROOTDIR)/usb/clients/ugen \
235 $(ROOTDIR)/1394 \
236 $(ROOTDIR)/rsm \
237 $(ROOTDIR)/tsol \
238 $($(MACH)_ROOTDIRS)
239
240
241 ROOTHDRS= \
242 $($(MACH)_HDRS:%=$(ROOTDIR)/%) \
243 $(HDRS:%=$(ROOTDIR)/%)
244
245 ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
246
247 ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
248
249 ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
250
251 ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
252
253 ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
254 ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
288 ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
289 ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
290 ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
291 ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
292 ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
293 ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
294
295 ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
296 ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
297 ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
298 ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
299
300 ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
301
302 ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
303 ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
304
305 ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
306
307 ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
308 ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
309 ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
310 ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
311 ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
312 ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
313 ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
314 ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
315 ROOTUSBWCMHDRS= $(USBWCMHDRS:%=$(ROOTDIR)/usb/clients/usbinput/usbwcm/%)
316 ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
317
318 ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
319
320 ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
321
322 ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
323 ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
324 ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
325 ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
326 ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
327
328 ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
329
330 sparc_ROOTHDRS= $(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
331 $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) \
332 $(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
333 $(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS)
334
335 i386_ROOTHDRS= $(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS) \
336 $(ROOTSCSIVHCIHDRS) $(ROOTHOTPLUGHDRS) \
337 $(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS)
338
339 # install rules
340 $(ROOTDIR)/%: %
341 $(INS.file)
342
343 $(ROOTDIR)/crypto/%: crypto/%
344 $(INS.file)
345
346 $(ROOTDIR)/fc4/%: fc4/%
347 $(INS.file)
348
349 $(ROOTDIR)/fibre-channel/%: fibre-channel/%
350 $(INS.file)
351
352 $(ROOTDIR)/fibre-channel/impl/%: fibre-channel/impl/%
353 $(INS.file)
354
355 $(ROOTDIR)/fibre-channel/ulp/: fibre-channel/ulp/%
356 $(INS.file)
357
|