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 HardingLINTS = $(YGE_OBJS:%.o=$(LINTS_DIR)/%.ln) 411816cb70SBarry HardingROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 421816cb70SBarry Harding 431816cb70SBarry Harding# 441816cb70SBarry Harding# Include common rules. 451816cb70SBarry Harding# 461816cb70SBarry Hardinginclude $(UTSBASE)/intel/Makefile.intel 471816cb70SBarry Harding 481816cb70SBarry Harding# 491816cb70SBarry Harding# Define targets 501816cb70SBarry Harding# 511816cb70SBarry HardingALL_TARGET = $(BINARY) 521816cb70SBarry HardingLINT_TARGET = $(MODULE).lint 531816cb70SBarry HardingINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 541816cb70SBarry Harding 551816cb70SBarry Harding# 561816cb70SBarry Harding# Driver depends on MAC 571816cb70SBarry Harding# 581816cb70SBarry HardingLDFLAGS += -dy -N misc/mac -N misc/mii 591816cb70SBarry Harding 601816cb70SBarry Harding# Lint flag 611816cb70SBarry Harding# 621816cb70SBarry Harding 63*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 64*7014882cSRichard 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 Hardinglint: $(LINT_DEPS) 801816cb70SBarry Harding 811816cb70SBarry Hardingmodlintlib: $(MODLINTLIB_DEPS) 821816cb70SBarry Harding 831816cb70SBarry Hardingclean.lint: $(CLEAN_LINT_DEPS) 841816cb70SBarry Harding 851816cb70SBarry Hardinginstall: $(INSTALL_DEPS) 861816cb70SBarry Harding 871816cb70SBarry Harding# 881816cb70SBarry Harding# Include common targets. 891816cb70SBarry Harding# 901816cb70SBarry Hardinginclude $(UTSBASE)/intel/Makefile.targ 91