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