Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# CDDL HEADER START
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# The contents of this file are subject to the terms of the
af062818b47340eef15700d2f0211576ba3506eevboxsync# Common Development and Distribution License (the "License").
af062818b47340eef15700d2f0211576ba3506eevboxsync# You may not use this file except in compliance with the License.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af062818b47340eef15700d2f0211576ba3506eevboxsync# or http://www.opensolaris.org/os/licensing.
af062818b47340eef15700d2f0211576ba3506eevboxsync# See the License for the specific language governing permissions
af062818b47340eef15700d2f0211576ba3506eevboxsync# and limitations under the License.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# When distributing Covered Code, include this CDDL HEADER in each
af062818b47340eef15700d2f0211576ba3506eevboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
af062818b47340eef15700d2f0211576ba3506eevboxsync# If applicable, add the following below this CDDL HEADER, with the
af062818b47340eef15700d2f0211576ba3506eevboxsync# fields enclosed by brackets "[]" replaced with your own identifying
af062818b47340eef15700d2f0211576ba3506eevboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# CDDL HEADER END
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# Use is subject to license terms.
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#ident "%Z%%M% %I% %E% SMI"
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# This makefile drives the production of the mac_ether MAC-Type plugin
af062818b47340eef15700d2f0211576ba3506eevboxsync# kernel module.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsyncUTSBASE = ../..
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# Define the module and object file sets.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsyncMODULE = mac_ether
af062818b47340eef15700d2f0211576ba3506eevboxsyncOBJECTS = $(MAC_ETHER_OBJS:%=$(OBJS_DIR)/%)
af062818b47340eef15700d2f0211576ba3506eevboxsyncLINTS = $(MAC_ETHER_OBJS:%.o=$(LINTS_DIR)/%.ln)
af062818b47340eef15700d2f0211576ba3506eevboxsyncROOTMODULE = $(ROOT_MAC_DIR)/$(MODULE)
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# Include common rules.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsyncinclude $(UTSBASE)/intel/Makefile.intel
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# Define targets
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsyncALL_TARGET = $(BINARY)
af062818b47340eef15700d2f0211576ba3506eevboxsyncLINT_TARGET = $(MODULE).lint
af062818b47340eef15700d2f0211576ba3506eevboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# Overrides.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsyncCFLAGS += $(CCVERBOSE)
af062818b47340eef15700d2f0211576ba3506eevboxsyncLDFLAGS += -dy -N misc/mac
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
#
# 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)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ