1*9da57d7bSbt150084# 2*9da57d7bSbt150084# CDDL HEADER START 3*9da57d7bSbt150084# 4*9da57d7bSbt150084# The contents of this file are subject to the terms of the 5*9da57d7bSbt150084# Common Development and Distribution License (the "License"). 6*9da57d7bSbt150084# You may not use this file except in compliance with the License. 7*9da57d7bSbt150084# 8*9da57d7bSbt150084# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*9da57d7bSbt150084# or http://www.opensolaris.org/os/licensing. 10*9da57d7bSbt150084# See the License for the specific language governing permissions 11*9da57d7bSbt150084# and limitations under the License. 12*9da57d7bSbt150084# 13*9da57d7bSbt150084# When distributing Covered Code, include this CDDL HEADER in each 14*9da57d7bSbt150084# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*9da57d7bSbt150084# If applicable, add the following below this CDDL HEADER, with the 16*9da57d7bSbt150084# fields enclosed by brackets "[]" replaced with your own identifying 17*9da57d7bSbt150084# information: Portions Copyright [yyyy] [name of copyright owner] 18*9da57d7bSbt150084# 19*9da57d7bSbt150084# CDDL HEADER END 20*9da57d7bSbt150084# 21*9da57d7bSbt150084# 22*9da57d7bSbt150084# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*9da57d7bSbt150084# Use is subject to license terms. 24*9da57d7bSbt150084# 25*9da57d7bSbt150084# ident "%Z%%M% %I% %E% SMI" 26*9da57d7bSbt150084# 27*9da57d7bSbt150084# uts/sparc/ixgbe/Makefile 28*9da57d7bSbt150084# 29*9da57d7bSbt150084# This makefile drives the production of the ixgbe 30*9da57d7bSbt150084# network driver kernel module. 31*9da57d7bSbt150084# 32*9da57d7bSbt150084# sparc architecture dependent 33*9da57d7bSbt150084# 34*9da57d7bSbt150084 35*9da57d7bSbt150084# 36*9da57d7bSbt150084# Path to the base of the uts directory tree (usually /usr/src/uts). 37*9da57d7bSbt150084# 38*9da57d7bSbt150084UTSBASE = ../.. 39*9da57d7bSbt150084 40*9da57d7bSbt150084# 41*9da57d7bSbt150084# Define the module and object file sets. 42*9da57d7bSbt150084# 43*9da57d7bSbt150084MODULE = ixgbe 44*9da57d7bSbt150084OBJECTS = $(IXGBE_OBJS:%=$(OBJS_DIR)/%) 45*9da57d7bSbt150084LINTS = $(IXGBE_OBJS:%.o=$(LINTS_DIR)/%.ln) 46*9da57d7bSbt150084ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 47*9da57d7bSbt150084CONF_SRCDIR = $(UTSBASE)/common/io/ixgbe 48*9da57d7bSbt150084 49*9da57d7bSbt150084# 50*9da57d7bSbt150084# Include common rules. 51*9da57d7bSbt150084# 52*9da57d7bSbt150084include $(UTSBASE)/sparc/Makefile.sparc 53*9da57d7bSbt150084 54*9da57d7bSbt150084# 55*9da57d7bSbt150084# Define targets 56*9da57d7bSbt150084# 57*9da57d7bSbt150084ALL_TARGET = $(BINARY) $(SRC_CONFFILE) 58*9da57d7bSbt150084LINT_TARGET = $(MODULE).lint 59*9da57d7bSbt150084INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 60*9da57d7bSbt150084 61*9da57d7bSbt150084# 62*9da57d7bSbt150084# Override defaults 63*9da57d7bSbt150084# 64*9da57d7bSbt150084INC_PATH += -I$(CONF_SRCDIR) 65*9da57d7bSbt150084 66*9da57d7bSbt150084# 67*9da57d7bSbt150084# lint pass one enforcement 68*9da57d7bSbt150084# 69*9da57d7bSbt150084CFLAGS += $(CCVERBOSE) 70*9da57d7bSbt150084 71*9da57d7bSbt150084# 72*9da57d7bSbt150084# Turn on doubleword alignment for 64 bit registers 73*9da57d7bSbt150084# 74*9da57d7bSbt150084CFLAGS += -dalign 75*9da57d7bSbt150084 76*9da57d7bSbt150084# 77*9da57d7bSbt150084# Driver depends on MAC & IP 78*9da57d7bSbt150084# 79*9da57d7bSbt150084LDFLAGS += -dy -N misc/mac -N drv/ip 80*9da57d7bSbt150084 81*9da57d7bSbt150084# 82*9da57d7bSbt150084# Default build targets. 83*9da57d7bSbt150084# 84*9da57d7bSbt150084.KEEP_STATE: 85*9da57d7bSbt150084 86*9da57d7bSbt150084def: $(DEF_DEPS) 87*9da57d7bSbt150084 88*9da57d7bSbt150084all: $(ALL_DEPS) 89*9da57d7bSbt150084 90*9da57d7bSbt150084clean: $(CLEAN_DEPS) 91*9da57d7bSbt150084 92*9da57d7bSbt150084clobber: $(CLOBBER_DEPS) 93*9da57d7bSbt150084 94*9da57d7bSbt150084lint: $(LINT_DEPS) 95*9da57d7bSbt150084 96*9da57d7bSbt150084modlintlib: $(MODLINTLIB_DEPS) 97*9da57d7bSbt150084 98*9da57d7bSbt150084clean.lint: $(CLEAN_LINT_DEPS) 99*9da57d7bSbt150084 100*9da57d7bSbt150084install: $(INSTALL_DEPS) 101*9da57d7bSbt150084 102*9da57d7bSbt150084# 103*9da57d7bSbt150084# Include common targets. 104*9da57d7bSbt150084# 105*9da57d7bSbt150084include $(UTSBASE)/sparc/Makefile.targ 106*9da57d7bSbt150084 107