xref: /titanic_50/usr/src/uts/common/sys/Makefile (revision 275c9da86e89f8abf71135cf63d9fc23671b2e60)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28include $(SRC)/uts/Makefile.uts
29
30GROUP=bin
31FILEMODE=644
32
33#
34#	Note that the following headers are present in the kernel but
35#	neither installed or shipped as part of the product:
36#		cpuid_drv.h:		Private interface for cpuid consumers
37#		unix_bb_info.h:		Private interface to kcov
38#
39
40i386_HDRS=			\
41	agp/agpamd64gart_io.h	\
42	agp/agpdefs.h		\
43	agp/agpgart_impl.h	\
44	agp/agpmaster_io.h	\
45	agp/agptarget_io.h	\
46	agpgart.h		\
47	asy.h			\
48	audio/audio810.h	\
49	audio/audiohd.h	\
50	audio/audioixp.h	\
51	fd_debug.h		\
52	fdc.h			\
53	fdmedia.h		\
54	mouse.h			\
55	mse.h			\
56	vuidmice.h		\
57	ucode.h
58
59AVHDRS=				\
60	av/iec61883.h
61
62sparc_HDRS= 			\
63	audio/audiots.h		\
64	audio/am_src2.h		\
65	mouse.h			\
66	scsi/targets/ssddef.h	\
67	$(MDESCHDRS)		\
68	$(AVHDRS)
69
70# Generated headers
71GENHDRS=			\
72	priv_const.h		\
73	priv_names.h
74
75CHKHDRS=			\
76	acct.h			\
77	acctctl.h		\
78	acl.h			\
79	acl_impl.h		\
80	aggr.h			\
81	aggr_impl.h		\
82	aio.h			\
83	aio_impl.h		\
84	aio_req.h		\
85	aiocb.h			\
86	ascii.h			\
87	asynch.h		\
88	atomic.h		\
89	attr.h			\
90	audio.h			\
91	audiodebug.h		\
92	audioio.h		\
93	audiovar.h		\
94	autoconf.h		\
95	auxv.h			\
96	auxv_386.h		\
97	auxv_SPARC.h		\
98	avl.h			\
99	avl_impl.h		\
100	battery.h		\
101	bitmap.h		\
102	bitset.h		\
103	bl.h			\
104	bmc_intf.h		\
105	bofi.h			\
106	bofi_impl.h		\
107	bpp_io.h		\
108	bootstat.h		\
109	brand.h			\
110	buf.h			\
111	bufmod.h		\
112	bustypes.h		\
113	byteorder.h		\
114	callb.h			\
115	callo.h			\
116	cpucaps.h		\
117	cpucaps_impl.h		\
118	ccompile.h		\
119	cdio.h			\
120	cladm.h			\
121	class.h			\
122	clconf.h		\
123	cmlb.h			\
124	cmn_err.h		\
125	compress.h		\
126	condvar.h		\
127	condvar_impl.h		\
128	conf.h			\
129	consdev.h		\
130	console.h		\
131	contract.h		\
132	contract_impl.h		\
133	copyops.h		\
134	core.h			\
135	corectl.h		\
136	cpc_impl.h		\
137	cpc_pcbe.h		\
138	cpr.h			\
139	cpupart.h		\
140	cpuvar.h		\
141	crc32.h			\
142	cred.h			\
143	cred_impl.h		\
144	crtctl.h		\
145	cryptmod.h		\
146	csiioctl.h		\
147	ctf.h			\
148	ctfs.h			\
149	ctfs_impl.h		\
150	ctf_api.h		\
151	ctype.h			\
152	cyclic.h		\
153	cyclic_impl.h		\
154	dacf.h			\
155	dacf_impl.h		\
156	dc_ki.h			\
157	ddi.h			\
158	ddifm.h			\
159	ddifm_impl.h		\
160	ddi_intr.h		\
161	ddi_intr_impl.h		\
162	ddi_impldefs.h		\
163	ddi_implfuncs.h		\
164	ddi_obsolete.h		\
165	ddi_timer.h		\
166	ddidevmap.h		\
167	ddidmareq.h		\
168	ddimapreq.h		\
169	ddipropdefs.h		\
170	dditypes.h		\
171	debug.h			\
172	des.h			\
173	devctl.h		\
174	devcache.h		\
175	devcache_impl.h		\
176	devid_cache.h		\
177	devinfo_impl.h		\
178	devops.h		\
179	devpolicy.h		\
180	devpoll.h		\
181	dirent.h		\
182	disp.h			\
183	dkbad.h			\
184	dkio.h			\
185	dklabel.h		\
186	dl.h			\
187	dlpi.h			\
188	dld.h			\
189	dld_impl.h		\
190	dls.h			\
191	dls_impl.h		\
192	dma_i8237A.h            \
193	dnlc.h			\
194	door.h			\
195	door_data.h		\
196	door_impl.h		\
197	dtrace.h		\
198	dtrace_impl.h		\
199	dumpadm.h		\
200	dumphdr.h		\
201	ecppsys.h		\
202	ecppio.h                \
203	ecppreg.h               \
204	ecppvar.h               \
205	efi_partition.h		\
206	elf.h			\
207	elf_386.h		\
208	elf_SPARC.h		\
209	elf_notes.h		\
210	elf_amd64.h		\
211	elftypes.h		\
212	emul64.h		\
213	emul64cmd.h		\
214	emul64var.h		\
215	epm.h			\
216	errno.h			\
217	errorq.h		\
218	errorq_impl.h		\
219	esunddi.h		\
220	ethernet.h		\
221	euc.h			\
222	eucioctl.h		\
223	exacct.h		\
224	exacct_catalog.h	\
225	exacct_impl.h		\
226	exec.h			\
227	exechdr.h		\
228	extdirent.h		\
229	fault.h			\
230	fasttrap.h		\
231	fasttrap_impl.h		\
232	fbio.h			\
233	fbuf.h			\
234	fcntl.h			\
235	fdbuffer.h		\
236	fdio.h			\
237	feature_tests.h		\
238	fem.h			\
239	file.h			\
240	filio.h			\
241	flock.h			\
242	flock_impl.h		\
243	fork.h			\
244	fss.h			\
245	fsspriocntl.h		\
246	fsid.h			\
247	fssnap.h                \
248	fssnap_if.h             \
249	fstyp.h			\
250	ftrace.h		\
251	fx.h			\
252	fxpriocntl.h		\
253	gfs.h			\
254	gld.h			\
255	gldpriv.h		\
256	group.h			\
257	hdio.h			\
258	hook.h			\
259	hook_event.h		\
260	hook_impl.h		\
261	hwconf.h		\
262	ia.h			\
263	iapriocntl.h		\
264	id32.h			\
265	idmap.h 		\
266	ieeefp.h		\
267	id_space.h		\
268	instance.h		\
269	int_const.h		\
270	int_fmtio.h		\
271	int_limits.h		\
272	int_types.h		\
273	inttypes.h		\
274	ioccom.h		\
275	ioctl.h			\
276	ipc.h			\
277	ipc_impl.h		\
278	ipc_rctl.h		\
279	isa_defs.h		\
280	iscsi_authclient.h	\
281	iscsi_authclientglue.h	\
282	iscsi_protocol.h	\
283	jioctl.h		\
284	kbd.h			\
285	kbdreg.h		\
286	kbio.h			\
287	kcpc.h			\
288	kdi.h			\
289	kdi_impl.h		\
290	kiconv.h		\
291	kiconv_big5_utf8.h	\
292	kiconv_cck_common.h	\
293	kiconv_cp950hkscs_utf8.h	\
294	kiconv_emea1.h		\
295	kiconv_emea2.h		\
296	kiconv_euckr_utf8.h	\
297	kiconv_euctw_utf8.h	\
298	kiconv_gb18030_utf8.h	\
299	kiconv_gb2312_utf8.h	\
300	kiconv_hkscs_utf8.h	\
301	kiconv_ja.h		\
302	kiconv_ja_jis_to_unicode.h	\
303	kiconv_ja_unicode_to_jis.h	\
304	kiconv_ko.h		\
305	kiconv_latin1.h		\
306	kiconv_sc.h		\
307	kiconv_tc.h		\
308	kiconv_uhc_utf8.h	\
309	kiconv_utf8_big5.h	\
310	kiconv_utf8_cp950hkscs.h	\
311	kiconv_utf8_euckr.h	\
312	kiconv_utf8_euctw.h	\
313	kiconv_utf8_gb18030.h	\
314	kiconv_utf8_gb2312.h	\
315	kiconv_utf8_hkscs.h	\
316	kiconv_utf8_uhc.h	\
317	kidmap.h		\
318	klpd.h			\
319	klwp.h			\
320	kmdb.h			\
321	kmem.h			\
322	kmem_impl.h		\
323	kobj.h			\
324	kobj_impl.h		\
325	kstat.h			\
326	kstr.h			\
327	ksyms.h			\
328	ksynch.h		\
329	ldterm.h		\
330	lgrp.h			\
331	lgrp_user.h		\
332	libc_kernel.h		\
333	link.h			\
334	list.h			\
335	list_impl.h		\
336	llc1.h			\
337	loadavg.h		\
338	lock.h			\
339	lockfs.h		\
340	lockstat.h		\
341	lofi.h			\
342	log.h			\
343	logindmux.h		\
344	logindmux_impl.h	\
345	lwp.h			\
346	lwp_timer_impl.h	\
347	lwp_upimutex_impl.h	\
348	mac.h			\
349	mac_impl.h		\
350	machelf.h		\
351	map.h			\
352	md4.h			\
353	md5.h			\
354	md5_consts.h		\
355	mdi_impldefs.h		\
356	mem.h			\
357	mem_config.h		\
358	memlist.h		\
359	mkdev.h			\
360	mhd.h			\
361	miiregs.h		\
362	mixer.h			\
363	mman.h			\
364	mntent.h		\
365	mntio.h			\
366	mnttab.h		\
367	modctl.h		\
368	mode.h			\
369	model.h			\
370	modhash.h		\
371	modhash_impl.h		\
372	mount.h			\
373	mouse.h			\
374	msacct.h		\
375	msg.h			\
376	msg_impl.h		\
377	msio.h			\
378	msreg.h			\
379	mtio.h			\
380	multidata.h		\
381	multidata_impl.h	\
382	mutex.h			\
383	nbmlock.h		\
384	ndifm.h		\
385	ndi_impldefs.h		\
386	netconfig.h		\
387	neti.h			\
388	netstack.h		\
389	nexusdefs.h		\
390	note.h			\
391	nvpair.h                \
392	nvpair_impl.h           \
393	objfs.h			\
394	objfs_impl.h		\
395	ontrap.h                \
396	open.h			\
397	openpromio.h		\
398	panic.h			\
399	param.h			\
400	pathconf.h		\
401	pathname.h		\
402	pattr.h			\
403	queue.h			\
404	serializer.h		\
405	pbio.h			\
406	pccard.h		\
407	pci.h			\
408	pcie.h			\
409	pci_impl.h		\
410	pcmcia.h		\
411	pctypes.h		\
412	pem.h			\
413	pfmod.h			\
414	pg.h			\
415	pghw.h			\
416	physmem.h		\
417	pm.h			\
418	policy.h		\
419	poll.h			\
420	poll_impl.h		\
421	pool.h			\
422	pool_impl.h		\
423	pool_pset.h		\
424	port.h			\
425	port_impl.h		\
426	port_kernel.h		\
427	ppmio.h                 \
428	priocntl.h		\
429	priv.h			\
430	priv_impl.h		\
431	prnio.h			\
432	proc.h			\
433	processor.h		\
434	procfs.h		\
435	procset.h		\
436	project.h		\
437	protosw.h		\
438	prsystm.h		\
439	pset.h			\
440	pshot.h			\
441	ptem.h			\
442	ptms.h			\
443	ptyvar.h		\
444	raidioctl.h		\
445	ramdisk.h		\
446	random.h		\
447	rctl.h			\
448	rctl_impl.h		\
449	reboot.h		\
450	refstr.h		\
451	refstr_impl.h		\
452	resource.h		\
453	rlioctl.h		\
454	rt.h			\
455	rtpriocntl.h		\
456	rwlock.h		\
457	rwlock_impl.h		\
458	rwstlock.h		\
459	sad.h			\
460	schedctl.h		\
461	sdt.h			\
462	select.h		\
463	sem.h			\
464	sem_impl.h		\
465	sema_impl.h		\
466	semaphore.h		\
467	sendfile.h		\
468	ser_sync.h		\
469	session.h		\
470	sha1.h			\
471	sha1_consts.h		\
472	sha2.h			\
473	sha2_consts.h		\
474	share.h			\
475	shm.h			\
476	shm_impl.h		\
477	sid.h			\
478	siginfo.h		\
479	signal.h		\
480	sleepq.h		\
481	smbios.h		\
482	smbios_impl.h		\
483	sobject.h		\
484	socket.h		\
485	socket_impl.h		\
486	socketvar.h		\
487	sockio.h		\
488	squeue.h		\
489	squeue_impl.h		\
490	srn.h			\
491	sservice.h		\
492	stat.h			\
493	statfs.h		\
494	statvfs.h		\
495	stdint.h		\
496	stermio.h		\
497	stream.h		\
498	strft.h			\
499	strlog.h		\
500	strmdep.h		\
501	stropts.h		\
502	strredir.h		\
503	strstat.h		\
504	strsubr.h		\
505	strsun.h		\
506	strtty.h		\
507	sunddi.h		\
508	sunldi.h		\
509	sunldi_impl.h		\
510	sunmdi.h		\
511	sunndi.h		\
512	sunos_dhcp_class.h	\
513	sunpm.h			\
514	suntpi.h		\
515	suntty.h		\
516	swap.h			\
517	synch.h			\
518	syscall.h		\
519	sysconf.h		\
520	sysconfig.h		\
521	sysevent.h		\
522	sysevent_impl.h         \
523	sysinfo.h		\
524	syslog.h		\
525	sysmacros.h		\
526	sysmsg_impl.h		\
527	systeminfo.h		\
528	systm.h			\
529	task.h			\
530	taskq.h			\
531	taskq_impl.h		\
532	t_kuser.h		\
533	t_lock.h		\
534	telioctl.h		\
535	termio.h		\
536	termios.h		\
537	termiox.h		\
538	thread.h		\
539	ticlts.h		\
540	ticots.h		\
541	ticotsord.h		\
542	tihdr.h			\
543	time.h			\
544	time_impl.h		\
545	time_std_impl.h		\
546	timeb.h			\
547	timer.h			\
548	times.h			\
549	timex.h			\
550	timod.h			\
551	tirdwr.h		\
552	tiuser.h		\
553	tl.h			\
554	tnf.h			\
555	tnf_com.h		\
556	tnf_probe.h		\
557	tnf_writer.h		\
558	todio.h			\
559	tpicommon.h		\
560	ts.h			\
561	tspriocntl.h		\
562	ttcompat.h		\
563	ttold.h			\
564	tty.h			\
565	ttychars.h		\
566	ttydev.h		\
567	tuneable.h		\
568	turnstile.h		\
569	types.h			\
570	types32.h		\
571	tzfile.h		\
572	u8_textprep.h		\
573	u8_textprep_data.h	\
574	uadmin.h		\
575	ucred.h			\
576	uio.h			\
577	ulimit.h		\
578	un.h			\
579	unistd.h		\
580	user.h			\
581	ustat.h			\
582	utime.h			\
583	utsname.h		\
584	utssys.h		\
585	uuid.h			\
586	va_impl.h		\
587	va_list.h		\
588	var.h			\
589	varargs.h		\
590	vfs.h			\
591	vfs_opreg.h		\
592	vfstab.h		\
593	vgareg.h		\
594	videodev2.h		\
595	visual_io.h		\
596	vlan.h			\
597	vm.h			\
598	vm_usage.h		\
599	vmem.h			\
600	vmem_impl.h		\
601	vmmeter.h		\
602	vmsystm.h		\
603	vnic.h			\
604	vnic_impl.h		\
605	vnode.h			\
606	vscan.h			\
607	vtoc.h			\
608	vtrace.h		\
609	vuid_event.h		\
610	vuid_wheel.h		\
611	vuid_queue.h		\
612	vuid_state.h		\
613	vuid_store.h		\
614	wait.h			\
615	waitq.h			\
616	wanboot_impl.h		\
617	watchpoint.h		\
618	winlockio.h		\
619	zcons.h			\
620	zone.h			\
621	xti_inet.h		\
622	xti_osi.h		\
623	xti_xtiopt.h		\
624	zmod.h
625
626HDRS=				\
627	$(GENHDRS)		\
628	$(CHKHDRS)
629
630AUDIOHDRS=			\
631	ac97.h			\
632	am_src1.h		\
633	audio_apm.h		\
634	audio_mixer.h		\
635	audio_src.h		\
636	audio_support.h		\
637	audio_trace.h		\
638	g711.h
639
640BSCHDRS=			\
641	bscbus.h		\
642	bscv_impl.h		\
643	lom_ebuscodes.h		\
644	lom_io.h		\
645	lom_priv.h		\
646	lombus.h
647
648MDESCHDRS=			\
649	mdesc.h			\
650	mdesc_impl.h
651
652CPUDRVHDRS=			\
653	cpudrv.h
654
655CRYPTOHDRS=			\
656	elfsign.h		\
657	ioctl.h			\
658	ioctladmin.h		\
659	common.h		\
660	impl.h			\
661	spi.h			\
662	api.h			\
663	ops_impl.h		\
664	sched_impl.h
665
666DCAMHDRS=			\
667	dcam1394_io.h
668
669IBHDRS=			\
670	ib_types.h	\
671	ib_pkt_hdrs.h
672
673IBTLHDRS=		\
674	ibtl_types.h	\
675	ibtl_status.h	\
676	ibti.h		\
677	ibti_cm.h	\
678	ibci.h		\
679	ibti_common.h	\
680	ibvti.h		\
681	ibtl_ci_types.h
682
683IBTLIMPLHDRS=		\
684	ibtl_util.h
685
686IBNEXHDRS=		\
687	ibnex_devctl.h
688
689IBMFHDRS=		\
690	ibmf.h		\
691	ibmf_msg.h	\
692	ibmf_saa.h	\
693	ibmf_utils.h
694
695IBMGTHDRS=		\
696	ib_dm_attr.h	\
697	ib_mad.h	\
698	sm_attr.h	\
699	sa_recs.h
700
701IBDHDRS=		\
702	ibd.h
703
704ISOHDRS=			\
705	signal_iso.h
706
707DERIVED_LVMHDRS=	\
708	md_mdiox.h		\
709	md_basic.h		\
710	mdmed.h			\
711	md_mhdx.h		\
712	mdmn_commd.h
713
714LVMHDRS=			\
715	md_convert.h		\
716	md_crc.h		\
717	md_hotspares.h		\
718	md_mddb.h		\
719	md_mirror.h		\
720	md_mirror_shared.h	\
721	md_names.h		\
722	md_notify.h		\
723	md_raid.h		\
724	md_rename.h		\
725	md_sp.h			\
726	md_stripe.h		\
727	md_trans.h		\
728	mdio.h			\
729	mdvar.h
730
731ALL_LVMHDRS=			\
732	$(LVMHDRS)		\
733	$(DERIVED_LVMHDRS)
734
735FMHDRS=				\
736	protocol.h		\
737	util.h
738
739FMFSHDRS=			\
740	zfs.h
741
742FMIOHDRS=			\
743	ddi.h			\
744	disk.h			\
745	pci.h			\
746	scsi.h			\
747	sun4upci.h		\
748	opl_mc_fm.h
749
750FSHDRS=				\
751	autofs.h		\
752	cachefs_dir.h		\
753	cachefs_dlog.h		\
754	cachefs_filegrp.h	\
755	cachefs_fs.h		\
756	cachefs_fscache.h	\
757	cachefs_ioctl.h		\
758	cachefs_log.h		\
759	decomp.h		\
760	dv_node.h		\
761	sdev_impl.h		\
762	sdev_node.h		\
763	fifonode.h		\
764	hsfs_isospec.h		\
765	hsfs_node.h		\
766	hsfs_rrip.h		\
767	hsfs_spec.h		\
768	hsfs_susp.h		\
769	lofs_info.h		\
770	lofs_node.h		\
771	mntdata.h		\
772	namenode.h		\
773	pc_dir.h		\
774	pc_fs.h			\
775	pc_label.h		\
776	pc_node.h		\
777	pxfs_ki.h		\
778	snode.h			\
779	swapnode.h		\
780	tmp.h			\
781	tmpnode.h		\
782	udf_inode.h		\
783	udf_volume.h		\
784	ufs_acl.h		\
785	ufs_bio.h		\
786	ufs_filio.h		\
787	ufs_fs.h		\
788	ufs_fsdir.h		\
789	ufs_inode.h		\
790	ufs_lockfs.h		\
791	ufs_log.h		\
792	ufs_mount.h		\
793	ufs_panic.h		\
794	ufs_prot.h		\
795	ufs_quota.h		\
796	ufs_snap.h              \
797	ufs_trans.h		\
798	zfs.h
799
800PCMCIAHDRS=		\
801	pcata.h		\
802	pcgld.h		\
803	pcramio.h	\
804	pcramvar.h	\
805	pcser_conf.h	\
806	pcser_io.h	\
807	pcser_reg.h	\
808	pcser_manuspec.h \
809	pcser_var.h
810
811SCSIHDRS=		\
812	scsi.h		\
813	scsi_address.h	\
814	scsi_ctl.h	\
815	scsi_params.h	\
816	scsi_pkt.h	\
817	scsi_resource.h	\
818	scsi_types.h	\
819	scsi_watch.h
820
821SCSICONFHDRS=		\
822	autoconf.h	\
823	device.h
824
825SCSIGENHDRS=		\
826	commands.h	\
827	dad_mode.h	\
828	inquiry.h	\
829	message.h	\
830	mode.h		\
831	persist.h	\
832	sense.h		\
833	smp_frames.h	\
834	status.h
835
836SCSIIMPLHDRS=		\
837	commands.h	\
838	inquiry.h	\
839	mode.h		\
840	sas_transport.h	\
841	sense.h		\
842	services.h	\
843	status.h	\
844	transport.h	\
845	scsi_reset_notify.h \
846	spc3_types.h	\
847	types.h		\
848	uscsi.h		\
849	usmp.h
850
851SCSITARGETSHDRS=	\
852	ses.h		\
853	sesio.h		\
854	sgendef.h	\
855	stdef.h		\
856	sddef.h		\
857	smp.h
858
859SCSICADHDRS=
860
861SCSIVHCIHDRS=		\
862	scsi_vhci.h	\
863	mpapi_impl.h	\
864	mpapi_scsi_vhci.h
865
866FCHDRS=			\
867	fc_transport.h	\
868	linkapp.h	\
869	fc.h		\
870	fcp.h		\
871	fcal_transport.h \
872	fcal.h		\
873	fcal_linkapp.h	\
874	fcio.h
875
876SATAGENHDRS=		\
877	sata_hba.h	\
878	sata_defs.h	\
879	sata_cfgadm.h
880
881SYSEVENTHDRS=		\
882	acpiev.h	\
883	ap_driver.h     \
884	dev.h		\
885	domain.h        \
886	dr.h            \
887	env.h           \
888	eventdefs.h	\
889	ipmp.h		\
890	svm.h
891
892CONTRACTHDRS=		\
893	process.h	\
894	process_impl.h	\
895	device.h	\
896	device_impl.h
897
898USBHDRS=	\
899	usba.h	\
900	usbai.h
901
902USBAUDHDRS=           \
903	usb_audio.h
904
905USBHUBDHDRS=		\
906	hub.h		\
907	hubd_impl.h
908
909USBHIDHDRS=		\
910	hid.h
911
912USBMSHDRS=		\
913	usb_bulkonly.h	\
914	usb_cbi.h
915
916USBPRNHDRS=           \
917	usb_printer.h
918
919USBCDCHDRS=		\
920	usb_cdc.h
921
922USBVIDHDRS=           \
923	usbvc.h
924
925UGENHDRS=           \
926	usb_ugen.h
927
928HOTPLUGHDRS=	\
929	hpcsvc.h	\
930	hpctrl.h
931
932HOTPLUGPCIHDRS=	\
933	pcicfg.h	\
934	pcihp.h
935
936RSMHDRS= \
937	rsm.h	\
938	rsm_common.h	\
939	rsmapi_common.h \
940	rsmpi.h	\
941	rsmpi_driver.h	\
942	rsmka_path_int.h
943
944TSOLHDRS=		\
945	label.h		\
946	label_macro.h	\
947	priv.h		\
948	tndb.h		\
949	tsyscall.h
950
951I1394HDRS=		\
952	cmd1394.h	\
953	id1394.h	\
954	ieee1212.h	\
955	ieee1394.h	\
956	ixl1394.h	\
957	s1394_impl.h	\
958	t1394.h
959
960# "cmdk" headers used on sparc
961SDKTPHDRS=		\
962	dadkio.h	\
963	fdisk.h
964
965# "cmdk" headers used on i386
966DKTPHDRS=		\
967	altsctr.h	\
968	bbh.h		\
969	cm.h		\
970	cmdev.h		\
971	cmdk.h		\
972	cmpkt.h		\
973	controller.h	\
974	dadev.h		\
975	dadk.h		\
976	dadkio.h	\
977	fctypes.h	\
978	fdisk.h		\
979	flowctrl.h	\
980	gda.h		\
981	quetypes.h	\
982	queue.h		\
983	tgcom.h		\
984	tgdk.h
985
986# "pc" header files used on i386
987PCHDRS=			\
988	avintr.h	\
989	dma_engine.h	\
990	i8272A.h	\
991	pcic_reg.h	\
992	pcic_var.h	\
993	pic.h		\
994	pit.h		\
995	rtc.h
996
997NXGEHDRS=			\
998	nxge.h			\
999	nxge_common.h		\
1000	nxge_common_impl.h	\
1001	nxge_defs.h		\
1002	nxge_hw.h		\
1003	nxge_impl.h		\
1004	nxge_ipp.h		\
1005	nxge_ipp_hw.h		\
1006	nxge_mac.h		\
1007	nxge_mac_hw.h		\
1008	nxge_fflp.h		\
1009	nxge_fflp_hw.h		\
1010	nxge_mii.h		\
1011	nxge_rxdma.h		\
1012	nxge_rxdma_hw.h		\
1013	nxge_txc.h		\
1014	nxge_txc_hw.h		\
1015	nxge_txdma.h		\
1016	nxge_txdma_hw.h		\
1017	nxge_virtual.h		\
1018	nxge_espc.h
1019
1020include Makefile.syshdrs
1021
1022dcam/%.check:	dcam/%.h
1023	$(DOT_H_CHECK)
1024
1025CHECKHDRS=						\
1026	$($(MACH)_HDRS:%.h=%.check)			\
1027	$(AUDIOHDRS:%.h=audio/%.check)			\
1028	$(BSCHDRS:%.h=%.check)				\
1029	$(CHKHDRS:%.h=%.check)				\
1030	$(CPUDRVHDRS:%.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	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1044	$(FMIOHDRS:%.h=fm/io/%.check)			\
1045	$(FSHDRS:%.h=fs/%.check)			\
1046	$(LVMHDRS:%.h=lvm/%.check)			\
1047	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1048	$(SCSIHDRS:%.h=scsi/%.check)			\
1049	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
1050	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1051	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1052	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1053	$(FCHDRS:%.h=fc4/%.check)			\
1054	$(SATAGENHDRS:%.h=sata/%.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	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1063	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1064	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1065	$(USBHDRS:%.h=usb/%.check)                      \
1066	$(I1394HDRS:%.h=1394/%.check)			\
1067	$(RSMHDRS:%.h=rsm/%.check)			\
1068	$(TSOLHDRS:%.h=tsol/%.check)			\
1069	$(NXGEHDRS:%.h=nxge/%.check)
1070
1071
1072.KEEP_STATE:
1073
1074.PARALLEL:			\
1075	$(CHECKHDRS)		\
1076	$(ROOTHDRS)		\
1077	$(ROOTAUDHDRS)		\
1078	$(ROOTCRYPTOHDRS)	\
1079	$(ROOTDCAMHDRS)		\
1080	$(ROOTISOHDRS)		\
1081	$(ROOTFMHDRS)		\
1082	$(ROOTFMIOHDRS)		\
1083	$(ROOTFMFSHDRS)		\
1084	$(ROOTFSHDRS)		\
1085	$(ROOTIBDHDRS)		\
1086	$(ROOTIBHDRS)		\
1087	$(ROOTIBTLHDRS)		\
1088	$(ROOTIBTLIMPLHDRS)	\
1089	$(ROOTIBNEXHDRS)	\
1090	$(ROOTIBMGTHDRS)	\
1091	$(ROOTIBMFHDRS)		\
1092	$(ROOTTAVORHDRS)	\
1093	$(ROOTLVMHDRS)		\
1094	$(ROOTPCMCIAHDRS)	\
1095	$(ROOTSCSIHDRS)		\
1096	$(ROOTSCSICONFHDRS)	\
1097	$(ROOTSCSIGENHDRS)	\
1098	$(ROOTSCSIIMPLHDRS)	\
1099	$(ROOTSCSIVHCIHDRS)	\
1100	$(ROOTFCHDRS)		\
1101	$(ROOTSYSEVENTHDRS)     \
1102	$(ROOTCONTRACTHDRS)     \
1103	$(ROOTUSBHDRS)		\
1104	$(ROOTUSBAUDHDRS)	\
1105	$(ROOTUSBHUBDHDRS)	\
1106	$(ROOTUSBHIDHDRS)	\
1107	$(ROOTUSBMSHDRS)	\
1108	$(ROOTUSBPRNHDRS)       \
1109	$(ROOTUSBCDCHDRS)       \
1110	$(ROOTUSBVIDHDRS)       \
1111	$(ROOTUGENHDRS)		\
1112	$(ROOT1394HDRS)         \
1113	$(ROOTHOTPLUGHDRS)	\
1114	$(ROOTHOTPLUGPCIHDRS)	\
1115	$(ROOTRSMHDRS)		\
1116	$(ROOTTSOLHDRS)		\
1117	$($(MACH)_ROOTHDRS)
1118
1119
1120install_h:			\
1121	$(ROOTDIRS)		\
1122	LVMDERIVED_H		\
1123	.WAIT			\
1124	$(ROOTHDRS)		\
1125	$(ROOTAUDHDRS)		\
1126	$(ROOTCRYPTOHDRS)	\
1127	$(ROOTDCAMHDRS)		\
1128	$(ROOTISOHDRS)		\
1129	$(ROOTFMHDRS)		\
1130	$(ROOTFMFSHDRS)		\
1131	$(ROOTFMIOHDRS)		\
1132	$(ROOTFSHDRS)		\
1133	$(ROOTIBDHDRS)		\
1134	$(ROOTIBHDRS)		\
1135	$(ROOTIBTLHDRS)		\
1136	$(ROOTIBTLIMPLHDRS)	\
1137	$(ROOTIBNEXHDRS)	\
1138	$(ROOTIBMGTHDRS)	\
1139	$(ROOTIBMFHDRS)		\
1140	$(ROOTTAVORHDRS)	\
1141	$(ROOTLVMHDRS)		\
1142	$(ROOTPCMCIAHDRS)	\
1143	$(ROOTSCSIHDRS)		\
1144	$(ROOTSCSICONFHDRS)	\
1145	$(ROOTSCSIGENHDRS)	\
1146	$(ROOTSCSIIMPLHDRS)	\
1147	$(ROOTSCSIVHCIHDRS)	\
1148	$(ROOTFCHDRS)		\
1149	$(ROOTSYSEVENTHDRS)     \
1150	$(ROOTCONTRACTHDRS)     \
1151	$(ROOTUSBHDRS)		\
1152	$(ROOTUSBAUDHDRS)	\
1153	$(ROOTUSBHUBDHDRS)	\
1154	$(ROOTUSBHIDHDRS)	\
1155	$(ROOTUSBMSHDRS)	\
1156	$(ROOTUSBPRNHDRS)       \
1157	$(ROOTUSBCDCHDRS)       \
1158	$(ROOTUSBVIDHDRS)       \
1159	$(ROOTUGENHDRS)		\
1160	$(ROOT1394HDRS)         \
1161	$(ROOTHOTPLUGHDRS)	\
1162	$(ROOTHOTPLUGPCIHDRS)	\
1163	$(ROOTRSMHDRS)		\
1164	$(ROOTTSOLHDRS)		\
1165	$($(MACH)_ROOTHDRS)
1166
1167all_h: $(GENHDRS)
1168
1169priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1170	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1171
1172priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1173	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1174
1175LVMDERIVED_H:
1176	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1177
1178check:	$(CHECKHDRS)
1179
1180FRC:
1181
1182# EXPORT DELETE START
1183EXPORT_SRC:
1184	$(RM) wanboot_impl.h+ Makefile+
1185	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1186		< wanboot_impl.h > wanboot_impl.h+
1187	$(MV) wanboot_impl.h+ wanboot_impl.h
1188	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1189		< Makefile > Makefile+
1190	$(RM) Makefile
1191	$(MV) Makefile+ Makefile
1192	$(CHMOD) 444 Makefile wanboot_impl.h
1193# EXPORT DELETE END
1194