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