Makefile.files revision 5cd376e8b7030707d78315f63adb4bb2b4d9963e
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
# This Makefile defines file modules in the directory uts/i86xpv
# and its children. These are the source files which are i86xpv
# "implementation architecture" dependent.
#
#
# object lists
#
CORE_OBJS += \
cbe.o \
cmi.o \
cmi_hw.o \
cms.o \
cpuid.o \
cpupm.o \
dvma.o \
hment.o \
htable.o \
ibft.o \
intr.o \
notes.o \
pmem.o \
ppage.o \
trap.o \
#
# Add the SMBIOS subsystem object files directly to the list of objects
# built into unix itself; this is all common code except for smb_dev.c.
#
CORE_OBJS += $(SMBIOS_OBJS)
#
# These get compiled twice:
# - once in the dboot (direct boot) identity mapped code
# - once for use during early startup in unix
#
BOOT_DRIVER_OBJS = \
CORE_OBJS += $(BOOT_DRIVER_OBJS)
#
# Extra XEN files separated out for now.
#
CORE_OBJS += \
evtchn.o \
gnttab.o \
mp_xen.o \
#
# locore.o is special. It must be the first file relocated so that it
# it is relocated just where its name implies.
#
SPECIAL_OBJS_32 += \
locore.o \
SPECIAL_OBJS_64 += \
locore.o \
SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
#
# object files used to boot into full kernel
#
DBOOT_OBJS_32 = muldiv.o
DBOOT_OBJS_64 =
DBOOT_OBJS += \
memcpy.o \
memset.o \
string.o \
$(BOOT_DRIVER_OBJS) \
$(DBOOT_OBJS_$(CLASS))
#
# driver & misc modules
#
BALLOON_OBJS += balloon_drv.o
DOMCAPS_OBJS += domcaps.o
EVTCHN_OBJS += evtchn_dev.o
PCI_E_NEXUS_OBJS += npe.o npe_misc.o
ROOTNEX_OBJS += rootnex.o
XPVTOD_OBJS += xpvtod.o
XPV_AUTOCONFIG_OBJS += xpv_autoconfig.o
XPV_UPPC_OBJS += xpv_uppc.o psm_common.o
XENBUS_OBJS += xenbus_dev.o
XENCONS_OBJS += xencons.o
XPVD_OBJS += xpvd.o
XNB_OBJS += xnb.o
XNBE_OBJS += xnbe.o
XNBO_OBJS += xnbo.o
XNBU_OBJS += xnbu.o
XNF_OBJS += xnf.o
XSVC_OBJS += xsvc.o
XDF_OBJS += xdf.o
XDB_OBJS += xdb.o
XDT_OBJS += xdt.o
#
# Build up defines and paths.
#
INC_PATH += -I$(UTSBASE)/i86xpv -I$(UTSBASE)/i86pc -I$(SRC)/common \
-I$(UTSBASE)/common/xen
#
# Since the assym files are derived, the dependencies must be explicit for
# all files including this file. (This is only actually required in the
# instance when the .nse_depinfo file does not exist.) It may seem that
# the lint targets should also have a similar dependency, but they don't
# since only C headers are included when #defined(__lint) is true.
#
ASSYM_DEPS += \
copy.o \
float.o \
locore.o \
sseblk.o \
swtch.o \
$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%): $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
ASSYM_DEPS += kdi_asm.o