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