xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision b9bd317cda1afb3a01f4812de73e8cec888cbbd7)
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	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	bitmap.h		\
101	bitset.h		\
102	bl.h			\
103	bmc_intf.h		\
104	bofi.h			\
105	bofi_impl.h		\
106	bpp_io.h		\
107	bootstat.h		\
108	brand.h			\
109	buf.h			\
110	bufmod.h		\
111	bustypes.h		\
112	byteorder.h		\
113	callb.h			\
114	callo.h			\
115	cpucaps.h		\
116	cpucaps_impl.h		\
117	ccompile.h		\
118	cdio.h			\
119	cladm.h			\
120	class.h			\
121	clconf.h		\
122	cmlb.h			\
123	cmn_err.h		\
124	compress.h		\
125	condvar.h		\
126	condvar_impl.h		\
127	conf.h			\
128	consdev.h		\
129	console.h		\
130	contract.h		\
131	contract_impl.h		\
132	copyops.h		\
133	core.h			\
134	corectl.h		\
135	cpc_impl.h		\
136	cpc_pcbe.h		\
137	cpr.h			\
138	cpupart.h		\
139	cpuvar.h		\
140	crc32.h			\
141	cred.h			\
142	cred_impl.h		\
143	crtctl.h		\
144	cryptmod.h		\
145	csiioctl.h		\
146	ctf.h			\
147	ctfs.h			\
148	ctfs_impl.h		\
149	ctf_api.h		\
150	ctype.h			\
151	cyclic.h		\
152	cyclic_impl.h		\
153	dacf.h			\
154	dacf_impl.h		\
155	dc_ki.h			\
156	ddi.h			\
157	ddifm.h			\
158	ddifm_impl.h		\
159	ddi_intr.h		\
160	ddi_intr_impl.h		\
161	ddi_impldefs.h		\
162	ddi_implfuncs.h		\
163	ddi_obsolete.h		\
164	ddi_timer.h		\
165	ddidevmap.h		\
166	ddidmareq.h		\
167	ddimapreq.h		\
168	ddipropdefs.h		\
169	dditypes.h		\
170	debug.h			\
171	des.h			\
172	devctl.h		\
173	devcache.h		\
174	devcache_impl.h		\
175	devid_cache.h		\
176	devinfo_impl.h		\
177	devops.h		\
178	devpolicy.h		\
179	devpoll.h		\
180	dirent.h		\
181	disp.h			\
182	dkbad.h			\
183	dkio.h			\
184	dklabel.h		\
185	dl.h			\
186	dlpi.h			\
187	dld.h			\
188	dld_impl.h		\
189	dls.h			\
190	dls_impl.h		\
191	dma_i8237A.h            \
192	dnlc.h			\
193	door.h			\
194	door_data.h		\
195	door_impl.h		\
196	dtrace.h		\
197	dtrace_impl.h		\
198	dumpadm.h		\
199	dumphdr.h		\
200	ecppsys.h		\
201	ecppio.h                \
202	ecppreg.h               \
203	ecppvar.h               \
204	efi_partition.h		\
205	elf.h			\
206	elf_386.h		\
207	elf_SPARC.h		\
208	elf_notes.h		\
209	elf_amd64.h		\
210	elftypes.h		\
211	emul64.h		\
212	emul64cmd.h		\
213	emul64var.h		\
214	epm.h			\
215	errno.h			\
216	errorq.h		\
217	errorq_impl.h		\
218	esunddi.h		\
219	ethernet.h		\
220	euc.h			\
221	eucioctl.h		\
222	exacct.h		\
223	exacct_catalog.h	\
224	exacct_impl.h		\
225	exec.h			\
226	exechdr.h		\
227	extdirent.h		\
228	fault.h			\
229	fasttrap.h		\
230	fasttrap_impl.h		\
231	fbio.h			\
232	fbuf.h			\
233	fcntl.h			\
234	fdbuffer.h		\
235	fdio.h			\
236	feature_tests.h		\
237	fem.h			\
238	file.h			\
239	filio.h			\
240	flock.h			\
241	flock_impl.h		\
242	fork.h			\
243	fss.h			\
244	fsspriocntl.h		\
245	fsid.h			\
246	fssnap.h                \
247	fssnap_if.h             \
248	fstyp.h			\
249	ftrace.h		\
250	fx.h			\
251	fxpriocntl.h		\
252	gfs.h			\
253	gld.h			\
254	gldpriv.h		\
255	group.h			\
256	hdio.h			\
257	hook.h			\
258	hook_event.h		\
259	hook_impl.h		\
260	hwconf.h		\
261	ia.h			\
262	iapriocntl.h		\
263	id32.h			\
264	idmap.h 		\
265	ieeefp.h		\
266	id_space.h		\
267	instance.h		\
268	int_const.h		\
269	int_fmtio.h		\
270	int_limits.h		\
271	int_types.h		\
272	inttypes.h		\
273	ioccom.h		\
274	ioctl.h			\
275	ipc.h			\
276	ipc_impl.h		\
277	ipc_rctl.h		\
278	isa_defs.h		\
279	iscsi_authclient.h	\
280	iscsi_authclientglue.h	\
281	iscsi_protocol.h	\
282	jioctl.h		\
283	kbd.h			\
284	kbdreg.h		\
285	kbio.h			\
286	kcpc.h			\
287	kdi.h			\
288	kdi_impl.h		\
289	kiconv.h		\
290	kiconv_big5_utf8.h	\
291	kiconv_cck_common.h	\
292	kiconv_cp950hkscs_utf8.h	\
293	kiconv_emea1.h		\
294	kiconv_emea2.h		\
295	kiconv_euckr_utf8.h	\
296	kiconv_euctw_utf8.h	\
297	kiconv_gb18030_utf8.h	\
298	kiconv_gb2312_utf8.h	\
299	kiconv_hkscs_utf8.h	\
300	kiconv_ja.h		\
301	kiconv_ja_jis_to_unicode.h	\
302	kiconv_ja_unicode_to_jis.h	\
303	kiconv_ko.h		\
304	kiconv_latin1.h		\
305	kiconv_sc.h		\
306	kiconv_tc.h		\
307	kiconv_uhc_utf8.h	\
308	kiconv_utf8_big5.h	\
309	kiconv_utf8_cp950hkscs.h	\
310	kiconv_utf8_euckr.h	\
311	kiconv_utf8_euctw.h	\
312	kiconv_utf8_gb18030.h	\
313	kiconv_utf8_gb2312.h	\
314	kiconv_utf8_hkscs.h	\
315	kiconv_utf8_uhc.h	\
316	kidmap.h		\
317	klpd.h			\
318	klwp.h			\
319	kmdb.h			\
320	kmem.h			\
321	kmem_impl.h		\
322	kobj.h			\
323	kobj_impl.h		\
324	kstat.h			\
325	kstr.h			\
326	ksyms.h			\
327	ksynch.h		\
328	ldterm.h		\
329	lgrp.h			\
330	lgrp_user.h		\
331	libc_kernel.h		\
332	link.h			\
333	list.h			\
334	list_impl.h		\
335	llc1.h			\
336	loadavg.h		\
337	lock.h			\
338	lockfs.h		\
339	lockstat.h		\
340	lofi.h			\
341	log.h			\
342	logindmux.h		\
343	logindmux_impl.h	\
344	lwp.h			\
345	lwp_timer_impl.h	\
346	lwp_upimutex_impl.h	\
347	mac.h			\
348	mac_impl.h		\
349	machelf.h		\
350	map.h			\
351	md4.h			\
352	md5.h			\
353	md5_consts.h		\
354	mdi_impldefs.h		\
355	mem.h			\
356	mem_config.h		\
357	memlist.h		\
358	mkdev.h			\
359	mhd.h			\
360	miiregs.h		\
361	mixer.h			\
362	mman.h			\
363	mntent.h		\
364	mntio.h			\
365	mnttab.h		\
366	modctl.h		\
367	mode.h			\
368	model.h			\
369	modhash.h		\
370	modhash_impl.h		\
371	mount.h			\
372	mouse.h			\
373	msacct.h		\
374	msg.h			\
375	msg_impl.h		\
376	msio.h			\
377	msreg.h			\
378	mtio.h			\
379	multidata.h		\
380	multidata_impl.h	\
381	mutex.h			\
382	nbmlock.h		\
383	ndifm.h		\
384	ndi_impldefs.h		\
385	net80211.h		\
386	net80211_crypto.h	\
387	net80211_proto.h	\
388	netconfig.h		\
389	neti.h			\
390	netstack.h		\
391	nexusdefs.h		\
392	note.h			\
393	nvpair.h                \
394	nvpair_impl.h           \
395	objfs.h			\
396	objfs_impl.h		\
397	ontrap.h                \
398	open.h			\
399	openpromio.h		\
400	panic.h			\
401	param.h			\
402	pathconf.h		\
403	pathname.h		\
404	pattr.h			\
405	queue.h			\
406	serializer.h		\
407	pbio.h			\
408	pccard.h		\
409	pci.h			\
410	pcie.h			\
411	pci_impl.h		\
412	pcmcia.h		\
413	pctypes.h		\
414	pem.h			\
415	pfmod.h			\
416	pg.h			\
417	pghw.h			\
418	physmem.h		\
419	pm.h			\
420	policy.h		\
421	poll.h			\
422	poll_impl.h		\
423	pool.h			\
424	pool_impl.h		\
425	pool_pset.h		\
426	port.h			\
427	port_impl.h		\
428	port_kernel.h		\
429	ppmio.h                 \
430	priocntl.h		\
431	priv.h			\
432	priv_impl.h		\
433	prnio.h			\
434	proc.h			\
435	processor.h		\
436	procfs.h		\
437	procset.h		\
438	project.h		\
439	protosw.h		\
440	prsystm.h		\
441	pset.h			\
442	pshot.h			\
443	ptem.h			\
444	ptms.h			\
445	ptyvar.h		\
446	raidioctl.h		\
447	ramdisk.h		\
448	random.h		\
449	rctl.h			\
450	rctl_impl.h		\
451	reboot.h		\
452	refstr.h		\
453	refstr_impl.h		\
454	resource.h		\
455	rlioctl.h		\
456	rt.h			\
457	rtpriocntl.h		\
458	rwlock.h		\
459	rwlock_impl.h		\
460	rwstlock.h		\
461	sad.h			\
462	schedctl.h		\
463	sdt.h			\
464	select.h		\
465	sem.h			\
466	sem_impl.h		\
467	sema_impl.h		\
468	semaphore.h		\
469	sendfile.h		\
470	ser_sync.h		\
471	session.h		\
472	sha1.h			\
473	sha1_consts.h		\
474	sha2.h			\
475	sha2_consts.h		\
476	share.h			\
477	shm.h			\
478	shm_impl.h		\
479	sid.h			\
480	siginfo.h		\
481	signal.h		\
482	sleepq.h		\
483	smbios.h		\
484	smbios_impl.h		\
485	sobject.h		\
486	socket.h		\
487	socket_impl.h		\
488	socketvar.h		\
489	sockio.h		\
490	sodirect.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