xref: /titanic_44/usr/src/uts/common/sys/Makefile (revision 753d2d2e8e7fd0c9bcf736d9bf2f2faf4d6234cc)
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	vlan.h			\
537	vm.h			\
538	vmem.h			\
539	vmem_impl.h		\
540	vmmeter.h		\
541	vmsystm.h		\
542	vnode.h			\
543	vol.h			\
544	vtoc.h			\
545	vtrace.h		\
546	vuid_event.h		\
547	vuid_wheel.h		\
548	vuid_queue.h		\
549	vuid_state.h		\
550	vuid_store.h		\
551	wait.h			\
552	wanboot_impl.h		\
553	watchpoint.h		\
554	winlockio.h		\
555	zcons.h			\
556	zone.h			\
557	xti_inet.h		\
558	xti_osi.h		\
559	xti_xtiopt.h		\
560	zmod.h
561
562HDRS=				\
563	$(GENHDRS)		\
564	$(CHKHDRS)
565
566AUDIOHDRS=			\
567	ac97.h			\
568	am_src1.h		\
569	audio_apm.h		\
570	audio_mixer.h		\
571	audio_src.h		\
572	audio_support.h		\
573	audio_trace.h		\
574	g711.h
575
576BSCHDRS=			\
577	lom_ebuscodes.h		\
578	lom_io.h		\
579	lom_priv.h		\
580	lombus.h
581
582MDESCHDRS=			\
583	mdesc.h			\
584	mdesc_impl.h
585
586CRYPTOHDRS=			\
587	elfsign.h		\
588	ioctl.h			\
589	ioctladmin.h		\
590	common.h		\
591	impl.h			\
592	spi.h			\
593	api.h			\
594	ops_impl.h		\
595	sched_impl.h
596
597DCAMHDRS=			\
598	dcam1394_io.h
599
600IBHDRS=			\
601	ib_types.h	\
602	ib_pkt_hdrs.h
603
604IBTLHDRS=		\
605	ibtl_types.h	\
606	ibtl_status.h	\
607	ibti.h		\
608	ibti_cm.h	\
609	ibci.h		\
610	ibti_common.h	\
611	ibvti.h		\
612	ibtl_ci_types.h
613
614IBTLIMPLHDRS=		\
615	ibtl_util.h
616
617IBNEXHDRS=		\
618	ibnex_devctl.h
619
620IBMFHDRS=		\
621	ibmf.h		\
622	ibmf_msg.h	\
623	ibmf_saa.h	\
624	ibmf_utils.h
625
626IBMGTHDRS=		\
627	ib_dm_attr.h	\
628	ib_mad.h	\
629	sm_attr.h	\
630	sa_recs.h
631
632IBDHDRS=		\
633	ibd.h
634
635ISOHDRS=			\
636	signal_iso.h
637
638DERIVED_LVMHDRS=	\
639	md_mdiox.h		\
640	md_basic.h		\
641	mdmed.h			\
642	md_mhdx.h		\
643	mdmn_commd.h
644
645LVMHDRS=			\
646	md_convert.h		\
647	md_crc.h		\
648	md_hotspares.h		\
649	md_mddb.h		\
650	md_mirror.h		\
651	md_mirror_shared.h	\
652	md_names.h		\
653	md_notify.h		\
654	md_raid.h		\
655	md_rename.h		\
656	md_sp.h			\
657	md_stripe.h		\
658	md_trans.h		\
659	mdio.h			\
660	mdvar.h
661
662ALL_LVMHDRS=			\
663	$(LVMHDRS)		\
664	$(DERIVED_LVMHDRS)
665
666FMHDRS=				\
667	protocol.h		\
668	util.h
669
670FMFSHDRS=			\
671	zfs.h
672
673FMIOHDRS=			\
674	ddi.h			\
675	pci.h			\
676	sun4upci.h		\
677	opl_mc_fm.h
678
679FSHDRS=				\
680	autofs.h		\
681	cachefs_dir.h		\
682	cachefs_dlog.h		\
683	cachefs_filegrp.h	\
684	cachefs_fs.h		\
685	cachefs_fscache.h	\
686	cachefs_ioctl.h		\
687	cachefs_log.h		\
688	dv_node.h		\
689	sdev_impl.h		\
690	sdev_node.h		\
691	fifonode.h		\
692	hsfs_isospec.h		\
693	hsfs_node.h		\
694	hsfs_rrip.h		\
695	hsfs_spec.h		\
696	hsfs_susp.h		\
697	lofs_info.h		\
698	lofs_node.h		\
699	mntdata.h		\
700	namenode.h		\
701	pc_dir.h		\
702	pc_fs.h			\
703	pc_label.h		\
704	pc_node.h		\
705	pxfs_ki.h		\
706	snode.h			\
707	swapnode.h		\
708	tmp.h			\
709	tmpnode.h		\
710	udf_inode.h		\
711	udf_volume.h		\
712	ufs_acl.h		\
713	ufs_bio.h		\
714	ufs_filio.h		\
715	ufs_fs.h		\
716	ufs_fsdir.h		\
717	ufs_inode.h		\
718	ufs_lockfs.h		\
719	ufs_log.h		\
720	ufs_mount.h		\
721	ufs_panic.h		\
722	ufs_prot.h		\
723	ufs_quota.h		\
724	ufs_snap.h              \
725	ufs_trans.h		\
726	zfs.h
727
728PCMCIAHDRS=		\
729	pcata.h		\
730	pcgld.h		\
731	pcramio.h	\
732	pcramvar.h	\
733	pcser_conf.h	\
734	pcser_io.h	\
735	pcser_reg.h	\
736	pcser_manuspec.h \
737	pcser_var.h
738
739SCSIHDRS=		\
740	scsi.h		\
741	scsi_address.h	\
742	scsi_ctl.h	\
743	scsi_params.h	\
744	scsi_pkt.h	\
745	scsi_resource.h	\
746	scsi_types.h	\
747	scsi_watch.h
748
749SCSICONFHDRS=		\
750	autoconf.h	\
751	device.h
752
753SCSIGENHDRS=		\
754	commands.h	\
755	dad_mode.h	\
756	inquiry.h	\
757	message.h	\
758	mode.h		\
759	sense.h		\
760	status.h
761
762SCSIIMPLHDRS=		\
763	commands.h	\
764	inquiry.h	\
765	mode.h		\
766	sense.h		\
767	services.h	\
768	status.h	\
769	transport.h	\
770	scsi_reset_notify.h \
771	types.h		\
772	uscsi.h
773
774SCSITARGETSHDRS=	\
775	ses.h		\
776	sesio.h		\
777	sgendef.h	\
778	stdef.h		\
779	sddef.h
780
781SCSICADHDRS=
782
783SCSIVHCIHDRS=		\
784	scsi_vhci.h	\
785	mpapi_impl.h	\
786	mpapi_scsi_vhci.h
787
788FCHDRS=			\
789	fc_transport.h	\
790	linkapp.h	\
791	fc.h		\
792	fcp.h		\
793	fcal_transport.h \
794	fcal.h		\
795	fcal_linkapp.h	\
796	fcio.h
797
798SATAGENHDRS=		\
799	sata_hba.h	\
800	sata_defs.h	\
801	sata_cfgadm.h
802
803SYSEVENTHDRS=		\
804	ap_driver.h     \
805	dev.h		\
806	domain.h        \
807	dr.h            \
808	env.h           \
809	eventdefs.h	\
810	ipmp.h		\
811	svm.h
812
813CONTRACTHDRS=		\
814	process.h	\
815	process_impl.h
816
817USBHDRS=	\
818	usba.h	\
819	usbai.h
820
821USBAUDHDRS=           \
822	usb_audio.h
823
824USBHUBDHDRS=		\
825	hub.h		\
826	hubd_impl.h
827
828USBHIDHDRS=		\
829	hid.h
830
831USBMSHDRS=		\
832	usb_bulkonly.h	\
833	usb_cbi.h
834
835USBPRNHDRS=           \
836	usb_printer.h
837
838UGENHDRS=           \
839	usb_ugen.h
840
841HOTPLUGHDRS=	\
842	hpcsvc.h	\
843	hpctrl.h
844
845HOTPLUGPCIHDRS=	\
846	pcicfg.h	\
847	pcihp.h
848
849RSMHDRS= \
850	rsm.h	\
851	rsm_common.h	\
852	rsmapi_common.h \
853	rsmpi.h	\
854	rsmpi_driver.h	\
855	rsmka_path_int.h
856
857TSOLHDRS=		\
858	label.h		\
859	label_macro.h	\
860	priv.h		\
861	tndb.h		\
862	tsyscall.h
863
864I1394HDRS=		\
865	cmd1394.h	\
866	id1394.h	\
867	ieee1212.h	\
868	ieee1394.h	\
869	ixl1394.h	\
870	s1394_impl.h	\
871	t1394.h
872
873# "cmdk" headers used on sparc
874SDKTPHDRS=		\
875	dadkio.h	\
876	fdisk.h
877
878# "cmdk" headers used on i386
879DKTPHDRS=		\
880	altsctr.h	\
881	bbh.h		\
882	cm.h		\
883	cmdev.h		\
884	cmdk.h		\
885	cmpkt.h		\
886	controller.h	\
887	dadev.h		\
888	dadk.h		\
889	dadkio.h	\
890	fctypes.h	\
891	fdisk.h		\
892	flowctrl.h	\
893	gda.h		\
894	quetypes.h	\
895	queue.h		\
896	tgcom.h		\
897	tgdk.h
898
899# "pc" header files used on i386
900PCHDRS=			\
901	avintr.h	\
902	dma_engine.h	\
903	i8272A.h	\
904	pcic_reg.h	\
905	pcic_var.h	\
906	pic.h		\
907	pit.h		\
908	rtc.h
909
910# I2O header files (currently used only on i386)
911I2OHDRS=		\
912	i2oadptr.h	\
913	i2obscsi.h	\
914	i2oexec.h	\
915	i2omsg.h	\
916	i2omstr.h	\
917	i2outil.h
918
919include Makefile.syshdrs
920
921dcam/%.check:	dcam/%.h
922	$(DOT_H_CHECK)
923
924CHECKHDRS=						\
925	$($(MACH)_HDRS:%.h=%.check)			\
926	$(AUDIOHDRS:%.h=audio/%.check)			\
927	$(BSCHDRS:%.h=%.check)				\
928	$(CHKHDRS:%.h=%.check)				\
929	$(CRYPTOHDRS:%.h=crypto/%.check)		\
930	$(DCAMHDRS:%.h=dcam/%.check)			\
931	$(IBHDRS:%.h=ib/%.check)			\
932	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
933	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
934	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
935	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
936	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
937	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
938	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
939	$(ISOHDRS:%.h=iso/%.check)			\
940	$(FMHDRS:%.h=fm/%.check)			\
941	$(FMFSHDRS:%.h=fm/fs/%.check)			\
942	$(FMIOHDRS:%.h=fm/io/%.check)			\
943	$(FSHDRS:%.h=fs/%.check)			\
944	$(LVMHDRS:%.h=lvm/%.check)			\
945	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
946	$(SCSIHDRS:%.h=scsi/%.check)			\
947	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
948	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
949	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
950	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
951	$(FCHDRS:%.h=fc4/%.check)			\
952	$(SATAGENHDRS:%.h=sata/%.check)			\
953	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
954	$(CONTRACTHDRS:%.h=contract/%.check)            \
955	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
956	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
957	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
958	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
959	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
960	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
961	$(USBHDRS:%.h=usb/%.check)                      \
962	$(I1394HDRS:%.h=1394/%.check)			\
963	$(RSMHDRS:%.h=rsm/%.check)			\
964	$(TSOLHDRS:%.h=tsol/%.check)
965
966
967.KEEP_STATE:
968
969.PARALLEL:			\
970	$(CHECKHDRS)		\
971	$(ROOTHDRS)		\
972	$(ROOTAUDHDRS)		\
973	$(ROOTCRYPTOHDRS)	\
974	$(ROOTDCAMHDRS)		\
975	$(ROOTISOHDRS)		\
976	$(ROOTFMHDRS)		\
977	$(ROOTFMIOHDRS)		\
978	$(ROOTFMFSHDRS)		\
979	$(ROOTFSHDRS)		\
980	$(ROOTIBDHDRS)		\
981	$(ROOTIBHDRS)		\
982	$(ROOTIBTLHDRS)		\
983	$(ROOTIBTLIMPLHDRS)	\
984	$(ROOTIBNEXHDRS)	\
985	$(ROOTIBMGTHDRS)	\
986	$(ROOTIBMFHDRS)		\
987	$(ROOTTAVORHDRS)	\
988	$(ROOTLVMHDRS)		\
989	$(ROOTPCMCIAHDRS)	\
990	$(ROOTSCSIHDRS)		\
991	$(ROOTSCSICONFHDRS)	\
992	$(ROOTSCSIGENHDRS)	\
993	$(ROOTSCSIIMPLHDRS)	\
994	$(ROOTSCSIVHCIHDRS)	\
995	$(ROOTFCHDRS)		\
996	$(ROOTSYSEVENTHDRS)     \
997	$(ROOTCONTRACTHDRS)     \
998	$(ROOTUSBHDRS)		\
999	$(ROOTUSBAUDHDRS)	\
1000	$(ROOTUSBHUBDHDRS)	\
1001	$(ROOTUSBHIDHDRS)	\
1002	$(ROOTUSBMSHDRS)	\
1003	$(ROOTUSBPRNHDRS)       \
1004	$(ROOTUGENHDRS)		\
1005	$(ROOT1394HDRS)         \
1006	$(ROOTHOTPLUGHDRS)	\
1007	$(ROOTHOTPLUGPCIHDRS)	\
1008	$(ROOTRSMHDRS)		\
1009	$(ROOTTSOLHDRS)		\
1010	$($(MACH)_ROOTHDRS)
1011
1012
1013install_h:			\
1014	$(ROOTDIRS)		\
1015	LVMDERIVED_H		\
1016	.WAIT			\
1017	$(ROOTHDRS)		\
1018	$(ROOTAUDHDRS)		\
1019	$(ROOTCRYPTOHDRS)	\
1020	$(ROOTDCAMHDRS)		\
1021	$(ROOTISOHDRS)		\
1022	$(ROOTFMHDRS)		\
1023	$(ROOTFMFSHDRS)		\
1024	$(ROOTFMIOHDRS)		\
1025	$(ROOTFSHDRS)		\
1026	$(ROOTIBDHDRS)		\
1027	$(ROOTIBHDRS)		\
1028	$(ROOTIBTLHDRS)		\
1029	$(ROOTIBTLIMPLHDRS)	\
1030	$(ROOTIBNEXHDRS)	\
1031	$(ROOTIBMGTHDRS)	\
1032	$(ROOTIBMFHDRS)		\
1033	$(ROOTTAVORHDRS)	\
1034	$(ROOTLVMHDRS)		\
1035	$(ROOTPCMCIAHDRS)	\
1036	$(ROOTSCSIHDRS)		\
1037	$(ROOTSCSICONFHDRS)	\
1038	$(ROOTSCSIGENHDRS)	\
1039	$(ROOTSCSIIMPLHDRS)	\
1040	$(ROOTSCSIVHCIHDRS)	\
1041	$(ROOTFCHDRS)		\
1042	$(ROOTSYSEVENTHDRS)     \
1043	$(ROOTCONTRACTHDRS)     \
1044	$(ROOTUSBHDRS)		\
1045	$(ROOTUSBAUDHDRS)	\
1046	$(ROOTUSBHUBDHDRS)	\
1047	$(ROOTUSBHIDHDRS)	\
1048	$(ROOTUSBMSHDRS)	\
1049	$(ROOTUSBPRNHDRS)       \
1050	$(ROOTUGENHDRS)		\
1051	$(ROOT1394HDRS)         \
1052	$(ROOTHOTPLUGHDRS)	\
1053	$(ROOTHOTPLUGPCIHDRS)	\
1054	$(ROOTRSMHDRS)		\
1055	$(ROOTTSOLHDRS)		\
1056	$($(MACH)_ROOTHDRS)
1057
1058all_h: $(GENHDRS)
1059
1060priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1061	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1062
1063priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1064	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1065
1066LVMDERIVED_H:
1067	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1068
1069check:	$(CHECKHDRS)
1070
1071FRC:
1072
1073# EXPORT DELETE START
1074EXPORT_SRC:
1075	$(RM) wanboot_impl.h+ Makefile+
1076	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1077		< wanboot_impl.h > wanboot_impl.h+
1078	$(MV) wanboot_impl.h+ wanboot_impl.h
1079	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1080		< Makefile > Makefile+
1081	$(RM) Makefile
1082	$(MV) Makefile+ Makefile
1083	$(CHMOD) 444 Makefile wanboot_impl.h
1084# EXPORT DELETE END
1085