Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# CDDL HEADER START
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# The contents of this file are subject to the terms of the
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Common Development and Distribution License (the "License").
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# You may not use this file except in compliance with the License.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# or http://www.opensolaris.org/os/licensing.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# See the License for the specific language governing permissions
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# and limitations under the License.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# When distributing Covered Code, include this CDDL HEADER in each
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# If applicable, add the following below this CDDL HEADER, with the
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# fields enclosed by brackets "[]" replaced with your own identifying
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# information: Portions Copyright [yyyy] [name of copyright owner]
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# CDDL HEADER END
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
ea65739ebec0cbd625d8c89e19592be58fa186a6chenlu chen - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Use is subject to license terms.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# uts/sparc/ixgbe/Makefile
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# This makefile drives the production of the ixgbe
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# network driver kernel module.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# sparc architecture dependent
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Path to the base of the uts directory tree (usually /usr/src/uts).
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538btUTSBASE = ../..
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Define the module and object file sets.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538btMODULE = ixgbe
9da57d7b0ddd8d73b676ce12c040362132cdd538btOBJECTS = $(IXGBE_OBJS:%=$(OBJS_DIR)/%)
9da57d7b0ddd8d73b676ce12c040362132cdd538btLINTS = $(IXGBE_OBJS:%.o=$(LINTS_DIR)/%.ln)
9da57d7b0ddd8d73b676ce12c040362132cdd538btROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
9da57d7b0ddd8d73b676ce12c040362132cdd538btCONF_SRCDIR = $(UTSBASE)/common/io/ixgbe
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Include common rules.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538btinclude $(UTSBASE)/sparc/Makefile.sparc
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Define targets
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538btALL_TARGET = $(BINARY) $(SRC_CONFFILE)
9da57d7b0ddd8d73b676ce12c040362132cdd538btLINT_TARGET = $(MODULE).lint
9da57d7b0ddd8d73b676ce12c040362132cdd538btINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Override defaults
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538btINC_PATH += -I$(CONF_SRCDIR)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# lint pass one enforcement
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538btCFLAGS += $(CCVERBOSE)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Turn on doubleword alignment for 64 bit registers
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538btCFLAGS += -dalign
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
ea65739ebec0cbd625d8c89e19592be58fa186a6chenlu chen - Sun Microsystems - Beijing China# Driver depends on MAC
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
ea65739ebec0cbd625d8c89e19592be58fa186a6chenlu chen - Sun Microsystems - Beijing ChinaLDFLAGS += -dy -N misc/mac
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Default build targets.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt.KEEP_STATE:
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btdef: $(DEF_DEPS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btall: $(ALL_DEPS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btclean: $(CLEAN_DEPS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btclobber: $(CLOBBER_DEPS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btlint: $(LINT_DEPS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btmodlintlib: $(MODLINTLIB_DEPS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btclean.lint: $(CLEAN_LINT_DEPS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btinstall: $(INSTALL_DEPS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Include common targets.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538btinclude $(UTSBASE)/sparc/Makefile.targ
9da57d7b0ddd8d73b676ce12c040362132cdd538bt