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