xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision e5ba14ff435beeefdaa2e6649e175c74afe02c76)
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	kidmap.h		\
288	klwp.h			\
289	kmdb.h			\
290	kmem.h			\
291	kmem_impl.h		\
292	kobj.h			\
293	kobj_impl.h		\
294	kstat.h			\
295	kstr.h			\
296	ksyms.h			\
297	ksynch.h		\
298	ldterm.h		\
299	lgrp.h			\
300	lgrp_user.h		\
301	libc_kernel.h		\
302	link.h			\
303	list.h			\
304	list_impl.h		\
305	llc1.h			\
306	loadavg.h		\
307	lock.h			\
308	lockfs.h		\
309	lockstat.h		\
310	lofi.h			\
311	log.h			\
312	logindmux.h		\
313	logindmux_impl.h	\
314	lwp.h			\
315	lwp_timer_impl.h	\
316	lwp_upimutex_impl.h	\
317	mac.h			\
318	mac_impl.h		\
319	map.h			\
320	md4.h			\
321	md5.h			\
322	md5_consts.h		\
323	mdi_impldefs.h		\
324	mem.h			\
325	mem_config.h		\
326	memlist.h		\
327	mkdev.h			\
328	mhd.h			\
329	miiregs.h		\
330	mixer.h			\
331	mman.h			\
332	mntent.h		\
333	mntio.h			\
334	mnttab.h		\
335	modctl.h		\
336	mode.h			\
337	model.h			\
338	modhash.h		\
339	modhash_impl.h		\
340	mount.h			\
341	mouse.h			\
342	msacct.h		\
343	msg.h			\
344	msg_impl.h		\
345	msio.h			\
346	msreg.h			\
347	mtio.h			\
348	multidata.h		\
349	multidata_impl.h	\
350	mutex.h			\
351	nbmlock.h		\
352	ndifm.h		\
353	ndi_impldefs.h		\
354	netconfig.h		\
355	neti.h			\
356	netstack.h		\
357	nexusdefs.h		\
358	note.h			\
359	nvpair.h                \
360	nvpair_impl.h           \
361	objfs.h			\
362	objfs_impl.h		\
363	ontrap.h                \
364	open.h			\
365	openpromio.h		\
366	panic.h			\
367	param.h			\
368	pathconf.h		\
369	pathname.h		\
370	pattr.h			\
371	queue.h			\
372	serializer.h		\
373	pbio.h			\
374	pccard.h		\
375	pci.h			\
376	pcie.h			\
377	pci_impl.h		\
378	pcmcia.h		\
379	pctypes.h		\
380	pem.h			\
381	pfmod.h			\
382	pg.h			\
383	pghw.h			\
384	physmem.h		\
385	pm.h			\
386	policy.h		\
387	poll.h			\
388	poll_impl.h		\
389	pool.h			\
390	pool_impl.h		\
391	pool_pset.h		\
392	port.h			\
393	port_impl.h		\
394	port_kernel.h		\
395	ppmio.h                 \
396	priocntl.h		\
397	priv.h			\
398	priv_impl.h		\
399	prnio.h			\
400	proc.h			\
401	processor.h		\
402	procfs.h		\
403	procset.h		\
404	project.h		\
405	protosw.h		\
406	prsystm.h		\
407	pset.h			\
408	pshot.h			\
409	ptem.h			\
410	ptms.h			\
411	ptyvar.h		\
412	raidioctl.h		\
413	ramdisk.h		\
414	random.h		\
415	rctl.h			\
416	rctl_impl.h		\
417	reboot.h		\
418	refstr.h		\
419	refstr_impl.h		\
420	resource.h		\
421	rlioctl.h		\
422	rt.h			\
423	rtpriocntl.h		\
424	rwlock.h		\
425	rwlock_impl.h		\
426	rwstlock.h		\
427	sad.h			\
428	schedctl.h		\
429	sdt.h			\
430	select.h		\
431	sem.h			\
432	sem_impl.h		\
433	sema_impl.h		\
434	semaphore.h		\
435	sendfile.h		\
436	ser_sync.h		\
437	session.h		\
438	sha1.h			\
439	sha1_consts.h		\
440	sha2.h			\
441	sha2_consts.h		\
442	share.h			\
443	shm.h			\
444	shm_impl.h		\
445	sid.h			\
446	siginfo.h		\
447	signal.h		\
448	sleepq.h		\
449	smbios.h		\
450	smbios_impl.h		\
451	sobject.h		\
452	socket.h		\
453	socket_impl.h		\
454	socketvar.h		\
455	sockio.h		\
456	squeue.h		\
457	squeue_impl.h		\
458	sservice.h		\
459	stat.h			\
460	statfs.h		\
461	statvfs.h		\
462	stdint.h		\
463	stermio.h		\
464	stream.h		\
465	strft.h			\
466	strlog.h		\
467	strmdep.h		\
468	stropts.h		\
469	strredir.h		\
470	strstat.h		\
471	strsubr.h		\
472	strsun.h		\
473	strtty.h		\
474	sunddi.h		\
475	sunldi.h		\
476	sunldi_impl.h		\
477	sunmdi.h		\
478	sunndi.h		\
479	sunos_dhcp_class.h	\
480	sunpm.h			\
481	suntpi.h		\
482	suntty.h		\
483	swap.h			\
484	synch.h			\
485	syscall.h		\
486	sysconf.h		\
487	sysconfig.h		\
488	sysevent.h		\
489	sysevent_impl.h         \
490	sysinfo.h		\
491	syslog.h		\
492	sysmacros.h		\
493	sysmsg_impl.h		\
494	systeminfo.h		\
495	systm.h			\
496	task.h			\
497	taskq.h			\
498	taskq_impl.h		\
499	t_kuser.h		\
500	t_lock.h		\
501	telioctl.h		\
502	termio.h		\
503	termios.h		\
504	termiox.h		\
505	thread.h		\
506	ticlts.h		\
507	ticots.h		\
508	ticotsord.h		\
509	tihdr.h			\
510	time.h			\
511	time_impl.h		\
512	time_std_impl.h		\
513	timeb.h			\
514	timer.h			\
515	times.h			\
516	timex.h			\
517	timod.h			\
518	tirdwr.h		\
519	tiuser.h		\
520	tl.h			\
521	tnf.h			\
522	tnf_com.h		\
523	tnf_probe.h		\
524	tnf_writer.h		\
525	todio.h			\
526	tpicommon.h		\
527	ts.h			\
528	tspriocntl.h		\
529	ttcompat.h		\
530	ttold.h			\
531	tty.h			\
532	ttychars.h		\
533	ttydev.h		\
534	tuneable.h		\
535	turnstile.h		\
536	types.h			\
537	types32.h		\
538	u8_textprep.h		\
539	u8_textprep_data.h	\
540	uadmin.h		\
541	ucred.h			\
542	uio.h			\
543	ulimit.h		\
544	un.h			\
545	unistd.h		\
546	user.h			\
547	ustat.h			\
548	utime.h			\
549	utsname.h		\
550	utssys.h		\
551	uuid.h			\
552	va_impl.h		\
553	va_list.h		\
554	var.h			\
555	varargs.h		\
556	vfs.h			\
557	vfs_opreg.h		\
558	vfstab.h		\
559	vgareg.h		\
560	videodev2.h		\
561	visual_io.h		\
562	vlan.h			\
563	vm.h			\
564	vm_usage.h		\
565	vmem.h			\
566	vmem_impl.h		\
567	vmmeter.h		\
568	vmsystm.h		\
569	vnic.h			\
570	vnic_impl.h		\
571	vnode.h			\
572	vtoc.h			\
573	vtrace.h		\
574	vuid_event.h		\
575	vuid_wheel.h		\
576	vuid_queue.h		\
577	vuid_state.h		\
578	vuid_store.h		\
579	wait.h			\
580	waitq.h			\
581	wanboot_impl.h		\
582	watchpoint.h		\
583	winlockio.h		\
584	zcons.h			\
585	zone.h			\
586	xti_inet.h		\
587	xti_osi.h		\
588	xti_xtiopt.h		\
589	zmod.h
590
591HDRS=				\
592	$(GENHDRS)		\
593	$(CHKHDRS)
594
595AUDIOHDRS=			\
596	ac97.h			\
597	am_src1.h		\
598	audio_apm.h		\
599	audio_mixer.h		\
600	audio_src.h		\
601	audio_support.h		\
602	audio_trace.h		\
603	g711.h
604
605BSCHDRS=			\
606	bscbus.h		\
607	bscv_impl.h		\
608	lom_ebuscodes.h		\
609	lom_io.h		\
610	lom_priv.h		\
611	lombus.h
612
613MDESCHDRS=			\
614	mdesc.h			\
615	mdesc_impl.h
616
617CPUDRVHDRS=			\
618	cpudrv.h
619
620CRYPTOHDRS=			\
621	elfsign.h		\
622	ioctl.h			\
623	ioctladmin.h		\
624	common.h		\
625	impl.h			\
626	spi.h			\
627	api.h			\
628	ops_impl.h		\
629	sched_impl.h
630
631DCAMHDRS=			\
632	dcam1394_io.h
633
634IBHDRS=			\
635	ib_types.h	\
636	ib_pkt_hdrs.h
637
638IBTLHDRS=		\
639	ibtl_types.h	\
640	ibtl_status.h	\
641	ibti.h		\
642	ibti_cm.h	\
643	ibci.h		\
644	ibti_common.h	\
645	ibvti.h		\
646	ibtl_ci_types.h
647
648IBTLIMPLHDRS=		\
649	ibtl_util.h
650
651IBNEXHDRS=		\
652	ibnex_devctl.h
653
654IBMFHDRS=		\
655	ibmf.h		\
656	ibmf_msg.h	\
657	ibmf_saa.h	\
658	ibmf_utils.h
659
660IBMGTHDRS=		\
661	ib_dm_attr.h	\
662	ib_mad.h	\
663	sm_attr.h	\
664	sa_recs.h
665
666IBDHDRS=		\
667	ibd.h
668
669ISOHDRS=			\
670	signal_iso.h
671
672DERIVED_LVMHDRS=	\
673	md_mdiox.h		\
674	md_basic.h		\
675	mdmed.h			\
676	md_mhdx.h		\
677	mdmn_commd.h
678
679LVMHDRS=			\
680	md_convert.h		\
681	md_crc.h		\
682	md_hotspares.h		\
683	md_mddb.h		\
684	md_mirror.h		\
685	md_mirror_shared.h	\
686	md_names.h		\
687	md_notify.h		\
688	md_raid.h		\
689	md_rename.h		\
690	md_sp.h			\
691	md_stripe.h		\
692	md_trans.h		\
693	mdio.h			\
694	mdvar.h
695
696ALL_LVMHDRS=			\
697	$(LVMHDRS)		\
698	$(DERIVED_LVMHDRS)
699
700FMHDRS=				\
701	protocol.h		\
702	util.h
703
704FMFSHDRS=			\
705	zfs.h
706
707FMIOHDRS=			\
708	ddi.h			\
709	disk.h			\
710	pci.h			\
711	scsi.h			\
712	sun4upci.h		\
713	opl_mc_fm.h
714
715FSHDRS=				\
716	autofs.h		\
717	cachefs_dir.h		\
718	cachefs_dlog.h		\
719	cachefs_filegrp.h	\
720	cachefs_fs.h		\
721	cachefs_fscache.h	\
722	cachefs_ioctl.h		\
723	cachefs_log.h		\
724	dv_node.h		\
725	sdev_impl.h		\
726	sdev_node.h		\
727	fifonode.h		\
728	hsfs_isospec.h		\
729	hsfs_node.h		\
730	hsfs_rrip.h		\
731	hsfs_spec.h		\
732	hsfs_susp.h		\
733	lofs_info.h		\
734	lofs_node.h		\
735	mntdata.h		\
736	namenode.h		\
737	pc_dir.h		\
738	pc_fs.h			\
739	pc_label.h		\
740	pc_node.h		\
741	pxfs_ki.h		\
742	snode.h			\
743	swapnode.h		\
744	tmp.h			\
745	tmpnode.h		\
746	udf_inode.h		\
747	udf_volume.h		\
748	ufs_acl.h		\
749	ufs_bio.h		\
750	ufs_filio.h		\
751	ufs_fs.h		\
752	ufs_fsdir.h		\
753	ufs_inode.h		\
754	ufs_lockfs.h		\
755	ufs_log.h		\
756	ufs_mount.h		\
757	ufs_panic.h		\
758	ufs_prot.h		\
759	ufs_quota.h		\
760	ufs_snap.h              \
761	ufs_trans.h		\
762	zfs.h
763
764PCMCIAHDRS=		\
765	pcata.h		\
766	pcgld.h		\
767	pcramio.h	\
768	pcramvar.h	\
769	pcser_conf.h	\
770	pcser_io.h	\
771	pcser_reg.h	\
772	pcser_manuspec.h \
773	pcser_var.h
774
775SCSIHDRS=		\
776	scsi.h		\
777	scsi_address.h	\
778	scsi_ctl.h	\
779	scsi_params.h	\
780	scsi_pkt.h	\
781	scsi_resource.h	\
782	scsi_types.h	\
783	scsi_watch.h
784
785SCSICONFHDRS=		\
786	autoconf.h	\
787	device.h
788
789SCSIGENHDRS=		\
790	commands.h	\
791	dad_mode.h	\
792	inquiry.h	\
793	message.h	\
794	mode.h		\
795	persist.h	\
796	sense.h		\
797	status.h
798
799SCSIIMPLHDRS=		\
800	commands.h	\
801	inquiry.h	\
802	mode.h		\
803	sense.h		\
804	services.h	\
805	status.h	\
806	transport.h	\
807	scsi_reset_notify.h \
808	types.h		\
809	uscsi.h
810
811SCSITARGETSHDRS=	\
812	ses.h		\
813	sesio.h		\
814	sgendef.h	\
815	stdef.h		\
816	sddef.h
817
818SCSICADHDRS=
819
820SCSIVHCIHDRS=		\
821	scsi_vhci.h	\
822	mpapi_impl.h	\
823	mpapi_scsi_vhci.h
824
825FCHDRS=			\
826	fc_transport.h	\
827	linkapp.h	\
828	fc.h		\
829	fcp.h		\
830	fcal_transport.h \
831	fcal.h		\
832	fcal_linkapp.h	\
833	fcio.h
834
835SATAGENHDRS=		\
836	sata_hba.h	\
837	sata_defs.h	\
838	sata_cfgadm.h
839
840SYSEVENTHDRS=		\
841	acpiev.h	\
842	ap_driver.h     \
843	dev.h		\
844	domain.h        \
845	dr.h            \
846	env.h           \
847	eventdefs.h	\
848	ipmp.h		\
849	svm.h
850
851CONTRACTHDRS=		\
852	process.h	\
853	process_impl.h	\
854	device.h	\
855	device_impl.h
856
857USBHDRS=	\
858	usba.h	\
859	usbai.h
860
861USBAUDHDRS=           \
862	usb_audio.h
863
864USBHUBDHDRS=		\
865	hub.h		\
866	hubd_impl.h
867
868USBHIDHDRS=		\
869	hid.h
870
871USBMSHDRS=		\
872	usb_bulkonly.h	\
873	usb_cbi.h
874
875USBPRNHDRS=           \
876	usb_printer.h
877
878USBCDCHDRS=		\
879	usb_cdc.h
880
881USBVIDHDRS=           \
882	usbvc.h
883
884UGENHDRS=           \
885	usb_ugen.h
886
887HOTPLUGHDRS=	\
888	hpcsvc.h	\
889	hpctrl.h
890
891HOTPLUGPCIHDRS=	\
892	pcicfg.h	\
893	pcihp.h
894
895RSMHDRS= \
896	rsm.h	\
897	rsm_common.h	\
898	rsmapi_common.h \
899	rsmpi.h	\
900	rsmpi_driver.h	\
901	rsmka_path_int.h
902
903TSOLHDRS=		\
904	label.h		\
905	label_macro.h	\
906	priv.h		\
907	tndb.h		\
908	tsyscall.h
909
910I1394HDRS=		\
911	cmd1394.h	\
912	id1394.h	\
913	ieee1212.h	\
914	ieee1394.h	\
915	ixl1394.h	\
916	s1394_impl.h	\
917	t1394.h
918
919# "cmdk" headers used on sparc
920SDKTPHDRS=		\
921	dadkio.h	\
922	fdisk.h
923
924# "cmdk" headers used on i386
925DKTPHDRS=		\
926	altsctr.h	\
927	bbh.h		\
928	cm.h		\
929	cmdev.h		\
930	cmdk.h		\
931	cmpkt.h		\
932	controller.h	\
933	dadev.h		\
934	dadk.h		\
935	dadkio.h	\
936	fctypes.h	\
937	fdisk.h		\
938	flowctrl.h	\
939	gda.h		\
940	quetypes.h	\
941	queue.h		\
942	tgcom.h		\
943	tgdk.h
944
945# "pc" header files used on i386
946PCHDRS=			\
947	avintr.h	\
948	dma_engine.h	\
949	i8272A.h	\
950	pcic_reg.h	\
951	pcic_var.h	\
952	pic.h		\
953	pit.h		\
954	rtc.h
955
956NXGEHDRS=			\
957	nxge.h			\
958	nxge_common.h		\
959	nxge_common_impl.h	\
960	nxge_defs.h		\
961	nxge_hw.h		\
962	nxge_impl.h		\
963	nxge_ipp.h		\
964	nxge_ipp_hw.h		\
965	nxge_mac.h		\
966	nxge_mac_hw.h		\
967	nxge_fflp.h		\
968	nxge_fflp_hw.h		\
969	nxge_mii.h		\
970	nxge_rxdma.h		\
971	nxge_rxdma_hw.h		\
972	nxge_txc.h		\
973	nxge_txc_hw.h		\
974	nxge_txdma.h		\
975	nxge_txdma_hw.h		\
976	nxge_virtual.h		\
977	nxge_espc.h
978
979include Makefile.syshdrs
980
981dcam/%.check:	dcam/%.h
982	$(DOT_H_CHECK)
983
984CHECKHDRS=						\
985	$($(MACH)_HDRS:%.h=%.check)			\
986	$(AUDIOHDRS:%.h=audio/%.check)			\
987	$(BSCHDRS:%.h=%.check)				\
988	$(CHKHDRS:%.h=%.check)				\
989	$(CPUDRVHDRS:%.h=%.check)			\
990	$(CRYPTOHDRS:%.h=crypto/%.check)		\
991	$(DCAMHDRS:%.h=dcam/%.check)			\
992	$(IBHDRS:%.h=ib/%.check)			\
993	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
994	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
995	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
996	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
997	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
998	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
999	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1000	$(ISOHDRS:%.h=iso/%.check)			\
1001	$(FMHDRS:%.h=fm/%.check)			\
1002	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1003	$(FMIOHDRS:%.h=fm/io/%.check)			\
1004	$(FSHDRS:%.h=fs/%.check)			\
1005	$(LVMHDRS:%.h=lvm/%.check)			\
1006	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1007	$(SCSIHDRS:%.h=scsi/%.check)			\
1008	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
1009	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1010	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1011	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1012	$(FCHDRS:%.h=fc4/%.check)			\
1013	$(SATAGENHDRS:%.h=sata/%.check)			\
1014	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1015	$(CONTRACTHDRS:%.h=contract/%.check)            \
1016	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1017	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1018	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1019	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1020	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1021	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1022	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1023	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1024	$(USBHDRS:%.h=usb/%.check)                      \
1025	$(I1394HDRS:%.h=1394/%.check)			\
1026	$(RSMHDRS:%.h=rsm/%.check)			\
1027	$(TSOLHDRS:%.h=tsol/%.check)			\
1028	$(NXGEHDRS:%.h=nxge/%.check)
1029
1030
1031.KEEP_STATE:
1032
1033.PARALLEL:			\
1034	$(CHECKHDRS)		\
1035	$(ROOTHDRS)		\
1036	$(ROOTAUDHDRS)		\
1037	$(ROOTCRYPTOHDRS)	\
1038	$(ROOTDCAMHDRS)		\
1039	$(ROOTISOHDRS)		\
1040	$(ROOTFMHDRS)		\
1041	$(ROOTFMIOHDRS)		\
1042	$(ROOTFMFSHDRS)		\
1043	$(ROOTFSHDRS)		\
1044	$(ROOTIBDHDRS)		\
1045	$(ROOTIBHDRS)		\
1046	$(ROOTIBTLHDRS)		\
1047	$(ROOTIBTLIMPLHDRS)	\
1048	$(ROOTIBNEXHDRS)	\
1049	$(ROOTIBMGTHDRS)	\
1050	$(ROOTIBMFHDRS)		\
1051	$(ROOTTAVORHDRS)	\
1052	$(ROOTLVMHDRS)		\
1053	$(ROOTPCMCIAHDRS)	\
1054	$(ROOTSCSIHDRS)		\
1055	$(ROOTSCSICONFHDRS)	\
1056	$(ROOTSCSIGENHDRS)	\
1057	$(ROOTSCSIIMPLHDRS)	\
1058	$(ROOTSCSIVHCIHDRS)	\
1059	$(ROOTFCHDRS)		\
1060	$(ROOTSYSEVENTHDRS)     \
1061	$(ROOTCONTRACTHDRS)     \
1062	$(ROOTUSBHDRS)		\
1063	$(ROOTUSBAUDHDRS)	\
1064	$(ROOTUSBHUBDHDRS)	\
1065	$(ROOTUSBHIDHDRS)	\
1066	$(ROOTUSBMSHDRS)	\
1067	$(ROOTUSBPRNHDRS)       \
1068	$(ROOTUSBCDCHDRS)       \
1069	$(ROOTUSBVIDHDRS)       \
1070	$(ROOTUGENHDRS)		\
1071	$(ROOT1394HDRS)         \
1072	$(ROOTHOTPLUGHDRS)	\
1073	$(ROOTHOTPLUGPCIHDRS)	\
1074	$(ROOTRSMHDRS)		\
1075	$(ROOTTSOLHDRS)		\
1076	$($(MACH)_ROOTHDRS)
1077
1078
1079install_h:			\
1080	$(ROOTDIRS)		\
1081	LVMDERIVED_H		\
1082	.WAIT			\
1083	$(ROOTHDRS)		\
1084	$(ROOTAUDHDRS)		\
1085	$(ROOTCRYPTOHDRS)	\
1086	$(ROOTDCAMHDRS)		\
1087	$(ROOTISOHDRS)		\
1088	$(ROOTFMHDRS)		\
1089	$(ROOTFMFSHDRS)		\
1090	$(ROOTFMIOHDRS)		\
1091	$(ROOTFSHDRS)		\
1092	$(ROOTIBDHDRS)		\
1093	$(ROOTIBHDRS)		\
1094	$(ROOTIBTLHDRS)		\
1095	$(ROOTIBTLIMPLHDRS)	\
1096	$(ROOTIBNEXHDRS)	\
1097	$(ROOTIBMGTHDRS)	\
1098	$(ROOTIBMFHDRS)		\
1099	$(ROOTTAVORHDRS)	\
1100	$(ROOTLVMHDRS)		\
1101	$(ROOTPCMCIAHDRS)	\
1102	$(ROOTSCSIHDRS)		\
1103	$(ROOTSCSICONFHDRS)	\
1104	$(ROOTSCSIGENHDRS)	\
1105	$(ROOTSCSIIMPLHDRS)	\
1106	$(ROOTSCSIVHCIHDRS)	\
1107	$(ROOTFCHDRS)		\
1108	$(ROOTSYSEVENTHDRS)     \
1109	$(ROOTCONTRACTHDRS)     \
1110	$(ROOTUSBHDRS)		\
1111	$(ROOTUSBAUDHDRS)	\
1112	$(ROOTUSBHUBDHDRS)	\
1113	$(ROOTUSBHIDHDRS)	\
1114	$(ROOTUSBMSHDRS)	\
1115	$(ROOTUSBPRNHDRS)       \
1116	$(ROOTUSBCDCHDRS)       \
1117	$(ROOTUSBVIDHDRS)       \
1118	$(ROOTUGENHDRS)		\
1119	$(ROOT1394HDRS)         \
1120	$(ROOTHOTPLUGHDRS)	\
1121	$(ROOTHOTPLUGPCIHDRS)	\
1122	$(ROOTRSMHDRS)		\
1123	$(ROOTTSOLHDRS)		\
1124	$($(MACH)_ROOTHDRS)
1125
1126all_h: $(GENHDRS)
1127
1128priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1129	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1130
1131priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1132	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1133
1134LVMDERIVED_H:
1135	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1136
1137check:	$(CHECKHDRS)
1138
1139FRC:
1140
1141# EXPORT DELETE START
1142EXPORT_SRC:
1143	$(RM) wanboot_impl.h+ Makefile+
1144	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1145		< wanboot_impl.h > wanboot_impl.h+
1146	$(MV) wanboot_impl.h+ wanboot_impl.h
1147	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1148		< Makefile > Makefile+
1149	$(RM) Makefile
1150	$(MV) Makefile+ Makefile
1151	$(CHMOD) 444 Makefile wanboot_impl.h
1152# EXPORT DELETE END
1153