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