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