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