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