82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# CDDL HEADER START
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# The contents of this file are subject to the terms of the
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Common Development and Distribution License (the "License").
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# You may not use this file except in compliance with the License.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# or http://www.opensolaris.org/os/licensing.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# See the License for the specific language governing permissions
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# and limitations under the License.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# CDDL HEADER END
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Use is subject to license terms.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Copyright 2010 Nexenta Systems, Inc. All rights reserved.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts).
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'AmoreUTSBASE = ../..
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Define the module and object file sets.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'AmoreMODULE = iprb
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'AmoreOBJECTS = $(IPRB_OBJS:%=$(OBJS_DIR)/%)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'AmoreLINTS = $(IPRB_OBJS:%.o=$(LINTS_DIR)/%.ln)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'AmoreROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Include common rules.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Define targets
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'AmoreALL_TARGET = $(BINARY)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'AmoreLINT_TARGET = $(MODULE).lint
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Overrides
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Driver depends on GLD
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'AmoreLDFLAGS += -dy -N misc/mac -Nmisc/mii
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Default build targets.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore.KEEP_STATE:
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amoredef: $(DEF_DEPS)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amoreall: $(ALL_DEPS)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amoreclean: $(CLEAN_DEPS)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amoreclobber: $(CLOBBER_DEPS)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amorelint: $(LINT_DEPS)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amoremodlintlib: $(MODLINTLIB_DEPS)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amoreinstall: $(INSTALL_DEPS)
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore# Include common targets.
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amore#
82743679557cf8b7a5dd51eaa0015e0ca498ac37Garrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ