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