Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# CDDL HEADER START
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# The contents of this file are subject to the terms of the
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Common Development and Distribution License (the "License").
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# You may not use this file except in compliance with the License.
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# or http://www.opensolaris.org/os/licensing.
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# See the License for the specific language governing permissions
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# and limitations under the License.
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# When distributing Covered Code, include this CDDL HEADER in each
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# If applicable, add the following below this CDDL HEADER, with the
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# fields enclosed by brackets "[]" replaced with your own identifying
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# information: Portions Copyright [yyyy] [name of copyright owner]
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# CDDL HEADER END
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Use is subject to license terms.
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# This makefile drives the production of the Macronix
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Fast Ethernet (MXFE) driver module in intel systems
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Path to the base of the uts directory tree (usually /usr/src/uts).
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdUTSBASE = ../..
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Define the module and object file sets.
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdMODULE = mxfe
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdOBJECTS = $(MXFE_OBJS:%=$(OBJS_DIR)/%)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdLINTS = $(MXFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Include common rules.
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdinclude $(UTSBASE)/intel/Makefile.intel
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Define targets
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdALL_TARGET = $(BINARY)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdLINT_TARGET = $(MODULE).lint
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Overrides
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Driver depends on GLDv3
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdLDFLAGS += -dy -N misc/mac
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Default build targets.
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd.KEEP_STATE:
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgddef: $(DEF_DEPS)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdall: $(ALL_DEPS)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdclean: $(CLEAN_DEPS)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdclobber: $(CLOBBER_DEPS)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdlint: $(LINT_DEPS)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdmodlintlib: $(MODLINTLIB_DEPS)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdclean.lint: $(CLEAN_LINT_DEPS)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdinstall: $(INSTALL_DEPS)
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd# Include common targets.
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgd#
29e83d4b25fd82feb8e0e0fbe89f7e2a8438533dgdinclude $(UTSBASE)/intel/Makefile.targ