Makefile revision 2712:f74a135872bc
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#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28include $(SRC)/uts/Makefile.uts
29
30GROUP=bin
31FILEMODE=644
32
33#
34#	Note that the following headers are present in the kernel but
35#	neither installed or shipped as part of the product:
36#		cpuid_drv.h:		Private interface for cpuid consumers
37#		unix_bb_info.h:		Private interface to kcov
38#
39
40i386_HDRS=			\
41	agp/agpamd64gart_io.h	\
42	agp/agpdefs.h		\
43	agp/agpgart_impl.h	\
44	agp/agpmaster_io.h	\
45	agp/agptarget_io.h	\
46	agpgart.h		\
47	asy.h			\
48	audio/audio810.h	\
49	audio/audiohd.h	\
50	audio/audioixp.h	\
51	bmc_intf.h		\
52	fd_debug.h		\
53	fdc.h			\
54	fdmedia.h		\
55	mouse.h			\
56	mse.h			\
57	vuidmice.h
58
59AVHDRS=				\
60	av/iec61883.h
61
62sparc_HDRS= 			\
63	audio/audiots.h		\
64	audio/am_src2.h		\
65	mouse.h			\
66	scsi/targets/ssddef.h	\
67	$(MDESCHDRS)		\
68	$(AVHDRS)
69
70# Generated headers
71GENHDRS=			\
72	priv_const.h		\
73	priv_names.h
74
75CHKHDRS=			\
76	acct.h			\
77	acctctl.h		\
78	acl.h			\
79	aggr.h			\
80	aggr_impl.h		\
81	aio.h			\
82	aio_impl.h		\
83	aio_req.h		\
84	aiocb.h			\
85	ascii.h			\
86	asynch.h		\
87	atomic.h		\
88	audio.h			\
89	audiodebug.h		\
90	audioio.h		\
91	audiovar.h		\
92	autoconf.h		\
93	auxv.h			\
94	auxv_386.h		\
95	auxv_SPARC.h		\
96	avl.h			\
97	avl_impl.h		\
98	battery.h		\
99	bitmap.h		\
100	bl.h			\
101	bofi.h			\
102	bofi_impl.h		\
103	bpp_io.h		\
104	bootstat.h		\
105	brand.h			\
106	buf.h			\
107	bufmod.h		\
108	bustypes.h		\
109	byteorder.h		\
110	callb.h			\
111	callo.h			\
112	ccompile.h		\
113	cdio.h			\
114	chip.h			\
115	cladm.h			\
116	class.h			\
117	clconf.h		\
118	cmlb.h			\
119	cmn_err.h		\
120	compress.h		\
121	condvar.h		\
122	condvar_impl.h		\
123	conf.h			\
124	consdev.h		\
125	console.h		\
126	contract.h		\
127	contract_impl.h		\
128	copyops.h		\
129	core.h			\
130	corectl.h		\
131	cpc_impl.h		\
132	cpc_pcbe.h		\
133	cpr.h			\
134	cpupart.h		\
135	cpuvar.h		\
136	crc32.h			\
137	cred.h			\
138	cred_impl.h		\
139	crtctl.h		\
140	cryptmod.h		\
141	csiioctl.h		\
142	ctf.h			\
143	ctfs.h			\
144	ctfs_impl.h		\
145	ctf_api.h		\
146	ctype.h			\
147	cyclic.h		\
148	cyclic_impl.h		\
149	dacf.h			\
150	dacf_impl.h		\
151	dc_ki.h			\
152	ddi.h			\
153	ddifm.h			\
154	ddifm_impl.h		\
155	ddi_intr.h		\
156	ddi_intr_impl.h		\
157	ddi_impldefs.h		\
158	ddi_implfuncs.h		\
159	ddi_obsolete.h		\
160	ddidevmap.h		\
161	ddidmareq.h		\
162	ddimapreq.h		\
163	ddipropdefs.h		\
164	dditypes.h		\
165	debug.h			\
166	des.h			\
167	devctl.h		\
168	devctl_impl.h		\
169	devinfo_impl.h		\
170	devops.h		\
171	devpolicy.h		\
172	devpoll.h		\
173	dirent.h		\
174	disp.h			\
175	dkbad.h			\
176	dkio.h			\
177	dklabel.h		\
178	dl.h			\
179	dlpi.h			\
180	dld.h			\
181	dld_impl.h		\
182	dls.h			\
183	dls_impl.h		\
184	dma_i8237A.h            \
185	dnlc.h			\
186	door.h			\
187	door_data.h		\
188	door_impl.h		\
189	dtrace.h		\
190	dtrace_impl.h		\
191	dumpadm.h		\
192	dumphdr.h		\
193	ecppsys.h		\
194	ecppio.h                \
195	ecppreg.h               \
196	ecppvar.h               \
197	efi_partition.h		\
198	elf.h			\
199	elf_386.h		\
200	elf_SPARC.h		\
201	elf_notes.h		\
202	elf_amd64.h		\
203	elftypes.h		\
204	emul64.h		\
205	emul64cmd.h		\
206	emul64var.h		\
207	epm.h			\
208	errno.h			\
209	errorq.h		\
210	errorq_impl.h		\
211	esunddi.h		\
212	ethernet.h		\
213	euc.h			\
214	eucioctl.h		\
215	exacct.h		\
216	exacct_catalog.h	\
217	exacct_impl.h		\
218	exec.h			\
219	exechdr.h		\
220	fault.h			\
221	fasttrap.h		\
222	fasttrap_impl.h		\
223	fbio.h			\
224	fbuf.h			\
225	fcntl.h			\
226	fdbuffer.h		\
227	fdio.h			\
228	feature_tests.h		\
229	fem.h			\
230	file.h			\
231	filio.h			\
232	flock.h			\
233	flock_impl.h		\
234	fss.h			\
235	fsspriocntl.h		\
236	fsid.h			\
237	fssnap.h                \
238	fssnap_if.h             \
239	fstyp.h			\
240	ftrace.h		\
241	fx.h			\
242	fxpriocntl.h		\
243	gfs.h			\
244	gld.h			\
245	gldpriv.h		\
246	hdio.h			\
247	hwconf.h		\
248	ia.h			\
249	iapriocntl.h		\
250	id32.h			\
251	ieeefp.h		\
252	id_space.h		\
253	instance.h		\
254	int_const.h		\
255	int_fmtio.h		\
256	int_limits.h		\
257	int_types.h		\
258	inttypes.h		\
259	ioccom.h		\
260	ioctl.h			\
261	ipc.h			\
262	ipc_impl.h		\
263	ipc_rctl.h		\
264	isa_defs.h		\
265	iscsi_authclient.h	\
266	iscsi_authclientglue.h	\
267	iscsi_protocol.h	\
268	jioctl.h		\
269	kbd.h			\
270	kbdreg.h		\
271	kbio.h			\
272	kcpc.h			\
273	kdi.h			\
274	kdi_impl.h		\
275	klwp.h			\
276	kmdb.h			\
277	kmem.h			\
278	kmem_impl.h		\
279	kobj.h			\
280	kobj_impl.h		\
281	kstat.h			\
282	kstr.h			\
283	ksyms.h			\
284	ksynch.h		\
285	ldterm.h		\
286	lgrp.h			\
287	lgrp_user.h		\
288	link.h			\
289	list.h			\
290	list_impl.h		\
291	llc1.h			\
292	loadavg.h		\
293	lock.h			\
294	lockfs.h		\
295	lockstat.h		\
296	lofi.h			\
297	log.h			\
298	logindmux.h		\
299	logindmux_impl.h	\
300	lwp.h			\
301	lwp_timer_impl.h	\
302	lwp_upimutex_impl.h	\
303	mac.h			\
304	mac_impl.h		\
305	map.h			\
306	md5.h			\
307	md5_consts.h		\
308	mdi_impldefs.h		\
309	mem.h			\
310	mem_config.h		\
311	memlist.h		\
312	mkdev.h			\
313	mhd.h			\
314	miiregs.h		\
315	mixer.h			\
316	mman.h			\
317	mntent.h		\
318	mntio.h			\
319	mnttab.h		\
320	modctl.h		\
321	mode.h			\
322	model.h			\
323	modhash.h		\
324	modhash_impl.h		\
325	mount.h			\
326	mouse.h			\
327	msacct.h		\
328	msg.h			\
329	msg_impl.h		\
330	msio.h			\
331	msreg.h			\
332	mtio.h			\
333	multidata.h		\
334	multidata_impl.h	\
335	mutex.h			\
336	nbmlock.h		\
337	ndifm.h		\
338	ndi_impldefs.h		\
339	netconfig.h		\
340	nexusdefs.h		\
341	note.h			\
342	nvpair.h                \
343	nvpair_impl.h           \
344	objfs.h			\
345	objfs_impl.h		\
346	ontrap.h                \
347	open.h			\
348	openpromio.h		\
349	panic.h			\
350	param.h			\
351	pathconf.h		\
352	pathname.h		\
353	pattr.h			\
354	serializer.h		\
355	pbio.h			\
356	pccard.h		\
357	pci.h			\
358	pcie.h			\
359	pci_impl.h		\
360	pcmcia.h		\
361	pctypes.h		\
362	pem.h			\
363	pfmod.h			\
364	pm.h			\
365	policy.h		\
366	poll.h			\
367	poll_impl.h		\
368	pool.h			\
369	pool_impl.h		\
370	pool_pset.h		\
371	port.h			\
372	port_impl.h		\
373	port_kernel.h		\
374	ppmio.h                 \
375	priocntl.h		\
376	priv.h			\
377	priv_impl.h		\
378	prnio.h			\
379	proc.h			\
380	processor.h		\
381	procfs.h		\
382	procset.h		\
383	project.h		\
384	protosw.h		\
385	prsystm.h		\
386	pset.h			\
387	pshot.h			\
388	ptem.h			\
389	ptms.h			\
390	ptyvar.h		\
391	raidioctl.h		\
392	ramdisk.h		\
393	random.h		\
394	rctl.h			\
395	rctl_impl.h		\
396	reboot.h		\
397	refstr.h		\
398	refstr_impl.h		\
399	resource.h		\
400	rlioctl.h		\
401	rt.h			\
402	rtpriocntl.h		\
403	rwlock.h		\
404	rwlock_impl.h		\
405	rwstlock.h		\
406	sad.h			\
407	schedctl.h		\
408	sdt.h			\
409	select.h		\
410	sem.h			\
411	sem_impl.h		\
412	sema_impl.h		\
413	semaphore.h		\
414	sendfile.h		\
415	ser_sync.h		\
416	session.h		\
417	sha1.h			\
418	sha1_consts.h		\
419	sha2.h			\
420	sha2_consts.h		\
421	share.h			\
422	shm.h			\
423	shm_impl.h		\
424	siginfo.h		\
425	signal.h		\
426	sleepq.h		\
427	smbios.h		\
428	smbios_impl.h		\
429	sobject.h		\
430	socket.h		\
431	socket_impl.h		\
432	socketvar.h		\
433	sockio.h		\
434	squeue.h		\
435	squeue_impl.h		\
436	sservice.h		\
437	stat.h			\
438	statfs.h		\
439	statvfs.h		\
440	stdint.h		\
441	stermio.h		\
442	stream.h		\
443	strft.h			\
444	strlog.h		\
445	strmdep.h		\
446	stropts.h		\
447	strredir.h		\
448	strstat.h		\
449	strsubr.h		\
450	strsun.h		\
451	strtty.h		\
452	sunddi.h		\
453	sunldi.h		\
454	sunldi_impl.h		\
455	sunmdi.h		\
456	sunndi.h		\
457	sunos_dhcp_class.h	\
458	sunpm.h			\
459	suntpi.h		\
460	suntty.h		\
461	swap.h			\
462	synch.h			\
463	syscall.h		\
464	sysconf.h		\
465	sysconfig.h		\
466	sysevent.h	\
467	sysevent_impl.h         \
468	sysinfo.h		\
469	syslog.h		\
470	sysmacros.h		\
471	sysmsg_impl.h		\
472	systeminfo.h		\
473	systm.h			\
474	task.h			\
475	taskq.h			\
476	taskq_impl.h		\
477	t_kuser.h		\
478	t_lock.h		\
479	telioctl.h		\
480	termio.h		\
481	termios.h		\
482	termiox.h		\
483	thread.h		\
484	ticlts.h		\
485	ticots.h		\
486	ticotsord.h		\
487	tihdr.h			\
488	time.h			\
489	time_impl.h		\
490	time_std_impl.h		\
491	timeb.h			\
492	timer.h			\
493	times.h			\
494	timex.h			\
495	timod.h			\
496	tirdwr.h		\
497	tiuser.h		\
498	tl.h			\
499	tnf.h			\
500	tnf_com.h		\
501	tnf_probe.h		\
502	tnf_writer.h		\
503	todio.h			\
504	tpicommon.h		\
505	ts.h			\
506	tspriocntl.h		\
507	ttcompat.h		\
508	ttold.h			\
509	tty.h			\
510	ttychars.h		\
511	ttydev.h		\
512	tuneable.h		\
513	turnstile.h		\
514	types.h			\
515	types32.h		\
516	uadmin.h		\
517	ucred.h			\
518	uio.h			\
519	ulimit.h		\
520	un.h			\
521	unistd.h		\
522	user.h			\
523	ustat.h			\
524	utime.h			\
525	utsname.h		\
526	utssys.h		\
527	uuid.h			\
528	va_impl.h		\
529	va_list.h		\
530	var.h			\
531	varargs.h		\
532	vfs.h			\
533	vfstab.h		\
534	vgareg.h		\
535	visual_io.h		\
536	vm.h			\
537	vmem.h			\
538	vmem_impl.h		\
539	vmmeter.h		\
540	vmsystm.h		\
541	vnode.h			\
542	vol.h			\
543	vtoc.h			\
544	vtrace.h		\
545	vuid_event.h		\
546	vuid_wheel.h		\
547	vuid_queue.h		\
548	vuid_state.h		\
549	vuid_store.h		\
550	wait.h			\
551	wanboot_impl.h		\
552	watchpoint.h		\
553	winlockio.h		\
554	zcons.h			\
555	zone.h			\
556	xti_inet.h		\
557	xti_osi.h		\
558	xti_xtiopt.h		\
559	zmod.h
560
561HDRS=				\
562	$(GENHDRS)		\
563	$(CHKHDRS)
564
565AUDIOHDRS=			\
566	ac97.h			\
567	am_src1.h		\
568	audio_apm.h		\
569	audio_mixer.h		\
570	audio_src.h		\
571	audio_support.h		\
572	audio_trace.h		\
573	g711.h
574
575BSCHDRS=			\
576	lom_ebuscodes.h		\
577	lom_io.h		\
578	lom_priv.h		\
579	lombus.h
580
581MDESCHDRS=			\
582	mdesc.h			\
583	mdesc_impl.h		
584
585CRYPTOHDRS=			\
586	elfsign.h		\
587	ioctl.h			\
588	ioctladmin.h		\
589	common.h		\
590	impl.h			\
591	spi.h			\
592	api.h			\
593	ops_impl.h		\
594	sched_impl.h
595
596DCAMHDRS=			\
597	dcam1394_io.h
598
599IBHDRS=			\
600	ib_types.h	\
601	ib_pkt_hdrs.h
602
603IBTLHDRS=		\
604	ibtl_types.h	\
605	ibtl_status.h	\
606	ibti.h		\
607	ibti_cm.h	\
608	ibci.h		\
609	ibti_common.h	\
610	ibvti.h		\
611	ibtl_ci_types.h
612
613IBTLIMPLHDRS=		\
614	ibtl_util.h
615
616IBNEXHDRS=		\
617	ibnex_devctl.h
618
619IBMFHDRS=		\
620	ibmf.h		\
621	ibmf_msg.h	\
622	ibmf_saa.h	\
623	ibmf_utils.h
624
625IBMGTHDRS=		\
626	ib_dm_attr.h	\
627	ib_mad.h	\
628	sm_attr.h	\
629	sa_recs.h
630
631IBDHDRS=		\
632	ibd.h
633
634ISOHDRS=			\
635	signal_iso.h
636
637DERIVED_LVMHDRS=	\
638	md_mdiox.h		\
639	md_basic.h		\
640	mdmed.h			\
641	md_mhdx.h		\
642	mdmn_commd.h
643
644LVMHDRS=			\
645	md_convert.h		\
646	md_crc.h		\
647	md_hotspares.h		\
648	md_mddb.h		\
649	md_mirror.h		\
650	md_mirror_shared.h	\
651	md_names.h		\
652	md_notify.h		\
653	md_raid.h		\
654	md_rename.h		\
655	md_sp.h			\
656	md_stripe.h		\
657	md_trans.h		\
658	mdio.h			\
659	mdvar.h			
660
661ALL_LVMHDRS=			\
662	$(LVMHDRS)		\
663	$(DERIVED_LVMHDRS)
664
665FMHDRS=				\
666	protocol.h		\
667	util.h
668
669FMFSHDRS=			\
670	zfs.h
671
672FMIOHDRS=			\
673	ddi.h			\
674	pci.h			\
675	sun4upci.h		\
676	opl_mc_fm.h
677
678FSHDRS=				\
679	autofs.h		\
680	cachefs_dir.h		\
681	cachefs_dlog.h		\
682	cachefs_filegrp.h	\
683	cachefs_fs.h		\
684	cachefs_fscache.h	\
685	cachefs_ioctl.h		\
686	cachefs_log.h		\
687	dv_node.h		\
688	sdev_impl.h		\
689	sdev_node.h		\
690	fifonode.h		\
691	hsfs_isospec.h		\
692	hsfs_node.h		\
693	hsfs_rrip.h		\
694	hsfs_spec.h		\
695	hsfs_susp.h		\
696	lofs_info.h		\
697	lofs_node.h		\
698	mntdata.h		\
699	namenode.h		\
700	pc_dir.h		\
701	pc_fs.h			\
702	pc_label.h		\
703	pc_node.h		\
704	pxfs_ki.h		\
705	snode.h			\
706	swapnode.h		\
707	tmp.h			\
708	tmpnode.h		\
709	udf_inode.h		\
710	udf_volume.h		\
711	ufs_acl.h		\
712	ufs_bio.h		\
713	ufs_filio.h		\
714	ufs_fs.h		\
715	ufs_fsdir.h		\
716	ufs_inode.h		\
717	ufs_lockfs.h		\
718	ufs_log.h		\
719	ufs_mount.h		\
720	ufs_panic.h		\
721	ufs_prot.h		\
722	ufs_quota.h		\
723	ufs_snap.h              \
724	ufs_trans.h		\
725	zfs.h
726
727PCMCIAHDRS=		\
728	pcata.h		\
729	pcgld.h		\
730	pcramio.h	\
731	pcramvar.h	\
732	pcser_conf.h	\
733	pcser_io.h	\
734	pcser_reg.h	\
735	pcser_manuspec.h \
736	pcser_var.h
737
738SCSIHDRS=		\
739	scsi.h		\
740	scsi_address.h	\
741	scsi_ctl.h	\
742	scsi_params.h	\
743	scsi_pkt.h	\
744	scsi_resource.h	\
745	scsi_types.h	\
746	scsi_watch.h
747
748SCSICONFHDRS=		\
749	autoconf.h	\
750	device.h
751
752SCSIGENHDRS=		\
753	commands.h	\
754	dad_mode.h	\
755	inquiry.h	\
756	message.h	\
757	mode.h		\
758	sense.h		\
759	status.h
760
761SCSIIMPLHDRS=		\
762	commands.h	\
763	inquiry.h	\
764	mode.h		\
765	sense.h		\
766	services.h	\
767	status.h	\
768	transport.h	\
769	scsi_reset_notify.h \
770	types.h		\
771	uscsi.h
772
773SCSITARGETSHDRS=	\
774	ses.h		\
775	sesio.h		\
776	sgendef.h	\
777	stdef.h		\
778	sddef.h
779
780SCSICADHDRS=
781
782SCSIVHCIHDRS=		\
783	scsi_vhci.h	\
784	mpapi_impl.h	\
785	mpapi_scsi_vhci.h
786
787FCHDRS=			\
788	fc_transport.h	\
789	linkapp.h	\
790	fc.h		\
791	fcp.h		\
792	fcal_transport.h \
793	fcal.h		\
794	fcal_linkapp.h	\
795	fcio.h
796
797SATAGENHDRS=		\
798	sata_hba.h	\
799	sata_defs.h	\
800	sata_cfgadm.h
801
802SYSEVENTHDRS=		\
803	ap_driver.h     \
804	dev.h		\
805	domain.h        \
806	dr.h            \
807	env.h           \
808	eventdefs.h	\
809	ipmp.h		\
810	svm.h
811
812CONTRACTHDRS=		\
813	process.h	\
814	process_impl.h
815
816USBHDRS=	\
817	usba.h	\
818	usbai.h
819
820USBAUDHDRS=           \
821	usb_audio.h
822
823USBHUBDHDRS=		\
824	hub.h		\
825	hubd_impl.h
826
827USBHIDHDRS=		\
828	hid.h
829
830USBMSHDRS=		\
831	usb_bulkonly.h	\
832	usb_cbi.h
833
834USBPRNHDRS=           \
835	usb_printer.h
836
837UGENHDRS=           \
838	usb_ugen.h
839
840HOTPLUGHDRS=	\
841	hpcsvc.h	\
842	hpctrl.h
843
844HOTPLUGPCIHDRS=	\
845	pcicfg.h	\
846	pcihp.h
847
848RSMHDRS= \
849	rsm.h	\
850	rsm_common.h	\
851	rsmapi_common.h \
852	rsmpi.h	\
853	rsmpi_driver.h	\
854	rsmka_path_int.h
855
856TSOLHDRS=		\
857	label.h		\
858	label_macro.h	\
859	priv.h		\
860	tndb.h		\
861	tsyscall.h
862
863I1394HDRS=		\
864	cmd1394.h	\
865	id1394.h	\
866	ieee1212.h	\
867	ieee1394.h	\
868	ixl1394.h	\
869	s1394_impl.h	\
870	t1394.h
871
872# "cmdk" headers used on sparc
873SDKTPHDRS=		\
874	dadkio.h	\
875	fdisk.h
876
877# "cmdk" headers used on i386
878DKTPHDRS=		\
879	altsctr.h	\
880	bbh.h		\
881	cm.h		\
882	cmdev.h		\
883	cmdk.h		\
884	cmpkt.h		\
885	controller.h	\
886	dadev.h		\
887	dadk.h		\
888	dadkio.h	\
889	fctypes.h	\
890	fdisk.h		\
891	flowctrl.h	\
892	gda.h		\
893	quetypes.h	\
894	queue.h		\
895	tgcom.h		\
896	tgdk.h
897
898# "pc" header files used on i386
899PCHDRS=			\
900	avintr.h	\
901	dma_engine.h	\
902	i8272A.h	\
903	pcic_reg.h	\
904	pcic_var.h	\
905	pic.h		\
906	pit.h		\
907	rtc.h
908
909# I2O header files (currently used only on i386)
910I2OHDRS=		\
911	i2oadptr.h	\
912	i2obscsi.h	\
913	i2oexec.h	\
914	i2omsg.h	\
915	i2omstr.h	\
916	i2outil.h
917
918include Makefile.syshdrs
919
920dcam/%.check:	dcam/%.h
921	$(DOT_H_CHECK)
922
923CHECKHDRS=						\
924	$($(MACH)_HDRS:%.h=%.check)			\
925	$(AUDIOHDRS:%.h=audio/%.check)			\
926	$(BSCHDRS:%.h=%.check)				\
927	$(CHKHDRS:%.h=%.check)				\
928	$(CRYPTOHDRS:%.h=crypto/%.check)		\
929	$(DCAMHDRS:%.h=dcam/%.check)			\
930	$(IBHDRS:%.h=ib/%.check)			\
931	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
932	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
933	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
934	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
935	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
936	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
937	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
938	$(ISOHDRS:%.h=iso/%.check)			\
939	$(FMHDRS:%.h=fm/%.check)			\
940	$(FMFSHDRS:%.h=fm/fs/%.check)			\
941	$(FMIOHDRS:%.h=fm/io/%.check)			\
942	$(FSHDRS:%.h=fs/%.check)			\
943	$(LVMHDRS:%.h=lvm/%.check)			\
944	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
945	$(SCSIHDRS:%.h=scsi/%.check)			\
946	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
947	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
948	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
949	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
950	$(FCHDRS:%.h=fc4/%.check)			\
951	$(SATAGENHDRS:%.h=sata/%.check)			\
952	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
953	$(CONTRACTHDRS:%.h=contract/%.check)            \
954	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
955	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
956	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
957	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
958	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
959	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
960	$(USBHDRS:%.h=usb/%.check)                      \
961	$(I1394HDRS:%.h=1394/%.check)			\
962	$(RSMHDRS:%.h=rsm/%.check)			\
963	$(TSOLHDRS:%.h=tsol/%.check)
964
965
966.KEEP_STATE:
967
968.PARALLEL:			\
969	$(CHECKHDRS)		\
970	$(ROOTHDRS)		\
971	$(ROOTAUDHDRS)		\
972	$(ROOTCRYPTOHDRS)	\
973	$(ROOTDCAMHDRS)		\
974	$(ROOTISOHDRS)		\
975	$(ROOTFMHDRS)		\
976	$(ROOTFMIOHDRS)		\
977	$(ROOTFMFSHDRS)		\
978	$(ROOTFSHDRS)		\
979	$(ROOTIBDHDRS)		\
980	$(ROOTIBHDRS)		\
981	$(ROOTIBTLHDRS)		\
982	$(ROOTIBTLIMPLHDRS)	\
983	$(ROOTIBNEXHDRS)	\
984	$(ROOTIBMGTHDRS)	\
985	$(ROOTIBMFHDRS)		\
986	$(ROOTTAVORHDRS)	\
987	$(ROOTLVMHDRS)		\
988	$(ROOTPCMCIAHDRS)	\
989	$(ROOTSCSIHDRS)		\
990	$(ROOTSCSICONFHDRS)	\
991	$(ROOTSCSIGENHDRS)	\
992	$(ROOTSCSIIMPLHDRS)	\
993	$(ROOTSCSIVHCIHDRS)	\
994	$(ROOTFCHDRS)		\
995	$(ROOTSYSEVENTHDRS)     \
996	$(ROOTCONTRACTHDRS)     \
997	$(ROOTUSBHDRS)		\
998	$(ROOTUSBAUDHDRS)	\
999	$(ROOTUSBHUBDHDRS)	\
1000	$(ROOTUSBHIDHDRS)	\
1001	$(ROOTUSBMSHDRS)	\
1002	$(ROOTUSBPRNHDRS)       \
1003	$(ROOTUGENHDRS)		\
1004	$(ROOT1394HDRS)         \
1005	$(ROOTHOTPLUGHDRS)	\
1006	$(ROOTHOTPLUGPCIHDRS)	\
1007	$(ROOTRSMHDRS)		\
1008	$(ROOTTSOLHDRS)		\
1009	$($(MACH)_ROOTHDRS)
1010
1011
1012install_h:			\
1013	$(ROOTDIRS)		\
1014	LVMDERIVED_H		\
1015	.WAIT			\
1016	$(ROOTHDRS)		\
1017	$(ROOTAUDHDRS)		\
1018	$(ROOTCRYPTOHDRS)	\
1019	$(ROOTDCAMHDRS)		\
1020	$(ROOTISOHDRS)		\
1021	$(ROOTFMHDRS)		\
1022	$(ROOTFMFSHDRS)		\
1023	$(ROOTFMIOHDRS)		\
1024	$(ROOTFSHDRS)		\
1025	$(ROOTIBDHDRS)		\
1026	$(ROOTIBHDRS)		\
1027	$(ROOTIBTLHDRS)		\
1028	$(ROOTIBTLIMPLHDRS)	\
1029	$(ROOTIBNEXHDRS)	\
1030	$(ROOTIBMGTHDRS)	\
1031	$(ROOTIBMFHDRS)		\
1032	$(ROOTTAVORHDRS)	\
1033	$(ROOTLVMHDRS)		\
1034	$(ROOTPCMCIAHDRS)	\
1035	$(ROOTSCSIHDRS)		\
1036	$(ROOTSCSICONFHDRS)	\
1037	$(ROOTSCSIGENHDRS)	\
1038	$(ROOTSCSIIMPLHDRS)	\
1039	$(ROOTSCSIVHCIHDRS)	\
1040	$(ROOTFCHDRS)		\
1041	$(ROOTSYSEVENTHDRS)     \
1042	$(ROOTCONTRACTHDRS)     \
1043	$(ROOTUSBHDRS)		\
1044	$(ROOTUSBAUDHDRS)	\
1045	$(ROOTUSBHUBDHDRS)	\
1046	$(ROOTUSBHIDHDRS)	\
1047	$(ROOTUSBMSHDRS)	\
1048	$(ROOTUSBPRNHDRS)       \
1049	$(ROOTUGENHDRS)		\
1050	$(ROOT1394HDRS)         \
1051	$(ROOTHOTPLUGHDRS)	\
1052	$(ROOTHOTPLUGPCIHDRS)	\
1053	$(ROOTRSMHDRS)		\
1054	$(ROOTTSOLHDRS)		\
1055	$($(MACH)_ROOTHDRS)
1056
1057all_h: $(GENHDRS)
1058
1059priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1060	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1061
1062priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1063	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1064
1065LVMDERIVED_H:
1066	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1067
1068check:	$(CHECKHDRS)
1069
1070FRC:
1071
1072# EXPORT DELETE START
1073EXPORT_SRC:
1074	$(RM) wanboot_impl.h+ Makefile+
1075	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1076		< wanboot_impl.h > wanboot_impl.h+
1077	$(MV) wanboot_impl.h+ wanboot_impl.h
1078	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1079		< Makefile > Makefile+
1080	$(RM) Makefile
1081	$(MV) Makefile+ Makefile
1082	$(CHMOD) 444 Makefile wanboot_impl.h
1083# EXPORT DELETE END
1084