Makefile revision 4496171313bed39e96f21bc2f9faf2868e267ae3
10139N/A#
10139N/A# CDDL HEADER START
10139N/A#
15942N/A# The contents of this file are subject to the terms of the
10139N/A# Common Development and Distribution License (the "License").
10139N/A# You may not use this file except in compliance with the License.
10139N/A#
10139N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10139N/A# or http://www.opensolaris.org/os/licensing.
10139N/A# See the License for the specific language governing permissions
15322N/A# and limitations under the License.
15942N/A#
12938N/A# When distributing Covered Code, include this CDDL HEADER in each
10139N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10139N/A# If applicable, add the following below this CDDL HEADER, with the
10139N/A# fields enclosed by brackets "[]" replaced with your own identifying
10139N/A# information: Portions Copyright [yyyy] [name of copyright owner]
10139N/A#
10139N/A# CDDL HEADER END
12773N/A#
12773N/A# uts/sun4v/nxge/Makefile
12773N/A#
13483N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
10139N/A# Use is subject to license terms.
12947N/A#
10819N/A#
16360N/A# ident "%Z%%M% %I% %E% SMI"
16428N/A#
16428N/A# This makefile drives the production of the N2 NIU
15942N/A# 10G Ethernet leaf driver kernel module.
15617N/A#
15942N/A# sun4v implementation architecture dependent
16076N/A#
16353N/A
16353N/A#
16353N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
16353N/A#
16076N/AUTSBASE = ../..
16076N/A
16353N/A#
16353N/A# Define the module and object file sets.
16353N/A#
16353N/AMODULE = nxge
16076N/AOBJECTS = $(NXGE_OBJS:%=$(OBJS_DIR)/%) $(NXGE_NPI_OBJS:%=$(OBJS_DIR)/%)
16352N/ALINTS = $(NXGE_OBJS:%.o=$(LINTS_DIR)/%.ln) \
16352N/A $(NXGE_NPI_OBJS:%.o=$(LINTS_DIR)/%.ln)
16352N/AROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
16129N/A
10139N/A#
10139N/A# Include common rules.
10139N/A#
10139N/Ainclude $(UTSBASE)/sun4v/Makefile.sun4v
10139N/A
10139N/A#
10139N/A# Override defaults to build a unique, local modstubs.o.
10139N/A#
10139N/AMODSTUBS_DIR = $(OBJS_DIR)
10139N/A
10139N/ACLEANFILES += $(MODSTUBS_O)
10139N/A
10139N/A#
10139N/A# Define targets
10139N/A#
10139N/AALL_TARGET = $(BINARY)
10139N/ALINT_TARGET = $(MODULE).lint
10139N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
10139N/A
10139N/A#
10139N/A#
10139N/A# Turn on doubleword alignment for 64 bit registers
10139N/A#
10139N/ACFLAGS += -dalign
10139N/A#
10139N/A# Include nxge specific header files
10139N/A#
10139N/AINC_PATH += -I$(UTSBASE)/sun4v/io/nxge/npi
10139N/AINC_PATH += -I$(UTSBASE)/sun4v/sys/nxge
10139N/A#
10139N/A#
10139N/A# lint pass one enforcement
10139N/A#
10139N/ACFLAGS += -DSOLARIS
10139N/A# NEMO
10139N/A#CFLAGS += -DNEMO
10139N/A#
10139N/A# Enable the following flags to run mac internal loopback under legion
10139N/A#CFLAGS += -DLEGION -DAXIS -DAXIS_DEBUG -DAXIS_DEBUG_LB -DSAM_DEBUG
10139N/A#
10139N/A# Enable the following flags to run mac internal loopback under AXIS
10139N/A# (NOTE: LEGION flag can be enabled too)
10139N/A#CFLAGS += -DAXIS_DEBUG -DAXIS -DAXIS_DEBUG_LB -DSAM_DEBUG -DLEGION
10139N/A#
10139N/A# Enable NXGE debug
10819N/A#CFLAGS += -DNXGE_DEBUG
15942N/A# Enable NPI debug
15289N/A#CFLAGS += -DNPI_DEBUG
16076N/A#CFLAGS += -DUSE_RX_BUFF_ATTR
16076N/A
16129N/A#CFLAGS += -DNIU_PA_WORKAROUND
10139N/A#CFLAGS += -DNIU_HV_WORKAROUND
10139N/ACFLAGS += -DNIU_LP_WORKAROUND
10139N/A
13088N/ALINTFLAGS += -DSOLARIS
13088N/ALINTFLAGS += -DNIU_LP_WORKAROUND
10139N/A#
10139N/A# STREAMS, DDI API limitations and other ON header file definitions such as ethernet.h
10139N/A# force us to turn off these lint checks.
10139N/A#
10165N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
15722N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
12773N/A#
12773N/A# Driver depends on mac & IP
12773N/A#
12773N/ALDFLAGS += -dy -N misc/mac -N drv/ip
12773N/A
15552N/A#
15552N/A# Default build targets.
15552N/A#
15552N/A.KEEP_STATE:
15552N/A
15552N/Adef: $(DEF_DEPS)
15552N/A
15552N/Aall: $(ALL_DEPS)
15552N/A
15552N/Aclean: $(CLEAN_DEPS)
15553N/A
15553N/Aclobber: $(CLOBBER_DEPS)
15553N/A
15553N/Alint: $(LINT_DEPS)
10139N/A
10139N/Amodlintlib: $(MODLINTLIB_DEPS)
10139N/A
16076N/Aclean.lint: $(CLEAN_LINT_DEPS)
16076N/A
16076N/Ainstall: $(INSTALL_DEPS)
16076N/A
10139N/A#
10321N/A# Include common targets.
10321N/A#
10139N/Ainclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
10321N/A