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