xref: /titanic_50/usr/src/uts/common/sys/Makefile (revision 380789fc80376bd1573770361cb177a08c7e3524)
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	dv_node.h		\
735	sdev_impl.h		\
736	sdev_node.h		\
737	fifonode.h		\
738	hsfs_isospec.h		\
739	hsfs_node.h		\
740	hsfs_rrip.h		\
741	hsfs_spec.h		\
742	hsfs_susp.h		\
743	lofs_info.h		\
744	lofs_node.h		\
745	mntdata.h		\
746	namenode.h		\
747	pc_dir.h		\
748	pc_fs.h			\
749	pc_label.h		\
750	pc_node.h		\
751	pxfs_ki.h		\
752	snode.h			\
753	swapnode.h		\
754	tmp.h			\
755	tmpnode.h		\
756	udf_inode.h		\
757	udf_volume.h		\
758	ufs_acl.h		\
759	ufs_bio.h		\
760	ufs_filio.h		\
761	ufs_fs.h		\
762	ufs_fsdir.h		\
763	ufs_inode.h		\
764	ufs_lockfs.h		\
765	ufs_log.h		\
766	ufs_mount.h		\
767	ufs_panic.h		\
768	ufs_prot.h		\
769	ufs_quota.h		\
770	ufs_snap.h              \
771	ufs_trans.h		\
772	zfs.h
773
774PCMCIAHDRS=		\
775	pcata.h		\
776	pcgld.h		\
777	pcramio.h	\
778	pcramvar.h	\
779	pcser_conf.h	\
780	pcser_io.h	\
781	pcser_reg.h	\
782	pcser_manuspec.h \
783	pcser_var.h
784
785SCSIHDRS=		\
786	scsi.h		\
787	scsi_address.h	\
788	scsi_ctl.h	\
789	scsi_params.h	\
790	scsi_pkt.h	\
791	scsi_resource.h	\
792	scsi_types.h	\
793	scsi_watch.h
794
795SCSICONFHDRS=		\
796	autoconf.h	\
797	device.h
798
799SCSIGENHDRS=		\
800	commands.h	\
801	dad_mode.h	\
802	inquiry.h	\
803	message.h	\
804	mode.h		\
805	persist.h	\
806	sense.h		\
807	status.h
808
809SCSIIMPLHDRS=		\
810	commands.h	\
811	inquiry.h	\
812	mode.h		\
813	sense.h		\
814	services.h	\
815	status.h	\
816	transport.h	\
817	scsi_reset_notify.h \
818	types.h		\
819	uscsi.h
820
821SCSITARGETSHDRS=	\
822	ses.h		\
823	sesio.h		\
824	sgendef.h	\
825	stdef.h		\
826	sddef.h
827
828SCSICADHDRS=
829
830SCSIVHCIHDRS=		\
831	scsi_vhci.h	\
832	mpapi_impl.h	\
833	mpapi_scsi_vhci.h
834
835FCHDRS=			\
836	fc_transport.h	\
837	linkapp.h	\
838	fc.h		\
839	fcp.h		\
840	fcal_transport.h \
841	fcal.h		\
842	fcal_linkapp.h	\
843	fcio.h
844
845SATAGENHDRS=		\
846	sata_hba.h	\
847	sata_defs.h	\
848	sata_cfgadm.h
849
850SYSEVENTHDRS=		\
851	acpiev.h	\
852	ap_driver.h     \
853	dev.h		\
854	domain.h        \
855	dr.h            \
856	env.h           \
857	eventdefs.h	\
858	ipmp.h		\
859	svm.h
860
861CONTRACTHDRS=		\
862	process.h	\
863	process_impl.h	\
864	device.h	\
865	device_impl.h
866
867USBHDRS=	\
868	usba.h	\
869	usbai.h
870
871USBAUDHDRS=           \
872	usb_audio.h
873
874USBHUBDHDRS=		\
875	hub.h		\
876	hubd_impl.h
877
878USBHIDHDRS=		\
879	hid.h
880
881USBMSHDRS=		\
882	usb_bulkonly.h	\
883	usb_cbi.h
884
885USBPRNHDRS=           \
886	usb_printer.h
887
888USBCDCHDRS=		\
889	usb_cdc.h
890
891USBVIDHDRS=           \
892	usbvc.h
893
894UGENHDRS=           \
895	usb_ugen.h
896
897HOTPLUGHDRS=	\
898	hpcsvc.h	\
899	hpctrl.h
900
901HOTPLUGPCIHDRS=	\
902	pcicfg.h	\
903	pcihp.h
904
905RSMHDRS= \
906	rsm.h	\
907	rsm_common.h	\
908	rsmapi_common.h \
909	rsmpi.h	\
910	rsmpi_driver.h	\
911	rsmka_path_int.h
912
913TSOLHDRS=		\
914	label.h		\
915	label_macro.h	\
916	priv.h		\
917	tndb.h		\
918	tsyscall.h
919
920I1394HDRS=		\
921	cmd1394.h	\
922	id1394.h	\
923	ieee1212.h	\
924	ieee1394.h	\
925	ixl1394.h	\
926	s1394_impl.h	\
927	t1394.h
928
929# "cmdk" headers used on sparc
930SDKTPHDRS=		\
931	dadkio.h	\
932	fdisk.h
933
934# "cmdk" headers used on i386
935DKTPHDRS=		\
936	altsctr.h	\
937	bbh.h		\
938	cm.h		\
939	cmdev.h		\
940	cmdk.h		\
941	cmpkt.h		\
942	controller.h	\
943	dadev.h		\
944	dadk.h		\
945	dadkio.h	\
946	fctypes.h	\
947	fdisk.h		\
948	flowctrl.h	\
949	gda.h		\
950	quetypes.h	\
951	queue.h		\
952	tgcom.h		\
953	tgdk.h
954
955# "pc" header files used on i386
956PCHDRS=			\
957	avintr.h	\
958	dma_engine.h	\
959	i8272A.h	\
960	pcic_reg.h	\
961	pcic_var.h	\
962	pic.h		\
963	pit.h		\
964	rtc.h
965
966NXGEHDRS=			\
967	nxge.h			\
968	nxge_common.h		\
969	nxge_common_impl.h	\
970	nxge_defs.h		\
971	nxge_hw.h		\
972	nxge_impl.h		\
973	nxge_ipp.h		\
974	nxge_ipp_hw.h		\
975	nxge_mac.h		\
976	nxge_mac_hw.h		\
977	nxge_fflp.h		\
978	nxge_fflp_hw.h		\
979	nxge_mii.h		\
980	nxge_rxdma.h		\
981	nxge_rxdma_hw.h		\
982	nxge_txc.h		\
983	nxge_txc_hw.h		\
984	nxge_txdma.h		\
985	nxge_txdma_hw.h		\
986	nxge_virtual.h		\
987	nxge_espc.h
988
989include Makefile.syshdrs
990
991dcam/%.check:	dcam/%.h
992	$(DOT_H_CHECK)
993
994CHECKHDRS=						\
995	$($(MACH)_HDRS:%.h=%.check)			\
996	$(AUDIOHDRS:%.h=audio/%.check)			\
997	$(BSCHDRS:%.h=%.check)				\
998	$(CHKHDRS:%.h=%.check)				\
999	$(CPUDRVHDRS:%.h=%.check)			\
1000	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1001	$(DCAMHDRS:%.h=dcam/%.check)			\
1002	$(IBHDRS:%.h=ib/%.check)			\
1003	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1004	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1005	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1006	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1007	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1008	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1009	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1010	$(ISOHDRS:%.h=iso/%.check)			\
1011	$(FMHDRS:%.h=fm/%.check)			\
1012	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1013	$(FMIOHDRS:%.h=fm/io/%.check)			\
1014	$(FSHDRS:%.h=fs/%.check)			\
1015	$(LVMHDRS:%.h=lvm/%.check)			\
1016	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1017	$(SCSIHDRS:%.h=scsi/%.check)			\
1018	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
1019	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1020	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1021	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1022	$(FCHDRS:%.h=fc4/%.check)			\
1023	$(SATAGENHDRS:%.h=sata/%.check)			\
1024	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1025	$(CONTRACTHDRS:%.h=contract/%.check)            \
1026	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1027	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1028	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1029	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1030	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1031	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1032	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1033	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1034	$(USBHDRS:%.h=usb/%.check)                      \
1035	$(I1394HDRS:%.h=1394/%.check)			\
1036	$(RSMHDRS:%.h=rsm/%.check)			\
1037	$(TSOLHDRS:%.h=tsol/%.check)			\
1038	$(NXGEHDRS:%.h=nxge/%.check)
1039
1040
1041.KEEP_STATE:
1042
1043.PARALLEL:			\
1044	$(CHECKHDRS)		\
1045	$(ROOTHDRS)		\
1046	$(ROOTAUDHDRS)		\
1047	$(ROOTCRYPTOHDRS)	\
1048	$(ROOTDCAMHDRS)		\
1049	$(ROOTISOHDRS)		\
1050	$(ROOTFMHDRS)		\
1051	$(ROOTFMIOHDRS)		\
1052	$(ROOTFMFSHDRS)		\
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
1088
1089install_h:			\
1090	$(ROOTDIRS)		\
1091	LVMDERIVED_H		\
1092	.WAIT			\
1093	$(ROOTHDRS)		\
1094	$(ROOTAUDHDRS)		\
1095	$(ROOTCRYPTOHDRS)	\
1096	$(ROOTDCAMHDRS)		\
1097	$(ROOTISOHDRS)		\
1098	$(ROOTFMHDRS)		\
1099	$(ROOTFMFSHDRS)		\
1100	$(ROOTFMIOHDRS)		\
1101	$(ROOTFSHDRS)		\
1102	$(ROOTIBDHDRS)		\
1103	$(ROOTIBHDRS)		\
1104	$(ROOTIBTLHDRS)		\
1105	$(ROOTIBTLIMPLHDRS)	\
1106	$(ROOTIBNEXHDRS)	\
1107	$(ROOTIBMGTHDRS)	\
1108	$(ROOTIBMFHDRS)		\
1109	$(ROOTTAVORHDRS)	\
1110	$(ROOTLVMHDRS)		\
1111	$(ROOTPCMCIAHDRS)	\
1112	$(ROOTSCSIHDRS)		\
1113	$(ROOTSCSICONFHDRS)	\
1114	$(ROOTSCSIGENHDRS)	\
1115	$(ROOTSCSIIMPLHDRS)	\
1116	$(ROOTSCSIVHCIHDRS)	\
1117	$(ROOTFCHDRS)		\
1118	$(ROOTSYSEVENTHDRS)     \
1119	$(ROOTCONTRACTHDRS)     \
1120	$(ROOTUSBHDRS)		\
1121	$(ROOTUSBAUDHDRS)	\
1122	$(ROOTUSBHUBDHDRS)	\
1123	$(ROOTUSBHIDHDRS)	\
1124	$(ROOTUSBMSHDRS)	\
1125	$(ROOTUSBPRNHDRS)       \
1126	$(ROOTUSBCDCHDRS)       \
1127	$(ROOTUSBVIDHDRS)       \
1128	$(ROOTUGENHDRS)		\
1129	$(ROOT1394HDRS)         \
1130	$(ROOTHOTPLUGHDRS)	\
1131	$(ROOTHOTPLUGPCIHDRS)	\
1132	$(ROOTRSMHDRS)		\
1133	$(ROOTTSOLHDRS)		\
1134	$($(MACH)_ROOTHDRS)
1135
1136all_h: $(GENHDRS)
1137
1138priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1139	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1140
1141priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1142	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1143
1144LVMDERIVED_H:
1145	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1146
1147check:	$(CHECKHDRS)
1148
1149FRC:
1150
1151# EXPORT DELETE START
1152EXPORT_SRC:
1153	$(RM) wanboot_impl.h+ Makefile+
1154	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1155		< wanboot_impl.h > wanboot_impl.h+
1156	$(MV) wanboot_impl.h+ wanboot_impl.h
1157	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1158		< Makefile > Makefile+
1159	$(RM) Makefile
1160	$(MV) Makefile+ Makefile
1161	$(CHMOD) 444 Makefile wanboot_impl.h
1162# EXPORT DELETE END
1163