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