xref: /titanic_52/usr/src/uts/common/sys/Makefile (revision 9512fe850e98fdd448c638ca63fdd92a8a510255)
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	sdev_impl.h		\
686	sdev_node.h		\
687	fifonode.h		\
688	hsfs_isospec.h		\
689	hsfs_node.h		\
690	hsfs_rrip.h		\
691	hsfs_spec.h		\
692	hsfs_susp.h		\
693	lofs_info.h		\
694	lofs_node.h		\
695	mntdata.h		\
696	namenode.h		\
697	pc_dir.h		\
698	pc_fs.h			\
699	pc_label.h		\
700	pc_node.h		\
701	pxfs_ki.h		\
702	snode.h			\
703	swapnode.h		\
704	tmp.h			\
705	tmpnode.h		\
706	udf_inode.h		\
707	udf_volume.h		\
708	ufs_acl.h		\
709	ufs_bio.h		\
710	ufs_filio.h		\
711	ufs_fs.h		\
712	ufs_fsdir.h		\
713	ufs_inode.h		\
714	ufs_lockfs.h		\
715	ufs_log.h		\
716	ufs_mount.h		\
717	ufs_panic.h		\
718	ufs_prot.h		\
719	ufs_quota.h		\
720	ufs_snap.h              \
721	ufs_trans.h		\
722	zfs.h
723
724PCMCIAHDRS=		\
725	pcata.h		\
726	pcgld.h		\
727	pcramio.h	\
728	pcramvar.h	\
729	pcser_conf.h	\
730	pcser_io.h	\
731	pcser_reg.h	\
732	pcser_manuspec.h \
733	pcser_var.h
734
735SCSIHDRS=		\
736	scsi.h		\
737	scsi_address.h	\
738	scsi_ctl.h	\
739	scsi_params.h	\
740	scsi_pkt.h	\
741	scsi_resource.h	\
742	scsi_types.h	\
743	scsi_watch.h
744
745SCSICONFHDRS=		\
746	autoconf.h	\
747	device.h
748
749SCSIGENHDRS=		\
750	commands.h	\
751	dad_mode.h	\
752	inquiry.h	\
753	message.h	\
754	mode.h		\
755	sense.h		\
756	status.h
757
758SCSIIMPLHDRS=		\
759	commands.h	\
760	inquiry.h	\
761	mode.h		\
762	sense.h		\
763	services.h	\
764	status.h	\
765	transport.h	\
766	scsi_reset_notify.h \
767	types.h		\
768	uscsi.h
769
770SCSITARGETSHDRS=	\
771	ses.h		\
772	sesio.h		\
773	sgendef.h	\
774	stdef.h		\
775	sddef.h
776
777SCSICADHDRS=
778
779SCSIVHCIHDRS=		\
780	scsi_vhci.h	\
781	mpapi_impl.h	\
782	mpapi_scsi_vhci.h
783
784FCHDRS=			\
785	fc_transport.h	\
786	linkapp.h	\
787	fc.h		\
788	fcp.h		\
789	fcal_transport.h \
790	fcal.h		\
791	fcal_linkapp.h	\
792	fcio.h
793
794SATAGENHDRS=		\
795	sata_hba.h	\
796	sata_defs.h	\
797	sata_cfgadm.h
798
799SYSEVENTHDRS=		\
800	ap_driver.h     \
801	dev.h		\
802	domain.h        \
803	dr.h            \
804	env.h           \
805	eventdefs.h	\
806	ipmp.h		\
807	svm.h
808
809CONTRACTHDRS=		\
810	process.h	\
811	process_impl.h
812
813USBHDRS=	\
814	usba.h	\
815	usbai.h
816
817USBAUDHDRS=           \
818	usb_audio.h
819
820USBHUBDHDRS=		\
821	hub.h		\
822	hubd_impl.h
823
824USBHIDHDRS=		\
825	hid.h
826
827USBMSHDRS=		\
828	usb_bulkonly.h	\
829	usb_cbi.h
830
831USBPRNHDRS=           \
832	usb_printer.h
833
834UGENHDRS=           \
835	usb_ugen.h
836
837HOTPLUGHDRS=	\
838	hpcsvc.h	\
839	hpctrl.h
840
841HOTPLUGPCIHDRS=	\
842	pcicfg.h	\
843	pcihp.h
844
845RSMHDRS= \
846	rsm.h	\
847	rsm_common.h	\
848	rsmapi_common.h \
849	rsmpi.h	\
850	rsmpi_driver.h	\
851	rsmka_path_int.h
852
853TSOLHDRS=		\
854	label.h		\
855	label_macro.h	\
856	priv.h		\
857	tndb.h		\
858	tsyscall.h
859
860I1394HDRS=		\
861	cmd1394.h	\
862	id1394.h	\
863	ieee1212.h	\
864	ieee1394.h	\
865	ixl1394.h	\
866	s1394_impl.h	\
867	t1394.h
868
869# "cmdk" headers used on sparc
870SDKTPHDRS=		\
871	dadkio.h	\
872	fdisk.h
873
874# "cmdk" headers used on i386
875DKTPHDRS=		\
876	altsctr.h	\
877	bbh.h		\
878	cm.h		\
879	cmdev.h		\
880	cmdk.h		\
881	cmpkt.h		\
882	controller.h	\
883	dadev.h		\
884	dadk.h		\
885	dadkio.h	\
886	fctypes.h	\
887	fdisk.h		\
888	flowctrl.h	\
889	gda.h		\
890	quetypes.h	\
891	queue.h		\
892	tgcom.h		\
893	tgdk.h
894
895# "pc" header files used on i386
896PCHDRS=			\
897	avintr.h	\
898	dma_engine.h	\
899	i8272A.h	\
900	pcic_reg.h	\
901	pcic_var.h	\
902	pic.h		\
903	pit.h		\
904	rtc.h
905
906# I2O header files (currently used only on i386)
907I2OHDRS=		\
908	i2oadptr.h	\
909	i2obscsi.h	\
910	i2oexec.h	\
911	i2omsg.h	\
912	i2omstr.h	\
913	i2outil.h
914
915include Makefile.syshdrs
916
917dcam/%.check:	dcam/%.h
918	$(DOT_H_CHECK)
919
920CHECKHDRS=						\
921	$($(MACH)_HDRS:%.h=%.check)			\
922	$(AUDIOHDRS:%.h=audio/%.check)			\
923	$(BSCHDRS:%.h=%.check)				\
924	$(CHKHDRS:%.h=%.check)				\
925	$(CRYPTOHDRS:%.h=crypto/%.check)		\
926	$(DCAMHDRS:%.h=dcam/%.check)			\
927	$(IBHDRS:%.h=ib/%.check)			\
928	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
929	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
930	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
931	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
932	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
933	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
934	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
935	$(ISOHDRS:%.h=iso/%.check)			\
936	$(FMHDRS:%.h=fm/%.check)			\
937	$(FMFSHDRS:%.h=fm/fs/%.check)			\
938	$(FMIOHDRS:%.h=fm/io/%.check)			\
939	$(FSHDRS:%.h=fs/%.check)			\
940	$(LVMHDRS:%.h=lvm/%.check)			\
941	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
942	$(SCSIHDRS:%.h=scsi/%.check)			\
943	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
944	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
945	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
946	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
947	$(FCHDRS:%.h=fc4/%.check)			\
948	$(SATAGENHDRS:%.h=sata/%.check)			\
949	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
950	$(CONTRACTHDRS:%.h=contract/%.check)            \
951	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
952	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
953	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
954	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
955	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
956	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
957	$(USBHDRS:%.h=usb/%.check)                      \
958	$(I1394HDRS:%.h=1394/%.check)			\
959	$(RSMHDRS:%.h=rsm/%.check)			\
960	$(TSOLHDRS:%.h=tsol/%.check)
961
962
963.KEEP_STATE:
964
965.PARALLEL:			\
966	$(CHECKHDRS)		\
967	$(ROOTHDRS)		\
968	$(ROOTAUDHDRS)		\
969	$(ROOTCRYPTOHDRS)	\
970	$(ROOTDCAMHDRS)		\
971	$(ROOTISOHDRS)		\
972	$(ROOTFMHDRS)		\
973	$(ROOTFMIOHDRS)		\
974	$(ROOTFMFSHDRS)		\
975	$(ROOTFSHDRS)		\
976	$(ROOTIBDHDRS)		\
977	$(ROOTIBHDRS)		\
978	$(ROOTIBTLHDRS)		\
979	$(ROOTIBTLIMPLHDRS)	\
980	$(ROOTIBNEXHDRS)	\
981	$(ROOTIBMGTHDRS)	\
982	$(ROOTIBMFHDRS)		\
983	$(ROOTTAVORHDRS)	\
984	$(ROOTLVMHDRS)		\
985	$(ROOTPCMCIAHDRS)	\
986	$(ROOTSCSIHDRS)		\
987	$(ROOTSCSICONFHDRS)	\
988	$(ROOTSCSIGENHDRS)	\
989	$(ROOTSCSIIMPLHDRS)	\
990	$(ROOTSCSIVHCIHDRS)	\
991	$(ROOTFCHDRS)		\
992	$(ROOTSYSEVENTHDRS)     \
993	$(ROOTCONTRACTHDRS)     \
994	$(ROOTUSBHDRS)		\
995	$(ROOTUSBAUDHDRS)	\
996	$(ROOTUSBHUBDHDRS)	\
997	$(ROOTUSBHIDHDRS)	\
998	$(ROOTUSBMSHDRS)	\
999	$(ROOTUSBPRNHDRS)       \
1000	$(ROOTUGENHDRS)		\
1001	$(ROOT1394HDRS)         \
1002	$(ROOTHOTPLUGHDRS)	\
1003	$(ROOTHOTPLUGPCIHDRS)	\
1004	$(ROOTRSMHDRS)		\
1005	$(ROOTTSOLHDRS)		\
1006	$($(MACH)_ROOTHDRS)
1007
1008
1009install_h:			\
1010	$(ROOTDIRS)		\
1011	LVMDERIVED_H		\
1012	.WAIT			\
1013	$(ROOTHDRS)		\
1014	$(ROOTAUDHDRS)		\
1015	$(ROOTCRYPTOHDRS)	\
1016	$(ROOTDCAMHDRS)		\
1017	$(ROOTISOHDRS)		\
1018	$(ROOTFMHDRS)		\
1019	$(ROOTFMFSHDRS)		\
1020	$(ROOTFMIOHDRS)		\
1021	$(ROOTFSHDRS)		\
1022	$(ROOTIBDHDRS)		\
1023	$(ROOTIBHDRS)		\
1024	$(ROOTIBTLHDRS)		\
1025	$(ROOTIBTLIMPLHDRS)	\
1026	$(ROOTIBNEXHDRS)	\
1027	$(ROOTIBMGTHDRS)	\
1028	$(ROOTIBMFHDRS)		\
1029	$(ROOTTAVORHDRS)	\
1030	$(ROOTLVMHDRS)		\
1031	$(ROOTPCMCIAHDRS)	\
1032	$(ROOTSCSIHDRS)		\
1033	$(ROOTSCSICONFHDRS)	\
1034	$(ROOTSCSIGENHDRS)	\
1035	$(ROOTSCSIIMPLHDRS)	\
1036	$(ROOTSCSIVHCIHDRS)	\
1037	$(ROOTFCHDRS)		\
1038	$(ROOTSYSEVENTHDRS)     \
1039	$(ROOTCONTRACTHDRS)     \
1040	$(ROOTUSBHDRS)		\
1041	$(ROOTUSBAUDHDRS)	\
1042	$(ROOTUSBHUBDHDRS)	\
1043	$(ROOTUSBHIDHDRS)	\
1044	$(ROOTUSBMSHDRS)	\
1045	$(ROOTUSBPRNHDRS)       \
1046	$(ROOTUGENHDRS)		\
1047	$(ROOT1394HDRS)         \
1048	$(ROOTHOTPLUGHDRS)	\
1049	$(ROOTHOTPLUGPCIHDRS)	\
1050	$(ROOTRSMHDRS)		\
1051	$(ROOTTSOLHDRS)		\
1052	$($(MACH)_ROOTHDRS)
1053
1054all_h: $(GENHDRS)
1055
1056priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1057	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1058
1059priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1060	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1061
1062LVMDERIVED_H:
1063	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1064
1065check:	$(CHECKHDRS)
1066
1067FRC:
1068
1069# EXPORT DELETE START
1070EXPORT_SRC:
1071	$(RM) wanboot_impl.h+ Makefile+
1072	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1073		< wanboot_impl.h > wanboot_impl.h+
1074	$(MV) wanboot_impl.h+ wanboot_impl.h
1075	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1076		< Makefile > Makefile+
1077	$(RM) Makefile
1078	$(MV) Makefile+ Makefile
1079	$(CHMOD) 444 Makefile wanboot_impl.h
1080# EXPORT DELETE END
1081