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