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