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