1*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 2*04b6cca3Slucy wang - Sun Microsystems - Beijing China# CDDL HEADER START 3*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 4*04b6cca3Slucy wang - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the 5*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License"). 6*04b6cca3Slucy wang - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License. 7*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 8*04b6cca3Slucy wang - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*04b6cca3Slucy wang - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing. 10*04b6cca3Slucy wang - Sun Microsystems - Beijing China# See the License for the specific language governing permissions 11*04b6cca3Slucy wang - Sun Microsystems - Beijing China# and limitations under the License. 12*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 13*04b6cca3Slucy wang - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each 14*04b6cca3Slucy wang - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*04b6cca3Slucy wang - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the 16*04b6cca3Slucy wang - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying 17*04b6cca3Slucy wang - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner] 18*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 19*04b6cca3Slucy wang - Sun Microsystems - Beijing China# CDDL HEADER END 20*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 21*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 22*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Use is subject to license terms. 24*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 25*04b6cca3Slucy wang - Sun Microsystems - Beijing China 26*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 27*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Path to the base of the uts directory tree (usually /usr/src/uts). 28*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 29*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaUTSBASE = ../.. 30*04b6cca3Slucy wang - Sun Microsystems - Beijing China 31*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 32*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Define the module and object file sets. 33*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 34*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaMODULE = myri10ge 35*04b6cca3Slucy wang - Sun Microsystems - Beijing China 36*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaOBJECTS += $(MYRI10GE_OBJS:%=$(OBJS_DIR)/%) 37*04b6cca3Slucy wang - Sun Microsystems - Beijing China 38*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLINTS += $(MYRI10GE_OBJS:%.o=$(LINTS_DIR)/%.ln) 39*04b6cca3Slucy wang - Sun Microsystems - Beijing China 40*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 41*04b6cca3Slucy wang - Sun Microsystems - Beijing China 42*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 43*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Include common rules. 44*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 45*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/sparc/Makefile.sparc 46*04b6cca3Slucy wang - Sun Microsystems - Beijing China 47*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 48*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Define targets 49*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 50*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaALL_TARGET = $(BINARY) 51*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLINT_TARGET = $(MODULE).lint 52*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 53*04b6cca3Slucy wang - Sun Microsystems - Beijing China 54*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 55*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Overrides 56*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 57*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLINTTAGS += -DSOLARIS_S11 -erroff=E_STATIC_UNUSED 58*04b6cca3Slucy wang - Sun Microsystems - Beijing China 59*04b6cca3Slucy wang - Sun Microsystems - Beijing China#COPTIMIZE = -xO4 60*04b6cca3Slucy wang - Sun Microsystems - Beijing China 61*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaINC_PATH += -I$(UTSBASE)/common/io/myri10ge -I$(UTSBASE)/common/io/myri10ge/firmware 62*04b6cca3Slucy wang - Sun Microsystems - Beijing China 63*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaCFLAGS += -dalign -DSOLARIS_S11 64*04b6cca3Slucy wang - Sun Microsystems - Beijing China 65*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 66*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Driver depends on MAC 67*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 68*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLDFLAGS += -dy -N misc/mac -N drv/ip 69*04b6cca3Slucy wang - Sun Microsystems - Beijing China 70*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 71*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Default build targets. 72*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 73*04b6cca3Slucy wang - Sun Microsystems - Beijing China.KEEP_STATE: 74*04b6cca3Slucy wang - Sun Microsystems - Beijing China 75*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinadef: $(DEF_DEPS) 76*04b6cca3Slucy wang - Sun Microsystems - Beijing China 77*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinaall: $(ALL_DEPS) 78*04b6cca3Slucy wang - Sun Microsystems - Beijing China 79*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclean: $(CLEAN_DEPS) 80*04b6cca3Slucy wang - Sun Microsystems - Beijing China 81*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclobber: $(CLOBBER_DEPS) 82*04b6cca3Slucy wang - Sun Microsystems - Beijing China 83*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinalint: $(LINT_DEPS) 84*04b6cca3Slucy wang - Sun Microsystems - Beijing China 85*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinamodlintlib: $(MODLINTLIB_DEPS) 86*04b6cca3Slucy wang - Sun Microsystems - Beijing China 87*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclean.lint: $(CLEAN_LINT_DEPS) 88*04b6cca3Slucy wang - Sun Microsystems - Beijing China 89*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinainstall: $(INSTALL_DEPS) 90*04b6cca3Slucy wang - Sun Microsystems - Beijing China 91*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 92*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Include common targets. 93*04b6cca3Slucy wang - Sun Microsystems - Beijing China# 94*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/sparc/Makefile.targ 95