xref: /titanic_50/usr/src/uts/common/sys/Makefile (revision dc20a3024900c47dd2ee44b9707e6df38f7d62a5)
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	smp_frames.h	\
809	status.h
810
811SCSIIMPLHDRS=		\
812	commands.h	\
813	inquiry.h	\
814	mode.h		\
815	sas_transport.h	\
816	sense.h		\
817	services.h	\
818	status.h	\
819	transport.h	\
820	scsi_reset_notify.h \
821	types.h		\
822	uscsi.h		\
823	usmp.h
824
825SCSITARGETSHDRS=	\
826	ses.h		\
827	sesio.h		\
828	sgendef.h	\
829	stdef.h		\
830	sddef.h		\
831	smp.h
832
833SCSICADHDRS=
834
835SCSIVHCIHDRS=		\
836	scsi_vhci.h	\
837	mpapi_impl.h	\
838	mpapi_scsi_vhci.h
839
840FCHDRS=			\
841	fc_transport.h	\
842	linkapp.h	\
843	fc.h		\
844	fcp.h		\
845	fcal_transport.h \
846	fcal.h		\
847	fcal_linkapp.h	\
848	fcio.h
849
850SATAGENHDRS=		\
851	sata_hba.h	\
852	sata_defs.h	\
853	sata_cfgadm.h
854
855SYSEVENTHDRS=		\
856	acpiev.h	\
857	ap_driver.h     \
858	dev.h		\
859	domain.h        \
860	dr.h            \
861	env.h           \
862	eventdefs.h	\
863	ipmp.h		\
864	svm.h
865
866CONTRACTHDRS=		\
867	process.h	\
868	process_impl.h	\
869	device.h	\
870	device_impl.h
871
872USBHDRS=	\
873	usba.h	\
874	usbai.h
875
876USBAUDHDRS=           \
877	usb_audio.h
878
879USBHUBDHDRS=		\
880	hub.h		\
881	hubd_impl.h
882
883USBHIDHDRS=		\
884	hid.h
885
886USBMSHDRS=		\
887	usb_bulkonly.h	\
888	usb_cbi.h
889
890USBPRNHDRS=           \
891	usb_printer.h
892
893USBCDCHDRS=		\
894	usb_cdc.h
895
896USBVIDHDRS=           \
897	usbvc.h
898
899UGENHDRS=           \
900	usb_ugen.h
901
902HOTPLUGHDRS=	\
903	hpcsvc.h	\
904	hpctrl.h
905
906HOTPLUGPCIHDRS=	\
907	pcicfg.h	\
908	pcihp.h
909
910RSMHDRS= \
911	rsm.h	\
912	rsm_common.h	\
913	rsmapi_common.h \
914	rsmpi.h	\
915	rsmpi_driver.h	\
916	rsmka_path_int.h
917
918TSOLHDRS=		\
919	label.h		\
920	label_macro.h	\
921	priv.h		\
922	tndb.h		\
923	tsyscall.h
924
925I1394HDRS=		\
926	cmd1394.h	\
927	id1394.h	\
928	ieee1212.h	\
929	ieee1394.h	\
930	ixl1394.h	\
931	s1394_impl.h	\
932	t1394.h
933
934# "cmdk" headers used on sparc
935SDKTPHDRS=		\
936	dadkio.h	\
937	fdisk.h
938
939# "cmdk" headers used on i386
940DKTPHDRS=		\
941	altsctr.h	\
942	bbh.h		\
943	cm.h		\
944	cmdev.h		\
945	cmdk.h		\
946	cmpkt.h		\
947	controller.h	\
948	dadev.h		\
949	dadk.h		\
950	dadkio.h	\
951	fctypes.h	\
952	fdisk.h		\
953	flowctrl.h	\
954	gda.h		\
955	quetypes.h	\
956	queue.h		\
957	tgcom.h		\
958	tgdk.h
959
960# "pc" header files used on i386
961PCHDRS=			\
962	avintr.h	\
963	dma_engine.h	\
964	i8272A.h	\
965	pcic_reg.h	\
966	pcic_var.h	\
967	pic.h		\
968	pit.h		\
969	rtc.h
970
971NXGEHDRS=			\
972	nxge.h			\
973	nxge_common.h		\
974	nxge_common_impl.h	\
975	nxge_defs.h		\
976	nxge_hw.h		\
977	nxge_impl.h		\
978	nxge_ipp.h		\
979	nxge_ipp_hw.h		\
980	nxge_mac.h		\
981	nxge_mac_hw.h		\
982	nxge_fflp.h		\
983	nxge_fflp_hw.h		\
984	nxge_mii.h		\
985	nxge_rxdma.h		\
986	nxge_rxdma_hw.h		\
987	nxge_txc.h		\
988	nxge_txc_hw.h		\
989	nxge_txdma.h		\
990	nxge_txdma_hw.h		\
991	nxge_virtual.h		\
992	nxge_espc.h
993
994include Makefile.syshdrs
995
996dcam/%.check:	dcam/%.h
997	$(DOT_H_CHECK)
998
999CHECKHDRS=						\
1000	$($(MACH)_HDRS:%.h=%.check)			\
1001	$(AUDIOHDRS:%.h=audio/%.check)			\
1002	$(BSCHDRS:%.h=%.check)				\
1003	$(CHKHDRS:%.h=%.check)				\
1004	$(CPUDRVHDRS:%.h=%.check)			\
1005	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1006	$(DCAMHDRS:%.h=dcam/%.check)			\
1007	$(IBHDRS:%.h=ib/%.check)			\
1008	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1009	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1010	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1011	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1012	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1013	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1014	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1015	$(ISOHDRS:%.h=iso/%.check)			\
1016	$(FMHDRS:%.h=fm/%.check)			\
1017	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1018	$(FMIOHDRS:%.h=fm/io/%.check)			\
1019	$(FSHDRS:%.h=fs/%.check)			\
1020	$(LVMHDRS:%.h=lvm/%.check)			\
1021	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1022	$(SCSIHDRS:%.h=scsi/%.check)			\
1023	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
1024	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1025	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1026	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1027	$(FCHDRS:%.h=fc4/%.check)			\
1028	$(SATAGENHDRS:%.h=sata/%.check)			\
1029	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1030	$(CONTRACTHDRS:%.h=contract/%.check)            \
1031	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1032	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1033	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1034	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1035	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1036	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1037	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1038	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1039	$(USBHDRS:%.h=usb/%.check)                      \
1040	$(I1394HDRS:%.h=1394/%.check)			\
1041	$(RSMHDRS:%.h=rsm/%.check)			\
1042	$(TSOLHDRS:%.h=tsol/%.check)			\
1043	$(NXGEHDRS:%.h=nxge/%.check)
1044
1045
1046.KEEP_STATE:
1047
1048.PARALLEL:			\
1049	$(CHECKHDRS)		\
1050	$(ROOTHDRS)		\
1051	$(ROOTAUDHDRS)		\
1052	$(ROOTCRYPTOHDRS)	\
1053	$(ROOTDCAMHDRS)		\
1054	$(ROOTISOHDRS)		\
1055	$(ROOTFMHDRS)		\
1056	$(ROOTFMIOHDRS)		\
1057	$(ROOTFMFSHDRS)		\
1058	$(ROOTFSHDRS)		\
1059	$(ROOTIBDHDRS)		\
1060	$(ROOTIBHDRS)		\
1061	$(ROOTIBTLHDRS)		\
1062	$(ROOTIBTLIMPLHDRS)	\
1063	$(ROOTIBNEXHDRS)	\
1064	$(ROOTIBMGTHDRS)	\
1065	$(ROOTIBMFHDRS)		\
1066	$(ROOTTAVORHDRS)	\
1067	$(ROOTLVMHDRS)		\
1068	$(ROOTPCMCIAHDRS)	\
1069	$(ROOTSCSIHDRS)		\
1070	$(ROOTSCSICONFHDRS)	\
1071	$(ROOTSCSIGENHDRS)	\
1072	$(ROOTSCSIIMPLHDRS)	\
1073	$(ROOTSCSIVHCIHDRS)	\
1074	$(ROOTFCHDRS)		\
1075	$(ROOTSYSEVENTHDRS)     \
1076	$(ROOTCONTRACTHDRS)     \
1077	$(ROOTUSBHDRS)		\
1078	$(ROOTUSBAUDHDRS)	\
1079	$(ROOTUSBHUBDHDRS)	\
1080	$(ROOTUSBHIDHDRS)	\
1081	$(ROOTUSBMSHDRS)	\
1082	$(ROOTUSBPRNHDRS)       \
1083	$(ROOTUSBCDCHDRS)       \
1084	$(ROOTUSBVIDHDRS)       \
1085	$(ROOTUGENHDRS)		\
1086	$(ROOT1394HDRS)         \
1087	$(ROOTHOTPLUGHDRS)	\
1088	$(ROOTHOTPLUGPCIHDRS)	\
1089	$(ROOTRSMHDRS)		\
1090	$(ROOTTSOLHDRS)		\
1091	$($(MACH)_ROOTHDRS)
1092
1093
1094install_h:			\
1095	$(ROOTDIRS)		\
1096	LVMDERIVED_H		\
1097	.WAIT			\
1098	$(ROOTHDRS)		\
1099	$(ROOTAUDHDRS)		\
1100	$(ROOTCRYPTOHDRS)	\
1101	$(ROOTDCAMHDRS)		\
1102	$(ROOTISOHDRS)		\
1103	$(ROOTFMHDRS)		\
1104	$(ROOTFMFSHDRS)		\
1105	$(ROOTFMIOHDRS)		\
1106	$(ROOTFSHDRS)		\
1107	$(ROOTIBDHDRS)		\
1108	$(ROOTIBHDRS)		\
1109	$(ROOTIBTLHDRS)		\
1110	$(ROOTIBTLIMPLHDRS)	\
1111	$(ROOTIBNEXHDRS)	\
1112	$(ROOTIBMGTHDRS)	\
1113	$(ROOTIBMFHDRS)		\
1114	$(ROOTTAVORHDRS)	\
1115	$(ROOTLVMHDRS)		\
1116	$(ROOTPCMCIAHDRS)	\
1117	$(ROOTSCSIHDRS)		\
1118	$(ROOTSCSICONFHDRS)	\
1119	$(ROOTSCSIGENHDRS)	\
1120	$(ROOTSCSIIMPLHDRS)	\
1121	$(ROOTSCSIVHCIHDRS)	\
1122	$(ROOTFCHDRS)		\
1123	$(ROOTSYSEVENTHDRS)     \
1124	$(ROOTCONTRACTHDRS)     \
1125	$(ROOTUSBHDRS)		\
1126	$(ROOTUSBAUDHDRS)	\
1127	$(ROOTUSBHUBDHDRS)	\
1128	$(ROOTUSBHIDHDRS)	\
1129	$(ROOTUSBMSHDRS)	\
1130	$(ROOTUSBPRNHDRS)       \
1131	$(ROOTUSBCDCHDRS)       \
1132	$(ROOTUSBVIDHDRS)       \
1133	$(ROOTUGENHDRS)		\
1134	$(ROOT1394HDRS)         \
1135	$(ROOTHOTPLUGHDRS)	\
1136	$(ROOTHOTPLUGPCIHDRS)	\
1137	$(ROOTRSMHDRS)		\
1138	$(ROOTTSOLHDRS)		\
1139	$($(MACH)_ROOTHDRS)
1140
1141all_h: $(GENHDRS)
1142
1143priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1144	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1145
1146priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1147	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1148
1149LVMDERIVED_H:
1150	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1151
1152check:	$(CHECKHDRS)
1153
1154FRC:
1155
1156# EXPORT DELETE START
1157EXPORT_SRC:
1158	$(RM) wanboot_impl.h+ Makefile+
1159	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1160		< wanboot_impl.h > wanboot_impl.h+
1161	$(MV) wanboot_impl.h+ wanboot_impl.h
1162	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1163		< Makefile > Makefile+
1164	$(RM) Makefile
1165	$(MV) Makefile+ Makefile
1166	$(CHMOD) 444 Makefile wanboot_impl.h
1167# EXPORT DELETE END
1168