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