11816cb70SBarry Harding# 21816cb70SBarry Harding# CDDL HEADER START 31816cb70SBarry Harding# 41816cb70SBarry Harding# The contents of this file are subject to the terms of the 51816cb70SBarry Harding# Common Development and Distribution License (the "License"). 61816cb70SBarry Harding# You may not use this file except in compliance with the License. 71816cb70SBarry Harding# 81816cb70SBarry Harding# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91816cb70SBarry Harding# or http://www.opensolaris.org/os/licensing. 101816cb70SBarry Harding# See the License for the specific language governing permissions 111816cb70SBarry Harding# and limitations under the License. 121816cb70SBarry Harding# 131816cb70SBarry Harding# When distributing Covered Code, include this CDDL HEADER in each 141816cb70SBarry Harding# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151816cb70SBarry Harding# If applicable, add the following below this CDDL HEADER, with the 161816cb70SBarry Harding# fields enclosed by brackets "[]" replaced with your own identifying 171816cb70SBarry Harding# information: Portions Copyright [yyyy] [name of copyright owner] 181816cb70SBarry Harding# 191816cb70SBarry Harding# CDDL HEADER END 201816cb70SBarry Harding# 211816cb70SBarry Harding# 221816cb70SBarry Harding# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 231816cb70SBarry Harding# Use is subject to license terms. 241816cb70SBarry Harding# 251816cb70SBarry Harding# 261816cb70SBarry Harding# This makefile drives the production of the Marvell Yukon 271816cb70SBarry Harding# Gigabit Ethernet (YGE) driver module in x86 systems 281816cb70SBarry Harding# 291816cb70SBarry Harding 301816cb70SBarry Harding# 311816cb70SBarry Harding# Paths to the base of the uts directory trees 321816cb70SBarry Harding# 331816cb70SBarry HardingUTSBASE = ../.. 341816cb70SBarry Harding 351816cb70SBarry Harding# 361816cb70SBarry Harding# Define the module and object file sets. 371816cb70SBarry Harding# 381816cb70SBarry HardingMODULE = yge 391816cb70SBarry HardingOBJECTS = $(YGE_OBJS:%=$(OBJS_DIR)/%) 401816cb70SBarry HardingROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 411816cb70SBarry Harding 421816cb70SBarry Harding# 431816cb70SBarry Harding# Include common rules. 441816cb70SBarry Harding# 451816cb70SBarry Hardinginclude $(UTSBASE)/intel/Makefile.intel 461816cb70SBarry Harding 471816cb70SBarry Harding# 481816cb70SBarry Harding# Define targets 491816cb70SBarry Harding# 501816cb70SBarry HardingALL_TARGET = $(BINARY) 511816cb70SBarry HardingINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 521816cb70SBarry Harding 531816cb70SBarry Harding# 541816cb70SBarry Harding# Driver depends on MAC 551816cb70SBarry Harding# 56*82d0151aSRichard LoweLDFLAGS += -N misc/mac -N misc/mii 571816cb70SBarry Harding 581816cb70SBarry Harding# 590aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 600aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 610aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles. 620aaef2f5SRichard Lowe# 637014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 647014882cSRichard Lowe 651816cb70SBarry Harding# 661816cb70SBarry Harding# 671816cb70SBarry Harding# Default build targets. 681816cb70SBarry Harding# 691816cb70SBarry Harding.KEEP_STATE: 701816cb70SBarry Harding 711816cb70SBarry Hardingdef: $(DEF_DEPS) 721816cb70SBarry Harding 731816cb70SBarry Hardingall: $(ALL_DEPS) 741816cb70SBarry Harding 751816cb70SBarry Hardingclean: $(CLEAN_DEPS) 761816cb70SBarry Harding 771816cb70SBarry Hardingclobber: $(CLOBBER_DEPS) 781816cb70SBarry Harding 791816cb70SBarry Hardinginstall: $(INSTALL_DEPS) 801816cb70SBarry Harding 811816cb70SBarry Harding# 821816cb70SBarry Harding# Include common targets. 831816cb70SBarry Harding# 841816cb70SBarry Hardinginclude $(UTSBASE)/intel/Makefile.targ 85