xref: /titanic_50/usr/src/uts/common/sys/Makefile (revision b1dd958f54f8bfa984d306bb8ca8264855761d7b)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 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	audio/audiovia823x.h	\
51	fd_debug.h		\
52	fdc.h			\
53	fdmedia.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	scsi/targets/ssddef.h	\
64	$(MDESCHDRS)		\
65	$(AVHDRS)
66
67# Generated headers
68GENHDRS=			\
69	priv_const.h		\
70	priv_names.h
71
72CHKHDRS=			\
73	acct.h			\
74	acctctl.h		\
75	acl.h			\
76	aggr.h			\
77	aggr_impl.h		\
78	aio.h			\
79	aio_impl.h		\
80	aio_req.h		\
81	aiocb.h			\
82	ascii.h			\
83	atomic.h		\
84	audio.h			\
85	audiodebug.h		\
86	audioio.h		\
87	audiovar.h		\
88	autoconf.h		\
89	auxv.h			\
90	auxv_386.h		\
91	auxv_SPARC.h		\
92	avl.h			\
93	avl_impl.h		\
94	battery.h		\
95	bitmap.h		\
96	bl.h			\
97	bofi.h			\
98	bofi_impl.h		\
99	bpp_io.h		\
100	bootstat.h		\
101	buf.h			\
102	bufmod.h		\
103	bustypes.h		\
104	byteorder.h		\
105	callb.h			\
106	callo.h			\
107	ccompile.h		\
108	cdio.h			\
109	chip.h			\
110	cladm.h			\
111	class.h			\
112	clconf.h		\
113	cmn_err.h		\
114	compress.h		\
115	condvar.h		\
116	condvar_impl.h		\
117	conf.h			\
118	consdev.h		\
119	console.h		\
120	contract.h		\
121	contract_impl.h		\
122	copyops.h		\
123	core.h			\
124	corectl.h		\
125	cpc_impl.h		\
126	cpc_pcbe.h		\
127	cpr.h			\
128	cpupart.h		\
129	cpuvar.h		\
130	crc32.h			\
131	cred.h			\
132	cred_impl.h		\
133	crtctl.h		\
134	cryptmod.h		\
135	csiioctl.h		\
136	ctf.h			\
137	ctfs.h			\
138	ctfs_impl.h		\
139	ctf_api.h		\
140	ctype.h			\
141	cyclic.h		\
142	cyclic_impl.h		\
143	dacf.h			\
144	dacf_impl.h		\
145	dc_ki.h			\
146	ddi.h			\
147	ddifm.h			\
148	ddifm_impl.h		\
149	ddi_intr.h		\
150	ddi_intr_impl.h		\
151	ddi_impldefs.h		\
152	ddi_implfuncs.h		\
153	ddidevmap.h		\
154	ddidmareq.h		\
155	ddimapreq.h		\
156	ddipropdefs.h		\
157	dditypes.h		\
158	debug.h			\
159	des.h			\
160	devctl.h		\
161	devctl_impl.h		\
162	devinfo_impl.h		\
163	devops.h		\
164	devpolicy.h		\
165	devpoll.h		\
166	dirent.h		\
167	disp.h			\
168	dkbad.h			\
169	dkio.h			\
170	dklabel.h		\
171	dl.h			\
172	dlpi.h			\
173	dld.h			\
174	dld_impl.h		\
175	dls.h			\
176	dls_impl.h		\
177	dma_i8237A.h            \
178	dnlc.h			\
179	door.h			\
180	door_data.h		\
181	door_impl.h		\
182	dtrace.h		\
183	dtrace_impl.h		\
184	dumpadm.h		\
185	dumphdr.h		\
186	ecppsys.h		\
187	ecppio.h                \
188	ecppreg.h               \
189	ecppvar.h               \
190	efi_partition.h		\
191	elf.h			\
192	elf_386.h		\
193	elf_M32.h		\
194	elf_SPARC.h		\
195	elf_ia64.h		\
196	elf_notes.h		\
197	elf_amd64.h		\
198	elftypes.h		\
199	emul64.h		\
200	emul64cmd.h		\
201	emul64var.h		\
202	epm.h			\
203	errno.h			\
204	errorq.h		\
205	errorq_impl.h		\
206	esunddi.h		\
207	ethernet.h		\
208	euc.h			\
209	eucioctl.h		\
210	exacct.h		\
211	exacct_catalog.h	\
212	exacct_impl.h		\
213	exec.h			\
214	exechdr.h		\
215	fault.h			\
216	fasttrap.h		\
217	fasttrap_impl.h		\
218	fbio.h			\
219	fbuf.h			\
220	fcntl.h			\
221	fdbuffer.h		\
222	fdio.h			\
223	feature_tests.h		\
224	fem.h			\
225	file.h			\
226	filio.h			\
227	flock.h			\
228	flock_impl.h		\
229	fss.h			\
230	fsspriocntl.h		\
231	fsid.h			\
232	fssnap.h                \
233	fssnap_if.h             \
234	fstyp.h			\
235	ftrace.h		\
236	fx.h			\
237	fxpriocntl.h		\
238	gfs.h			\
239	ght.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	ioreq.h			\
258	ipc.h			\
259	ipc_impl.h		\
260	isa_defs.h		\
261	jioctl.h		\
262	kbd.h			\
263	kbdreg.h		\
264	kbio.h			\
265	kcpc.h			\
266	kdi.h			\
267	kdi_impl.h		\
268	klwp.h			\
269	kmdb.h			\
270	kmem.h			\
271	kmem_impl.h		\
272	kobj.h			\
273	kobj_impl.h		\
274	kstat.h			\
275	kstr.h			\
276	ksyms.h			\
277	ksynch.h		\
278	ldterm.h		\
279	lgrp.h			\
280	lgrp_user.h		\
281	link.h			\
282	list.h			\
283	list_impl.h		\
284	llc1.h			\
285	llc2.h			\
286	loadavg.h		\
287	lock.h			\
288	lockfs.h		\
289	lockstat.h		\
290	lofi.h			\
291	log.h			\
292	logindmux.h		\
293	logindmux_impl.h	\
294	lwp.h			\
295	lwp_timer_impl.h	\
296	lwp_upimutex_impl.h	\
297	mac.h			\
298	mac_impl.h		\
299	map.h			\
300	md5.h			\
301	md5_consts.h		\
302	mdi_impldefs.h		\
303	mem.h			\
304	mem_config.h		\
305	memlist.h		\
306	mkdev.h			\
307	mhd.h			\
308	miiregs.h		\
309	mixer.h			\
310	mman.h			\
311	mntent.h		\
312	mntio.h			\
313	mnttab.h		\
314	modctl.h		\
315	mode.h			\
316	model.h			\
317	modhash.h		\
318	modhash_impl.h		\
319	mount.h			\
320	msacct.h		\
321	msg.h			\
322	msg_impl.h		\
323	msio.h			\
324	msreg.h			\
325	mtio.h			\
326	multidata.h		\
327	multidata_impl.h	\
328	mutex.h			\
329	nbmlock.h		\
330	ndifm.h		\
331	ndi_impldefs.h		\
332	netconfig.h		\
333	nexusdefs.h		\
334	nexusintr.h		\
335	note.h			\
336	nvpair.h                \
337	nvpair_impl.h           \
338	objfs.h			\
339	objfs_impl.h		\
340	ontrap.h                \
341	open.h			\
342	openpromio.h		\
343	panic.h			\
344	param.h			\
345	pathconf.h		\
346	pathname.h		\
347	pattr.h			\
348	serializer.h		\
349	pbio.h			\
350	pccard.h		\
351	pci.h			\
352	pci_impl.h		\
353	pcmcia.h		\
354	pctypes.h		\
355	pem.h			\
356	pfmod.h			\
357	phx.h			\
358	pm.h			\
359	policy.h		\
360	poll.h			\
361	poll_impl.h		\
362	pool.h			\
363	pool_impl.h		\
364	pool_pset.h		\
365	port.h			\
366	port_impl.h		\
367	port_kernel.h		\
368	ppmio.h                 \
369	priocntl.h		\
370	priv.h			\
371	priv_impl.h		\
372	prnio.h			\
373	proc.h			\
374	processor.h		\
375	procfs.h		\
376	procset.h		\
377	project.h		\
378	protosw.h		\
379	prsystm.h		\
380	pset.h			\
381	pshot.h			\
382	ptem.h			\
383	ptms.h			\
384	ptyvar.h		\
385	raidioctl.h		\
386	ramdisk.h		\
387	random.h		\
388	rctl.h			\
389	rctl_impl.h		\
390	reboot.h		\
391	refstr.h		\
392	refstr_impl.h		\
393	resource.h		\
394	rlioctl.h		\
395	rt.h			\
396	rtpriocntl.h		\
397	rwlock.h		\
398	rwlock_impl.h		\
399	rwstlock.h		\
400	sad.h			\
401	schedctl.h		\
402	sdt.h			\
403	select.h		\
404	sem.h			\
405	sem_impl.h		\
406	sema_impl.h		\
407	semaphore.h		\
408	sendfile.h		\
409	ser_sync.h		\
410	session.h		\
411	sha1.h			\
412	sha1_consts.h		\
413	sha2.h			\
414	sha2_consts.h		\
415	share.h			\
416	shm.h			\
417	shm_impl.h		\
418	siginfo.h		\
419	signal.h		\
420	sleepq.h		\
421	sobject.h		\
422	socket.h		\
423	socket_impl.h		\
424	socketvar.h		\
425	sockio.h		\
426	squeue.h		\
427	squeue_impl.h		\
428	sservice.h		\
429	stat.h			\
430	statfs.h		\
431	statvfs.h		\
432	stdint.h		\
433	stermio.h		\
434	stream.h		\
435	strft.h			\
436	strlog.h		\
437	strmdep.h		\
438	stropts.h		\
439	strredir.h		\
440	strstat.h		\
441	strsubr.h		\
442	strsun.h		\
443	strtty.h		\
444	sunddi.h		\
445	sunldi.h		\
446	sunldi_impl.h		\
447	sunmdi.h		\
448	sunndi.h		\
449	sunos_dhcp_class.h	\
450	sunpm.h			\
451	suntpi.h		\
452	suntty.h		\
453	swap.h			\
454	synch.h			\
455	syscall.h		\
456	sysconf.h		\
457	sysconfig.h		\
458	sysevent.h	\
459	sysevent_impl.h         \
460	sysinfo.h		\
461	syslog.h		\
462	sysmacros.h		\
463	sysmsg_impl.h		\
464	systeminfo.h		\
465	systm.h			\
466	task.h			\
467	taskq.h			\
468	taskq_impl.h		\
469	t_kuser.h		\
470	t_lock.h		\
471	telioctl.h		\
472	termio.h		\
473	termios.h		\
474	termiox.h		\
475	thread.h		\
476	ticlts.h		\
477	ticots.h		\
478	ticotsord.h		\
479	tihdr.h			\
480	time.h			\
481	time_impl.h		\
482	time_std_impl.h		\
483	timeb.h			\
484	timer.h			\
485	times.h			\
486	timex.h			\
487	timod.h			\
488	tirdwr.h		\
489	tiuser.h		\
490	tl.h			\
491	tnf.h			\
492	tnf_com.h		\
493	tnf_probe.h		\
494	tnf_writer.h		\
495	todio.h			\
496	tpicommon.h		\
497	ts.h			\
498	tspriocntl.h		\
499	ttcompat.h		\
500	ttold.h			\
501	tty.h			\
502	ttychars.h		\
503	ttydev.h		\
504	tuneable.h		\
505	turnstile.h		\
506	types.h			\
507	types32.h		\
508	uadmin.h		\
509	ucred.h			\
510	uio.h			\
511	ulimit.h		\
512	un.h			\
513	unistd.h		\
514	user.h			\
515	ustat.h			\
516	utime.h			\
517	utsname.h		\
518	utssys.h		\
519	uuid.h			\
520	va_impl.h		\
521	va_list.h		\
522	var.h			\
523	varargs.h		\
524	vfs.h			\
525	vfstab.h		\
526	vgareg.h		\
527	visual_io.h		\
528	vm.h			\
529	vmem.h			\
530	vmem_impl.h		\
531	vmmeter.h		\
532	vmsystm.h		\
533	vnode.h			\
534	vol.h			\
535	vtoc.h			\
536	vtrace.h		\
537	vuid_event.h		\
538	vuid_wheel.h		\
539	vuid_queue.h		\
540	vuid_state.h		\
541	vuid_store.h		\
542	wait.h			\
543	wanboot_impl.h		\
544	watchpoint.h		\
545	winlockio.h		\
546	zcons.h			\
547	zone.h			\
548	xti_inet.h		\
549	xti_osi.h		\
550	xti_xtiopt.h		\
551	zmod.h
552
553HDRS=				\
554	$(GENHDRS)		\
555	$(CHKHDRS)
556
557AUDIOHDRS=			\
558	ac97.h			\
559	am_src1.h		\
560	audio_apm.h		\
561	audio_mixer.h		\
562	audio_src.h		\
563	audio_support.h		\
564	audio_trace.h		\
565	audioens.h		\
566	g711.h
567
568BSCHDRS=			\
569	bscbus.h		\
570	bscv_impl.h		\
571	lom_ebuscodes.h		\
572	lom_io.h		\
573	lom_priv.h		\
574	lombus.h
575
576MDESCHDRS=			\
577	mdesc.h			\
578	mdesc_impl.h
579
580CRYPTOHDRS=			\
581	elfsign.h		\
582	ioctl.h			\
583	ioctladmin.h		\
584	common.h		\
585	impl.h			\
586	spi.h			\
587	api.h			\
588	ops_impl.h		\
589	sched_impl.h
590
591DCAMHDRS=			\
592	dcam1394_io.h
593
594IBHDRS=			\
595	ib_types.h	\
596	ib_pkt_hdrs.h
597
598IBTLHDRS=		\
599	ibtl_types.h	\
600	ibtl_status.h	\
601	ibti.h		\
602	ibti_cm.h	\
603	ibci.h		\
604	ibti_common.h	\
605	ibvti.h		\
606	ibtl_ci_types.h
607
608IBTLIMPLHDRS=		\
609	ibtl_util.h
610
611IBNEXHDRS=		\
612	ibnex_devctl.h
613
614IBMFHDRS=		\
615	ibmf.h		\
616	ibmf_msg.h	\
617	ibmf_saa.h	\
618	ibmf_utils.h
619
620IBMGTHDRS=		\
621	ib_dm_attr.h	\
622	ib_mad.h	\
623	sm_attr.h	\
624	sa_recs.h
625
626IBDHDRS=		\
627	ibd.h
628
629TAVORHDRS=		\
630	tavor_ioctl.h
631
632ISOHDRS=			\
633	signal_iso.h
634
635DERIVED_LVMHDRS=	\
636	md_mdiox.h		\
637	md_basic.h		\
638	mdmed.h			\
639	md_mhdx.h		\
640	mdmn_commd.h
641
642LVMHDRS=			\
643	md_convert.h		\
644	md_crc.h		\
645	md_hotspares.h		\
646	md_mddb.h		\
647	md_mirror.h		\
648	md_mirror_shared.h	\
649	md_names.h		\
650	md_notify.h		\
651	md_raid.h		\
652	md_rename.h		\
653	md_sp.h			\
654	md_stripe.h		\
655	md_trans.h		\
656	mdio.h			\
657	mdvar.h
658
659ALL_LVMHDRS=			\
660	$(LVMHDRS)		\
661	$(DERIVED_LVMHDRS)
662
663FMHDRS=				\
664	protocol.h		\
665	util.h
666
667sparc_FMCPUHDRS=		\
668	UltraSPARC-II.h		\
669	UltraSPARC-III.h
670FMCPUHDRS=$($(MACH)_FMCPUHDRS)
671
672FMIOHDRS=			\
673	ddi.h			\
674	pci.h			\
675	sun4upci.h
676
677FSHDRS=				\
678	autofs.h		\
679	cachefs_dir.h		\
680	cachefs_dlog.h		\
681	cachefs_filegrp.h	\
682	cachefs_fs.h		\
683	cachefs_fscache.h	\
684	cachefs_ioctl.h		\
685	cachefs_log.h		\
686	dv_node.h		\
687	fifonode.h		\
688	hsfs_isospec.h		\
689	hsfs_node.h		\
690	hsfs_rrip.h		\
691	hsfs_spec.h		\
692	hsfs_susp.h		\
693	lofs_info.h		\
694	lofs_node.h		\
695	mntdata.h		\
696	namenode.h		\
697	pc_dir.h		\
698	pc_fs.h			\
699	pc_label.h		\
700	pc_node.h		\
701	pxfs_ki.h		\
702	snode.h			\
703	swapnode.h		\
704	tmp.h			\
705	tmpnode.h		\
706	udf_inode.h		\
707	udf_volume.h		\
708	ufs_acl.h		\
709	ufs_bio.h		\
710	ufs_filio.h		\
711	ufs_fs.h		\
712	ufs_fsdir.h		\
713	ufs_inode.h		\
714	ufs_lockfs.h		\
715	ufs_log.h		\
716	ufs_mount.h		\
717	ufs_panic.h		\
718	ufs_prot.h		\
719	ufs_quota.h		\
720	ufs_snap.h              \
721	ufs_trans.h
722
723PCMCIAHDRS=		\
724	pcata.h		\
725	pcelx.h		\
726	pcgld.h		\
727	pcramio.h	\
728	pcramvar.h	\
729	pcser_conf.h	\
730	pcser_io.h	\
731	pcser_reg.h	\
732	pcser_manuspec.h \
733	pcser_var.h
734
735SCSIHDRS=		\
736	scsi.h		\
737	scsi_address.h	\
738	scsi_ctl.h	\
739	scsi_params.h	\
740	scsi_pkt.h	\
741	scsi_resource.h	\
742	scsi_types.h	\
743	scsi_watch.h
744
745SCSICONFHDRS=		\
746	autoconf.h	\
747	device.h
748
749SCSIGENHDRS=		\
750	commands.h	\
751	dad_mode.h	\
752	inquiry.h	\
753	message.h	\
754	mode.h		\
755	sense.h		\
756	status.h
757
758SCSIIMPLHDRS=		\
759	commands.h	\
760	inquiry.h	\
761	mode.h		\
762	pkt_wrapper.h	\
763	sense.h		\
764	services.h	\
765	status.h	\
766	transport.h	\
767	scsi_reset_notify.h \
768	types.h		\
769	uscsi.h
770
771SCSITARGETSHDRS=	\
772	ses.h		\
773	sesio.h		\
774	stdef.h		\
775	sddef.h		\
776	sgendef.h
777
778SCSICADHDRS=		\
779	glmreg.h	\
780	glmvar.h	\
781	mptreg.h	\
782	mptvar.h
783
784SCSIVHCIHDRS=		\
785	scsi_vhci.h
786
787FCHDRS=			\
788	fc_transport.h	\
789	linkapp.h	\
790	fc.h		\
791	fcp.h		\
792	fcal_transport.h \
793	fcal.h		\
794	fcal_linkapp.h	\
795	fcio.h
796
797SYSEVENTHDRS=		\
798	ap_driver.h     \
799	dev.h		\
800	domain.h        \
801	dr.h            \
802	env.h           \
803	eventdefs.h	\
804	ipmp.h		\
805	svm.h
806
807CONTRACTHDRS=		\
808	process.h	\
809	process_impl.h
810
811USBHDRS=	\
812	usba.h	\
813	usbai.h
814
815USBAUDHDRS=           \
816	usb_audio.h
817
818USBHUBDHDRS=		\
819	hub.h		\
820	hubd_impl.h
821
822USBHIDHDRS=		\
823	hid.h
824
825USBMSHDRS=		\
826	usb_bulkonly.h	\
827	usb_cbi.h
828
829USBPRNHDRS=           \
830	usb_printer.h
831
832UGENHDRS=           \
833	usb_ugen.h
834
835HOTPLUGHDRS=	\
836	hpcsvc.h	\
837	hpctrl.h
838
839HOTPLUGPCIHDRS=	\
840	pcicfg.h	\
841	pcihp.h
842
843RSMHDRS= \
844	rsm.h	\
845	rsm_common.h	\
846	rsmapi_common.h \
847	rsmpi.h	\
848	rsmpi_driver.h	\
849	rsmka_path_int.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	dklb.h		\
878	fctypes.h	\
879	fdisk.h		\
880	flowctrl.h	\
881	gda.h		\
882	hba.h		\
883	objmgr.h	\
884	quetypes.h	\
885	queue.h		\
886	snlb.h		\
887	tgcom.h		\
888	tgdk.h
889
890# "pc" header files used on i386
891PCHDRS=			\
892	avintr.h	\
893	dma_engine.h	\
894	i8272A.h	\
895	pcic_reg.h	\
896	pcic_var.h	\
897	pic.h		\
898	pit.h		\
899	rtc.h
900
901# I2O header files (currently used only on i386)
902I2OHDRS=		\
903	i2oadptr.h	\
904	i2obscsi.h	\
905	i2oexec.h	\
906	i2omsg.h	\
907	i2omstr.h	\
908	i2outil.h
909
910# SVVS headers and other excluded headers
911XHDRS=		\
912	lo.h	\
913	tidg.h	\
914	tivc.h	\
915	tmux.h
916
917# check files really don't exist
918
919audio/%.check:	audio/%.h
920	$(DOT_H_CHECK)
921
922av/%.check:	av/%.h
923	$(DOT_H_CHECK)
924
925dcam/%.check:	dcam/%.h
926	$(DOT_H_CHECK)
927
928fm/%.check:     fm/%.h
929	$(DOT_H_CHECK)
930
931fm/cpu/%.check:     fm/cpu/%.h
932	$(DOT_H_CHECK)
933
934fm/io/%.check:     fm/io/%.h
935	$(DOT_H_CHECK)
936
937fs/%.check:	fs/%.h
938	$(DOT_H_CHECK)
939
940ib/%.check:		ib/%.h
941	$(DOT_H_CHECK)
942
943ib/clients/ibd/%.check:	ib/clients/ibd/%.h
944	$(DOT_H_CHECK)
945
946ib/ibtl/%.check:	ib/ibtl/%.h
947	$(DOT_H_CHECK)
948
949ib/ibtl/impl/%.check:	ib/ibtl/impl/%.h
950	$(DOT_H_CHECK)
951
952ib/ibnex/%.check:	ib/ibnex/%.h
953	$(DOT_H_CHECK)
954
955ib/mgt/%.check:	ib/mgt/%.h
956	$(DOT_H_CHECK)
957
958ib/mgt/ibmf/%.check:	ib/mgt/ibmf/%.h
959	$(DOT_H_CHECK)
960
961ib/adapters/tavor/%.check:	ib/adapters/tavor/%.h
962	$(DOT_H_CHECK)
963
964lvm/%.check:	lvm/%.h
965	$(DOT_H_CHECK)
966
967pcmcia/%.check:	pcmcia/%.h
968	$(DOT_H_CHECK)
969
970scsi/%.check:		scsi/%.h
971	$(DOT_H_CHECK)
972
973scsi/conf/%.check:	scsi/conf/%.h
974	$(DOT_H_CHECK)
975
976scsi/generic/%.check:	scsi/generic/%.h
977	$(DOT_H_CHECK)
978
979scsi/impl/%.check:	scsi/impl/%.h
980	$(DOT_H_CHECK)
981
982scsi/targets/%.check:	scsi/targets/%.h
983	$(DOT_H_CHECK)
984
985scsi/adapters/%.check:	scsi/adapters/%.h
986	$(DOT_H_CHECK)
987
988sysevent/%.check:     sysevent/%.h
989	$(DOT_H_CHECK)
990
991contract/%.check:     contract/%.h
992	$(DOT_H_CHECK)
993
994usb/%.check:		usb/%.h
995	$(DOT_H_CHECK)
996
997usb/clients/audio/%.check:  usb/clients/audio/%.h
998	$(DOT_H_CHECK)
999
1000usb/hubd/%.check:	usb/hubd/%.h
1001	$(DOT_H_CHECK)
1002
1003usb/clients/hid/%.check:	usb/clients/hid/%.h
1004	$(DOT_H_CHECK)
1005
1006usb/clients/mass_storage/%.check:	usb/clients/mass_storage/%.h
1007	$(DOT_H_CHECK)
1008
1009usb/clients/hid/%.check:	usb/clients/hid/%.h
1010	$(DOT_H_CHECK)
1011
1012usb/clients/printer/%.check:  usb/clients/printer/%.h
1013	$(DOT_H_CHECK)
1014
10151394/%.check:         1394/%.h
1016	$(DOT_H_CHECK)
1017
1018rsm/%.check:	rsm/%.h
1019	$(DOT_H_CHECK)
1020
1021CHECKHDRS=						\
1022	$($(MACH)_HDRS:%.h=%.check)			\
1023	$(AUDIOHDRS:%.h=audio/%.check)			\
1024	$(BSCHDRS:%.h=%.check)				\
1025	$(CHKHDRS:%.h=%.check)				\
1026	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1027	$(DCAMHDRS:%.h=dcam/%.check)			\
1028	$(IBHDRS:%.h=ib/%.check)			\
1029	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1030	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1031	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1032	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1033	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1034	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1035	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1036	$(ISOHDRS:%.h=iso/%.check)			\
1037	$(FMHDRS:%.h=fm/%.check)			\
1038	$(FMCPUHDRS:%.h=fm/cpu/%.check)			\
1039	$(FMIOHDRS:%.h=fm/io/%.check)			\
1040	$(FSHDRS:%.h=fs/%.check)			\
1041	$(LVMHDRS:%.h=lvm/%.check)			\
1042	$(XHDRS:%.h=%.check)				\
1043	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1044	$(SCSIHDRS:%.h=scsi/%.check)			\
1045	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
1046	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1047	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1048	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1049	$(FCHDRS:%.h=fc4/%.check)			\
1050	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1051	$(CONTRACTHDRS:%.h=contract/%.check)            \
1052	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1053	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1054	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1055	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1056	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1057	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1058	$(USBHDRS:%.h=usb/%.check)                      \
1059	$(I1394HDRS:%.h=1394/%.check)			\
1060	$(RSMHDRS:%.h=rsm/%.check)
1061
1062
1063ROOTDIR=	$(ROOT)/usr/include/sys
1064
1065ROOTDKTPDIR=	$(ROOTDIR)/dktp
1066
1067sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
1068		$(ROOTDIR)/scsi/targets \
1069		$(ROOTDIR)/av
1070
1071i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
1072		$(ROOTDIR)/i2o $(ROOTDIR)/agp
1073
1074ROOTDIRS=			\
1075	$(ROOTDIR)		\
1076	$(ROOTDIR)/audio	\
1077	$(ROOTDIR)/hotplug	\
1078	$(ROOTDIR)/hotplug/pci	\
1079	$(ROOTDIR)/crypto	\
1080	$(ROOTDIR)/dcam		\
1081	$(ROOTDIR)/iso		\
1082	$(ROOTDIR)/fm		\
1083	$(ROOTDIR)/fm/cpu	\
1084	$(ROOTDIR)/fm/io	\
1085	$(ROOTDIR)/fs		\
1086	$(ROOTDIR)/ib		\
1087	$(ROOTDIR)/ib/adapters/tavor	\
1088	$(ROOTDIR)/ib/ibtl	\
1089	$(ROOTDIR)/ib/ibtl/impl	\
1090	$(ROOTDIR)/ib/mgt	\
1091	$(ROOTDIR)/ib/mgt/ibmf	\
1092	$(ROOTDIR)/ib/ibnex	\
1093	$(ROOTDIR)/ib/clients/ibd \
1094	$(ROOTDIR)/lvm		\
1095	$(ROOTDIR)/pcmcia	\
1096	$(ROOTDIR)/scsi		\
1097	$(ROOTDIR)/scsi/conf	\
1098	$(ROOTDIR)/scsi/generic	\
1099	$(ROOTDIR)/scsi/impl	\
1100	$(ROOTDIR)/fc4		\
1101	$(ROOTDIR)/sysevent     \
1102	$(ROOTDIR)/contract     \
1103	$(ROOTDIR)/usb		\
1104	$(ROOTDIR)/usb/hubd	\
1105	$(ROOTDIR)/usb/clients	\
1106	$(ROOTDIR)/usb/clients/audio  \
1107	$(ROOTDIR)/usb/clients/hid \
1108	$(ROOTDIR)/usb/clients/mass_storage	\
1109	$(ROOTDIR)/usb/clients/printer  \
1110	$(ROOTDIR)/usb/clients/ugen  \
1111	$(ROOTDIR)/1394         \
1112	$(ROOTDIR)/rsm		\
1113	$($(MACH)_ROOTDIRS)
1114
1115
1116ROOTHDRS=				\
1117	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
1118	$(HDRS:%=$(ROOTDIR)/%)
1119
1120ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
1121
1122ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
1123
1124ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
1125
1126ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
1127
1128ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
1129ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
1130ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
1131ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
1132ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
1133ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
1134ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
1135ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
1136
1137ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
1138
1139ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
1140ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
1141ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
1142
1143ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
1144
1145ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
1146
1147ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%)
1148
1149ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
1150ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
1151ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
1152ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
1153ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
1154ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
1155ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
1156
1157ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fc4/%)
1158
1159ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
1160ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
1161
1162ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
1163
1164ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
1165ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
1166ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
1167ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
1168ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
1169ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
1170ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
1171
1172ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
1173
1174ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
1175
1176ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
1177ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
1178ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
1179ROOTI2OHDRS= $(I2OHDRS:%=$(ROOTDIR)/i2o/%)
1180ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
1181ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
1182
1183
1184sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
1185		$(ROOTFCHDRS) $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \
1186		$(ROOTUSBAUDHDRS) \
1187		$(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) $(ROOTUSBPRNHDRS) \
1188		$(ROOTUGENHDRS)
1189
1190i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
1191		$(ROOTSCSIVHCIHDRS) $(ROOTFCHDRS)	\
1192		$(ROOTI2OHDRS) $(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \
1193		$(ROOTHOTPLUGPCIHDRS)
1194
1195# install rules
1196$(ROOTDIR)/%: %
1197	$(INS.file)
1198
1199$(ROOTDIR)/crypto/%: crypto/%
1200	$(INS.file)
1201
1202$(ROOTDIR)/fm/%:                fm/%
1203	$(INS.file)
1204
1205$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
1206	$(INS.file)
1207
1208$(ROOTDIR)/fm/io/%:                fm/io/%
1209	$(INS.file)
1210
1211$(ROOTDIR)/fs/%: fs/%
1212	$(INS.file)
1213
1214$(ROOTDIR)/ib/%:		ib/%
1215	$(INS.file)
1216
1217$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
1218	$(INS.file)
1219
1220$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
1221	$(INS.file)
1222
1223$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
1224	$(INS.file)
1225
1226$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
1227	$(INS.file)
1228
1229$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
1230	$(INS.file)
1231
1232$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
1233	$(INS.file)
1234
1235$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
1236	$(INS.file)
1237
1238$(ROOTDIR)/lvm/%: lvm/%
1239	$(INS.file)
1240
1241$(ROOTDIR)/pcmcia/%:		pcmcia/%
1242	$(INS.file)
1243
1244$(ROOTDIR)/scsi/%:		scsi/%
1245	$(INS.file)
1246
1247$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
1248	$(INS.file)
1249
1250$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
1251	$(INS.file)
1252
1253$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
1254	$(INS.file)
1255
1256$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
1257	$(INS.file)
1258
1259$(ROOTDIR)/fc4/%:		fc4/%
1260	$(INS.file)
1261
1262$(ROOTDIR)/sysevent/%:		sysevent/%
1263	$(INS.file)
1264
1265$(ROOTDIR)/contract/%:		contract/%
1266	$(INS.file)
1267
1268$(ROOTDIR)/usb/%:		usb/%
1269	$(INS.file)
1270
1271$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
1272	$(INS.file)
1273
1274$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
1275	$(INS.file)
1276
1277$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
1278	$(INS.file)
1279
1280$(ROOTDIR)/dktp/%: dktp/%
1281	$(INS.file)
1282
1283$(ROOTDIR)/1394/%:                    1394/%
1284	$(INS.file)
1285
1286$(ROOTDIR)/rsm/%:	rsm/%
1287	$(INS.file)
1288
1289.KEEP_STATE:
1290
1291.PARALLEL:			\
1292	$(CHECKHDRS)		\
1293	$(ROOTHDRS)		\
1294	$(ROOTAUDHDRS)		\
1295	$(ROOTCRYPTOHDRS)	\
1296	$(ROOTDCAMHDRS)		\
1297	$(ROOTISOHDRS)		\
1298	$(ROOTFMHDRS)		\
1299	$(ROOTFMCPUHDRS)	\
1300	$(ROOTFMIOHDRS)	\
1301	$(ROOTFSHDRS)		\
1302	$(ROOTIBDHDRS)		\
1303	$(ROOTIBHDRS)		\
1304	$(ROOTIBTLHDRS)		\
1305	$(ROOTIBTLIMPLHDRS)	\
1306	$(ROOTIBNEXHDRS)	\
1307	$(ROOTIBMGTHDRS)	\
1308	$(ROOTIBMFHDRS)		\
1309	$(ROOTTAVORHDRS)	\
1310	$(ROOTLVMHDRS)		\
1311	$(ROOTPCMCIAHDRS)	\
1312	$(ROOTSCSIHDRS)		\
1313	$(ROOTSCSICONFHDRS)	\
1314	$(ROOTSCSIGENHDRS)	\
1315	$(ROOTSCSIIMPLHDRS)	\
1316	$(ROOTSCSIVHCIHDRS)	\
1317	$(ROOTFCHDRS)		\
1318	$(ROOTSYSEVENTHDRS)     \
1319	$(ROOTCONTRACTHDRS)     \
1320	$(ROOTUSBHDRS)		\
1321	$(ROOTUSBAUDHDRS)	\
1322	$(ROOTUSBHUBDHDRS)	\
1323	$(ROOTUSBHIDHDRS)	\
1324	$(ROOTUSBMSHDRS)	\
1325	$(ROOTUSBPRNHDRS)       \
1326	$(ROOTUGENHDRS)		\
1327	$(ROOT1394HDRS)         \
1328	$(ROOTHOTPLUGHDRS)	\
1329	$(ROOTHOTPLUGPCIHDRS)	\
1330	$(ROOTRSMHDRS)		\
1331	$($(MACH)_ROOTHDRS)
1332
1333
1334install_h:			\
1335	$(ROOTDIRS)		\
1336	LVMDERIVED_H		\
1337	.WAIT			\
1338	$(ROOTHDRS)		\
1339	$(ROOTAUDHDRS)		\
1340	$(ROOTCRYPTOHDRS)	\
1341	$(ROOTDCAMHDRS)		\
1342	$(ROOTISOHDRS)		\
1343	$(ROOTFMHDRS)		\
1344	$(ROOTFMCPUHDRS)	\
1345	$(ROOTFMIOHDRS)	\
1346	$(ROOTFSHDRS)		\
1347	$(ROOTIBDHDRS)		\
1348	$(ROOTIBHDRS)		\
1349	$(ROOTIBTLHDRS)		\
1350	$(ROOTIBTLIMPLHDRS)	\
1351	$(ROOTIBNEXHDRS)	\
1352	$(ROOTIBMGTHDRS)	\
1353	$(ROOTIBMFHDRS)		\
1354	$(ROOTTAVORHDRS)	\
1355	$(ROOTLVMHDRS)		\
1356	$(ROOTPCMCIAHDRS)	\
1357	$(ROOTSCSIHDRS)		\
1358	$(ROOTSCSICONFHDRS)	\
1359	$(ROOTSCSIGENHDRS)	\
1360	$(ROOTSCSIIMPLHDRS)	\
1361	$(ROOTSCSIVHCIHDRS)	\
1362	$(ROOTFCHDRS)		\
1363	$(ROOTSYSEVENTHDRS)     \
1364	$(ROOTCONTRACTHDRS)     \
1365	$(ROOTUSBHDRS)		\
1366	$(ROOTUSBAUDHDRS)	\
1367	$(ROOTUSBHUBDHDRS)	\
1368	$(ROOTUSBHIDHDRS)	\
1369	$(ROOTUSBMSHDRS)	\
1370	$(ROOTUSBPRNHDRS)       \
1371	$(ROOTUGENHDRS)		\
1372	$(ROOT1394HDRS)         \
1373	$(ROOTHOTPLUGHDRS)	\
1374	$(ROOTHOTPLUGPCIHDRS)	\
1375	$(ROOTRSMHDRS)		\
1376	$($(MACH)_ROOTHDRS)	\
1377	svvs_h
1378
1379svvs_h: FRC
1380	@if [ -f lo.h  ]; then \
1381		$(MAKE) install_X_h; \
1382	else \
1383		true; \
1384	fi
1385
1386all_h: $(GENHDRS)
1387
1388priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1389	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1390
1391priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1392	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1393
1394install_X_h: $(ROOTXHDRS)
1395
1396$(ROOTDIRS):
1397	$(INS.dir)
1398
1399LVMDERIVED_H:
1400	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1401
1402check:	$(CHECKHDRS)
1403
1404FRC:
1405
1406# EXPORT DELETE START
1407EXPORT_SRC:
1408	$(RM) wanboot_impl.h+ Makefile+
1409	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1410		< wanboot_impl.h > wanboot_impl.h+
1411	$(MV) wanboot_impl.h+ wanboot_impl.h
1412	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1413		< Makefile > Makefile+
1414	$(RM) Makefile
1415	$(MV) Makefile+ Makefile
1416	$(CHMOD) 444 Makefile wanboot_impl.h
1417# EXPORT DELETE END
1418