Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
561N/A# CDDL HEADER START
561N/A#
561N/A# The contents of this file are subject to the terms of the
561N/A# Common Development and Distribution License (the "License").
561N/A# You may not use this file except in compliance with the License.
561N/A#
561N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
561N/A# or http://www.opensolaris.org/os/licensing.
561N/A# See the License for the specific language governing permissions
561N/A# and limitations under the License.
561N/A#
561N/A# When distributing Covered Code, include this CDDL HEADER in each
561N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
561N/A# If applicable, add the following below this CDDL HEADER, with the
561N/A# fields enclosed by brackets "[]" replaced with your own identifying
561N/A# information: Portions Copyright [yyyy] [name of copyright owner]
561N/A#
561N/A# CDDL HEADER END
561N/A#
561N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
561N/A# Use is subject to license terms.
561N/A#
561N/A
561N/A#
561N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
561N/A#
561N/AUTSBASE = ../..
561N/A
561N/A#
561N/A# Define the module and object file sets.
561N/A#
561N/AMODULE = mc-amd
561N/A#
561N/AOBJECTS = $(MCAMD_OBJS:%=$(OBJS_DIR)/%)
561N/ALINTS = $(MCAMD_OBJS:%.o=$(LINTS_DIR)/%.ln)
561N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
561N/ASRCDIR = $(UTSBASE)/intel/io/mc-amd
561N/ACONF_SRCDIR = $(SRCDIR)
561N/A
561N/AMCAMD_OFF_H = $(OBJS_DIR)/mcamd_off.h
561N/AMCAMD_OFF_SRC = $(SRCDIR)/mcamd_off.in
#
# Include common rules.
#
include ../Makefile.intel
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Overrides and additions
#
CPPFLAGS += -I$(SRCDIR) -I$(OBJS_DIR) -I$(SRC)/common/mc/mc-amd
CPPFLAGS += -I$(SRC)/common/util
CLEANFILES += $(MCAMD_OFF_H)
CLOBBERFILES += $(MCAMD_OFF_H)
CERRWARN += -_gcc=-Wno-parentheses
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)
$(OBJECTS): $(OBJS_DIR) $(MCAMD_OFF_H)
$(LINTS): $(MCAMD_OFF_H)
#
# Create mcamd_off.h
#
$(MCAMD_OFF_H): $(MCAMD_OFF_SRC)
$(OFFSETS_CREATE) <$(MCAMD_OFF_SRC) >$@
#
# Include common targets.
#
include ../Makefile.targ