xref: /titanic_50/usr/src/uts/common/sys/Makefile (revision e07d9cb85217949d497b02d7211de8a197d2f2eb)
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
613CRYPTOHDRS=			\
614	elfsign.h		\
615	ioctl.h			\
616	ioctladmin.h		\
617	common.h		\
618	impl.h			\
619	spi.h			\
620	api.h			\
621	ops_impl.h		\
622	sched_impl.h
623
624DCAMHDRS=			\
625	dcam1394_io.h
626
627IBHDRS=			\
628	ib_types.h	\
629	ib_pkt_hdrs.h
630
631IBTLHDRS=		\
632	ibtl_types.h	\
633	ibtl_status.h	\
634	ibti.h		\
635	ibti_cm.h	\
636	ibci.h		\
637	ibti_common.h	\
638	ibvti.h		\
639	ibtl_ci_types.h
640
641IBTLIMPLHDRS=		\
642	ibtl_util.h
643
644IBNEXHDRS=		\
645	ibnex_devctl.h
646
647IBMFHDRS=		\
648	ibmf.h		\
649	ibmf_msg.h	\
650	ibmf_saa.h	\
651	ibmf_utils.h
652
653IBMGTHDRS=		\
654	ib_dm_attr.h	\
655	ib_mad.h	\
656	sm_attr.h	\
657	sa_recs.h
658
659IBDHDRS=		\
660	ibd.h
661
662ISOHDRS=			\
663	signal_iso.h
664
665DERIVED_LVMHDRS=	\
666	md_mdiox.h		\
667	md_basic.h		\
668	mdmed.h			\
669	md_mhdx.h		\
670	mdmn_commd.h
671
672LVMHDRS=			\
673	md_convert.h		\
674	md_crc.h		\
675	md_hotspares.h		\
676	md_mddb.h		\
677	md_mirror.h		\
678	md_mirror_shared.h	\
679	md_names.h		\
680	md_notify.h		\
681	md_raid.h		\
682	md_rename.h		\
683	md_sp.h			\
684	md_stripe.h		\
685	md_trans.h		\
686	mdio.h			\
687	mdvar.h
688
689ALL_LVMHDRS=			\
690	$(LVMHDRS)		\
691	$(DERIVED_LVMHDRS)
692
693FMHDRS=				\
694	protocol.h		\
695	util.h
696
697FMFSHDRS=			\
698	zfs.h
699
700FMIOHDRS=			\
701	ddi.h			\
702	disk.h			\
703	pci.h			\
704	scsi.h			\
705	sun4upci.h		\
706	opl_mc_fm.h
707
708FSHDRS=				\
709	autofs.h		\
710	cachefs_dir.h		\
711	cachefs_dlog.h		\
712	cachefs_filegrp.h	\
713	cachefs_fs.h		\
714	cachefs_fscache.h	\
715	cachefs_ioctl.h		\
716	cachefs_log.h		\
717	dv_node.h		\
718	sdev_impl.h		\
719	sdev_node.h		\
720	fifonode.h		\
721	hsfs_isospec.h		\
722	hsfs_node.h		\
723	hsfs_rrip.h		\
724	hsfs_spec.h		\
725	hsfs_susp.h		\
726	lofs_info.h		\
727	lofs_node.h		\
728	mntdata.h		\
729	namenode.h		\
730	pc_dir.h		\
731	pc_fs.h			\
732	pc_label.h		\
733	pc_node.h		\
734	pxfs_ki.h		\
735	snode.h			\
736	swapnode.h		\
737	tmp.h			\
738	tmpnode.h		\
739	udf_inode.h		\
740	udf_volume.h		\
741	ufs_acl.h		\
742	ufs_bio.h		\
743	ufs_filio.h		\
744	ufs_fs.h		\
745	ufs_fsdir.h		\
746	ufs_inode.h		\
747	ufs_lockfs.h		\
748	ufs_log.h		\
749	ufs_mount.h		\
750	ufs_panic.h		\
751	ufs_prot.h		\
752	ufs_quota.h		\
753	ufs_snap.h              \
754	ufs_trans.h		\
755	zfs.h
756
757PCMCIAHDRS=		\
758	pcata.h		\
759	pcgld.h		\
760	pcramio.h	\
761	pcramvar.h	\
762	pcser_conf.h	\
763	pcser_io.h	\
764	pcser_reg.h	\
765	pcser_manuspec.h \
766	pcser_var.h
767
768SCSIHDRS=		\
769	scsi.h		\
770	scsi_address.h	\
771	scsi_ctl.h	\
772	scsi_params.h	\
773	scsi_pkt.h	\
774	scsi_resource.h	\
775	scsi_types.h	\
776	scsi_watch.h
777
778SCSICONFHDRS=		\
779	autoconf.h	\
780	device.h
781
782SCSIGENHDRS=		\
783	commands.h	\
784	dad_mode.h	\
785	inquiry.h	\
786	message.h	\
787	mode.h		\
788	sense.h		\
789	status.h
790
791SCSIIMPLHDRS=		\
792	commands.h	\
793	inquiry.h	\
794	mode.h		\
795	sense.h		\
796	services.h	\
797	status.h	\
798	transport.h	\
799	scsi_reset_notify.h \
800	types.h		\
801	uscsi.h
802
803SCSITARGETSHDRS=	\
804	ses.h		\
805	sesio.h		\
806	sgendef.h	\
807	stdef.h		\
808	sddef.h
809
810SCSICADHDRS=
811
812SCSIVHCIHDRS=		\
813	scsi_vhci.h	\
814	mpapi_impl.h	\
815	mpapi_scsi_vhci.h
816
817FCHDRS=			\
818	fc_transport.h	\
819	linkapp.h	\
820	fc.h		\
821	fcp.h		\
822	fcal_transport.h \
823	fcal.h		\
824	fcal_linkapp.h	\
825	fcio.h
826
827SATAGENHDRS=		\
828	sata_hba.h	\
829	sata_defs.h	\
830	sata_cfgadm.h
831
832SYSEVENTHDRS=		\
833	acpiev.h	\
834	ap_driver.h     \
835	dev.h		\
836	domain.h        \
837	dr.h            \
838	env.h           \
839	eventdefs.h	\
840	ipmp.h		\
841	svm.h
842
843CONTRACTHDRS=		\
844	process.h	\
845	process_impl.h
846
847USBHDRS=	\
848	usba.h	\
849	usbai.h
850
851USBAUDHDRS=           \
852	usb_audio.h
853
854USBHUBDHDRS=		\
855	hub.h		\
856	hubd_impl.h
857
858USBHIDHDRS=		\
859	hid.h
860
861USBMSHDRS=		\
862	usb_bulkonly.h	\
863	usb_cbi.h
864
865USBPRNHDRS=           \
866	usb_printer.h
867
868USBCDCHDRS=		\
869	usb_cdc.h
870
871USBVIDHDRS=           \
872	usbvc.h
873
874UGENHDRS=           \
875	usb_ugen.h
876
877HOTPLUGHDRS=	\
878	hpcsvc.h	\
879	hpctrl.h
880
881HOTPLUGPCIHDRS=	\
882	pcicfg.h	\
883	pcihp.h
884
885RSMHDRS= \
886	rsm.h	\
887	rsm_common.h	\
888	rsmapi_common.h \
889	rsmpi.h	\
890	rsmpi_driver.h	\
891	rsmka_path_int.h
892
893TSOLHDRS=		\
894	label.h		\
895	label_macro.h	\
896	priv.h		\
897	tndb.h		\
898	tsyscall.h
899
900I1394HDRS=		\
901	cmd1394.h	\
902	id1394.h	\
903	ieee1212.h	\
904	ieee1394.h	\
905	ixl1394.h	\
906	s1394_impl.h	\
907	t1394.h
908
909# "cmdk" headers used on sparc
910SDKTPHDRS=		\
911	dadkio.h	\
912	fdisk.h
913
914# "cmdk" headers used on i386
915DKTPHDRS=		\
916	altsctr.h	\
917	bbh.h		\
918	cm.h		\
919	cmdev.h		\
920	cmdk.h		\
921	cmpkt.h		\
922	controller.h	\
923	dadev.h		\
924	dadk.h		\
925	dadkio.h	\
926	fctypes.h	\
927	fdisk.h		\
928	flowctrl.h	\
929	gda.h		\
930	quetypes.h	\
931	queue.h		\
932	tgcom.h		\
933	tgdk.h
934
935# "pc" header files used on i386
936PCHDRS=			\
937	avintr.h	\
938	dma_engine.h	\
939	i8272A.h	\
940	pcic_reg.h	\
941	pcic_var.h	\
942	pic.h		\
943	pit.h		\
944	rtc.h
945
946NXGEHDRS=			\
947	nxge.h			\
948	nxge_common.h		\
949	nxge_common_impl.h	\
950	nxge_defs.h		\
951	nxge_hw.h		\
952	nxge_impl.h		\
953	nxge_ipp.h		\
954	nxge_ipp_hw.h		\
955	nxge_mac.h		\
956	nxge_mac_hw.h		\
957	nxge_fflp.h		\
958	nxge_fflp_hw.h		\
959	nxge_mii.h		\
960	nxge_rxdma.h		\
961	nxge_rxdma_hw.h		\
962	nxge_txc.h		\
963	nxge_txc_hw.h		\
964	nxge_txdma.h		\
965	nxge_txdma_hw.h		\
966	nxge_virtual.h		\
967	nxge_espc.h
968
969include Makefile.syshdrs
970
971dcam/%.check:	dcam/%.h
972	$(DOT_H_CHECK)
973
974CHECKHDRS=						\
975	$($(MACH)_HDRS:%.h=%.check)			\
976	$(AUDIOHDRS:%.h=audio/%.check)			\
977	$(BSCHDRS:%.h=%.check)				\
978	$(CHKHDRS:%.h=%.check)				\
979	$(CRYPTOHDRS:%.h=crypto/%.check)		\
980	$(DCAMHDRS:%.h=dcam/%.check)			\
981	$(IBHDRS:%.h=ib/%.check)			\
982	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
983	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
984	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
985	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
986	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
987	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
988	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
989	$(ISOHDRS:%.h=iso/%.check)			\
990	$(FMHDRS:%.h=fm/%.check)			\
991	$(FMFSHDRS:%.h=fm/fs/%.check)			\
992	$(FMIOHDRS:%.h=fm/io/%.check)			\
993	$(FSHDRS:%.h=fs/%.check)			\
994	$(LVMHDRS:%.h=lvm/%.check)			\
995	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
996	$(SCSIHDRS:%.h=scsi/%.check)			\
997	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
998	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
999	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1000	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1001	$(FCHDRS:%.h=fc4/%.check)			\
1002	$(SATAGENHDRS:%.h=sata/%.check)			\
1003	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1004	$(CONTRACTHDRS:%.h=contract/%.check)            \
1005	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1006	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1007	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1008	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1009	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1010	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1011	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1012	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1013	$(USBHDRS:%.h=usb/%.check)                      \
1014	$(I1394HDRS:%.h=1394/%.check)			\
1015	$(RSMHDRS:%.h=rsm/%.check)			\
1016	$(TSOLHDRS:%.h=tsol/%.check)			\
1017	$(NXGEHDRS:%.h=nxge/%.check)
1018
1019
1020.KEEP_STATE:
1021
1022.PARALLEL:			\
1023	$(CHECKHDRS)		\
1024	$(ROOTHDRS)		\
1025	$(ROOTAUDHDRS)		\
1026	$(ROOTCRYPTOHDRS)	\
1027	$(ROOTDCAMHDRS)		\
1028	$(ROOTISOHDRS)		\
1029	$(ROOTFMHDRS)		\
1030	$(ROOTFMIOHDRS)		\
1031	$(ROOTFMFSHDRS)		\
1032	$(ROOTFSHDRS)		\
1033	$(ROOTIBDHDRS)		\
1034	$(ROOTIBHDRS)		\
1035	$(ROOTIBTLHDRS)		\
1036	$(ROOTIBTLIMPLHDRS)	\
1037	$(ROOTIBNEXHDRS)	\
1038	$(ROOTIBMGTHDRS)	\
1039	$(ROOTIBMFHDRS)		\
1040	$(ROOTTAVORHDRS)	\
1041	$(ROOTLVMHDRS)		\
1042	$(ROOTPCMCIAHDRS)	\
1043	$(ROOTSCSIHDRS)		\
1044	$(ROOTSCSICONFHDRS)	\
1045	$(ROOTSCSIGENHDRS)	\
1046	$(ROOTSCSIIMPLHDRS)	\
1047	$(ROOTSCSIVHCIHDRS)	\
1048	$(ROOTFCHDRS)		\
1049	$(ROOTSYSEVENTHDRS)     \
1050	$(ROOTCONTRACTHDRS)     \
1051	$(ROOTUSBHDRS)		\
1052	$(ROOTUSBAUDHDRS)	\
1053	$(ROOTUSBHUBDHDRS)	\
1054	$(ROOTUSBHIDHDRS)	\
1055	$(ROOTUSBMSHDRS)	\
1056	$(ROOTUSBPRNHDRS)       \
1057	$(ROOTUSBCDCHDRS)       \
1058	$(ROOTUSBVIDHDRS)       \
1059	$(ROOTUGENHDRS)		\
1060	$(ROOT1394HDRS)         \
1061	$(ROOTHOTPLUGHDRS)	\
1062	$(ROOTHOTPLUGPCIHDRS)	\
1063	$(ROOTRSMHDRS)		\
1064	$(ROOTTSOLHDRS)		\
1065	$($(MACH)_ROOTHDRS)
1066
1067
1068install_h:			\
1069	$(ROOTDIRS)		\
1070	LVMDERIVED_H		\
1071	.WAIT			\
1072	$(ROOTHDRS)		\
1073	$(ROOTAUDHDRS)		\
1074	$(ROOTCRYPTOHDRS)	\
1075	$(ROOTDCAMHDRS)		\
1076	$(ROOTISOHDRS)		\
1077	$(ROOTFMHDRS)		\
1078	$(ROOTFMFSHDRS)		\
1079	$(ROOTFMIOHDRS)		\
1080	$(ROOTFSHDRS)		\
1081	$(ROOTIBDHDRS)		\
1082	$(ROOTIBHDRS)		\
1083	$(ROOTIBTLHDRS)		\
1084	$(ROOTIBTLIMPLHDRS)	\
1085	$(ROOTIBNEXHDRS)	\
1086	$(ROOTIBMGTHDRS)	\
1087	$(ROOTIBMFHDRS)		\
1088	$(ROOTTAVORHDRS)	\
1089	$(ROOTLVMHDRS)		\
1090	$(ROOTPCMCIAHDRS)	\
1091	$(ROOTSCSIHDRS)		\
1092	$(ROOTSCSICONFHDRS)	\
1093	$(ROOTSCSIGENHDRS)	\
1094	$(ROOTSCSIIMPLHDRS)	\
1095	$(ROOTSCSIVHCIHDRS)	\
1096	$(ROOTFCHDRS)		\
1097	$(ROOTSYSEVENTHDRS)     \
1098	$(ROOTCONTRACTHDRS)     \
1099	$(ROOTUSBHDRS)		\
1100	$(ROOTUSBAUDHDRS)	\
1101	$(ROOTUSBHUBDHDRS)	\
1102	$(ROOTUSBHIDHDRS)	\
1103	$(ROOTUSBMSHDRS)	\
1104	$(ROOTUSBPRNHDRS)       \
1105	$(ROOTUSBCDCHDRS)       \
1106	$(ROOTUSBVIDHDRS)       \
1107	$(ROOTUGENHDRS)		\
1108	$(ROOT1394HDRS)         \
1109	$(ROOTHOTPLUGHDRS)	\
1110	$(ROOTHOTPLUGPCIHDRS)	\
1111	$(ROOTRSMHDRS)		\
1112	$(ROOTTSOLHDRS)		\
1113	$($(MACH)_ROOTHDRS)
1114
1115all_h: $(GENHDRS)
1116
1117priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1118	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1119
1120priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1121	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1122
1123LVMDERIVED_H:
1124	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1125
1126check:	$(CHECKHDRS)
1127
1128FRC:
1129
1130# EXPORT DELETE START
1131EXPORT_SRC:
1132	$(RM) wanboot_impl.h+ Makefile+
1133	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1134		< wanboot_impl.h > wanboot_impl.h+
1135	$(MV) wanboot_impl.h+ wanboot_impl.h
1136	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1137		< Makefile > Makefile+
1138	$(RM) Makefile
1139	$(MV) Makefile+ Makefile
1140	$(CHMOD) 444 Makefile wanboot_impl.h
1141# EXPORT DELETE END
1142