xref: /titanic_41/usr/src/uts/sparc/Makefile.files (revision 269473047d747f7815af570197e4ef7322d3632c)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
57aadd8d4Skini# Common Development and Distribution License (the "License").
67aadd8d4Skini# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22fc51f9bbSKrishna Elango# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate#	This Makefile defines all file modules and build rules for the
267c478bd9Sstevel@tonic-gate# directory uts/sparc and it's children. These are the source files which
277c478bd9Sstevel@tonic-gate# are specific to the sparc processor.
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate#	object lists
327c478bd9Sstevel@tonic-gate#
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gateCORE_OBJS +=	ddi_arch.o	\
357c478bd9Sstevel@tonic-gate		polled_io.o	\
367c478bd9Sstevel@tonic-gate		sparc_ddi.o
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gate#
397c478bd9Sstevel@tonic-gate#	generic-unix module
407c478bd9Sstevel@tonic-gate#
417c478bd9Sstevel@tonic-gateGENUNIX_OBJS +=	addsub.o	\
427c478bd9Sstevel@tonic-gate		archdep.o	\
437c478bd9Sstevel@tonic-gate		bitmap_arch.o	\
447c478bd9Sstevel@tonic-gate		compare.o	\
457c478bd9Sstevel@tonic-gate		div.o		\
467c478bd9Sstevel@tonic-gate		fpu_simulator.o	\
477c478bd9Sstevel@tonic-gate		getcontext.o	\
487c478bd9Sstevel@tonic-gate		iu_simulator.o	\
497c478bd9Sstevel@tonic-gate		mul.o		\
507c478bd9Sstevel@tonic-gate		pack.o		\
517c478bd9Sstevel@tonic-gate		sundep.o	\
527c478bd9Sstevel@tonic-gate		syscall.o	\
537c478bd9Sstevel@tonic-gate		unpack.o	\
547c478bd9Sstevel@tonic-gate		utility.o
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gate#
577c478bd9Sstevel@tonic-gate#			Driver (pseudo-driver) Modules
587c478bd9Sstevel@tonic-gate#
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gate#
617c478bd9Sstevel@tonic-gate#			Driver modules
627c478bd9Sstevel@tonic-gate#
637c478bd9Sstevel@tonic-gateFD_OBJS	+=	fd_asm.o
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gateCPR_SPARC_OBJS +=	cpr_sparc.o
667c478bd9Sstevel@tonic-gatePCI_PCI_OBJS +=		pci_pci.o pci_debug.o pci_pwr.o pcix.o
67e762302fSShesha SreenivasamurthyPCIE_MISC_OBJS +=	pcie_sparc.o
68d4bc0535SKrishna ElangoPCIEB_OBJS +=		pcieb_sparc.o
69b65731f1SkiniFCODE_OBJS +=		fcode.o
70fcf3ce44SJohn ForteNSKERN_OBJS +=		nsc_asm.o
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gate#
737c478bd9Sstevel@tonic-gate#			file system modules
747c478bd9Sstevel@tonic-gate#
757c478bd9Sstevel@tonic-gate# XXX -	currently a bug?...
767c478bd9Sstevel@tonic-gate#PROC_OBJS +=
777c478bd9Sstevel@tonic-gateCORE_OBJS +=	prmachdep.o
787c478bd9Sstevel@tonic-gate
79e7cbe64fSgw25295#			ZFS file system module
80e7cbe64fSgw25295ZFS_OBJS +=		\
81e7cbe64fSgw25295	spa_boot.o
82e7cbe64fSgw25295
837c478bd9Sstevel@tonic-gate#
847c478bd9Sstevel@tonic-gate#			misc modules
857c478bd9Sstevel@tonic-gate#
867c478bd9Sstevel@tonic-gateKRTLD_OBJS +=		\
877c478bd9Sstevel@tonic-gate	doreloc.o 	\
887c478bd9Sstevel@tonic-gate	kobj_convrelstr.o \
897c478bd9Sstevel@tonic-gate	kobj_isa.o 	\
907c478bd9Sstevel@tonic-gate	kobj_reloc.o
917c478bd9Sstevel@tonic-gate
927c478bd9Sstevel@tonic-gateSWAPGENERIC_OBJS += swapgeneric.o
93*26947304SEvan YanPCICFG_OBJS	+= pcicfg.o
94b65731f1SkiniFCPCI_OBJS	+= fcpci.o
95b65731f1SkiniFCODEM_OBJS	+= fc_ddi.o fc_physio.o fc_ops.o fc_subr.o
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gate#
987c478bd9Sstevel@tonic-gate#			special files
997c478bd9Sstevel@tonic-gate#
1007c478bd9Sstevel@tonic-gateMODSTUB_OBJ =	modstubs.o
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gate#
1037c478bd9Sstevel@tonic-gate#			SPARC DTrace Providers
1047c478bd9Sstevel@tonic-gate#
1057c478bd9Sstevel@tonic-gateFBT_OBJS	+= fbt.o
1067c478bd9Sstevel@tonic-gateSDT_OBJS	+= sdt.o
1077c478bd9Sstevel@tonic-gate
1087c478bd9Sstevel@tonic-gate#
1097c478bd9Sstevel@tonic-gate#	Build up paths and defines.
1107c478bd9Sstevel@tonic-gate#
1117c478bd9Sstevel@tonic-gateLINT_DEFS	+= -Dsparc
1127c478bd9Sstevel@tonic-gateINC_PATH	+= -I$(UTSBASE)/sparc
113986fd29aSsetjeINC_PATH	+= -I$(UTSBASE)/sparc/krtld
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gate#
1167c478bd9Sstevel@tonic-gate# Since assym.h is a derived file, the dependency must be explicit for
1177c478bd9Sstevel@tonic-gate# all files including this file. (This is only actually required in the
1187c478bd9Sstevel@tonic-gate# instance when the .nse_depinfo file does not exist.) It may seem that
1197c478bd9Sstevel@tonic-gate# the lint targets should also have a similar dependency, but they don't
1207c478bd9Sstevel@tonic-gate# since only C headers are included when #defined(lint) is true.
1217c478bd9Sstevel@tonic-gate#
1227c478bd9Sstevel@tonic-gateASSYM_DEPS +=	sparc_ddi.o
1237c478bd9Sstevel@tonic-gate
1247c478bd9Sstevel@tonic-gate#
1257c478bd9Sstevel@tonic-gate# Inlined assembler routines.
1267c478bd9Sstevel@tonic-gate#
1277c478bd9Sstevel@tonic-gateINLINES		+= $(UTSBASE)/sparc/ml/sparc.il
128