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