19da57d7bSbt150084# 29da57d7bSbt150084# CDDL HEADER START 39da57d7bSbt150084# 49da57d7bSbt150084# The contents of this file are subject to the terms of the 59da57d7bSbt150084# Common Development and Distribution License (the "License"). 69da57d7bSbt150084# You may not use this file except in compliance with the License. 79da57d7bSbt150084# 89da57d7bSbt150084# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 99da57d7bSbt150084# or http://www.opensolaris.org/os/licensing. 109da57d7bSbt150084# See the License for the specific language governing permissions 119da57d7bSbt150084# and limitations under the License. 129da57d7bSbt150084# 139da57d7bSbt150084# When distributing Covered Code, include this CDDL HEADER in each 149da57d7bSbt150084# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 159da57d7bSbt150084# If applicable, add the following below this CDDL HEADER, with the 169da57d7bSbt150084# fields enclosed by brackets "[]" replaced with your own identifying 179da57d7bSbt150084# information: Portions Copyright [yyyy] [name of copyright owner] 189da57d7bSbt150084# 199da57d7bSbt150084# CDDL HEADER END 209da57d7bSbt150084# 219da57d7bSbt150084# 22ea65739eSchenlu chen - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 239da57d7bSbt150084# Use is subject to license terms. 247e579c30SDale Ghent# Copyright 2016 OmniTI Computer Consulting, Inc. All rights reserved. 259da57d7bSbt150084# 269da57d7bSbt150084# uts/sparc/ixgbe/Makefile 279da57d7bSbt150084# 289da57d7bSbt150084# This makefile drives the production of the ixgbe 299da57d7bSbt150084# network driver kernel module. 309da57d7bSbt150084# 319da57d7bSbt150084# sparc architecture dependent 329da57d7bSbt150084# 339da57d7bSbt150084 349da57d7bSbt150084# 359da57d7bSbt150084# Path to the base of the uts directory tree (usually /usr/src/uts). 369da57d7bSbt150084# 379da57d7bSbt150084UTSBASE = ../.. 389da57d7bSbt150084 399da57d7bSbt150084# 409da57d7bSbt150084# Define the module and object file sets. 419da57d7bSbt150084# 429da57d7bSbt150084MODULE = ixgbe 439da57d7bSbt150084OBJECTS = $(IXGBE_OBJS:%=$(OBJS_DIR)/%) 447e579c30SDale GhentOBJECTS += $(IXGBE_INTC_OBJS:%=$(OBJS_DIR)/%) 459da57d7bSbt150084LINTS = $(IXGBE_OBJS:%.o=$(LINTS_DIR)/%.ln) 469da57d7bSbt150084ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 479da57d7bSbt150084CONF_SRCDIR = $(UTSBASE)/common/io/ixgbe 489da57d7bSbt150084 499da57d7bSbt150084# 509da57d7bSbt150084# Include common rules. 519da57d7bSbt150084# 529da57d7bSbt150084include $(UTSBASE)/sparc/Makefile.sparc 539da57d7bSbt150084 54621a5f33SRobert MustacchiINC_PATH += -I$(UTSBASE)/common/io/ixgbe 55621a5f33SRobert MustacchiINC_PATH += -I$(UTSBASE)/common/io/ixgbe/core 56621a5f33SRobert Mustacchi 577014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 587014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 597014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 607e579c30SDale GhentCERRWARN += -_gcc=-Wno-unused-value 61*16ac5781SDan McDonaldCERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED 627014882cSRichard Lowe 639da57d7bSbt150084# 649da57d7bSbt150084# Define targets 659da57d7bSbt150084# 669da57d7bSbt150084ALL_TARGET = $(BINARY) $(SRC_CONFFILE) 679da57d7bSbt150084LINT_TARGET = $(MODULE).lint 689da57d7bSbt150084INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 699da57d7bSbt150084 709da57d7bSbt150084# 719da57d7bSbt150084# Override defaults 729da57d7bSbt150084# 739da57d7bSbt150084INC_PATH += -I$(CONF_SRCDIR) 749da57d7bSbt150084 759da57d7bSbt150084# 769da57d7bSbt150084# lint pass one enforcement 779da57d7bSbt150084# 789da57d7bSbt150084CFLAGS += $(CCVERBOSE) 799da57d7bSbt150084 809da57d7bSbt150084# 819da57d7bSbt150084# Turn on doubleword alignment for 64 bit registers 829da57d7bSbt150084# 839da57d7bSbt150084CFLAGS += -dalign 849da57d7bSbt150084 859da57d7bSbt150084# 86ea65739eSchenlu chen - Sun Microsystems - Beijing China# Driver depends on MAC 879da57d7bSbt150084# 88ea65739eSchenlu chen - Sun Microsystems - Beijing ChinaLDFLAGS += -dy -N misc/mac 899da57d7bSbt150084 909da57d7bSbt150084# 919da57d7bSbt150084# Default build targets. 929da57d7bSbt150084# 939da57d7bSbt150084.KEEP_STATE: 949da57d7bSbt150084 959da57d7bSbt150084def: $(DEF_DEPS) 969da57d7bSbt150084 979da57d7bSbt150084all: $(ALL_DEPS) 989da57d7bSbt150084 999da57d7bSbt150084clean: $(CLEAN_DEPS) 1009da57d7bSbt150084 1019da57d7bSbt150084clobber: $(CLOBBER_DEPS) 1029da57d7bSbt150084 1039da57d7bSbt150084lint: $(LINT_DEPS) 1049da57d7bSbt150084 1059da57d7bSbt150084modlintlib: $(MODLINTLIB_DEPS) 1069da57d7bSbt150084 1079da57d7bSbt150084clean.lint: $(CLEAN_LINT_DEPS) 1089da57d7bSbt150084 1099da57d7bSbt150084install: $(INSTALL_DEPS) 1109da57d7bSbt150084 1119da57d7bSbt150084# 1129da57d7bSbt150084# Include common targets. 1139da57d7bSbt150084# 1149da57d7bSbt150084include $(UTSBASE)/sparc/Makefile.targ 1159da57d7bSbt150084 116