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