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