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