xref: /titanic_44/usr/src/uts/common/sys/Makefile (revision 49df45665521d358380d3324f56fbc1ef143e72f)
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_notes.h		\
196	elf_amd64.h		\
197	elftypes.h		\
198	emul64.h		\
199	emul64cmd.h		\
200	emul64var.h		\
201	epm.h			\
202	errno.h			\
203	errorq.h		\
204	errorq_impl.h		\
205	esunddi.h		\
206	ethernet.h		\
207	euc.h			\
208	eucioctl.h		\
209	exacct.h		\
210	exacct_catalog.h	\
211	exacct_impl.h		\
212	exec.h			\
213	exechdr.h		\
214	fault.h			\
215	fasttrap.h		\
216	fasttrap_impl.h		\
217	fbio.h			\
218	fbuf.h			\
219	fcntl.h			\
220	fdbuffer.h		\
221	fdio.h			\
222	feature_tests.h		\
223	fem.h			\
224	file.h			\
225	filio.h			\
226	flock.h			\
227	flock_impl.h		\
228	fss.h			\
229	fsspriocntl.h		\
230	fsid.h			\
231	fssnap.h                \
232	fssnap_if.h             \
233	fstyp.h			\
234	ftrace.h		\
235	fx.h			\
236	fxpriocntl.h		\
237	gfs.h			\
238	gld.h			\
239	gldpriv.h		\
240	hdio.h			\
241	hwconf.h		\
242	ia.h			\
243	iapriocntl.h		\
244	id32.h			\
245	ieeefp.h		\
246	id_space.h		\
247	instance.h		\
248	int_const.h		\
249	int_fmtio.h		\
250	int_limits.h		\
251	int_types.h		\
252	inttypes.h		\
253	ioccom.h		\
254	ioctl.h			\
255	ioreq.h			\
256	ipc.h			\
257	ipc_impl.h		\
258	isa_defs.h		\
259	jioctl.h		\
260	kbd.h			\
261	kbdreg.h		\
262	kbio.h			\
263	kcpc.h			\
264	kdi.h			\
265	kdi_impl.h		\
266	klwp.h			\
267	kmdb.h			\
268	kmem.h			\
269	kmem_impl.h		\
270	kobj.h			\
271	kobj_impl.h		\
272	kstat.h			\
273	kstr.h			\
274	ksyms.h			\
275	ksynch.h		\
276	ldterm.h		\
277	lgrp.h			\
278	lgrp_user.h		\
279	link.h			\
280	list.h			\
281	list_impl.h		\
282	llc1.h			\
283	llc2.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	msacct.h		\
319	msg.h			\
320	msg_impl.h		\
321	msio.h			\
322	msreg.h			\
323	mtio.h			\
324	multidata.h		\
325	multidata_impl.h	\
326	mutex.h			\
327	nbmlock.h		\
328	ndifm.h		\
329	ndi_impldefs.h		\
330	netconfig.h		\
331	nexusdefs.h		\
332	note.h			\
333	nvpair.h                \
334	nvpair_impl.h           \
335	objfs.h			\
336	objfs_impl.h		\
337	ontrap.h                \
338	open.h			\
339	openpromio.h		\
340	panic.h			\
341	param.h			\
342	pathconf.h		\
343	pathname.h		\
344	pattr.h			\
345	serializer.h		\
346	pbio.h			\
347	pccard.h		\
348	pci.h			\
349	pcie.h			\
350	pci_impl.h		\
351	pcmcia.h		\
352	pctypes.h		\
353	pem.h			\
354	pfmod.h			\
355	phx.h			\
356	pm.h			\
357	policy.h		\
358	poll.h			\
359	poll_impl.h		\
360	pool.h			\
361	pool_impl.h		\
362	pool_pset.h		\
363	port.h			\
364	port_impl.h		\
365	port_kernel.h		\
366	ppmio.h                 \
367	priocntl.h		\
368	priv.h			\
369	priv_impl.h		\
370	prnio.h			\
371	proc.h			\
372	processor.h		\
373	procfs.h		\
374	procset.h		\
375	project.h		\
376	protosw.h		\
377	prsystm.h		\
378	pset.h			\
379	pshot.h			\
380	ptem.h			\
381	ptms.h			\
382	ptyvar.h		\
383	raidioctl.h		\
384	ramdisk.h		\
385	random.h		\
386	rctl.h			\
387	rctl_impl.h		\
388	reboot.h		\
389	refstr.h		\
390	refstr_impl.h		\
391	resource.h		\
392	rlioctl.h		\
393	rt.h			\
394	rtpriocntl.h		\
395	rwlock.h		\
396	rwlock_impl.h		\
397	rwstlock.h		\
398	sad.h			\
399	schedctl.h		\
400	sdt.h			\
401	select.h		\
402	sem.h			\
403	sem_impl.h		\
404	sema_impl.h		\
405	semaphore.h		\
406	sendfile.h		\
407	ser_sync.h		\
408	session.h		\
409	sha1.h			\
410	sha1_consts.h		\
411	sha2.h			\
412	sha2_consts.h		\
413	share.h			\
414	shm.h			\
415	shm_impl.h		\
416	siginfo.h		\
417	signal.h		\
418	sleepq.h		\
419	smbios.h		\
420	smbios_impl.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	\
670	UltraSPARC-T1.h
671FMCPUHDRS=$($(MACH)_FMCPUHDRS)
672
673FMIOHDRS=			\
674	ddi.h			\
675	pci.h			\
676	sun4upci.h
677
678FSHDRS=				\
679	autofs.h		\
680	cachefs_dir.h		\
681	cachefs_dlog.h		\
682	cachefs_filegrp.h	\
683	cachefs_fs.h		\
684	cachefs_fscache.h	\
685	cachefs_ioctl.h		\
686	cachefs_log.h		\
687	dv_node.h		\
688	fifonode.h		\
689	hsfs_isospec.h		\
690	hsfs_node.h		\
691	hsfs_rrip.h		\
692	hsfs_spec.h		\
693	hsfs_susp.h		\
694	lofs_info.h		\
695	lofs_node.h		\
696	mntdata.h		\
697	namenode.h		\
698	pc_dir.h		\
699	pc_fs.h			\
700	pc_label.h		\
701	pc_node.h		\
702	pxfs_ki.h		\
703	snode.h			\
704	swapnode.h		\
705	tmp.h			\
706	tmpnode.h		\
707	udf_inode.h		\
708	udf_volume.h		\
709	ufs_acl.h		\
710	ufs_bio.h		\
711	ufs_filio.h		\
712	ufs_fs.h		\
713	ufs_fsdir.h		\
714	ufs_inode.h		\
715	ufs_lockfs.h		\
716	ufs_log.h		\
717	ufs_mount.h		\
718	ufs_panic.h		\
719	ufs_prot.h		\
720	ufs_quota.h		\
721	ufs_snap.h              \
722	ufs_trans.h
723
724PCMCIAHDRS=		\
725	pcata.h		\
726	pcelx.h		\
727	pcgld.h		\
728	pcramio.h	\
729	pcramvar.h	\
730	pcser_conf.h	\
731	pcser_io.h	\
732	pcser_reg.h	\
733	pcser_manuspec.h \
734	pcser_var.h
735
736SCSIHDRS=		\
737	scsi.h		\
738	scsi_address.h	\
739	scsi_ctl.h	\
740	scsi_params.h	\
741	scsi_pkt.h	\
742	scsi_resource.h	\
743	scsi_types.h	\
744	scsi_watch.h
745
746SCSICONFHDRS=		\
747	autoconf.h	\
748	device.h
749
750SCSIGENHDRS=		\
751	commands.h	\
752	dad_mode.h	\
753	inquiry.h	\
754	message.h	\
755	mode.h		\
756	sense.h		\
757	status.h
758
759SCSIIMPLHDRS=		\
760	commands.h	\
761	inquiry.h	\
762	mode.h		\
763	pkt_wrapper.h	\
764	sense.h		\
765	services.h	\
766	status.h	\
767	transport.h	\
768	scsi_reset_notify.h \
769	types.h		\
770	uscsi.h
771
772SCSITARGETSHDRS=	\
773	ses.h		\
774	sesio.h		\
775	stdef.h		\
776	sddef.h		\
777	sgendef.h
778
779SCSICADHDRS=		\
780	glmreg.h	\
781	glmvar.h	\
782	mptreg.h	\
783	mptvar.h
784
785SCSIVHCIHDRS=		\
786	scsi_vhci.h
787
788FCHDRS=			\
789	fc_transport.h	\
790	linkapp.h	\
791	fc.h		\
792	fcp.h		\
793	fcal_transport.h \
794	fcal.h		\
795	fcal_linkapp.h	\
796	fcio.h
797
798SYSEVENTHDRS=		\
799	ap_driver.h     \
800	dev.h		\
801	domain.h        \
802	dr.h            \
803	env.h           \
804	eventdefs.h	\
805	ipmp.h		\
806	svm.h
807
808CONTRACTHDRS=		\
809	process.h	\
810	process_impl.h
811
812USBHDRS=	\
813	usba.h	\
814	usbai.h
815
816USBAUDHDRS=           \
817	usb_audio.h
818
819USBHUBDHDRS=		\
820	hub.h		\
821	hubd_impl.h
822
823USBHIDHDRS=		\
824	hid.h
825
826USBMSHDRS=		\
827	usb_bulkonly.h	\
828	usb_cbi.h
829
830USBPRNHDRS=           \
831	usb_printer.h
832
833UGENHDRS=           \
834	usb_ugen.h
835
836HOTPLUGHDRS=	\
837	hpcsvc.h	\
838	hpctrl.h
839
840HOTPLUGPCIHDRS=	\
841	pcicfg.h	\
842	pcihp.h
843
844RSMHDRS= \
845	rsm.h	\
846	rsm_common.h	\
847	rsmapi_common.h \
848	rsmpi.h	\
849	rsmpi_driver.h	\
850	rsmka_path_int.h
851
852I1394HDRS=		\
853	cmd1394.h	\
854	id1394.h	\
855	ieee1212.h	\
856	ieee1394.h	\
857	ixl1394.h	\
858	s1394_impl.h	\
859	t1394.h
860
861# "cmdk" headers used on sparc
862SDKTPHDRS=		\
863	dadkio.h	\
864	fdisk.h
865
866# "cmdk" headers used on i386
867DKTPHDRS=		\
868	altsctr.h	\
869	bbh.h		\
870	cm.h		\
871	cmdev.h		\
872	cmdk.h		\
873	cmpkt.h		\
874	controller.h	\
875	dadev.h		\
876	dadk.h		\
877	dadkio.h	\
878	dklb.h		\
879	fctypes.h	\
880	fdisk.h		\
881	flowctrl.h	\
882	gda.h		\
883	hba.h		\
884	objmgr.h	\
885	quetypes.h	\
886	queue.h		\
887	snlb.h		\
888	tgcom.h		\
889	tgdk.h
890
891# "pc" header files used on i386
892PCHDRS=			\
893	avintr.h	\
894	dma_engine.h	\
895	i8272A.h	\
896	pcic_reg.h	\
897	pcic_var.h	\
898	pic.h		\
899	pit.h		\
900	rtc.h
901
902# I2O header files (currently used only on i386)
903I2OHDRS=		\
904	i2oadptr.h	\
905	i2obscsi.h	\
906	i2oexec.h	\
907	i2omsg.h	\
908	i2omstr.h	\
909	i2outil.h
910
911# SVVS headers and other excluded headers
912XHDRS=		\
913	lo.h	\
914	tidg.h	\
915	tivc.h	\
916	tmux.h
917
918# check files really don't exist
919
920audio/%.check:	audio/%.h
921	$(DOT_H_CHECK)
922
923av/%.check:	av/%.h
924	$(DOT_H_CHECK)
925
926dcam/%.check:	dcam/%.h
927	$(DOT_H_CHECK)
928
929fm/%.check:     fm/%.h
930	$(DOT_H_CHECK)
931
932fm/cpu/%.check:     fm/cpu/%.h
933	$(DOT_H_CHECK)
934
935fm/io/%.check:     fm/io/%.h
936	$(DOT_H_CHECK)
937
938fs/%.check:	fs/%.h
939	$(DOT_H_CHECK)
940
941ib/%.check:		ib/%.h
942	$(DOT_H_CHECK)
943
944ib/clients/ibd/%.check:	ib/clients/ibd/%.h
945	$(DOT_H_CHECK)
946
947ib/ibtl/%.check:	ib/ibtl/%.h
948	$(DOT_H_CHECK)
949
950ib/ibtl/impl/%.check:	ib/ibtl/impl/%.h
951	$(DOT_H_CHECK)
952
953ib/ibnex/%.check:	ib/ibnex/%.h
954	$(DOT_H_CHECK)
955
956ib/mgt/%.check:	ib/mgt/%.h
957	$(DOT_H_CHECK)
958
959ib/mgt/ibmf/%.check:	ib/mgt/ibmf/%.h
960	$(DOT_H_CHECK)
961
962ib/adapters/tavor/%.check:	ib/adapters/tavor/%.h
963	$(DOT_H_CHECK)
964
965lvm/%.check:	lvm/%.h
966	$(DOT_H_CHECK)
967
968pcmcia/%.check:	pcmcia/%.h
969	$(DOT_H_CHECK)
970
971scsi/%.check:		scsi/%.h
972	$(DOT_H_CHECK)
973
974scsi/conf/%.check:	scsi/conf/%.h
975	$(DOT_H_CHECK)
976
977scsi/generic/%.check:	scsi/generic/%.h
978	$(DOT_H_CHECK)
979
980scsi/impl/%.check:	scsi/impl/%.h
981	$(DOT_H_CHECK)
982
983scsi/targets/%.check:	scsi/targets/%.h
984	$(DOT_H_CHECK)
985
986scsi/adapters/%.check:	scsi/adapters/%.h
987	$(DOT_H_CHECK)
988
989sysevent/%.check:     sysevent/%.h
990	$(DOT_H_CHECK)
991
992contract/%.check:     contract/%.h
993	$(DOT_H_CHECK)
994
995usb/%.check:		usb/%.h
996	$(DOT_H_CHECK)
997
998usb/clients/audio/%.check:  usb/clients/audio/%.h
999	$(DOT_H_CHECK)
1000
1001usb/hubd/%.check:	usb/hubd/%.h
1002	$(DOT_H_CHECK)
1003
1004usb/clients/hid/%.check:	usb/clients/hid/%.h
1005	$(DOT_H_CHECK)
1006
1007usb/clients/mass_storage/%.check:	usb/clients/mass_storage/%.h
1008	$(DOT_H_CHECK)
1009
1010usb/clients/hid/%.check:	usb/clients/hid/%.h
1011	$(DOT_H_CHECK)
1012
1013usb/clients/printer/%.check:  usb/clients/printer/%.h
1014	$(DOT_H_CHECK)
1015
10161394/%.check:         1394/%.h
1017	$(DOT_H_CHECK)
1018
1019rsm/%.check:	rsm/%.h
1020	$(DOT_H_CHECK)
1021
1022CHECKHDRS=						\
1023	$($(MACH)_HDRS:%.h=%.check)			\
1024	$(AUDIOHDRS:%.h=audio/%.check)			\
1025	$(BSCHDRS:%.h=%.check)				\
1026	$(CHKHDRS:%.h=%.check)				\
1027	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1028	$(DCAMHDRS:%.h=dcam/%.check)			\
1029	$(IBHDRS:%.h=ib/%.check)			\
1030	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1031	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1032	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1033	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1034	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1035	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1036	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1037	$(ISOHDRS:%.h=iso/%.check)			\
1038	$(FMHDRS:%.h=fm/%.check)			\
1039	$(FMCPUHDRS:%.h=fm/cpu/%.check)			\
1040	$(FMIOHDRS:%.h=fm/io/%.check)			\
1041	$(FSHDRS:%.h=fs/%.check)			\
1042	$(LVMHDRS:%.h=lvm/%.check)			\
1043	$(XHDRS:%.h=%.check)				\
1044	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1045	$(SCSIHDRS:%.h=scsi/%.check)			\
1046	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
1047	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1048	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1049	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1050	$(FCHDRS:%.h=fc4/%.check)			\
1051	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1052	$(CONTRACTHDRS:%.h=contract/%.check)            \
1053	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1054	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1055	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1056	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1057	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1058	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1059	$(USBHDRS:%.h=usb/%.check)                      \
1060	$(I1394HDRS:%.h=1394/%.check)			\
1061	$(RSMHDRS:%.h=rsm/%.check)
1062
1063
1064ROOTDIR=	$(ROOT)/usr/include/sys
1065
1066ROOTDKTPDIR=	$(ROOTDIR)/dktp
1067
1068sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
1069		$(ROOTDIR)/scsi/targets \
1070		$(ROOTDIR)/av
1071
1072i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
1073		$(ROOTDIR)/i2o $(ROOTDIR)/agp
1074
1075ROOTDIRS=			\
1076	$(ROOTDIR)		\
1077	$(ROOTDIR)/audio	\
1078	$(ROOTDIR)/hotplug	\
1079	$(ROOTDIR)/hotplug/pci	\
1080	$(ROOTDIR)/crypto	\
1081	$(ROOTDIR)/dcam		\
1082	$(ROOTDIR)/iso		\
1083	$(ROOTDIR)/fm		\
1084	$(ROOTDIR)/fm/cpu	\
1085	$(ROOTDIR)/fm/io	\
1086	$(ROOTDIR)/fs		\
1087	$(ROOTDIR)/ib		\
1088	$(ROOTDIR)/ib/adapters/tavor	\
1089	$(ROOTDIR)/ib/ibtl	\
1090	$(ROOTDIR)/ib/ibtl/impl	\
1091	$(ROOTDIR)/ib/mgt	\
1092	$(ROOTDIR)/ib/mgt/ibmf	\
1093	$(ROOTDIR)/ib/ibnex	\
1094	$(ROOTDIR)/ib/clients/ibd \
1095	$(ROOTDIR)/lvm		\
1096	$(ROOTDIR)/pcmcia	\
1097	$(ROOTDIR)/scsi		\
1098	$(ROOTDIR)/scsi/conf	\
1099	$(ROOTDIR)/scsi/generic	\
1100	$(ROOTDIR)/scsi/impl	\
1101	$(ROOTDIR)/fc4		\
1102	$(ROOTDIR)/sysevent     \
1103	$(ROOTDIR)/contract     \
1104	$(ROOTDIR)/usb		\
1105	$(ROOTDIR)/usb/hubd	\
1106	$(ROOTDIR)/usb/clients	\
1107	$(ROOTDIR)/usb/clients/audio  \
1108	$(ROOTDIR)/usb/clients/hid \
1109	$(ROOTDIR)/usb/clients/mass_storage	\
1110	$(ROOTDIR)/usb/clients/printer  \
1111	$(ROOTDIR)/usb/clients/ugen  \
1112	$(ROOTDIR)/1394         \
1113	$(ROOTDIR)/rsm		\
1114	$($(MACH)_ROOTDIRS)
1115
1116
1117ROOTHDRS=				\
1118	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
1119	$(HDRS:%=$(ROOTDIR)/%)
1120
1121ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
1122
1123ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
1124
1125ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
1126
1127ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
1128
1129ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
1130ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
1131ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
1132ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
1133ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
1134ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
1135ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
1136ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
1137
1138ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
1139
1140ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
1141ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
1142ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
1143
1144ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
1145
1146ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
1147
1148ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%)
1149
1150ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
1151ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
1152ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
1153ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
1154ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
1155ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
1156ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
1157
1158ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fc4/%)
1159
1160ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
1161ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
1162
1163ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
1164
1165ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
1166ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
1167ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
1168ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
1169ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
1170ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
1171ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
1172
1173ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
1174
1175ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
1176
1177ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
1178ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
1179ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
1180ROOTI2OHDRS= $(I2OHDRS:%=$(ROOTDIR)/i2o/%)
1181ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
1182ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
1183
1184
1185sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
1186		$(ROOTFCHDRS) $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \
1187		$(ROOTUSBAUDHDRS) \
1188		$(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) $(ROOTUSBPRNHDRS) \
1189		$(ROOTUGENHDRS)
1190
1191i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
1192		$(ROOTSCSIVHCIHDRS) $(ROOTFCHDRS)	\
1193		$(ROOTI2OHDRS) $(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \
1194		$(ROOTHOTPLUGPCIHDRS)
1195
1196# install rules
1197$(ROOTDIR)/%: %
1198	$(INS.file)
1199
1200$(ROOTDIR)/crypto/%: crypto/%
1201	$(INS.file)
1202
1203$(ROOTDIR)/fm/%:                fm/%
1204	$(INS.file)
1205
1206$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
1207	$(INS.file)
1208
1209$(ROOTDIR)/fm/io/%:                fm/io/%
1210	$(INS.file)
1211
1212$(ROOTDIR)/fs/%: fs/%
1213	$(INS.file)
1214
1215$(ROOTDIR)/ib/%:		ib/%
1216	$(INS.file)
1217
1218$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
1219	$(INS.file)
1220
1221$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
1222	$(INS.file)
1223
1224$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
1225	$(INS.file)
1226
1227$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
1228	$(INS.file)
1229
1230$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
1231	$(INS.file)
1232
1233$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
1234	$(INS.file)
1235
1236$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
1237	$(INS.file)
1238
1239$(ROOTDIR)/lvm/%: lvm/%
1240	$(INS.file)
1241
1242$(ROOTDIR)/pcmcia/%:		pcmcia/%
1243	$(INS.file)
1244
1245$(ROOTDIR)/scsi/%:		scsi/%
1246	$(INS.file)
1247
1248$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
1249	$(INS.file)
1250
1251$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
1252	$(INS.file)
1253
1254$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
1255	$(INS.file)
1256
1257$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
1258	$(INS.file)
1259
1260$(ROOTDIR)/fc4/%:		fc4/%
1261	$(INS.file)
1262
1263$(ROOTDIR)/sysevent/%:		sysevent/%
1264	$(INS.file)
1265
1266$(ROOTDIR)/contract/%:		contract/%
1267	$(INS.file)
1268
1269$(ROOTDIR)/usb/%:		usb/%
1270	$(INS.file)
1271
1272$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
1273	$(INS.file)
1274
1275$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
1276	$(INS.file)
1277
1278$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
1279	$(INS.file)
1280
1281$(ROOTDIR)/dktp/%: dktp/%
1282	$(INS.file)
1283
1284$(ROOTDIR)/1394/%:                    1394/%
1285	$(INS.file)
1286
1287$(ROOTDIR)/rsm/%:	rsm/%
1288	$(INS.file)
1289
1290.KEEP_STATE:
1291
1292.PARALLEL:			\
1293	$(CHECKHDRS)		\
1294	$(ROOTHDRS)		\
1295	$(ROOTAUDHDRS)		\
1296	$(ROOTCRYPTOHDRS)	\
1297	$(ROOTDCAMHDRS)		\
1298	$(ROOTISOHDRS)		\
1299	$(ROOTFMHDRS)		\
1300	$(ROOTFMCPUHDRS)	\
1301	$(ROOTFMIOHDRS)	\
1302	$(ROOTFSHDRS)		\
1303	$(ROOTIBDHDRS)		\
1304	$(ROOTIBHDRS)		\
1305	$(ROOTIBTLHDRS)		\
1306	$(ROOTIBTLIMPLHDRS)	\
1307	$(ROOTIBNEXHDRS)	\
1308	$(ROOTIBMGTHDRS)	\
1309	$(ROOTIBMFHDRS)		\
1310	$(ROOTTAVORHDRS)	\
1311	$(ROOTLVMHDRS)		\
1312	$(ROOTPCMCIAHDRS)	\
1313	$(ROOTSCSIHDRS)		\
1314	$(ROOTSCSICONFHDRS)	\
1315	$(ROOTSCSIGENHDRS)	\
1316	$(ROOTSCSIIMPLHDRS)	\
1317	$(ROOTSCSIVHCIHDRS)	\
1318	$(ROOTFCHDRS)		\
1319	$(ROOTSYSEVENTHDRS)     \
1320	$(ROOTCONTRACTHDRS)     \
1321	$(ROOTUSBHDRS)		\
1322	$(ROOTUSBAUDHDRS)	\
1323	$(ROOTUSBHUBDHDRS)	\
1324	$(ROOTUSBHIDHDRS)	\
1325	$(ROOTUSBMSHDRS)	\
1326	$(ROOTUSBPRNHDRS)       \
1327	$(ROOTUGENHDRS)		\
1328	$(ROOT1394HDRS)         \
1329	$(ROOTHOTPLUGHDRS)	\
1330	$(ROOTHOTPLUGPCIHDRS)	\
1331	$(ROOTRSMHDRS)		\
1332	$($(MACH)_ROOTHDRS)
1333
1334
1335install_h:			\
1336	$(ROOTDIRS)		\
1337	LVMDERIVED_H		\
1338	.WAIT			\
1339	$(ROOTHDRS)		\
1340	$(ROOTAUDHDRS)		\
1341	$(ROOTCRYPTOHDRS)	\
1342	$(ROOTDCAMHDRS)		\
1343	$(ROOTISOHDRS)		\
1344	$(ROOTFMHDRS)		\
1345	$(ROOTFMCPUHDRS)	\
1346	$(ROOTFMIOHDRS)	\
1347	$(ROOTFSHDRS)		\
1348	$(ROOTIBDHDRS)		\
1349	$(ROOTIBHDRS)		\
1350	$(ROOTIBTLHDRS)		\
1351	$(ROOTIBTLIMPLHDRS)	\
1352	$(ROOTIBNEXHDRS)	\
1353	$(ROOTIBMGTHDRS)	\
1354	$(ROOTIBMFHDRS)		\
1355	$(ROOTTAVORHDRS)	\
1356	$(ROOTLVMHDRS)		\
1357	$(ROOTPCMCIAHDRS)	\
1358	$(ROOTSCSIHDRS)		\
1359	$(ROOTSCSICONFHDRS)	\
1360	$(ROOTSCSIGENHDRS)	\
1361	$(ROOTSCSIIMPLHDRS)	\
1362	$(ROOTSCSIVHCIHDRS)	\
1363	$(ROOTFCHDRS)		\
1364	$(ROOTSYSEVENTHDRS)     \
1365	$(ROOTCONTRACTHDRS)     \
1366	$(ROOTUSBHDRS)		\
1367	$(ROOTUSBAUDHDRS)	\
1368	$(ROOTUSBHUBDHDRS)	\
1369	$(ROOTUSBHIDHDRS)	\
1370	$(ROOTUSBMSHDRS)	\
1371	$(ROOTUSBPRNHDRS)       \
1372	$(ROOTUGENHDRS)		\
1373	$(ROOT1394HDRS)         \
1374	$(ROOTHOTPLUGHDRS)	\
1375	$(ROOTHOTPLUGPCIHDRS)	\
1376	$(ROOTRSMHDRS)		\
1377	$($(MACH)_ROOTHDRS)	\
1378	svvs_h
1379
1380svvs_h: FRC
1381	@if [ -f lo.h  ]; then \
1382		$(MAKE) install_X_h; \
1383	else \
1384		true; \
1385	fi
1386
1387all_h: $(GENHDRS)
1388
1389priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1390	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1391
1392priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1393	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1394
1395install_X_h: $(ROOTXHDRS)
1396
1397$(ROOTDIRS):
1398	$(INS.dir)
1399
1400LVMDERIVED_H:
1401	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1402
1403check:	$(CHECKHDRS)
1404
1405FRC:
1406
1407# EXPORT DELETE START
1408EXPORT_SRC:
1409	$(RM) wanboot_impl.h+ Makefile+
1410	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1411		< wanboot_impl.h > wanboot_impl.h+
1412	$(MV) wanboot_impl.h+ wanboot_impl.h
1413	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1414		< Makefile > Makefile+
1415	$(RM) Makefile
1416	$(MV) Makefile+ Makefile
1417	$(CHMOD) 444 Makefile wanboot_impl.h
1418# EXPORT DELETE END
1419