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