Makefile.files revision 349b53dd4e695e3d833b5380540385145b2d3ae8
#
# 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 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# This Makefile defines file modules in the directory uts/i86pc
# and its children. These are the source files which are i86pc
# "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 \
mp_pc.o \
mpcore.o \
notes.o \
pmem.o \
ppage.o \
pwrnow.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)
#
# 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))
#
# Objects that get compiled into the identity mapped PT_LOAD section of unix
# to handle the earliest part of booting.
#
DBOOT_OBJS_32 =
DBOOT_OBJS_64 += dboot_elfload.o
DBOOT_OBJS += \
memcpy.o \
memset.o \
muldiv.o \
string.o \
$(BOOT_DRIVER_OBJS) \
$(DBOOT_OBJS_$(CLASS))
#
# driver and misc modules
#
FIPE_OBJS += fipe_drv.o fipe_pm.o
PCIE_MISC_OBJS += pcie_acpi.o
PCI_E_NEXUS_OBJS += npe.o npe_misc.o
ACPI_DRV_OBJS += acpi_drv.o acpi_video.o
CPUDRV_OBJS += \
cpudrv.o \
ACPIPPM_OBJS += acpippm.o acpisleep.o
TZMON_OBJS += tzmon.o
UPPC_OBJS += uppc.o psm_common.o
XSVC_OBJS += xsvc.o
#
# Build up defines and paths.
#
ALL_DEFS += -Di86pc
INC_PATH += -I$(UTSBASE)/i86pc -I$(SRC)/common
INC_PATH += -I$(UTSBASE)/i86xpv -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 \
mpcore.o \
sseblk.o \
swtch.o \
CPR_IMPL_OBJS = cpr_impl.o cpr_wakecode.o
$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%): $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
ASSYM_DEPS += kdi_asm.o