Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
325N/A# CDDL HEADER START
325N/A#
325N/A# The contents of this file are subject to the terms of the
325N/A# Common Development and Distribution License (the "License").
325N/A# You may not use this file except in compliance with the License.
325N/A#
325N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
325N/A# or http://www.opensolaris.org/os/licensing.
325N/A# See the License for the specific language governing permissions
325N/A# and limitations under the License.
325N/A#
325N/A# When distributing Covered Code, include this CDDL HEADER in each
325N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
325N/A# If applicable, add the following below this CDDL HEADER, with the
325N/A# fields enclosed by brackets "[]" replaced with your own identifying
325N/A# information: Portions Copyright [yyyy] [name of copyright owner]
325N/A#
325N/A# CDDL HEADER END
325N/A#
325N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
325N/A# Use is subject to license terms.
325N/A#
325N/A
325N/A#
325N/A# Intel Nehalem memory controller module
325N/A#
325N/A
325N/A#
325N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
325N/A#
325N/AUTSBASE = ../..
325N/AUTSCLOSED = ../../../../closed/uts
325N/A
325N/A#
325N/A# Define the module and object file sets.
325N/A#
325N/AMODULE = intel_nhm
325N/A#
325N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
325N/ACONF_SRCDIR = $(UTSBASE)/intel/io/intel_nhm
325N/A
325N/A#
325N/A# Include common rules.
325N/A#
325N/Ainclude $(UTSBASE)/intel/Makefile.intel
325N/A
325N/A#
325N/A# The list of object files is defined here, rather than in Makefile.files,
325N/A# because the "$(CLOSED_BUILD)" macro has not been defined at the time
325N/A# Makefile.files is processed.
325N/A#
325N/AINTEL_NHM_OBJS += \
325N/A nhm_init.o \
325N/A mem_addr.o \
325N/A intel_nhmdrv.o \
325N/A nhm_pci_cfg.o \
325N/A dimm_topo.o \
325N/A intel_nhm.o
325N/A
$(CLOSED_BUILD)INTEL_NHM_OBJS += \
nhm_dimm_addr.o
OBJECTS = $(INTEL_NHM_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(INTEL_NHM_OBJS:%.o=$(LINTS_DIR)/%.ln)
#
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
LINT_TARGET = $(LINT_MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CPPFLAGS += -I$(UTSBASE)/i86pc
LDFLAGS += -dy -N drv/smbios
CERRWARN += -_gcc=-Wno-uninitialized
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include ../Makefile.targ
$(CLOSED_BUILD)include $(UTSCLOSED)/intel/Makefile.rules