Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# CDDL HEADER START
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# The contents of this file are subject to the terms of the
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Common Development and Distribution License (the "License").
c869993e79c1eafbec61a56bf6cea848fe754c71xy# You may not use this file except in compliance with the License.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c869993e79c1eafbec61a56bf6cea848fe754c71xy# or http://www.opensolaris.org/os/licensing.
c869993e79c1eafbec61a56bf6cea848fe754c71xy# See the License for the specific language governing permissions
c869993e79c1eafbec61a56bf6cea848fe754c71xy# and limitations under the License.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# When distributing Covered Code, include this CDDL HEADER in each
c869993e79c1eafbec61a56bf6cea848fe754c71xy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c869993e79c1eafbec61a56bf6cea848fe754c71xy# If applicable, add the following below this CDDL HEADER, with the
c869993e79c1eafbec61a56bf6cea848fe754c71xy# fields enclosed by brackets "[]" replaced with your own identifying
c869993e79c1eafbec61a56bf6cea848fe754c71xy# information: Portions Copyright [yyyy] [name of copyright owner]
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# CDDL HEADER END
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
ac7f5757903d7806e03e59f71c10eec36e0deadechenlu chen - Sun Microsystems - Beijing China# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Use is subject to license terms.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# uts/sparc/igb/Makefile
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# This makefile drives the production of the igb
c869993e79c1eafbec61a56bf6cea848fe754c71xy# network driver kernel module.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
fa25784ca4b51c206177d891a654f1d36a25d41fxy# SPARC architecture dependent
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Path to the base of the uts directory tree (usually /usr/src/uts).
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xyUTSBASE = ../..
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Define the module and object file sets.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xyMODULE = igb
c869993e79c1eafbec61a56bf6cea848fe754c71xyOBJECTS = $(IGB_OBJS:%=$(OBJS_DIR)/%)
c869993e79c1eafbec61a56bf6cea848fe754c71xyLINTS = $(IGB_OBJS:%.o=$(LINTS_DIR)/%.ln)
c869993e79c1eafbec61a56bf6cea848fe754c71xyROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
c869993e79c1eafbec61a56bf6cea848fe754c71xyCONF_SRCDIR = $(UTSBASE)/common/io/igb
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Include common rules.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xyinclude $(UTSBASE)/sparc/Makefile.sparc
c869993e79c1eafbec61a56bf6cea848fe754c71xy
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Define targets
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xyALL_TARGET = $(BINARY) $(SRC_CONFFILE)
c869993e79c1eafbec61a56bf6cea848fe754c71xyLINT_TARGET = $(MODULE).lint
c869993e79c1eafbec61a56bf6cea848fe754c71xyINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Override defaults
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xyINC_PATH += -I$(CONF_SRCDIR)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# lint pass one enforcement
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xyCFLAGS += $(CCVERBOSE)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Turn on doubleword alignment for 64 bit registers
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xyCFLAGS += -dalign
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
ac7f5757903d7806e03e59f71c10eec36e0deadechenlu chen - Sun Microsystems - Beijing China# Driver depends on MAC
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
ac7f5757903d7806e03e59f71c10eec36e0deadechenlu chen - Sun Microsystems - Beijing ChinaLDFLAGS += -dy -N misc/mac
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Default build targets.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy.KEEP_STATE:
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xydef: $(DEF_DEPS)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xyall: $(ALL_DEPS)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xyclean: $(CLEAN_DEPS)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xyclobber: $(CLOBBER_DEPS)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xylint: $(LINT_DEPS)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xymodlintlib: $(MODLINTLIB_DEPS)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xyclean.lint: $(CLEAN_LINT_DEPS)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xyinstall: $(INSTALL_DEPS)
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Include common targets.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xyinclude $(UTSBASE)/sparc/Makefile.targ
c869993e79c1eafbec61a56bf6cea848fe754c71xy