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