xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 59ac0c1669407488b67ae9e273667a340dccc611)
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	aggr.h			\
80	aggr_impl.h		\
81	aio.h			\
82	aio_impl.h		\
83	aio_req.h		\
84	aiocb.h			\
85	ascii.h			\
86	asynch.h		\
87	atomic.h		\
88	audio.h			\
89	audiodebug.h		\
90	audioio.h		\
91	audiovar.h		\
92	autoconf.h		\
93	auxv.h			\
94	auxv_386.h		\
95	auxv_SPARC.h		\
96	avl.h			\
97	avl_impl.h		\
98	battery.h		\
99	bitmap.h		\
100	bitset.h		\
101	bl.h			\
102	bmc_intf.h		\
103	bofi.h			\
104	bofi_impl.h		\
105	bpp_io.h		\
106	bootstat.h		\
107	brand.h			\
108	buf.h			\
109	bufmod.h		\
110	bustypes.h		\
111	byteorder.h		\
112	callb.h			\
113	callo.h			\
114	cpucaps.h		\
115	cpucaps_impl.h		\
116	ccompile.h		\
117	cdio.h			\
118	cladm.h			\
119	class.h			\
120	clconf.h		\
121	cmlb.h			\
122	cmn_err.h		\
123	compress.h		\
124	condvar.h		\
125	condvar_impl.h		\
126	conf.h			\
127	consdev.h		\
128	console.h		\
129	contract.h		\
130	contract_impl.h		\
131	copyops.h		\
132	core.h			\
133	corectl.h		\
134	cpc_impl.h		\
135	cpc_pcbe.h		\
136	cpr.h			\
137	cpupart.h		\
138	cpuvar.h		\
139	crc32.h			\
140	cred.h			\
141	cred_impl.h		\
142	crtctl.h		\
143	cryptmod.h		\
144	csiioctl.h		\
145	ctf.h			\
146	ctfs.h			\
147	ctfs_impl.h		\
148	ctf_api.h		\
149	ctype.h			\
150	cyclic.h		\
151	cyclic_impl.h		\
152	dacf.h			\
153	dacf_impl.h		\
154	dc_ki.h			\
155	ddi.h			\
156	ddifm.h			\
157	ddifm_impl.h		\
158	ddi_intr.h		\
159	ddi_intr_impl.h		\
160	ddi_impldefs.h		\
161	ddi_implfuncs.h		\
162	ddi_obsolete.h		\
163	ddidevmap.h		\
164	ddidmareq.h		\
165	ddimapreq.h		\
166	ddipropdefs.h		\
167	dditypes.h		\
168	debug.h			\
169	des.h			\
170	devctl.h		\
171	devcache.h		\
172	devcache_impl.h		\
173	devid_cache.h		\
174	devinfo_impl.h		\
175	devops.h		\
176	devpolicy.h		\
177	devpoll.h		\
178	dirent.h		\
179	disp.h			\
180	dkbad.h			\
181	dkio.h			\
182	dklabel.h		\
183	dl.h			\
184	dlpi.h			\
185	dld.h			\
186	dld_impl.h		\
187	dls.h			\
188	dls_impl.h		\
189	dma_i8237A.h            \
190	dnlc.h			\
191	door.h			\
192	door_data.h		\
193	door_impl.h		\
194	dtrace.h		\
195	dtrace_impl.h		\
196	dumpadm.h		\
197	dumphdr.h		\
198	ecppsys.h		\
199	ecppio.h                \
200	ecppreg.h               \
201	ecppvar.h               \
202	efi_partition.h		\
203	elf.h			\
204	elf_386.h		\
205	elf_SPARC.h		\
206	elf_notes.h		\
207	elf_amd64.h		\
208	elftypes.h		\
209	emul64.h		\
210	emul64cmd.h		\
211	emul64var.h		\
212	epm.h			\
213	errno.h			\
214	errorq.h		\
215	errorq_impl.h		\
216	esunddi.h		\
217	ethernet.h		\
218	euc.h			\
219	eucioctl.h		\
220	exacct.h		\
221	exacct_catalog.h	\
222	exacct_impl.h		\
223	exec.h			\
224	exechdr.h		\
225	fault.h			\
226	fasttrap.h		\
227	fasttrap_impl.h		\
228	fbio.h			\
229	fbuf.h			\
230	fcntl.h			\
231	fdbuffer.h		\
232	fdio.h			\
233	feature_tests.h		\
234	fem.h			\
235	file.h			\
236	filio.h			\
237	flock.h			\
238	flock_impl.h		\
239	fork.h			\
240	fss.h			\
241	fsspriocntl.h		\
242	fsid.h			\
243	fssnap.h                \
244	fssnap_if.h             \
245	fstyp.h			\
246	ftrace.h		\
247	fx.h			\
248	fxpriocntl.h		\
249	gfs.h			\
250	gld.h			\
251	gldpriv.h		\
252	group.h			\
253	hdio.h			\
254	hook.h			\
255	hook_event.h		\
256	hook_impl.h		\
257	hwconf.h		\
258	ia.h			\
259	iapriocntl.h		\
260	id32.h			\
261	idmap.h 		\
262	ieeefp.h		\
263	id_space.h		\
264	instance.h		\
265	int_const.h		\
266	int_fmtio.h		\
267	int_limits.h		\
268	int_types.h		\
269	inttypes.h		\
270	ioccom.h		\
271	ioctl.h			\
272	ipc.h			\
273	ipc_impl.h		\
274	ipc_rctl.h		\
275	isa_defs.h		\
276	iscsi_authclient.h	\
277	iscsi_authclientglue.h	\
278	iscsi_protocol.h	\
279	jioctl.h		\
280	kbd.h			\
281	kbdreg.h		\
282	kbio.h			\
283	kcpc.h			\
284	kdi.h			\
285	kdi_impl.h		\
286	kidmap.h		\
287	klwp.h			\
288	kmdb.h			\
289	kmem.h			\
290	kmem_impl.h		\
291	kobj.h			\
292	kobj_impl.h		\
293	kstat.h			\
294	kstr.h			\
295	ksyms.h			\
296	ksynch.h		\
297	ldterm.h		\
298	lgrp.h			\
299	lgrp_user.h		\
300	libc_kernel.h		\
301	link.h			\
302	list.h			\
303	list_impl.h		\
304	llc1.h			\
305	loadavg.h		\
306	lock.h			\
307	lockfs.h		\
308	lockstat.h		\
309	lofi.h			\
310	log.h			\
311	logindmux.h		\
312	logindmux_impl.h	\
313	lwp.h			\
314	lwp_timer_impl.h	\
315	lwp_upimutex_impl.h	\
316	mac.h			\
317	mac_impl.h		\
318	map.h			\
319	md4.h			\
320	md5.h			\
321	md5_consts.h		\
322	mdi_impldefs.h		\
323	mem.h			\
324	mem_config.h		\
325	memlist.h		\
326	mkdev.h			\
327	mhd.h			\
328	miiregs.h		\
329	mixer.h			\
330	mman.h			\
331	mntent.h		\
332	mntio.h			\
333	mnttab.h		\
334	modctl.h		\
335	mode.h			\
336	model.h			\
337	modhash.h		\
338	modhash_impl.h		\
339	mount.h			\
340	mouse.h			\
341	msacct.h		\
342	msg.h			\
343	msg_impl.h		\
344	msio.h			\
345	msreg.h			\
346	mtio.h			\
347	multidata.h		\
348	multidata_impl.h	\
349	mutex.h			\
350	nbmlock.h		\
351	ndifm.h		\
352	ndi_impldefs.h		\
353	netconfig.h		\
354	neti.h			\
355	netstack.h		\
356	nexusdefs.h		\
357	note.h			\
358	nvpair.h                \
359	nvpair_impl.h           \
360	objfs.h			\
361	objfs_impl.h		\
362	ontrap.h                \
363	open.h			\
364	openpromio.h		\
365	panic.h			\
366	param.h			\
367	pathconf.h		\
368	pathname.h		\
369	pattr.h			\
370	queue.h			\
371	serializer.h		\
372	pbio.h			\
373	pccard.h		\
374	pci.h			\
375	pcie.h			\
376	pci_impl.h		\
377	pcmcia.h		\
378	pctypes.h		\
379	pem.h			\
380	pfmod.h			\
381	pg.h			\
382	pghw.h			\
383	physmem.h		\
384	pm.h			\
385	policy.h		\
386	poll.h			\
387	poll_impl.h		\
388	pool.h			\
389	pool_impl.h		\
390	pool_pset.h		\
391	port.h			\
392	port_impl.h		\
393	port_kernel.h		\
394	ppmio.h                 \
395	priocntl.h		\
396	priv.h			\
397	priv_impl.h		\
398	prnio.h			\
399	proc.h			\
400	processor.h		\
401	procfs.h		\
402	procset.h		\
403	project.h		\
404	protosw.h		\
405	prsystm.h		\
406	pset.h			\
407	pshot.h			\
408	ptem.h			\
409	ptms.h			\
410	ptyvar.h		\
411	raidioctl.h		\
412	ramdisk.h		\
413	random.h		\
414	rctl.h			\
415	rctl_impl.h		\
416	reboot.h		\
417	refstr.h		\
418	refstr_impl.h		\
419	resource.h		\
420	rlioctl.h		\
421	rt.h			\
422	rtpriocntl.h		\
423	rwlock.h		\
424	rwlock_impl.h		\
425	rwstlock.h		\
426	sad.h			\
427	schedctl.h		\
428	sdt.h			\
429	select.h		\
430	sem.h			\
431	sem_impl.h		\
432	sema_impl.h		\
433	semaphore.h		\
434	sendfile.h		\
435	ser_sync.h		\
436	session.h		\
437	sha1.h			\
438	sha1_consts.h		\
439	sha2.h			\
440	sha2_consts.h		\
441	share.h			\
442	shm.h			\
443	shm_impl.h		\
444	sid.h			\
445	siginfo.h		\
446	signal.h		\
447	sleepq.h		\
448	smbios.h		\
449	smbios_impl.h		\
450	sobject.h		\
451	socket.h		\
452	socket_impl.h		\
453	socketvar.h		\
454	sockio.h		\
455	squeue.h		\
456	squeue_impl.h		\
457	sservice.h		\
458	stat.h			\
459	statfs.h		\
460	statvfs.h		\
461	stdint.h		\
462	stermio.h		\
463	stream.h		\
464	strft.h			\
465	strlog.h		\
466	strmdep.h		\
467	stropts.h		\
468	strredir.h		\
469	strstat.h		\
470	strsubr.h		\
471	strsun.h		\
472	strtty.h		\
473	sunddi.h		\
474	sunldi.h		\
475	sunldi_impl.h		\
476	sunmdi.h		\
477	sunndi.h		\
478	sunos_dhcp_class.h	\
479	sunpm.h			\
480	suntpi.h		\
481	suntty.h		\
482	swap.h			\
483	synch.h			\
484	syscall.h		\
485	sysconf.h		\
486	sysconfig.h		\
487	sysevent.h		\
488	sysevent_impl.h         \
489	sysinfo.h		\
490	syslog.h		\
491	sysmacros.h		\
492	sysmsg_impl.h		\
493	systeminfo.h		\
494	systm.h			\
495	task.h			\
496	taskq.h			\
497	taskq_impl.h		\
498	t_kuser.h		\
499	t_lock.h		\
500	telioctl.h		\
501	termio.h		\
502	termios.h		\
503	termiox.h		\
504	thread.h		\
505	ticlts.h		\
506	ticots.h		\
507	ticotsord.h		\
508	tihdr.h			\
509	time.h			\
510	time_impl.h		\
511	time_std_impl.h		\
512	timeb.h			\
513	timer.h			\
514	times.h			\
515	timex.h			\
516	timod.h			\
517	tirdwr.h		\
518	tiuser.h		\
519	tl.h			\
520	tnf.h			\
521	tnf_com.h		\
522	tnf_probe.h		\
523	tnf_writer.h		\
524	todio.h			\
525	tpicommon.h		\
526	ts.h			\
527	tspriocntl.h		\
528	ttcompat.h		\
529	ttold.h			\
530	tty.h			\
531	ttychars.h		\
532	ttydev.h		\
533	tuneable.h		\
534	turnstile.h		\
535	types.h			\
536	types32.h		\
537	u8_textprep_data.h	\
538	uadmin.h		\
539	ucred.h			\
540	uio.h			\
541	ulimit.h		\
542	un.h			\
543	unistd.h		\
544	user.h			\
545	ustat.h			\
546	utime.h			\
547	utsname.h		\
548	utssys.h		\
549	uuid.h			\
550	va_impl.h		\
551	va_list.h		\
552	var.h			\
553	varargs.h		\
554	vfs.h			\
555	vfs_opreg.h		\
556	vfstab.h		\
557	vgareg.h		\
558	videodev2.h		\
559	visual_io.h		\
560	vlan.h			\
561	vm.h			\
562	vm_usage.h		\
563	vmem.h			\
564	vmem_impl.h		\
565	vmmeter.h		\
566	vmsystm.h		\
567	vnode.h			\
568	vtoc.h			\
569	vtrace.h		\
570	vuid_event.h		\
571	vuid_wheel.h		\
572	vuid_queue.h		\
573	vuid_state.h		\
574	vuid_store.h		\
575	wait.h			\
576	waitq.h			\
577	wanboot_impl.h		\
578	watchpoint.h		\
579	winlockio.h		\
580	zcons.h			\
581	zone.h			\
582	xti_inet.h		\
583	xti_osi.h		\
584	xti_xtiopt.h		\
585	zmod.h
586
587HDRS=				\
588	$(GENHDRS)		\
589	$(CHKHDRS)
590
591AUDIOHDRS=			\
592	ac97.h			\
593	am_src1.h		\
594	audio_apm.h		\
595	audio_mixer.h		\
596	audio_src.h		\
597	audio_support.h		\
598	audio_trace.h		\
599	g711.h
600
601BSCHDRS=			\
602	bscbus.h		\
603	bscv_impl.h		\
604	lom_ebuscodes.h		\
605	lom_io.h		\
606	lom_priv.h		\
607	lombus.h
608
609MDESCHDRS=			\
610	mdesc.h			\
611	mdesc_impl.h
612
613CPUDRVHDRS=			\
614	cpudrv.h
615
616CRYPTOHDRS=			\
617	elfsign.h		\
618	ioctl.h			\
619	ioctladmin.h		\
620	common.h		\
621	impl.h			\
622	spi.h			\
623	api.h			\
624	ops_impl.h		\
625	sched_impl.h
626
627DCAMHDRS=			\
628	dcam1394_io.h
629
630IBHDRS=			\
631	ib_types.h	\
632	ib_pkt_hdrs.h
633
634IBTLHDRS=		\
635	ibtl_types.h	\
636	ibtl_status.h	\
637	ibti.h		\
638	ibti_cm.h	\
639	ibci.h		\
640	ibti_common.h	\
641	ibvti.h		\
642	ibtl_ci_types.h
643
644IBTLIMPLHDRS=		\
645	ibtl_util.h
646
647IBNEXHDRS=		\
648	ibnex_devctl.h
649
650IBMFHDRS=		\
651	ibmf.h		\
652	ibmf_msg.h	\
653	ibmf_saa.h	\
654	ibmf_utils.h
655
656IBMGTHDRS=		\
657	ib_dm_attr.h	\
658	ib_mad.h	\
659	sm_attr.h	\
660	sa_recs.h
661
662IBDHDRS=		\
663	ibd.h
664
665ISOHDRS=			\
666	signal_iso.h
667
668DERIVED_LVMHDRS=	\
669	md_mdiox.h		\
670	md_basic.h		\
671	mdmed.h			\
672	md_mhdx.h		\
673	mdmn_commd.h
674
675LVMHDRS=			\
676	md_convert.h		\
677	md_crc.h		\
678	md_hotspares.h		\
679	md_mddb.h		\
680	md_mirror.h		\
681	md_mirror_shared.h	\
682	md_names.h		\
683	md_notify.h		\
684	md_raid.h		\
685	md_rename.h		\
686	md_sp.h			\
687	md_stripe.h		\
688	md_trans.h		\
689	mdio.h			\
690	mdvar.h
691
692ALL_LVMHDRS=			\
693	$(LVMHDRS)		\
694	$(DERIVED_LVMHDRS)
695
696FMHDRS=				\
697	protocol.h		\
698	util.h
699
700FMFSHDRS=			\
701	zfs.h
702
703FMIOHDRS=			\
704	ddi.h			\
705	disk.h			\
706	pci.h			\
707	scsi.h			\
708	sun4upci.h		\
709	opl_mc_fm.h
710
711FSHDRS=				\
712	autofs.h		\
713	cachefs_dir.h		\
714	cachefs_dlog.h		\
715	cachefs_filegrp.h	\
716	cachefs_fs.h		\
717	cachefs_fscache.h	\
718	cachefs_ioctl.h		\
719	cachefs_log.h		\
720	dv_node.h		\
721	sdev_impl.h		\
722	sdev_node.h		\
723	fifonode.h		\
724	hsfs_isospec.h		\
725	hsfs_node.h		\
726	hsfs_rrip.h		\
727	hsfs_spec.h		\
728	hsfs_susp.h		\
729	lofs_info.h		\
730	lofs_node.h		\
731	mntdata.h		\
732	namenode.h		\
733	pc_dir.h		\
734	pc_fs.h			\
735	pc_label.h		\
736	pc_node.h		\
737	pxfs_ki.h		\
738	snode.h			\
739	swapnode.h		\
740	tmp.h			\
741	tmpnode.h		\
742	udf_inode.h		\
743	udf_volume.h		\
744	ufs_acl.h		\
745	ufs_bio.h		\
746	ufs_filio.h		\
747	ufs_fs.h		\
748	ufs_fsdir.h		\
749	ufs_inode.h		\
750	ufs_lockfs.h		\
751	ufs_log.h		\
752	ufs_mount.h		\
753	ufs_panic.h		\
754	ufs_prot.h		\
755	ufs_quota.h		\
756	ufs_snap.h              \
757	ufs_trans.h		\
758	zfs.h
759
760PCMCIAHDRS=		\
761	pcata.h		\
762	pcgld.h		\
763	pcramio.h	\
764	pcramvar.h	\
765	pcser_conf.h	\
766	pcser_io.h	\
767	pcser_reg.h	\
768	pcser_manuspec.h \
769	pcser_var.h
770
771SCSIHDRS=		\
772	scsi.h		\
773	scsi_address.h	\
774	scsi_ctl.h	\
775	scsi_params.h	\
776	scsi_pkt.h	\
777	scsi_resource.h	\
778	scsi_types.h	\
779	scsi_watch.h
780
781SCSICONFHDRS=		\
782	autoconf.h	\
783	device.h
784
785SCSIGENHDRS=		\
786	commands.h	\
787	dad_mode.h	\
788	inquiry.h	\
789	message.h	\
790	mode.h		\
791	sense.h		\
792	status.h
793
794SCSIIMPLHDRS=		\
795	commands.h	\
796	inquiry.h	\
797	mode.h		\
798	sense.h		\
799	services.h	\
800	status.h	\
801	transport.h	\
802	scsi_reset_notify.h \
803	types.h		\
804	uscsi.h
805
806SCSITARGETSHDRS=	\
807	ses.h		\
808	sesio.h		\
809	sgendef.h	\
810	stdef.h		\
811	sddef.h
812
813SCSICADHDRS=
814
815SCSIVHCIHDRS=		\
816	scsi_vhci.h	\
817	mpapi_impl.h	\
818	mpapi_scsi_vhci.h
819
820FCHDRS=			\
821	fc_transport.h	\
822	linkapp.h	\
823	fc.h		\
824	fcp.h		\
825	fcal_transport.h \
826	fcal.h		\
827	fcal_linkapp.h	\
828	fcio.h
829
830SATAGENHDRS=		\
831	sata_hba.h	\
832	sata_defs.h	\
833	sata_cfgadm.h
834
835SYSEVENTHDRS=		\
836	acpiev.h	\
837	ap_driver.h     \
838	dev.h		\
839	domain.h        \
840	dr.h            \
841	env.h           \
842	eventdefs.h	\
843	ipmp.h		\
844	svm.h
845
846CONTRACTHDRS=		\
847	process.h	\
848	process_impl.h
849
850USBHDRS=	\
851	usba.h	\
852	usbai.h
853
854USBAUDHDRS=           \
855	usb_audio.h
856
857USBHUBDHDRS=		\
858	hub.h		\
859	hubd_impl.h
860
861USBHIDHDRS=		\
862	hid.h
863
864USBMSHDRS=		\
865	usb_bulkonly.h	\
866	usb_cbi.h
867
868USBPRNHDRS=           \
869	usb_printer.h
870
871USBCDCHDRS=		\
872	usb_cdc.h
873
874USBVIDHDRS=           \
875	usbvc.h
876
877UGENHDRS=           \
878	usb_ugen.h
879
880HOTPLUGHDRS=	\
881	hpcsvc.h	\
882	hpctrl.h
883
884HOTPLUGPCIHDRS=	\
885	pcicfg.h	\
886	pcihp.h
887
888RSMHDRS= \
889	rsm.h	\
890	rsm_common.h	\
891	rsmapi_common.h \
892	rsmpi.h	\
893	rsmpi_driver.h	\
894	rsmka_path_int.h
895
896TSOLHDRS=		\
897	label.h		\
898	label_macro.h	\
899	priv.h		\
900	tndb.h		\
901	tsyscall.h
902
903I1394HDRS=		\
904	cmd1394.h	\
905	id1394.h	\
906	ieee1212.h	\
907	ieee1394.h	\
908	ixl1394.h	\
909	s1394_impl.h	\
910	t1394.h
911
912# "cmdk" headers used on sparc
913SDKTPHDRS=		\
914	dadkio.h	\
915	fdisk.h
916
917# "cmdk" headers used on i386
918DKTPHDRS=		\
919	altsctr.h	\
920	bbh.h		\
921	cm.h		\
922	cmdev.h		\
923	cmdk.h		\
924	cmpkt.h		\
925	controller.h	\
926	dadev.h		\
927	dadk.h		\
928	dadkio.h	\
929	fctypes.h	\
930	fdisk.h		\
931	flowctrl.h	\
932	gda.h		\
933	quetypes.h	\
934	queue.h		\
935	tgcom.h		\
936	tgdk.h
937
938# "pc" header files used on i386
939PCHDRS=			\
940	avintr.h	\
941	dma_engine.h	\
942	i8272A.h	\
943	pcic_reg.h	\
944	pcic_var.h	\
945	pic.h		\
946	pit.h		\
947	rtc.h
948
949NXGEHDRS=			\
950	nxge.h			\
951	nxge_common.h		\
952	nxge_common_impl.h	\
953	nxge_defs.h		\
954	nxge_hw.h		\
955	nxge_impl.h		\
956	nxge_ipp.h		\
957	nxge_ipp_hw.h		\
958	nxge_mac.h		\
959	nxge_mac_hw.h		\
960	nxge_fflp.h		\
961	nxge_fflp_hw.h		\
962	nxge_mii.h		\
963	nxge_rxdma.h		\
964	nxge_rxdma_hw.h		\
965	nxge_txc.h		\
966	nxge_txc_hw.h		\
967	nxge_txdma.h		\
968	nxge_txdma_hw.h		\
969	nxge_virtual.h		\
970	nxge_espc.h
971
972include Makefile.syshdrs
973
974dcam/%.check:	dcam/%.h
975	$(DOT_H_CHECK)
976
977CHECKHDRS=						\
978	$($(MACH)_HDRS:%.h=%.check)			\
979	$(AUDIOHDRS:%.h=audio/%.check)			\
980	$(BSCHDRS:%.h=%.check)				\
981	$(CHKHDRS:%.h=%.check)				\
982	$(CPUDRVHDRS:%.h=%.check)			\
983	$(CRYPTOHDRS:%.h=crypto/%.check)		\
984	$(DCAMHDRS:%.h=dcam/%.check)			\
985	$(IBHDRS:%.h=ib/%.check)			\
986	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
987	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
988	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
989	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
990	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
991	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
992	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
993	$(ISOHDRS:%.h=iso/%.check)			\
994	$(FMHDRS:%.h=fm/%.check)			\
995	$(FMFSHDRS:%.h=fm/fs/%.check)			\
996	$(FMIOHDRS:%.h=fm/io/%.check)			\
997	$(FSHDRS:%.h=fs/%.check)			\
998	$(LVMHDRS:%.h=lvm/%.check)			\
999	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1000	$(SCSIHDRS:%.h=scsi/%.check)			\
1001	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
1002	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1003	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1004	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1005	$(FCHDRS:%.h=fc4/%.check)			\
1006	$(SATAGENHDRS:%.h=sata/%.check)			\
1007	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1008	$(CONTRACTHDRS:%.h=contract/%.check)            \
1009	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1010	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1011	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1012	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1013	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1014	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1015	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1016	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1017	$(USBHDRS:%.h=usb/%.check)                      \
1018	$(I1394HDRS:%.h=1394/%.check)			\
1019	$(RSMHDRS:%.h=rsm/%.check)			\
1020	$(TSOLHDRS:%.h=tsol/%.check)			\
1021	$(NXGEHDRS:%.h=nxge/%.check)
1022
1023
1024.KEEP_STATE:
1025
1026.PARALLEL:			\
1027	$(CHECKHDRS)		\
1028	$(ROOTHDRS)		\
1029	$(ROOTAUDHDRS)		\
1030	$(ROOTCRYPTOHDRS)	\
1031	$(ROOTDCAMHDRS)		\
1032	$(ROOTISOHDRS)		\
1033	$(ROOTFMHDRS)		\
1034	$(ROOTFMIOHDRS)		\
1035	$(ROOTFMFSHDRS)		\
1036	$(ROOTFSHDRS)		\
1037	$(ROOTIBDHDRS)		\
1038	$(ROOTIBHDRS)		\
1039	$(ROOTIBTLHDRS)		\
1040	$(ROOTIBTLIMPLHDRS)	\
1041	$(ROOTIBNEXHDRS)	\
1042	$(ROOTIBMGTHDRS)	\
1043	$(ROOTIBMFHDRS)		\
1044	$(ROOTTAVORHDRS)	\
1045	$(ROOTLVMHDRS)		\
1046	$(ROOTPCMCIAHDRS)	\
1047	$(ROOTSCSIHDRS)		\
1048	$(ROOTSCSICONFHDRS)	\
1049	$(ROOTSCSIGENHDRS)	\
1050	$(ROOTSCSIIMPLHDRS)	\
1051	$(ROOTSCSIVHCIHDRS)	\
1052	$(ROOTFCHDRS)		\
1053	$(ROOTSYSEVENTHDRS)     \
1054	$(ROOTCONTRACTHDRS)     \
1055	$(ROOTUSBHDRS)		\
1056	$(ROOTUSBAUDHDRS)	\
1057	$(ROOTUSBHUBDHDRS)	\
1058	$(ROOTUSBHIDHDRS)	\
1059	$(ROOTUSBMSHDRS)	\
1060	$(ROOTUSBPRNHDRS)       \
1061	$(ROOTUSBCDCHDRS)       \
1062	$(ROOTUSBVIDHDRS)       \
1063	$(ROOTUGENHDRS)		\
1064	$(ROOT1394HDRS)         \
1065	$(ROOTHOTPLUGHDRS)	\
1066	$(ROOTHOTPLUGPCIHDRS)	\
1067	$(ROOTRSMHDRS)		\
1068	$(ROOTTSOLHDRS)		\
1069	$($(MACH)_ROOTHDRS)
1070
1071
1072install_h:			\
1073	$(ROOTDIRS)		\
1074	LVMDERIVED_H		\
1075	.WAIT			\
1076	$(ROOTHDRS)		\
1077	$(ROOTAUDHDRS)		\
1078	$(ROOTCRYPTOHDRS)	\
1079	$(ROOTDCAMHDRS)		\
1080	$(ROOTISOHDRS)		\
1081	$(ROOTFMHDRS)		\
1082	$(ROOTFMFSHDRS)		\
1083	$(ROOTFMIOHDRS)		\
1084	$(ROOTFSHDRS)		\
1085	$(ROOTIBDHDRS)		\
1086	$(ROOTIBHDRS)		\
1087	$(ROOTIBTLHDRS)		\
1088	$(ROOTIBTLIMPLHDRS)	\
1089	$(ROOTIBNEXHDRS)	\
1090	$(ROOTIBMGTHDRS)	\
1091	$(ROOTIBMFHDRS)		\
1092	$(ROOTTAVORHDRS)	\
1093	$(ROOTLVMHDRS)		\
1094	$(ROOTPCMCIAHDRS)	\
1095	$(ROOTSCSIHDRS)		\
1096	$(ROOTSCSICONFHDRS)	\
1097	$(ROOTSCSIGENHDRS)	\
1098	$(ROOTSCSIIMPLHDRS)	\
1099	$(ROOTSCSIVHCIHDRS)	\
1100	$(ROOTFCHDRS)		\
1101	$(ROOTSYSEVENTHDRS)     \
1102	$(ROOTCONTRACTHDRS)     \
1103	$(ROOTUSBHDRS)		\
1104	$(ROOTUSBAUDHDRS)	\
1105	$(ROOTUSBHUBDHDRS)	\
1106	$(ROOTUSBHIDHDRS)	\
1107	$(ROOTUSBMSHDRS)	\
1108	$(ROOTUSBPRNHDRS)       \
1109	$(ROOTUSBCDCHDRS)       \
1110	$(ROOTUSBVIDHDRS)       \
1111	$(ROOTUGENHDRS)		\
1112	$(ROOT1394HDRS)         \
1113	$(ROOTHOTPLUGHDRS)	\
1114	$(ROOTHOTPLUGPCIHDRS)	\
1115	$(ROOTRSMHDRS)		\
1116	$(ROOTTSOLHDRS)		\
1117	$($(MACH)_ROOTHDRS)
1118
1119all_h: $(GENHDRS)
1120
1121priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1122	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1123
1124priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1125	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1126
1127LVMDERIVED_H:
1128	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1129
1130check:	$(CHECKHDRS)
1131
1132FRC:
1133
1134# EXPORT DELETE START
1135EXPORT_SRC:
1136	$(RM) wanboot_impl.h+ Makefile+
1137	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1138		< wanboot_impl.h > wanboot_impl.h+
1139	$(MV) wanboot_impl.h+ wanboot_impl.h
1140	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1141		< Makefile > Makefile+
1142	$(RM) Makefile
1143	$(MV) Makefile+ Makefile
1144	$(CHMOD) 444 Makefile wanboot_impl.h
1145# EXPORT DELETE END
1146