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