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