Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# CDDL HEADER START
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# The contents of this file are subject to the terms of the
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Common Development and Distribution License (the "License").
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# You may not use this file except in compliance with the License.
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# or http://www.opensolaris.org/os/licensing.
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# See the License for the specific language governing permissions
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# and limitations under the License.
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# When distributing Covered Code, include this CDDL HEADER in each
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# If applicable, add the following below this CDDL HEADER, with the
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# fields enclosed by brackets "[]" replaced with your own identifying
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# information: Portions Copyright [yyyy] [name of copyright owner]
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# CDDL HEADER END
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
22eb7cb54d8a6bcf6fe2674cb4b1f0cf2d85cfb6gd# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# Use is subject to license terms.
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# This makefile drives the production of the Realtek
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# Gigabit Ethernet (BGE) driver module in intel systems
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# Path to the base of the uts directory tree (usually /usr/src/uts).
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsUTSBASE = ../..
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# Define the module and object file sets.
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsMODULE = rge
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsOBJECTS = $(RGE_OBJS:%=$(OBJS_DIR)/%)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsLINTS = $(RGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# Include common rules.
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsinclude $(UTSBASE)/intel/Makefile.intel
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# Define targets
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsALL_TARGET = $(BINARY)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsLINT_TARGET = $(MODULE).lint
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# Overrides
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# Driver depends on GLD & IP
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsLDFLAGS += -dy -N misc/mac -N drv/ip
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# For now, disable these lint checks; maintainers should endeavor
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# to investigate and remove these for maximum lint coverage.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Please do not carry these forward to new Makefiles.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# Default build targets.
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs.KEEP_STATE:
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsdef: $(DEF_DEPS)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsall: $(ALL_DEPS)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsclean: $(CLEAN_DEPS)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsclobber: $(CLOBBER_DEPS)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gslint: $(LINT_DEPS)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsmodlintlib: $(MODLINTLIB_DEPS)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsclean.lint: $(CLEAN_LINT_DEPS)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsinstall: $(INSTALL_DEPS)
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs# Include common targets.
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gs#
c7fd2ed091e4e4beb47e1da3a6197a2c38f29c02gsinclude $(UTSBASE)/intel/Makefile.targ