xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision b11ac39f7d50211a3de081489d8d964e4cfeb0f9)
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	ght.h			\
240	gld.h			\
241	gldpriv.h		\
242	hdio.h			\
243	hwconf.h		\
244	ia.h			\
245	iapriocntl.h		\
246	id32.h			\
247	ieeefp.h		\
248	id_space.h		\
249	instance.h		\
250	int_const.h		\
251	int_fmtio.h		\
252	int_limits.h		\
253	int_types.h		\
254	inttypes.h		\
255	ioccom.h		\
256	ioctl.h			\
257	ioreq.h			\
258	ipc.h			\
259	ipc_impl.h		\
260	isa_defs.h		\
261	jioctl.h		\
262	kbd.h			\
263	kbdreg.h		\
264	kbio.h			\
265	kcpc.h			\
266	kdi.h			\
267	kdi_impl.h		\
268	klwp.h			\
269	kmdb.h			\
270	kmem.h			\
271	kmem_impl.h		\
272	kobj.h			\
273	kobj_impl.h		\
274	kstat.h			\
275	kstr.h			\
276	ksyms.h			\
277	ksynch.h		\
278	ldterm.h		\
279	lgrp.h			\
280	lgrp_user.h		\
281	link.h			\
282	list.h			\
283	list_impl.h		\
284	llc1.h			\
285	llc2.h			\
286	loadavg.h		\
287	lock.h			\
288	lockfs.h		\
289	lockstat.h		\
290	lofi.h			\
291	log.h			\
292	logindmux.h		\
293	logindmux_impl.h	\
294	lwp.h			\
295	lwp_timer_impl.h	\
296	lwp_upimutex_impl.h	\
297	mac.h			\
298	mac_impl.h		\
299	map.h			\
300	md5.h			\
301	md5_consts.h		\
302	mdi_impldefs.h		\
303	mem.h			\
304	mem_config.h		\
305	memlist.h		\
306	mkdev.h			\
307	mhd.h			\
308	miiregs.h		\
309	mixer.h			\
310	mman.h			\
311	mntent.h		\
312	mntio.h			\
313	mnttab.h		\
314	modctl.h		\
315	mode.h			\
316	model.h			\
317	modhash.h		\
318	modhash_impl.h		\
319	mount.h			\
320	msacct.h		\
321	msg.h			\
322	msg_impl.h		\
323	msio.h			\
324	msreg.h			\
325	mtio.h			\
326	multidata.h		\
327	multidata_impl.h	\
328	mutex.h			\
329	nbmlock.h		\
330	ndifm.h		\
331	ndi_impldefs.h		\
332	netconfig.h		\
333	nexusdefs.h		\
334	nexusintr.h		\
335	note.h			\
336	nvpair.h                \
337	nvpair_impl.h           \
338	objfs.h			\
339	objfs_impl.h		\
340	ontrap.h                \
341	open.h			\
342	openpromio.h		\
343	panic.h			\
344	param.h			\
345	pathconf.h		\
346	pathname.h		\
347	pattr.h			\
348	serializer.h		\
349	pbio.h			\
350	pccard.h		\
351	pci.h			\
352	pcie.h			\
353	pci_impl.h		\
354	pcmcia.h		\
355	pctypes.h		\
356	pem.h			\
357	pfmod.h			\
358	phx.h			\
359	pm.h			\
360	policy.h		\
361	poll.h			\
362	poll_impl.h		\
363	pool.h			\
364	pool_impl.h		\
365	pool_pset.h		\
366	port.h			\
367	port_impl.h		\
368	port_kernel.h		\
369	ppmio.h                 \
370	priocntl.h		\
371	priv.h			\
372	priv_impl.h		\
373	prnio.h			\
374	proc.h			\
375	processor.h		\
376	procfs.h		\
377	procset.h		\
378	project.h		\
379	protosw.h		\
380	prsystm.h		\
381	pset.h			\
382	pshot.h			\
383	ptem.h			\
384	ptms.h			\
385	ptyvar.h		\
386	raidioctl.h		\
387	ramdisk.h		\
388	random.h		\
389	rctl.h			\
390	rctl_impl.h		\
391	reboot.h		\
392	refstr.h		\
393	refstr_impl.h		\
394	resource.h		\
395	rlioctl.h		\
396	rt.h			\
397	rtpriocntl.h		\
398	rwlock.h		\
399	rwlock_impl.h		\
400	rwstlock.h		\
401	sad.h			\
402	schedctl.h		\
403	sdt.h			\
404	select.h		\
405	sem.h			\
406	sem_impl.h		\
407	sema_impl.h		\
408	semaphore.h		\
409	sendfile.h		\
410	ser_sync.h		\
411	session.h		\
412	sha1.h			\
413	sha1_consts.h		\
414	sha2.h			\
415	sha2_consts.h		\
416	share.h			\
417	shm.h			\
418	shm_impl.h		\
419	siginfo.h		\
420	signal.h		\
421	sleepq.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
671FMCPUHDRS=$($(MACH)_FMCPUHDRS)
672
673FMIOHDRS=			\
674	ddi.h			\
675	pci.h			\
676	sun4upci.h
677
678FSHDRS=				\
679	autofs.h		\
680	cachefs_dir.h		\
681	cachefs_dlog.h		\
682	cachefs_filegrp.h	\
683	cachefs_fs.h		\
684	cachefs_fscache.h	\
685	cachefs_ioctl.h		\
686	cachefs_log.h		\
687	dv_node.h		\
688	fifonode.h		\
689	hsfs_isospec.h		\
690	hsfs_node.h		\
691	hsfs_rrip.h		\
692	hsfs_spec.h		\
693	hsfs_susp.h		\
694	lofs_info.h		\
695	lofs_node.h		\
696	mntdata.h		\
697	namenode.h		\
698	pc_dir.h		\
699	pc_fs.h			\
700	pc_label.h		\
701	pc_node.h		\
702	pxfs_ki.h		\
703	snode.h			\
704	swapnode.h		\
705	tmp.h			\
706	tmpnode.h		\
707	udf_inode.h		\
708	udf_volume.h		\
709	ufs_acl.h		\
710	ufs_bio.h		\
711	ufs_filio.h		\
712	ufs_fs.h		\
713	ufs_fsdir.h		\
714	ufs_inode.h		\
715	ufs_lockfs.h		\
716	ufs_log.h		\
717	ufs_mount.h		\
718	ufs_panic.h		\
719	ufs_prot.h		\
720	ufs_quota.h		\
721	ufs_snap.h              \
722	ufs_trans.h
723
724PCMCIAHDRS=		\
725	pcata.h		\
726	pcelx.h		\
727	pcgld.h		\
728	pcramio.h	\
729	pcramvar.h	\
730	pcser_conf.h	\
731	pcser_io.h	\
732	pcser_reg.h	\
733	pcser_manuspec.h \
734	pcser_var.h
735
736SCSIHDRS=		\
737	scsi.h		\
738	scsi_address.h	\
739	scsi_ctl.h	\
740	scsi_params.h	\
741	scsi_pkt.h	\
742	scsi_resource.h	\
743	scsi_types.h	\
744	scsi_watch.h
745
746SCSICONFHDRS=		\
747	autoconf.h	\
748	device.h
749
750SCSIGENHDRS=		\
751	commands.h	\
752	dad_mode.h	\
753	inquiry.h	\
754	message.h	\
755	mode.h		\
756	sense.h		\
757	status.h
758
759SCSIIMPLHDRS=		\
760	commands.h	\
761	inquiry.h	\
762	mode.h		\
763	pkt_wrapper.h	\
764	sense.h		\
765	services.h	\
766	status.h	\
767	transport.h	\
768	scsi_reset_notify.h \
769	types.h		\
770	uscsi.h
771
772SCSITARGETSHDRS=	\
773	ses.h		\
774	sesio.h		\
775	stdef.h		\
776	sddef.h		\
777	sgendef.h
778
779SCSICADHDRS=		\
780	glmreg.h	\
781	glmvar.h	\
782	mptreg.h	\
783	mptvar.h
784
785SCSIVHCIHDRS=		\
786	scsi_vhci.h
787
788FCHDRS=			\
789	fc_transport.h	\
790	linkapp.h	\
791	fc.h		\
792	fcp.h		\
793	fcal_transport.h \
794	fcal.h		\
795	fcal_linkapp.h	\
796	fcio.h
797
798SYSEVENTHDRS=		\
799	ap_driver.h     \
800	dev.h		\
801	domain.h        \
802	dr.h            \
803	env.h           \
804	eventdefs.h	\
805	ipmp.h		\
806	svm.h
807
808CONTRACTHDRS=		\
809	process.h	\
810	process_impl.h
811
812USBHDRS=	\
813	usba.h	\
814	usbai.h
815
816USBAUDHDRS=           \
817	usb_audio.h
818
819USBHUBDHDRS=		\
820	hub.h		\
821	hubd_impl.h
822
823USBHIDHDRS=		\
824	hid.h
825
826USBMSHDRS=		\
827	usb_bulkonly.h	\
828	usb_cbi.h
829
830USBPRNHDRS=           \
831	usb_printer.h
832
833UGENHDRS=           \
834	usb_ugen.h
835
836HOTPLUGHDRS=	\
837	hpcsvc.h	\
838	hpctrl.h
839
840HOTPLUGPCIHDRS=	\
841	pcicfg.h	\
842	pcihp.h
843
844RSMHDRS= \
845	rsm.h	\
846	rsm_common.h	\
847	rsmapi_common.h \
848	rsmpi.h	\
849	rsmpi_driver.h	\
850	rsmka_path_int.h
851
852I1394HDRS=		\
853	cmd1394.h	\
854	id1394.h	\
855	ieee1212.h	\
856	ieee1394.h	\
857	ixl1394.h	\
858	s1394_impl.h	\
859	t1394.h
860
861# "cmdk" headers used on sparc
862SDKTPHDRS=		\
863	dadkio.h	\
864	fdisk.h
865
866# "cmdk" headers used on i386
867DKTPHDRS=		\
868	altsctr.h	\
869	bbh.h		\
870	cm.h		\
871	cmdev.h		\
872	cmdk.h		\
873	cmpkt.h		\
874	controller.h	\
875	dadev.h		\
876	dadk.h		\
877	dadkio.h	\
878	dklb.h		\
879	fctypes.h	\
880	fdisk.h		\
881	flowctrl.h	\
882	gda.h		\
883	hba.h		\
884	objmgr.h	\
885	quetypes.h	\
886	queue.h		\
887	snlb.h		\
888	tgcom.h		\
889	tgdk.h
890
891# "pc" header files used on i386
892PCHDRS=			\
893	avintr.h	\
894	dma_engine.h	\
895	i8272A.h	\
896	pcic_reg.h	\
897	pcic_var.h	\
898	pic.h		\
899	pit.h		\
900	rtc.h
901
902# I2O header files (currently used only on i386)
903I2OHDRS=		\
904	i2oadptr.h	\
905	i2obscsi.h	\
906	i2oexec.h	\
907	i2omsg.h	\
908	i2omstr.h	\
909	i2outil.h
910
911# SVVS headers and other excluded headers
912XHDRS=		\
913	lo.h	\
914	tidg.h	\
915	tivc.h	\
916	tmux.h
917
918# check files really don't exist
919
920audio/%.check:	audio/%.h
921	$(DOT_H_CHECK)
922
923av/%.check:	av/%.h
924	$(DOT_H_CHECK)
925
926dcam/%.check:	dcam/%.h
927	$(DOT_H_CHECK)
928
929fm/%.check:     fm/%.h
930	$(DOT_H_CHECK)
931
932fm/cpu/%.check:     fm/cpu/%.h
933	$(DOT_H_CHECK)
934
935fm/io/%.check:     fm/io/%.h
936	$(DOT_H_CHECK)
937
938fs/%.check:	fs/%.h
939	$(DOT_H_CHECK)
940
941ib/%.check:		ib/%.h
942	$(DOT_H_CHECK)
943
944ib/clients/ibd/%.check:	ib/clients/ibd/%.h
945	$(DOT_H_CHECK)
946
947ib/ibtl/%.check:	ib/ibtl/%.h
948	$(DOT_H_CHECK)
949
950ib/ibtl/impl/%.check:	ib/ibtl/impl/%.h
951	$(DOT_H_CHECK)
952
953ib/ibnex/%.check:	ib/ibnex/%.h
954	$(DOT_H_CHECK)
955
956ib/mgt/%.check:	ib/mgt/%.h
957	$(DOT_H_CHECK)
958
959ib/mgt/ibmf/%.check:	ib/mgt/ibmf/%.h
960	$(DOT_H_CHECK)
961
962ib/adapters/tavor/%.check:	ib/adapters/tavor/%.h
963	$(DOT_H_CHECK)
964
965lvm/%.check:	lvm/%.h
966	$(DOT_H_CHECK)
967
968pcmcia/%.check:	pcmcia/%.h
969	$(DOT_H_CHECK)
970
971scsi/%.check:		scsi/%.h
972	$(DOT_H_CHECK)
973
974scsi/conf/%.check:	scsi/conf/%.h
975	$(DOT_H_CHECK)
976
977scsi/generic/%.check:	scsi/generic/%.h
978	$(DOT_H_CHECK)
979
980scsi/impl/%.check:	scsi/impl/%.h
981	$(DOT_H_CHECK)
982
983scsi/targets/%.check:	scsi/targets/%.h
984	$(DOT_H_CHECK)
985
986scsi/adapters/%.check:	scsi/adapters/%.h
987	$(DOT_H_CHECK)
988
989sysevent/%.check:     sysevent/%.h
990	$(DOT_H_CHECK)
991
992contract/%.check:     contract/%.h
993	$(DOT_H_CHECK)
994
995usb/%.check:		usb/%.h
996	$(DOT_H_CHECK)
997
998usb/clients/audio/%.check:  usb/clients/audio/%.h
999	$(DOT_H_CHECK)
1000
1001usb/hubd/%.check:	usb/hubd/%.h
1002	$(DOT_H_CHECK)
1003
1004usb/clients/hid/%.check:	usb/clients/hid/%.h
1005	$(DOT_H_CHECK)
1006
1007usb/clients/mass_storage/%.check:	usb/clients/mass_storage/%.h
1008	$(DOT_H_CHECK)
1009
1010usb/clients/hid/%.check:	usb/clients/hid/%.h
1011	$(DOT_H_CHECK)
1012
1013usb/clients/printer/%.check:  usb/clients/printer/%.h
1014	$(DOT_H_CHECK)
1015
10161394/%.check:         1394/%.h
1017	$(DOT_H_CHECK)
1018
1019rsm/%.check:	rsm/%.h
1020	$(DOT_H_CHECK)
1021
1022CHECKHDRS=						\
1023	$($(MACH)_HDRS:%.h=%.check)			\
1024	$(AUDIOHDRS:%.h=audio/%.check)			\
1025	$(BSCHDRS:%.h=%.check)				\
1026	$(CHKHDRS:%.h=%.check)				\
1027	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1028	$(DCAMHDRS:%.h=dcam/%.check)			\
1029	$(IBHDRS:%.h=ib/%.check)			\
1030	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1031	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1032	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1033	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1034	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1035	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1036	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1037	$(ISOHDRS:%.h=iso/%.check)			\
1038	$(FMHDRS:%.h=fm/%.check)			\
1039	$(FMCPUHDRS:%.h=fm/cpu/%.check)			\
1040	$(FMIOHDRS:%.h=fm/io/%.check)			\
1041	$(FSHDRS:%.h=fs/%.check)			\
1042	$(LVMHDRS:%.h=lvm/%.check)			\
1043	$(XHDRS:%.h=%.check)				\
1044	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1045	$(SCSIHDRS:%.h=scsi/%.check)			\
1046	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
1047	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1048	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1049	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1050	$(FCHDRS:%.h=fc4/%.check)			\
1051	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1052	$(CONTRACTHDRS:%.h=contract/%.check)            \
1053	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1054	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1055	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1056	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1057	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1058	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1059	$(USBHDRS:%.h=usb/%.check)                      \
1060	$(I1394HDRS:%.h=1394/%.check)			\
1061	$(RSMHDRS:%.h=rsm/%.check)
1062
1063
1064ROOTDIR=	$(ROOT)/usr/include/sys
1065
1066ROOTDKTPDIR=	$(ROOTDIR)/dktp
1067
1068sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
1069		$(ROOTDIR)/scsi/targets \
1070		$(ROOTDIR)/av
1071
1072i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
1073		$(ROOTDIR)/i2o $(ROOTDIR)/agp
1074
1075ROOTDIRS=			\
1076	$(ROOTDIR)		\
1077	$(ROOTDIR)/audio	\
1078	$(ROOTDIR)/hotplug	\
1079	$(ROOTDIR)/hotplug/pci	\
1080	$(ROOTDIR)/crypto	\
1081	$(ROOTDIR)/dcam		\
1082	$(ROOTDIR)/iso		\
1083	$(ROOTDIR)/fm		\
1084	$(ROOTDIR)/fm/cpu	\
1085	$(ROOTDIR)/fm/io	\
1086	$(ROOTDIR)/fs		\
1087	$(ROOTDIR)/ib		\
1088	$(ROOTDIR)/ib/adapters/tavor	\
1089	$(ROOTDIR)/ib/ibtl	\
1090	$(ROOTDIR)/ib/ibtl/impl	\
1091	$(ROOTDIR)/ib/mgt	\
1092	$(ROOTDIR)/ib/mgt/ibmf	\
1093	$(ROOTDIR)/ib/ibnex	\
1094	$(ROOTDIR)/ib/clients/ibd \
1095	$(ROOTDIR)/lvm		\
1096	$(ROOTDIR)/pcmcia	\
1097	$(ROOTDIR)/scsi		\
1098	$(ROOTDIR)/scsi/conf	\
1099	$(ROOTDIR)/scsi/generic	\
1100	$(ROOTDIR)/scsi/impl	\
1101	$(ROOTDIR)/fc4		\
1102	$(ROOTDIR)/sysevent     \
1103	$(ROOTDIR)/contract     \
1104	$(ROOTDIR)/usb		\
1105	$(ROOTDIR)/usb/hubd	\
1106	$(ROOTDIR)/usb/clients	\
1107	$(ROOTDIR)/usb/clients/audio  \
1108	$(ROOTDIR)/usb/clients/hid \
1109	$(ROOTDIR)/usb/clients/mass_storage	\
1110	$(ROOTDIR)/usb/clients/printer  \
1111	$(ROOTDIR)/usb/clients/ugen  \
1112	$(ROOTDIR)/1394         \
1113	$(ROOTDIR)/rsm		\
1114	$($(MACH)_ROOTDIRS)
1115
1116
1117ROOTHDRS=				\
1118	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
1119	$(HDRS:%=$(ROOTDIR)/%)
1120
1121ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
1122
1123ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
1124
1125ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
1126
1127ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
1128
1129ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
1130ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
1131ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
1132ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
1133ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
1134ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
1135ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
1136ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
1137
1138ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
1139
1140ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
1141ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
1142ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
1143
1144ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
1145
1146ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
1147
1148ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%)
1149
1150ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
1151ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
1152ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
1153ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
1154ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
1155ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
1156ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
1157
1158ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fc4/%)
1159
1160ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
1161ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
1162
1163ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
1164
1165ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
1166ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
1167ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
1168ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
1169ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
1170ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
1171ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
1172
1173ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
1174
1175ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
1176
1177ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
1178ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
1179ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
1180ROOTI2OHDRS= $(I2OHDRS:%=$(ROOTDIR)/i2o/%)
1181ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
1182ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
1183
1184
1185sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
1186		$(ROOTFCHDRS) $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \
1187		$(ROOTUSBAUDHDRS) \
1188		$(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) $(ROOTUSBPRNHDRS) \
1189		$(ROOTUGENHDRS)
1190
1191i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
1192		$(ROOTSCSIVHCIHDRS) $(ROOTFCHDRS)	\
1193		$(ROOTI2OHDRS) $(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \
1194		$(ROOTHOTPLUGPCIHDRS)
1195
1196# install rules
1197$(ROOTDIR)/%: %
1198	$(INS.file)
1199
1200$(ROOTDIR)/crypto/%: crypto/%
1201	$(INS.file)
1202
1203$(ROOTDIR)/fm/%:                fm/%
1204	$(INS.file)
1205
1206$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
1207	$(INS.file)
1208
1209$(ROOTDIR)/fm/io/%:                fm/io/%
1210	$(INS.file)
1211
1212$(ROOTDIR)/fs/%: fs/%
1213	$(INS.file)
1214
1215$(ROOTDIR)/ib/%:		ib/%
1216	$(INS.file)
1217
1218$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
1219	$(INS.file)
1220
1221$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
1222	$(INS.file)
1223
1224$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
1225	$(INS.file)
1226
1227$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
1228	$(INS.file)
1229
1230$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
1231	$(INS.file)
1232
1233$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
1234	$(INS.file)
1235
1236$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
1237	$(INS.file)
1238
1239$(ROOTDIR)/lvm/%: lvm/%
1240	$(INS.file)
1241
1242$(ROOTDIR)/pcmcia/%:		pcmcia/%
1243	$(INS.file)
1244
1245$(ROOTDIR)/scsi/%:		scsi/%
1246	$(INS.file)
1247
1248$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
1249	$(INS.file)
1250
1251$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
1252	$(INS.file)
1253
1254$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
1255	$(INS.file)
1256
1257$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
1258	$(INS.file)
1259
1260$(ROOTDIR)/fc4/%:		fc4/%
1261	$(INS.file)
1262
1263$(ROOTDIR)/sysevent/%:		sysevent/%
1264	$(INS.file)
1265
1266$(ROOTDIR)/contract/%:		contract/%
1267	$(INS.file)
1268
1269$(ROOTDIR)/usb/%:		usb/%
1270	$(INS.file)
1271
1272$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
1273	$(INS.file)
1274
1275$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
1276	$(INS.file)
1277
1278$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
1279	$(INS.file)
1280
1281$(ROOTDIR)/dktp/%: dktp/%
1282	$(INS.file)
1283
1284$(ROOTDIR)/1394/%:                    1394/%
1285	$(INS.file)
1286
1287$(ROOTDIR)/rsm/%:	rsm/%
1288	$(INS.file)
1289
1290.KEEP_STATE:
1291
1292.PARALLEL:			\
1293	$(CHECKHDRS)		\
1294	$(ROOTHDRS)		\
1295	$(ROOTAUDHDRS)		\
1296	$(ROOTCRYPTOHDRS)	\
1297	$(ROOTDCAMHDRS)		\
1298	$(ROOTISOHDRS)		\
1299	$(ROOTFMHDRS)		\
1300	$(ROOTFMCPUHDRS)	\
1301	$(ROOTFMIOHDRS)	\
1302	$(ROOTFSHDRS)		\
1303	$(ROOTIBDHDRS)		\
1304	$(ROOTIBHDRS)		\
1305	$(ROOTIBTLHDRS)		\
1306	$(ROOTIBTLIMPLHDRS)	\
1307	$(ROOTIBNEXHDRS)	\
1308	$(ROOTIBMGTHDRS)	\
1309	$(ROOTIBMFHDRS)		\
1310	$(ROOTTAVORHDRS)	\
1311	$(ROOTLVMHDRS)		\
1312	$(ROOTPCMCIAHDRS)	\
1313	$(ROOTSCSIHDRS)		\
1314	$(ROOTSCSICONFHDRS)	\
1315	$(ROOTSCSIGENHDRS)	\
1316	$(ROOTSCSIIMPLHDRS)	\
1317	$(ROOTSCSIVHCIHDRS)	\
1318	$(ROOTFCHDRS)		\
1319	$(ROOTSYSEVENTHDRS)     \
1320	$(ROOTCONTRACTHDRS)     \
1321	$(ROOTUSBHDRS)		\
1322	$(ROOTUSBAUDHDRS)	\
1323	$(ROOTUSBHUBDHDRS)	\
1324	$(ROOTUSBHIDHDRS)	\
1325	$(ROOTUSBMSHDRS)	\
1326	$(ROOTUSBPRNHDRS)       \
1327	$(ROOTUGENHDRS)		\
1328	$(ROOT1394HDRS)         \
1329	$(ROOTHOTPLUGHDRS)	\
1330	$(ROOTHOTPLUGPCIHDRS)	\
1331	$(ROOTRSMHDRS)		\
1332	$($(MACH)_ROOTHDRS)
1333
1334
1335install_h:			\
1336	$(ROOTDIRS)		\
1337	LVMDERIVED_H		\
1338	.WAIT			\
1339	$(ROOTHDRS)		\
1340	$(ROOTAUDHDRS)		\
1341	$(ROOTCRYPTOHDRS)	\
1342	$(ROOTDCAMHDRS)		\
1343	$(ROOTISOHDRS)		\
1344	$(ROOTFMHDRS)		\
1345	$(ROOTFMCPUHDRS)	\
1346	$(ROOTFMIOHDRS)	\
1347	$(ROOTFSHDRS)		\
1348	$(ROOTIBDHDRS)		\
1349	$(ROOTIBHDRS)		\
1350	$(ROOTIBTLHDRS)		\
1351	$(ROOTIBTLIMPLHDRS)	\
1352	$(ROOTIBNEXHDRS)	\
1353	$(ROOTIBMGTHDRS)	\
1354	$(ROOTIBMFHDRS)		\
1355	$(ROOTTAVORHDRS)	\
1356	$(ROOTLVMHDRS)		\
1357	$(ROOTPCMCIAHDRS)	\
1358	$(ROOTSCSIHDRS)		\
1359	$(ROOTSCSICONFHDRS)	\
1360	$(ROOTSCSIGENHDRS)	\
1361	$(ROOTSCSIIMPLHDRS)	\
1362	$(ROOTSCSIVHCIHDRS)	\
1363	$(ROOTFCHDRS)		\
1364	$(ROOTSYSEVENTHDRS)     \
1365	$(ROOTCONTRACTHDRS)     \
1366	$(ROOTUSBHDRS)		\
1367	$(ROOTUSBAUDHDRS)	\
1368	$(ROOTUSBHUBDHDRS)	\
1369	$(ROOTUSBHIDHDRS)	\
1370	$(ROOTUSBMSHDRS)	\
1371	$(ROOTUSBPRNHDRS)       \
1372	$(ROOTUGENHDRS)		\
1373	$(ROOT1394HDRS)         \
1374	$(ROOTHOTPLUGHDRS)	\
1375	$(ROOTHOTPLUGPCIHDRS)	\
1376	$(ROOTRSMHDRS)		\
1377	$($(MACH)_ROOTHDRS)	\
1378	svvs_h
1379
1380svvs_h: FRC
1381	@if [ -f lo.h  ]; then \
1382		$(MAKE) install_X_h; \
1383	else \
1384		true; \
1385	fi
1386
1387all_h: $(GENHDRS)
1388
1389priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1390	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1391
1392priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1393	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1394
1395install_X_h: $(ROOTXHDRS)
1396
1397$(ROOTDIRS):
1398	$(INS.dir)
1399
1400LVMDERIVED_H:
1401	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1402
1403check:	$(CHECKHDRS)
1404
1405FRC:
1406
1407# EXPORT DELETE START
1408EXPORT_SRC:
1409	$(RM) wanboot_impl.h+ Makefile+
1410	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1411		< wanboot_impl.h > wanboot_impl.h+
1412	$(MV) wanboot_impl.h+ wanboot_impl.h
1413	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1414		< Makefile > Makefile+
1415	$(RM) Makefile
1416	$(MV) Makefile+ Makefile
1417	$(CHMOD) 444 Makefile wanboot_impl.h
1418# EXPORT DELETE END
1419