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