xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision e37d48e735b8e55f327dfa35a2d0006049ea5e58)
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	gld.h			\
240	gldpriv.h		\
241	hdio.h			\
242	hwconf.h		\
243	ia.h			\
244	iapriocntl.h		\
245	id32.h			\
246	ieeefp.h		\
247	id_space.h		\
248	instance.h		\
249	int_const.h		\
250	int_fmtio.h		\
251	int_limits.h		\
252	int_types.h		\
253	inttypes.h		\
254	ioccom.h		\
255	ioctl.h			\
256	ioreq.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	llc2.h			\
285	loadavg.h		\
286	lock.h			\
287	lockfs.h		\
288	lockstat.h		\
289	lofi.h			\
290	log.h			\
291	logindmux.h		\
292	logindmux_impl.h	\
293	lwp.h			\
294	lwp_timer_impl.h	\
295	lwp_upimutex_impl.h	\
296	mac.h			\
297	mac_impl.h		\
298	map.h			\
299	md5.h			\
300	md5_consts.h		\
301	mdi_impldefs.h		\
302	mem.h			\
303	mem_config.h		\
304	memlist.h		\
305	mkdev.h			\
306	mhd.h			\
307	miiregs.h		\
308	mixer.h			\
309	mman.h			\
310	mntent.h		\
311	mntio.h			\
312	mnttab.h		\
313	modctl.h		\
314	mode.h			\
315	model.h			\
316	modhash.h		\
317	modhash_impl.h		\
318	mount.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	nexusintr.h		\
334	note.h			\
335	nvpair.h                \
336	nvpair_impl.h           \
337	objfs.h			\
338	objfs_impl.h		\
339	ontrap.h                \
340	open.h			\
341	openpromio.h		\
342	panic.h			\
343	param.h			\
344	pathconf.h		\
345	pathname.h		\
346	pattr.h			\
347	serializer.h		\
348	pbio.h			\
349	pccard.h		\
350	pci.h			\
351	pcie.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	smbios.h		\
422	smbios_impl.h		\
423	sobject.h		\
424	socket.h		\
425	socket_impl.h		\
426	socketvar.h		\
427	sockio.h		\
428	squeue.h		\
429	squeue_impl.h		\
430	sservice.h		\
431	stat.h			\
432	statfs.h		\
433	statvfs.h		\
434	stdint.h		\
435	stermio.h		\
436	stream.h		\
437	strft.h			\
438	strlog.h		\
439	strmdep.h		\
440	stropts.h		\
441	strredir.h		\
442	strstat.h		\
443	strsubr.h		\
444	strsun.h		\
445	strtty.h		\
446	sunddi.h		\
447	sunldi.h		\
448	sunldi_impl.h		\
449	sunmdi.h		\
450	sunndi.h		\
451	sunos_dhcp_class.h	\
452	sunpm.h			\
453	suntpi.h		\
454	suntty.h		\
455	swap.h			\
456	synch.h			\
457	syscall.h		\
458	sysconf.h		\
459	sysconfig.h		\
460	sysevent.h	\
461	sysevent_impl.h         \
462	sysinfo.h		\
463	syslog.h		\
464	sysmacros.h		\
465	sysmsg_impl.h		\
466	systeminfo.h		\
467	systm.h			\
468	task.h			\
469	taskq.h			\
470	taskq_impl.h		\
471	t_kuser.h		\
472	t_lock.h		\
473	telioctl.h		\
474	termio.h		\
475	termios.h		\
476	termiox.h		\
477	thread.h		\
478	ticlts.h		\
479	ticots.h		\
480	ticotsord.h		\
481	tihdr.h			\
482	time.h			\
483	time_impl.h		\
484	time_std_impl.h		\
485	timeb.h			\
486	timer.h			\
487	times.h			\
488	timex.h			\
489	timod.h			\
490	tirdwr.h		\
491	tiuser.h		\
492	tl.h			\
493	tnf.h			\
494	tnf_com.h		\
495	tnf_probe.h		\
496	tnf_writer.h		\
497	todio.h			\
498	tpicommon.h		\
499	ts.h			\
500	tspriocntl.h		\
501	ttcompat.h		\
502	ttold.h			\
503	tty.h			\
504	ttychars.h		\
505	ttydev.h		\
506	tuneable.h		\
507	turnstile.h		\
508	types.h			\
509	types32.h		\
510	uadmin.h		\
511	ucred.h			\
512	uio.h			\
513	ulimit.h		\
514	un.h			\
515	unistd.h		\
516	user.h			\
517	ustat.h			\
518	utime.h			\
519	utsname.h		\
520	utssys.h		\
521	uuid.h			\
522	va_impl.h		\
523	va_list.h		\
524	var.h			\
525	varargs.h		\
526	vfs.h			\
527	vfstab.h		\
528	vgareg.h		\
529	visual_io.h		\
530	vm.h			\
531	vmem.h			\
532	vmem_impl.h		\
533	vmmeter.h		\
534	vmsystm.h		\
535	vnode.h			\
536	vol.h			\
537	vtoc.h			\
538	vtrace.h		\
539	vuid_event.h		\
540	vuid_wheel.h		\
541	vuid_queue.h		\
542	vuid_state.h		\
543	vuid_store.h		\
544	wait.h			\
545	wanboot_impl.h		\
546	watchpoint.h		\
547	winlockio.h		\
548	zcons.h			\
549	zone.h			\
550	xti_inet.h		\
551	xti_osi.h		\
552	xti_xtiopt.h		\
553	zmod.h
554
555HDRS=				\
556	$(GENHDRS)		\
557	$(CHKHDRS)
558
559AUDIOHDRS=			\
560	ac97.h			\
561	am_src1.h		\
562	audio_apm.h		\
563	audio_mixer.h		\
564	audio_src.h		\
565	audio_support.h		\
566	audio_trace.h		\
567	audioens.h		\
568	g711.h
569
570BSCHDRS=			\
571	bscbus.h		\
572	bscv_impl.h		\
573	lom_ebuscodes.h		\
574	lom_io.h		\
575	lom_priv.h		\
576	lombus.h
577
578MDESCHDRS=			\
579	mdesc.h			\
580	mdesc_impl.h
581
582CRYPTOHDRS=			\
583	elfsign.h		\
584	ioctl.h			\
585	ioctladmin.h		\
586	common.h		\
587	impl.h			\
588	spi.h			\
589	api.h			\
590	ops_impl.h		\
591	sched_impl.h
592
593DCAMHDRS=			\
594	dcam1394_io.h
595
596IBHDRS=			\
597	ib_types.h	\
598	ib_pkt_hdrs.h
599
600IBTLHDRS=		\
601	ibtl_types.h	\
602	ibtl_status.h	\
603	ibti.h		\
604	ibti_cm.h	\
605	ibci.h		\
606	ibti_common.h	\
607	ibvti.h		\
608	ibtl_ci_types.h
609
610IBTLIMPLHDRS=		\
611	ibtl_util.h
612
613IBNEXHDRS=		\
614	ibnex_devctl.h
615
616IBMFHDRS=		\
617	ibmf.h		\
618	ibmf_msg.h	\
619	ibmf_saa.h	\
620	ibmf_utils.h
621
622IBMGTHDRS=		\
623	ib_dm_attr.h	\
624	ib_mad.h	\
625	sm_attr.h	\
626	sa_recs.h
627
628IBDHDRS=		\
629	ibd.h
630
631TAVORHDRS=		\
632	tavor_ioctl.h
633
634ISOHDRS=			\
635	signal_iso.h
636
637DERIVED_LVMHDRS=	\
638	md_mdiox.h		\
639	md_basic.h		\
640	mdmed.h			\
641	md_mhdx.h		\
642	mdmn_commd.h
643
644LVMHDRS=			\
645	md_convert.h		\
646	md_crc.h		\
647	md_hotspares.h		\
648	md_mddb.h		\
649	md_mirror.h		\
650	md_mirror_shared.h	\
651	md_names.h		\
652	md_notify.h		\
653	md_raid.h		\
654	md_rename.h		\
655	md_sp.h			\
656	md_stripe.h		\
657	md_trans.h		\
658	mdio.h			\
659	mdvar.h
660
661ALL_LVMHDRS=			\
662	$(LVMHDRS)		\
663	$(DERIVED_LVMHDRS)
664
665FMHDRS=				\
666	protocol.h		\
667	util.h
668
669sparc_FMCPUHDRS=		\
670	UltraSPARC-II.h		\
671	UltraSPARC-III.h
672FMCPUHDRS=$($(MACH)_FMCPUHDRS)
673
674FMIOHDRS=			\
675	ddi.h			\
676	pci.h			\
677	sun4upci.h
678
679FSHDRS=				\
680	autofs.h		\
681	cachefs_dir.h		\
682	cachefs_dlog.h		\
683	cachefs_filegrp.h	\
684	cachefs_fs.h		\
685	cachefs_fscache.h	\
686	cachefs_ioctl.h		\
687	cachefs_log.h		\
688	dv_node.h		\
689	fifonode.h		\
690	hsfs_isospec.h		\
691	hsfs_node.h		\
692	hsfs_rrip.h		\
693	hsfs_spec.h		\
694	hsfs_susp.h		\
695	lofs_info.h		\
696	lofs_node.h		\
697	mntdata.h		\
698	namenode.h		\
699	pc_dir.h		\
700	pc_fs.h			\
701	pc_label.h		\
702	pc_node.h		\
703	pxfs_ki.h		\
704	snode.h			\
705	swapnode.h		\
706	tmp.h			\
707	tmpnode.h		\
708	udf_inode.h		\
709	udf_volume.h		\
710	ufs_acl.h		\
711	ufs_bio.h		\
712	ufs_filio.h		\
713	ufs_fs.h		\
714	ufs_fsdir.h		\
715	ufs_inode.h		\
716	ufs_lockfs.h		\
717	ufs_log.h		\
718	ufs_mount.h		\
719	ufs_panic.h		\
720	ufs_prot.h		\
721	ufs_quota.h		\
722	ufs_snap.h              \
723	ufs_trans.h
724
725PCMCIAHDRS=		\
726	pcata.h		\
727	pcelx.h		\
728	pcgld.h		\
729	pcramio.h	\
730	pcramvar.h	\
731	pcser_conf.h	\
732	pcser_io.h	\
733	pcser_reg.h	\
734	pcser_manuspec.h \
735	pcser_var.h
736
737SCSIHDRS=		\
738	scsi.h		\
739	scsi_address.h	\
740	scsi_ctl.h	\
741	scsi_params.h	\
742	scsi_pkt.h	\
743	scsi_resource.h	\
744	scsi_types.h	\
745	scsi_watch.h
746
747SCSICONFHDRS=		\
748	autoconf.h	\
749	device.h
750
751SCSIGENHDRS=		\
752	commands.h	\
753	dad_mode.h	\
754	inquiry.h	\
755	message.h	\
756	mode.h		\
757	sense.h		\
758	status.h
759
760SCSIIMPLHDRS=		\
761	commands.h	\
762	inquiry.h	\
763	mode.h		\
764	pkt_wrapper.h	\
765	sense.h		\
766	services.h	\
767	status.h	\
768	transport.h	\
769	scsi_reset_notify.h \
770	types.h		\
771	uscsi.h
772
773SCSITARGETSHDRS=	\
774	ses.h		\
775	sesio.h		\
776	stdef.h		\
777	sddef.h		\
778	sgendef.h
779
780SCSICADHDRS=		\
781	glmreg.h	\
782	glmvar.h	\
783	mptreg.h	\
784	mptvar.h
785
786SCSIVHCIHDRS=		\
787	scsi_vhci.h
788
789FCHDRS=			\
790	fc_transport.h	\
791	linkapp.h	\
792	fc.h		\
793	fcp.h		\
794	fcal_transport.h \
795	fcal.h		\
796	fcal_linkapp.h	\
797	fcio.h
798
799SYSEVENTHDRS=		\
800	ap_driver.h     \
801	dev.h		\
802	domain.h        \
803	dr.h            \
804	env.h           \
805	eventdefs.h	\
806	ipmp.h		\
807	svm.h
808
809CONTRACTHDRS=		\
810	process.h	\
811	process_impl.h
812
813USBHDRS=	\
814	usba.h	\
815	usbai.h
816
817USBAUDHDRS=           \
818	usb_audio.h
819
820USBHUBDHDRS=		\
821	hub.h		\
822	hubd_impl.h
823
824USBHIDHDRS=		\
825	hid.h
826
827USBMSHDRS=		\
828	usb_bulkonly.h	\
829	usb_cbi.h
830
831USBPRNHDRS=           \
832	usb_printer.h
833
834UGENHDRS=           \
835	usb_ugen.h
836
837HOTPLUGHDRS=	\
838	hpcsvc.h	\
839	hpctrl.h
840
841HOTPLUGPCIHDRS=	\
842	pcicfg.h	\
843	pcihp.h
844
845RSMHDRS= \
846	rsm.h	\
847	rsm_common.h	\
848	rsmapi_common.h \
849	rsmpi.h	\
850	rsmpi_driver.h	\
851	rsmka_path_int.h
852
853I1394HDRS=		\
854	cmd1394.h	\
855	id1394.h	\
856	ieee1212.h	\
857	ieee1394.h	\
858	ixl1394.h	\
859	s1394_impl.h	\
860	t1394.h
861
862# "cmdk" headers used on sparc
863SDKTPHDRS=		\
864	dadkio.h	\
865	fdisk.h
866
867# "cmdk" headers used on i386
868DKTPHDRS=		\
869	altsctr.h	\
870	bbh.h		\
871	cm.h		\
872	cmdev.h		\
873	cmdk.h		\
874	cmpkt.h		\
875	controller.h	\
876	dadev.h		\
877	dadk.h		\
878	dadkio.h	\
879	dklb.h		\
880	fctypes.h	\
881	fdisk.h		\
882	flowctrl.h	\
883	gda.h		\
884	hba.h		\
885	objmgr.h	\
886	quetypes.h	\
887	queue.h		\
888	snlb.h		\
889	tgcom.h		\
890	tgdk.h
891
892# "pc" header files used on i386
893PCHDRS=			\
894	avintr.h	\
895	dma_engine.h	\
896	i8272A.h	\
897	pcic_reg.h	\
898	pcic_var.h	\
899	pic.h		\
900	pit.h		\
901	rtc.h
902
903# I2O header files (currently used only on i386)
904I2OHDRS=		\
905	i2oadptr.h	\
906	i2obscsi.h	\
907	i2oexec.h	\
908	i2omsg.h	\
909	i2omstr.h	\
910	i2outil.h
911
912# SVVS headers and other excluded headers
913XHDRS=		\
914	lo.h	\
915	tidg.h	\
916	tivc.h	\
917	tmux.h
918
919# check files really don't exist
920
921audio/%.check:	audio/%.h
922	$(DOT_H_CHECK)
923
924av/%.check:	av/%.h
925	$(DOT_H_CHECK)
926
927dcam/%.check:	dcam/%.h
928	$(DOT_H_CHECK)
929
930fm/%.check:     fm/%.h
931	$(DOT_H_CHECK)
932
933fm/cpu/%.check:     fm/cpu/%.h
934	$(DOT_H_CHECK)
935
936fm/io/%.check:     fm/io/%.h
937	$(DOT_H_CHECK)
938
939fs/%.check:	fs/%.h
940	$(DOT_H_CHECK)
941
942ib/%.check:		ib/%.h
943	$(DOT_H_CHECK)
944
945ib/clients/ibd/%.check:	ib/clients/ibd/%.h
946	$(DOT_H_CHECK)
947
948ib/ibtl/%.check:	ib/ibtl/%.h
949	$(DOT_H_CHECK)
950
951ib/ibtl/impl/%.check:	ib/ibtl/impl/%.h
952	$(DOT_H_CHECK)
953
954ib/ibnex/%.check:	ib/ibnex/%.h
955	$(DOT_H_CHECK)
956
957ib/mgt/%.check:	ib/mgt/%.h
958	$(DOT_H_CHECK)
959
960ib/mgt/ibmf/%.check:	ib/mgt/ibmf/%.h
961	$(DOT_H_CHECK)
962
963ib/adapters/tavor/%.check:	ib/adapters/tavor/%.h
964	$(DOT_H_CHECK)
965
966lvm/%.check:	lvm/%.h
967	$(DOT_H_CHECK)
968
969pcmcia/%.check:	pcmcia/%.h
970	$(DOT_H_CHECK)
971
972scsi/%.check:		scsi/%.h
973	$(DOT_H_CHECK)
974
975scsi/conf/%.check:	scsi/conf/%.h
976	$(DOT_H_CHECK)
977
978scsi/generic/%.check:	scsi/generic/%.h
979	$(DOT_H_CHECK)
980
981scsi/impl/%.check:	scsi/impl/%.h
982	$(DOT_H_CHECK)
983
984scsi/targets/%.check:	scsi/targets/%.h
985	$(DOT_H_CHECK)
986
987scsi/adapters/%.check:	scsi/adapters/%.h
988	$(DOT_H_CHECK)
989
990sysevent/%.check:     sysevent/%.h
991	$(DOT_H_CHECK)
992
993contract/%.check:     contract/%.h
994	$(DOT_H_CHECK)
995
996usb/%.check:		usb/%.h
997	$(DOT_H_CHECK)
998
999usb/clients/audio/%.check:  usb/clients/audio/%.h
1000	$(DOT_H_CHECK)
1001
1002usb/hubd/%.check:	usb/hubd/%.h
1003	$(DOT_H_CHECK)
1004
1005usb/clients/hid/%.check:	usb/clients/hid/%.h
1006	$(DOT_H_CHECK)
1007
1008usb/clients/mass_storage/%.check:	usb/clients/mass_storage/%.h
1009	$(DOT_H_CHECK)
1010
1011usb/clients/hid/%.check:	usb/clients/hid/%.h
1012	$(DOT_H_CHECK)
1013
1014usb/clients/printer/%.check:  usb/clients/printer/%.h
1015	$(DOT_H_CHECK)
1016
10171394/%.check:         1394/%.h
1018	$(DOT_H_CHECK)
1019
1020rsm/%.check:	rsm/%.h
1021	$(DOT_H_CHECK)
1022
1023CHECKHDRS=						\
1024	$($(MACH)_HDRS:%.h=%.check)			\
1025	$(AUDIOHDRS:%.h=audio/%.check)			\
1026	$(BSCHDRS:%.h=%.check)				\
1027	$(CHKHDRS:%.h=%.check)				\
1028	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1029	$(DCAMHDRS:%.h=dcam/%.check)			\
1030	$(IBHDRS:%.h=ib/%.check)			\
1031	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1032	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1033	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1034	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1035	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1036	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1037	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1038	$(ISOHDRS:%.h=iso/%.check)			\
1039	$(FMHDRS:%.h=fm/%.check)			\
1040	$(FMCPUHDRS:%.h=fm/cpu/%.check)			\
1041	$(FMIOHDRS:%.h=fm/io/%.check)			\
1042	$(FSHDRS:%.h=fs/%.check)			\
1043	$(LVMHDRS:%.h=lvm/%.check)			\
1044	$(XHDRS:%.h=%.check)				\
1045	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1046	$(SCSIHDRS:%.h=scsi/%.check)			\
1047	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
1048	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1049	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1050	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1051	$(FCHDRS:%.h=fc4/%.check)			\
1052	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1053	$(CONTRACTHDRS:%.h=contract/%.check)            \
1054	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1055	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1056	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1057	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1058	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1059	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1060	$(USBHDRS:%.h=usb/%.check)                      \
1061	$(I1394HDRS:%.h=1394/%.check)			\
1062	$(RSMHDRS:%.h=rsm/%.check)
1063
1064
1065ROOTDIR=	$(ROOT)/usr/include/sys
1066
1067ROOTDKTPDIR=	$(ROOTDIR)/dktp
1068
1069sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
1070		$(ROOTDIR)/scsi/targets \
1071		$(ROOTDIR)/av
1072
1073i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
1074		$(ROOTDIR)/i2o $(ROOTDIR)/agp
1075
1076ROOTDIRS=			\
1077	$(ROOTDIR)		\
1078	$(ROOTDIR)/audio	\
1079	$(ROOTDIR)/hotplug	\
1080	$(ROOTDIR)/hotplug/pci	\
1081	$(ROOTDIR)/crypto	\
1082	$(ROOTDIR)/dcam		\
1083	$(ROOTDIR)/iso		\
1084	$(ROOTDIR)/fm		\
1085	$(ROOTDIR)/fm/cpu	\
1086	$(ROOTDIR)/fm/io	\
1087	$(ROOTDIR)/fs		\
1088	$(ROOTDIR)/ib		\
1089	$(ROOTDIR)/ib/adapters/tavor	\
1090	$(ROOTDIR)/ib/ibtl	\
1091	$(ROOTDIR)/ib/ibtl/impl	\
1092	$(ROOTDIR)/ib/mgt	\
1093	$(ROOTDIR)/ib/mgt/ibmf	\
1094	$(ROOTDIR)/ib/ibnex	\
1095	$(ROOTDIR)/ib/clients/ibd \
1096	$(ROOTDIR)/lvm		\
1097	$(ROOTDIR)/pcmcia	\
1098	$(ROOTDIR)/scsi		\
1099	$(ROOTDIR)/scsi/conf	\
1100	$(ROOTDIR)/scsi/generic	\
1101	$(ROOTDIR)/scsi/impl	\
1102	$(ROOTDIR)/fc4		\
1103	$(ROOTDIR)/sysevent     \
1104	$(ROOTDIR)/contract     \
1105	$(ROOTDIR)/usb		\
1106	$(ROOTDIR)/usb/hubd	\
1107	$(ROOTDIR)/usb/clients	\
1108	$(ROOTDIR)/usb/clients/audio  \
1109	$(ROOTDIR)/usb/clients/hid \
1110	$(ROOTDIR)/usb/clients/mass_storage	\
1111	$(ROOTDIR)/usb/clients/printer  \
1112	$(ROOTDIR)/usb/clients/ugen  \
1113	$(ROOTDIR)/1394         \
1114	$(ROOTDIR)/rsm		\
1115	$($(MACH)_ROOTDIRS)
1116
1117
1118ROOTHDRS=				\
1119	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
1120	$(HDRS:%=$(ROOTDIR)/%)
1121
1122ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
1123
1124ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
1125
1126ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
1127
1128ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
1129
1130ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
1131ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
1132ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
1133ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
1134ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
1135ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
1136ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
1137ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
1138
1139ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
1140
1141ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
1142ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
1143ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
1144
1145ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
1146
1147ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
1148
1149ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%)
1150
1151ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
1152ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
1153ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
1154ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
1155ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
1156ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
1157ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
1158
1159ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fc4/%)
1160
1161ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
1162ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
1163
1164ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
1165
1166ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
1167ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
1168ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
1169ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
1170ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
1171ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
1172ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
1173
1174ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
1175
1176ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
1177
1178ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
1179ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
1180ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
1181ROOTI2OHDRS= $(I2OHDRS:%=$(ROOTDIR)/i2o/%)
1182ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
1183ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
1184
1185
1186sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
1187		$(ROOTFCHDRS) $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \
1188		$(ROOTUSBAUDHDRS) \
1189		$(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) $(ROOTUSBPRNHDRS) \
1190		$(ROOTUGENHDRS)
1191
1192i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
1193		$(ROOTSCSIVHCIHDRS) $(ROOTFCHDRS)	\
1194		$(ROOTI2OHDRS) $(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \
1195		$(ROOTHOTPLUGPCIHDRS)
1196
1197# install rules
1198$(ROOTDIR)/%: %
1199	$(INS.file)
1200
1201$(ROOTDIR)/crypto/%: crypto/%
1202	$(INS.file)
1203
1204$(ROOTDIR)/fm/%:                fm/%
1205	$(INS.file)
1206
1207$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
1208	$(INS.file)
1209
1210$(ROOTDIR)/fm/io/%:                fm/io/%
1211	$(INS.file)
1212
1213$(ROOTDIR)/fs/%: fs/%
1214	$(INS.file)
1215
1216$(ROOTDIR)/ib/%:		ib/%
1217	$(INS.file)
1218
1219$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
1220	$(INS.file)
1221
1222$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
1223	$(INS.file)
1224
1225$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
1226	$(INS.file)
1227
1228$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
1229	$(INS.file)
1230
1231$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
1232	$(INS.file)
1233
1234$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
1235	$(INS.file)
1236
1237$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
1238	$(INS.file)
1239
1240$(ROOTDIR)/lvm/%: lvm/%
1241	$(INS.file)
1242
1243$(ROOTDIR)/pcmcia/%:		pcmcia/%
1244	$(INS.file)
1245
1246$(ROOTDIR)/scsi/%:		scsi/%
1247	$(INS.file)
1248
1249$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
1250	$(INS.file)
1251
1252$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
1253	$(INS.file)
1254
1255$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
1256	$(INS.file)
1257
1258$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
1259	$(INS.file)
1260
1261$(ROOTDIR)/fc4/%:		fc4/%
1262	$(INS.file)
1263
1264$(ROOTDIR)/sysevent/%:		sysevent/%
1265	$(INS.file)
1266
1267$(ROOTDIR)/contract/%:		contract/%
1268	$(INS.file)
1269
1270$(ROOTDIR)/usb/%:		usb/%
1271	$(INS.file)
1272
1273$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
1274	$(INS.file)
1275
1276$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
1277	$(INS.file)
1278
1279$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
1280	$(INS.file)
1281
1282$(ROOTDIR)/dktp/%: dktp/%
1283	$(INS.file)
1284
1285$(ROOTDIR)/1394/%:                    1394/%
1286	$(INS.file)
1287
1288$(ROOTDIR)/rsm/%:	rsm/%
1289	$(INS.file)
1290
1291.KEEP_STATE:
1292
1293.PARALLEL:			\
1294	$(CHECKHDRS)		\
1295	$(ROOTHDRS)		\
1296	$(ROOTAUDHDRS)		\
1297	$(ROOTCRYPTOHDRS)	\
1298	$(ROOTDCAMHDRS)		\
1299	$(ROOTISOHDRS)		\
1300	$(ROOTFMHDRS)		\
1301	$(ROOTFMCPUHDRS)	\
1302	$(ROOTFMIOHDRS)	\
1303	$(ROOTFSHDRS)		\
1304	$(ROOTIBDHDRS)		\
1305	$(ROOTIBHDRS)		\
1306	$(ROOTIBTLHDRS)		\
1307	$(ROOTIBTLIMPLHDRS)	\
1308	$(ROOTIBNEXHDRS)	\
1309	$(ROOTIBMGTHDRS)	\
1310	$(ROOTIBMFHDRS)		\
1311	$(ROOTTAVORHDRS)	\
1312	$(ROOTLVMHDRS)		\
1313	$(ROOTPCMCIAHDRS)	\
1314	$(ROOTSCSIHDRS)		\
1315	$(ROOTSCSICONFHDRS)	\
1316	$(ROOTSCSIGENHDRS)	\
1317	$(ROOTSCSIIMPLHDRS)	\
1318	$(ROOTSCSIVHCIHDRS)	\
1319	$(ROOTFCHDRS)		\
1320	$(ROOTSYSEVENTHDRS)     \
1321	$(ROOTCONTRACTHDRS)     \
1322	$(ROOTUSBHDRS)		\
1323	$(ROOTUSBAUDHDRS)	\
1324	$(ROOTUSBHUBDHDRS)	\
1325	$(ROOTUSBHIDHDRS)	\
1326	$(ROOTUSBMSHDRS)	\
1327	$(ROOTUSBPRNHDRS)       \
1328	$(ROOTUGENHDRS)		\
1329	$(ROOT1394HDRS)         \
1330	$(ROOTHOTPLUGHDRS)	\
1331	$(ROOTHOTPLUGPCIHDRS)	\
1332	$(ROOTRSMHDRS)		\
1333	$($(MACH)_ROOTHDRS)
1334
1335
1336install_h:			\
1337	$(ROOTDIRS)		\
1338	LVMDERIVED_H		\
1339	.WAIT			\
1340	$(ROOTHDRS)		\
1341	$(ROOTAUDHDRS)		\
1342	$(ROOTCRYPTOHDRS)	\
1343	$(ROOTDCAMHDRS)		\
1344	$(ROOTISOHDRS)		\
1345	$(ROOTFMHDRS)		\
1346	$(ROOTFMCPUHDRS)	\
1347	$(ROOTFMIOHDRS)	\
1348	$(ROOTFSHDRS)		\
1349	$(ROOTIBDHDRS)		\
1350	$(ROOTIBHDRS)		\
1351	$(ROOTIBTLHDRS)		\
1352	$(ROOTIBTLIMPLHDRS)	\
1353	$(ROOTIBNEXHDRS)	\
1354	$(ROOTIBMGTHDRS)	\
1355	$(ROOTIBMFHDRS)		\
1356	$(ROOTTAVORHDRS)	\
1357	$(ROOTLVMHDRS)		\
1358	$(ROOTPCMCIAHDRS)	\
1359	$(ROOTSCSIHDRS)		\
1360	$(ROOTSCSICONFHDRS)	\
1361	$(ROOTSCSIGENHDRS)	\
1362	$(ROOTSCSIIMPLHDRS)	\
1363	$(ROOTSCSIVHCIHDRS)	\
1364	$(ROOTFCHDRS)		\
1365	$(ROOTSYSEVENTHDRS)     \
1366	$(ROOTCONTRACTHDRS)     \
1367	$(ROOTUSBHDRS)		\
1368	$(ROOTUSBAUDHDRS)	\
1369	$(ROOTUSBHUBDHDRS)	\
1370	$(ROOTUSBHIDHDRS)	\
1371	$(ROOTUSBMSHDRS)	\
1372	$(ROOTUSBPRNHDRS)       \
1373	$(ROOTUGENHDRS)		\
1374	$(ROOT1394HDRS)         \
1375	$(ROOTHOTPLUGHDRS)	\
1376	$(ROOTHOTPLUGPCIHDRS)	\
1377	$(ROOTRSMHDRS)		\
1378	$($(MACH)_ROOTHDRS)	\
1379	svvs_h
1380
1381svvs_h: FRC
1382	@if [ -f lo.h  ]; then \
1383		$(MAKE) install_X_h; \
1384	else \
1385		true; \
1386	fi
1387
1388all_h: $(GENHDRS)
1389
1390priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1391	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1392
1393priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1394	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1395
1396install_X_h: $(ROOTXHDRS)
1397
1398$(ROOTDIRS):
1399	$(INS.dir)
1400
1401LVMDERIVED_H:
1402	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1403
1404check:	$(CHECKHDRS)
1405
1406FRC:
1407
1408# EXPORT DELETE START
1409EXPORT_SRC:
1410	$(RM) wanboot_impl.h+ Makefile+
1411	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1412		< wanboot_impl.h > wanboot_impl.h+
1413	$(MV) wanboot_impl.h+ wanboot_impl.h
1414	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1415		< Makefile > Makefile+
1416	$(RM) Makefile
1417	$(MV) Makefile+ Makefile
1418	$(CHMOD) 444 Makefile wanboot_impl.h
1419# EXPORT DELETE END
1420