xref: /titanic_52/usr/src/uts/sparc/Makefile.files (revision fcf3ce441efd61da9bb2884968af01cb7c1452cc)
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#	This Makefile defines all file modules and build rules for the
26# directory uts/sparc and it's children. These are the source files which
27# are specific to the sparc processor.
28#
29
30#
31#	object lists
32#
33
34CORE_OBJS +=	ddi_arch.o	\
35		polled_io.o	\
36		sparc_ddi.o
37
38#
39#	generic-unix module
40#
41GENUNIX_OBJS +=	addsub.o	\
42		archdep.o	\
43		bitmap_arch.o	\
44		compare.o	\
45		div.o		\
46		fpu_simulator.o	\
47		getcontext.o	\
48		iu_simulator.o	\
49		mul.o		\
50		pack.o		\
51		sundep.o	\
52		syscall.o	\
53		unpack.o	\
54		utility.o
55
56#
57#			Driver (pseudo-driver) Modules
58#
59
60#
61#			Driver modules
62#
63FD_OBJS	+=	fd_asm.o
64
65CPR_SPARC_OBJS +=	cpr_sparc.o
66PCI_PCI_OBJS +=		pci_pci.o pci_debug.o pci_pwr.o pcix.o
67PX_PCI_OBJS +=		px_pci.o pcie_pwr.o
68FCODE_OBJS +=		fcode.o
69NSKERN_OBJS +=		nsc_asm.o
70
71#
72#			file system modules
73#
74# XXX -	currently a bug?...
75#PROC_OBJS +=
76CORE_OBJS +=	prmachdep.o
77
78#			ZFS file system module
79ZFS_OBJS +=		\
80	spa_boot.o
81
82#
83#			misc modules
84#
85KRTLD_OBJS +=		\
86	doreloc.o 	\
87	kobj_convrelstr.o \
88	kobj_isa.o 	\
89	kobj_reloc.o
90
91SWAPGENERIC_OBJS += swapgeneric.o
92PCICFG_E_OBJS	+= pcicfg.e.o
93FCPCI_OBJS	+= fcpci.o
94FCODEM_OBJS	+= fc_ddi.o fc_physio.o fc_ops.o fc_subr.o
95
96#
97#			special files
98#
99MODSTUB_OBJ =	modstubs.o
100
101#
102#			SPARC DTrace Providers
103#
104FBT_OBJS	+= fbt.o
105SDT_OBJS	+= sdt.o
106
107#
108#	Build up paths and defines.
109#
110LINT_DEFS	+= -Dsparc
111INC_PATH	+= -I$(UTSBASE)/sparc
112INC_PATH	+= -I$(UTSBASE)/sparc/krtld
113
114#
115# Since assym.h is a derived file, the dependency must be explicit for
116# all files including this file. (This is only actually required in the
117# instance when the .nse_depinfo file does not exist.) It may seem that
118# the lint targets should also have a similar dependency, but they don't
119# since only C headers are included when #defined(lint) is true.
120#
121ASSYM_DEPS +=	sparc_ddi.o
122
123#
124# Inlined assembler routines.
125#
126INLINES		+= $(UTSBASE)/sparc/ml/sparc.il
127