xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision 6451fdbca2f79129a3a09d2fe3f6dd4d062bebff)
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	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