Makefile revision 3227:9602d8b74112
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
845USBCDCHDRS=		\
846	usbcdc.h
847
848UGENHDRS=           \
849	usb_ugen.h
850
851HOTPLUGHDRS=	\
852	hpcsvc.h	\
853	hpctrl.h
854
855HOTPLUGPCIHDRS=	\
856	pcicfg.h	\
857	pcihp.h
858
859RSMHDRS= \
860	rsm.h	\
861	rsm_common.h	\
862	rsmapi_common.h \
863	rsmpi.h	\
864	rsmpi_driver.h	\
865	rsmka_path_int.h
866
867TSOLHDRS=		\
868	label.h		\
869	label_macro.h	\
870	priv.h		\
871	tndb.h		\
872	tsyscall.h
873
874I1394HDRS=		\
875	cmd1394.h	\
876	id1394.h	\
877	ieee1212.h	\
878	ieee1394.h	\
879	ixl1394.h	\
880	s1394_impl.h	\
881	t1394.h
882
883# "cmdk" headers used on sparc
884SDKTPHDRS=		\
885	dadkio.h	\
886	fdisk.h
887
888# "cmdk" headers used on i386
889DKTPHDRS=		\
890	altsctr.h	\
891	bbh.h		\
892	cm.h		\
893	cmdev.h		\
894	cmdk.h		\
895	cmpkt.h		\
896	controller.h	\
897	dadev.h		\
898	dadk.h		\
899	dadkio.h	\
900	fctypes.h	\
901	fdisk.h		\
902	flowctrl.h	\
903	gda.h		\
904	quetypes.h	\
905	queue.h		\
906	tgcom.h		\
907	tgdk.h
908
909# "pc" header files used on i386
910PCHDRS=			\
911	avintr.h	\
912	dma_engine.h	\
913	i8272A.h	\
914	pcic_reg.h	\
915	pcic_var.h	\
916	pic.h		\
917	pit.h		\
918	rtc.h
919
920# I2O header files (currently used only on i386)
921I2OHDRS=		\
922	i2oadptr.h	\
923	i2obscsi.h	\
924	i2oexec.h	\
925	i2omsg.h	\
926	i2omstr.h	\
927	i2outil.h
928
929include Makefile.syshdrs
930
931dcam/%.check:	dcam/%.h
932	$(DOT_H_CHECK)
933
934CHECKHDRS=						\
935	$($(MACH)_HDRS:%.h=%.check)			\
936	$(AUDIOHDRS:%.h=audio/%.check)			\
937	$(BSCHDRS:%.h=%.check)				\
938	$(CHKHDRS:%.h=%.check)				\
939	$(CRYPTOHDRS:%.h=crypto/%.check)		\
940	$(DCAMHDRS:%.h=dcam/%.check)			\
941	$(IBHDRS:%.h=ib/%.check)			\
942	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
943	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
944	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
945	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
946	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
947	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
948	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
949	$(ISOHDRS:%.h=iso/%.check)			\
950	$(FMHDRS:%.h=fm/%.check)			\
951	$(FMFSHDRS:%.h=fm/fs/%.check)			\
952	$(FMIOHDRS:%.h=fm/io/%.check)			\
953	$(FSHDRS:%.h=fs/%.check)			\
954	$(LVMHDRS:%.h=lvm/%.check)			\
955	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
956	$(SCSIHDRS:%.h=scsi/%.check)			\
957	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
958	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
959	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
960	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
961	$(FCHDRS:%.h=fc4/%.check)			\
962	$(SATAGENHDRS:%.h=sata/%.check)			\
963	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
964	$(CONTRACTHDRS:%.h=contract/%.check)            \
965	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
966	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
967	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
968	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
969	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
970	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
971	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
972	$(USBHDRS:%.h=usb/%.check)                      \
973	$(I1394HDRS:%.h=1394/%.check)			\
974	$(RSMHDRS:%.h=rsm/%.check)			\
975	$(TSOLHDRS:%.h=tsol/%.check)
976
977
978.KEEP_STATE:
979
980.PARALLEL:			\
981	$(CHECKHDRS)		\
982	$(ROOTHDRS)		\
983	$(ROOTAUDHDRS)		\
984	$(ROOTCRYPTOHDRS)	\
985	$(ROOTDCAMHDRS)		\
986	$(ROOTISOHDRS)		\
987	$(ROOTFMHDRS)		\
988	$(ROOTFMIOHDRS)		\
989	$(ROOTFMFSHDRS)		\
990	$(ROOTFSHDRS)		\
991	$(ROOTIBDHDRS)		\
992	$(ROOTIBHDRS)		\
993	$(ROOTIBTLHDRS)		\
994	$(ROOTIBTLIMPLHDRS)	\
995	$(ROOTIBNEXHDRS)	\
996	$(ROOTIBMGTHDRS)	\
997	$(ROOTIBMFHDRS)		\
998	$(ROOTTAVORHDRS)	\
999	$(ROOTLVMHDRS)		\
1000	$(ROOTPCMCIAHDRS)	\
1001	$(ROOTSCSIHDRS)		\
1002	$(ROOTSCSICONFHDRS)	\
1003	$(ROOTSCSIGENHDRS)	\
1004	$(ROOTSCSIIMPLHDRS)	\
1005	$(ROOTSCSIVHCIHDRS)	\
1006	$(ROOTFCHDRS)		\
1007	$(ROOTSYSEVENTHDRS)     \
1008	$(ROOTCONTRACTHDRS)     \
1009	$(ROOTUSBHDRS)		\
1010	$(ROOTUSBAUDHDRS)	\
1011	$(ROOTUSBHUBDHDRS)	\
1012	$(ROOTUSBHIDHDRS)	\
1013	$(ROOTUSBMSHDRS)	\
1014	$(ROOTUSBPRNHDRS)       \
1015	$(ROOTUSBCDCHDRS)       \
1016	$(ROOTUGENHDRS)		\
1017	$(ROOT1394HDRS)         \
1018	$(ROOTHOTPLUGHDRS)	\
1019	$(ROOTHOTPLUGPCIHDRS)	\
1020	$(ROOTRSMHDRS)		\
1021	$(ROOTTSOLHDRS)		\
1022	$($(MACH)_ROOTHDRS)
1023
1024
1025install_h:			\
1026	$(ROOTDIRS)		\
1027	LVMDERIVED_H		\
1028	.WAIT			\
1029	$(ROOTHDRS)		\
1030	$(ROOTAUDHDRS)		\
1031	$(ROOTCRYPTOHDRS)	\
1032	$(ROOTDCAMHDRS)		\
1033	$(ROOTISOHDRS)		\
1034	$(ROOTFMHDRS)		\
1035	$(ROOTFMFSHDRS)		\
1036	$(ROOTFMIOHDRS)		\
1037	$(ROOTFSHDRS)		\
1038	$(ROOTIBDHDRS)		\
1039	$(ROOTIBHDRS)		\
1040	$(ROOTIBTLHDRS)		\
1041	$(ROOTIBTLIMPLHDRS)	\
1042	$(ROOTIBNEXHDRS)	\
1043	$(ROOTIBMGTHDRS)	\
1044	$(ROOTIBMFHDRS)		\
1045	$(ROOTTAVORHDRS)	\
1046	$(ROOTLVMHDRS)		\
1047	$(ROOTPCMCIAHDRS)	\
1048	$(ROOTSCSIHDRS)		\
1049	$(ROOTSCSICONFHDRS)	\
1050	$(ROOTSCSIGENHDRS)	\
1051	$(ROOTSCSIIMPLHDRS)	\
1052	$(ROOTSCSIVHCIHDRS)	\
1053	$(ROOTFCHDRS)		\
1054	$(ROOTSYSEVENTHDRS)     \
1055	$(ROOTCONTRACTHDRS)     \
1056	$(ROOTUSBHDRS)		\
1057	$(ROOTUSBAUDHDRS)	\
1058	$(ROOTUSBHUBDHDRS)	\
1059	$(ROOTUSBHIDHDRS)	\
1060	$(ROOTUSBMSHDRS)	\
1061	$(ROOTUSBPRNHDRS)       \
1062	$(ROOTUSBCDCHDRS)       \
1063	$(ROOTUGENHDRS)		\
1064	$(ROOT1394HDRS)         \
1065	$(ROOTHOTPLUGHDRS)	\
1066	$(ROOTHOTPLUGPCIHDRS)	\
1067	$(ROOTRSMHDRS)		\
1068	$(ROOTTSOLHDRS)		\
1069	$($(MACH)_ROOTHDRS)
1070
1071all_h: $(GENHDRS)
1072
1073priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1074	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1075
1076priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1077	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1078
1079LVMDERIVED_H:
1080	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1081
1082check:	$(CHECKHDRS)
1083
1084FRC:
1085
1086# EXPORT DELETE START
1087EXPORT_SRC:
1088	$(RM) wanboot_impl.h+ Makefile+
1089	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1090		< wanboot_impl.h > wanboot_impl.h+
1091	$(MV) wanboot_impl.h+ wanboot_impl.h
1092	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1093		< Makefile > Makefile+
1094	$(RM) Makefile
1095	$(MV) Makefile+ Makefile
1096	$(CHMOD) 444 Makefile wanboot_impl.h
1097# EXPORT DELETE END
1098