xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision 522caefd66f4664db43a7b0008a469b547aea942)
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	cmlb.h			\
114	cmn_err.h		\
115	compress.h		\
116	condvar.h		\
117	condvar_impl.h		\
118	conf.h			\
119	consdev.h		\
120	console.h		\
121	contract.h		\
122	contract_impl.h		\
123	copyops.h		\
124	core.h			\
125	corectl.h		\
126	cpc_impl.h		\
127	cpc_pcbe.h		\
128	cpr.h			\
129	cpupart.h		\
130	cpuvar.h		\
131	crc32.h			\
132	cred.h			\
133	cred_impl.h		\
134	crtctl.h		\
135	cryptmod.h		\
136	csiioctl.h		\
137	ctf.h			\
138	ctfs.h			\
139	ctfs_impl.h		\
140	ctf_api.h		\
141	ctype.h			\
142	cyclic.h		\
143	cyclic_impl.h		\
144	dacf.h			\
145	dacf_impl.h		\
146	dc_ki.h			\
147	ddi.h			\
148	ddifm.h			\
149	ddifm_impl.h		\
150	ddi_intr.h		\
151	ddi_intr_impl.h		\
152	ddi_impldefs.h		\
153	ddi_implfuncs.h		\
154	ddidevmap.h		\
155	ddidmareq.h		\
156	ddimapreq.h		\
157	ddipropdefs.h		\
158	dditypes.h		\
159	debug.h			\
160	des.h			\
161	devctl.h		\
162	devctl_impl.h		\
163	devinfo_impl.h		\
164	devops.h		\
165	devpolicy.h		\
166	devpoll.h		\
167	dirent.h		\
168	disp.h			\
169	dkbad.h			\
170	dkio.h			\
171	dklabel.h		\
172	dl.h			\
173	dlpi.h			\
174	dld.h			\
175	dld_impl.h		\
176	dls.h			\
177	dls_impl.h		\
178	dma_i8237A.h            \
179	dnlc.h			\
180	door.h			\
181	door_data.h		\
182	door_impl.h		\
183	dtrace.h		\
184	dtrace_impl.h		\
185	dumpadm.h		\
186	dumphdr.h		\
187	ecppsys.h		\
188	ecppio.h                \
189	ecppreg.h               \
190	ecppvar.h               \
191	efi_partition.h		\
192	elf.h			\
193	elf_386.h		\
194	elf_M32.h		\
195	elf_SPARC.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	note.h			\
334	nvpair.h                \
335	nvpair_impl.h           \
336	objfs.h			\
337	objfs_impl.h		\
338	ontrap.h                \
339	open.h			\
340	openpromio.h		\
341	panic.h			\
342	param.h			\
343	pathconf.h		\
344	pathname.h		\
345	pattr.h			\
346	serializer.h		\
347	pbio.h			\
348	pccard.h		\
349	pci.h			\
350	pcie.h			\
351	pci_impl.h		\
352	pcmcia.h		\
353	pctypes.h		\
354	pem.h			\
355	pfmod.h			\
356	phx.h			\
357	pm.h			\
358	policy.h		\
359	poll.h			\
360	poll_impl.h		\
361	pool.h			\
362	pool_impl.h		\
363	pool_pset.h		\
364	port.h			\
365	port_impl.h		\
366	port_kernel.h		\
367	ppmio.h                 \
368	priocntl.h		\
369	priv.h			\
370	priv_impl.h		\
371	prnio.h			\
372	proc.h			\
373	processor.h		\
374	procfs.h		\
375	procset.h		\
376	project.h		\
377	protosw.h		\
378	prsystm.h		\
379	pset.h			\
380	pshot.h			\
381	ptem.h			\
382	ptms.h			\
383	ptyvar.h		\
384	raidioctl.h		\
385	ramdisk.h		\
386	random.h		\
387	rctl.h			\
388	rctl_impl.h		\
389	reboot.h		\
390	refstr.h		\
391	refstr_impl.h		\
392	resource.h		\
393	rlioctl.h		\
394	rt.h			\
395	rtpriocntl.h		\
396	rwlock.h		\
397	rwlock_impl.h		\
398	rwstlock.h		\
399	sad.h			\
400	schedctl.h		\
401	sdt.h			\
402	select.h		\
403	sem.h			\
404	sem_impl.h		\
405	sema_impl.h		\
406	semaphore.h		\
407	sendfile.h		\
408	ser_sync.h		\
409	session.h		\
410	sha1.h			\
411	sha1_consts.h		\
412	sha2.h			\
413	sha2_consts.h		\
414	share.h			\
415	shm.h			\
416	shm_impl.h		\
417	siginfo.h		\
418	signal.h		\
419	sleepq.h		\
420	smbios.h		\
421	smbios_impl.h		\
422	sobject.h		\
423	socket.h		\
424	socket_impl.h		\
425	socketvar.h		\
426	sockio.h		\
427	squeue.h		\
428	squeue_impl.h		\
429	sservice.h		\
430	stat.h			\
431	statfs.h		\
432	statvfs.h		\
433	stdint.h		\
434	stermio.h		\
435	stream.h		\
436	strft.h			\
437	strlog.h		\
438	strmdep.h		\
439	stropts.h		\
440	strredir.h		\
441	strstat.h		\
442	strsubr.h		\
443	strsun.h		\
444	strtty.h		\
445	sunddi.h		\
446	sunldi.h		\
447	sunldi_impl.h		\
448	sunmdi.h		\
449	sunndi.h		\
450	sunos_dhcp_class.h	\
451	sunpm.h			\
452	suntpi.h		\
453	suntty.h		\
454	swap.h			\
455	synch.h			\
456	syscall.h		\
457	sysconf.h		\
458	sysconfig.h		\
459	sysevent.h	\
460	sysevent_impl.h         \
461	sysinfo.h		\
462	syslog.h		\
463	sysmacros.h		\
464	sysmsg_impl.h		\
465	systeminfo.h		\
466	systm.h			\
467	task.h			\
468	taskq.h			\
469	taskq_impl.h		\
470	t_kuser.h		\
471	t_lock.h		\
472	telioctl.h		\
473	termio.h		\
474	termios.h		\
475	termiox.h		\
476	thread.h		\
477	ticlts.h		\
478	ticots.h		\
479	ticotsord.h		\
480	tihdr.h			\
481	time.h			\
482	time_impl.h		\
483	time_std_impl.h		\
484	timeb.h			\
485	timer.h			\
486	times.h			\
487	timex.h			\
488	timod.h			\
489	tirdwr.h		\
490	tiuser.h		\
491	tl.h			\
492	tnf.h			\
493	tnf_com.h		\
494	tnf_probe.h		\
495	tnf_writer.h		\
496	todio.h			\
497	tpicommon.h		\
498	ts.h			\
499	tspriocntl.h		\
500	ttcompat.h		\
501	ttold.h			\
502	tty.h			\
503	ttychars.h		\
504	ttydev.h		\
505	tuneable.h		\
506	turnstile.h		\
507	types.h			\
508	types32.h		\
509	uadmin.h		\
510	ucred.h			\
511	uio.h			\
512	ulimit.h		\
513	un.h			\
514	unistd.h		\
515	user.h			\
516	ustat.h			\
517	utime.h			\
518	utsname.h		\
519	utssys.h		\
520	uuid.h			\
521	va_impl.h		\
522	va_list.h		\
523	var.h			\
524	varargs.h		\
525	vfs.h			\
526	vfstab.h		\
527	vgareg.h		\
528	visual_io.h		\
529	vm.h			\
530	vmem.h			\
531	vmem_impl.h		\
532	vmmeter.h		\
533	vmsystm.h		\
534	vnode.h			\
535	vol.h			\
536	vtoc.h			\
537	vtrace.h		\
538	vuid_event.h		\
539	vuid_wheel.h		\
540	vuid_queue.h		\
541	vuid_state.h		\
542	vuid_store.h		\
543	wait.h			\
544	wanboot_impl.h		\
545	watchpoint.h		\
546	winlockio.h		\
547	zcons.h			\
548	zone.h			\
549	xti_inet.h		\
550	xti_osi.h		\
551	xti_xtiopt.h		\
552	zmod.h
553
554HDRS=				\
555	$(GENHDRS)		\
556	$(CHKHDRS)
557
558AUDIOHDRS=			\
559	ac97.h			\
560	am_src1.h		\
561	audio_apm.h		\
562	audio_mixer.h		\
563	audio_src.h		\
564	audio_support.h		\
565	audio_trace.h		\
566	audioens.h		\
567	g711.h
568
569BSCHDRS=			\
570	bscbus.h		\
571	bscv_impl.h		\
572	lom_ebuscodes.h		\
573	lom_io.h		\
574	lom_priv.h		\
575	lombus.h
576
577MDESCHDRS=			\
578	mdesc.h			\
579	mdesc_impl.h
580
581CRYPTOHDRS=			\
582	elfsign.h		\
583	ioctl.h			\
584	ioctladmin.h		\
585	common.h		\
586	impl.h			\
587	spi.h			\
588	api.h			\
589	ops_impl.h		\
590	sched_impl.h
591
592DCAMHDRS=			\
593	dcam1394_io.h
594
595IBHDRS=			\
596	ib_types.h	\
597	ib_pkt_hdrs.h
598
599IBTLHDRS=		\
600	ibtl_types.h	\
601	ibtl_status.h	\
602	ibti.h		\
603	ibti_cm.h	\
604	ibci.h		\
605	ibti_common.h	\
606	ibvti.h		\
607	ibtl_ci_types.h
608
609IBTLIMPLHDRS=		\
610	ibtl_util.h
611
612IBNEXHDRS=		\
613	ibnex_devctl.h
614
615IBMFHDRS=		\
616	ibmf.h		\
617	ibmf_msg.h	\
618	ibmf_saa.h	\
619	ibmf_utils.h
620
621IBMGTHDRS=		\
622	ib_dm_attr.h	\
623	ib_mad.h	\
624	sm_attr.h	\
625	sa_recs.h
626
627IBDHDRS=		\
628	ibd.h
629
630TAVORHDRS=		\
631	tavor_ioctl.h
632
633ISOHDRS=			\
634	signal_iso.h
635
636DERIVED_LVMHDRS=	\
637	md_mdiox.h		\
638	md_basic.h		\
639	mdmed.h			\
640	md_mhdx.h		\
641	mdmn_commd.h
642
643LVMHDRS=			\
644	md_convert.h		\
645	md_crc.h		\
646	md_hotspares.h		\
647	md_mddb.h		\
648	md_mirror.h		\
649	md_mirror_shared.h	\
650	md_names.h		\
651	md_notify.h		\
652	md_raid.h		\
653	md_rename.h		\
654	md_sp.h			\
655	md_stripe.h		\
656	md_trans.h		\
657	mdio.h			\
658	mdvar.h
659
660ALL_LVMHDRS=			\
661	$(LVMHDRS)		\
662	$(DERIVED_LVMHDRS)
663
664FMHDRS=				\
665	protocol.h		\
666	util.h
667
668sparc_FMCPUHDRS=		\
669	UltraSPARC-II.h		\
670	UltraSPARC-III.h	\
671	UltraSPARC-T1.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	zfs.h
725
726PCMCIAHDRS=		\
727	pcata.h		\
728	pcelx.h		\
729	pcgld.h		\
730	pcramio.h	\
731	pcramvar.h	\
732	pcser_conf.h	\
733	pcser_io.h	\
734	pcser_reg.h	\
735	pcser_manuspec.h \
736	pcser_var.h
737
738SCSIHDRS=		\
739	scsi.h		\
740	scsi_address.h	\
741	scsi_ctl.h	\
742	scsi_params.h	\
743	scsi_pkt.h	\
744	scsi_resource.h	\
745	scsi_types.h	\
746	scsi_watch.h
747
748SCSICONFHDRS=		\
749	autoconf.h	\
750	device.h
751
752SCSIGENHDRS=		\
753	commands.h	\
754	dad_mode.h	\
755	inquiry.h	\
756	message.h	\
757	mode.h		\
758	sense.h		\
759	status.h
760
761SCSIIMPLHDRS=		\
762	commands.h	\
763	inquiry.h	\
764	mode.h		\
765	pkt_wrapper.h	\
766	sense.h		\
767	services.h	\
768	status.h	\
769	transport.h	\
770	scsi_reset_notify.h \
771	types.h		\
772	uscsi.h
773
774SCSITARGETSHDRS=	\
775	ses.h		\
776	sesio.h		\
777	stdef.h		\
778	sddef.h		\
779	sgendef.h
780
781SCSICADHDRS=		\
782	glmreg.h	\
783	glmvar.h	\
784	mptreg.h	\
785	mptvar.h
786
787SCSIVHCIHDRS=		\
788	scsi_vhci.h
789
790FCHDRS=			\
791	fc_transport.h	\
792	linkapp.h	\
793	fc.h		\
794	fcp.h		\
795	fcal_transport.h \
796	fcal.h		\
797	fcal_linkapp.h	\
798	fcio.h
799
800SYSEVENTHDRS=		\
801	ap_driver.h     \
802	dev.h		\
803	domain.h        \
804	dr.h            \
805	env.h           \
806	eventdefs.h	\
807	ipmp.h		\
808	svm.h
809
810CONTRACTHDRS=		\
811	process.h	\
812	process_impl.h
813
814USBHDRS=	\
815	usba.h	\
816	usbai.h
817
818USBAUDHDRS=           \
819	usb_audio.h
820
821USBHUBDHDRS=		\
822	hub.h		\
823	hubd_impl.h
824
825USBHIDHDRS=		\
826	hid.h
827
828USBMSHDRS=		\
829	usb_bulkonly.h	\
830	usb_cbi.h
831
832USBPRNHDRS=           \
833	usb_printer.h
834
835UGENHDRS=           \
836	usb_ugen.h
837
838HOTPLUGHDRS=	\
839	hpcsvc.h	\
840	hpctrl.h
841
842HOTPLUGPCIHDRS=	\
843	pcicfg.h	\
844	pcihp.h
845
846RSMHDRS= \
847	rsm.h	\
848	rsm_common.h	\
849	rsmapi_common.h \
850	rsmpi.h	\
851	rsmpi_driver.h	\
852	rsmka_path_int.h
853
854I1394HDRS=		\
855	cmd1394.h	\
856	id1394.h	\
857	ieee1212.h	\
858	ieee1394.h	\
859	ixl1394.h	\
860	s1394_impl.h	\
861	t1394.h
862
863# "cmdk" headers used on sparc
864SDKTPHDRS=		\
865	dadkio.h	\
866	fdisk.h
867
868# "cmdk" headers used on i386
869DKTPHDRS=		\
870	altsctr.h	\
871	bbh.h		\
872	cm.h		\
873	cmdev.h		\
874	cmdk.h		\
875	cmpkt.h		\
876	controller.h	\
877	dadev.h		\
878	dadk.h		\
879	dadkio.h	\
880	fctypes.h	\
881	fdisk.h		\
882	flowctrl.h	\
883	gda.h		\
884	hba.h		\
885	quetypes.h	\
886	queue.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