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