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