Makefile revision 678453a8ed49104d8adad58f3ba591bdc39883e8
4496171313bed39e96f21bc2f9faf2868e267ae3girish# CDDL HEADER START
4496171313bed39e96f21bc2f9faf2868e267ae3girish# The contents of this file are subject to the terms of the
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Common Development and Distribution License (the "License").
4496171313bed39e96f21bc2f9faf2868e267ae3girish# You may not use this file except in compliance with the License.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4496171313bed39e96f21bc2f9faf2868e267ae3girish# See the License for the specific language governing permissions
4496171313bed39e96f21bc2f9faf2868e267ae3girish# and limitations under the License.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# When distributing Covered Code, include this CDDL HEADER in each
4496171313bed39e96f21bc2f9faf2868e267ae3girish# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# If applicable, add the following below this CDDL HEADER, with the
4496171313bed39e96f21bc2f9faf2868e267ae3girish# fields enclosed by brackets "[]" replaced with your own identifying
4496171313bed39e96f21bc2f9faf2868e267ae3girish# information: Portions Copyright [yyyy] [name of copyright owner]
4496171313bed39e96f21bc2f9faf2868e267ae3girish# CDDL HEADER END
678453a8ed49104d8adad58f3ba591bdc39883e8speer# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Use is subject to license terms.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# ident "%Z%%M% %I% %E% SMI"
4496171313bed39e96f21bc2f9faf2868e267ae3girish# This makefile drives the production of the N2 NIU
6f45ec7b0b964c3be967c4880e8867ac1e7763a5ml# 10G and SUN 10G/1G Ethernet leaf driver kernel module.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# sun4v implementation architecture dependent
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Path to the base of the uts directory tree (usually /usr/src/uts).
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Define the module and object file sets.
6f45ec7b0b964c3be967c4880e8867ac1e7763a5mlNXGE_OBJECTS = $(NXGE_OBJS) $(NXGE_NPI_OBJS) $(NXGE_HCALL_OBJS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Include common rules.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Override defaults to build a unique, local modstubs.o.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Define targets
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Turn on doubleword alignment for 64 bit registers
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Include nxge specific header files
4496171313bed39e96f21bc2f9faf2868e267ae3girish# lint pass one enforcement
4496171313bed39e96f21bc2f9faf2868e267ae3girish#CFLAGS += -DNEMO
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Enable the following flags to run mac internal loopback under legion
4496171313bed39e96f21bc2f9faf2868e267ae3girish#CFLAGS += -DLEGION -DAXIS -DAXIS_DEBUG -DAXIS_DEBUG_LB -DSAM_DEBUG
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Enable the following flags to run mac internal loopback under AXIS
4496171313bed39e96f21bc2f9faf2868e267ae3girish# (NOTE: LEGION flag can be enabled too)
4496171313bed39e96f21bc2f9faf2868e267ae3girish#CFLAGS += -DAXIS_DEBUG -DAXIS -DAXIS_DEBUG_LB -DSAM_DEBUG -DLEGION
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Enable NXGE debug
4496171313bed39e96f21bc2f9faf2868e267ae3girish#CFLAGS += -DNXGE_DEBUG
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Enable NPI debug
4496171313bed39e96f21bc2f9faf2868e267ae3girish#CFLAGS += -DNPI_DEBUG
14ea4bb737263733ad80a36b4f73f681c30a6b45sd#CFLAGS += -DNXGE_FM
4496171313bed39e96f21bc2f9faf2868e267ae3girish#CFLAGS += -DUSE_RX_BUFF_ATTR
4496171313bed39e96f21bc2f9faf2868e267ae3girish#CFLAGS += -DNIU_PA_WORKAROUND
4496171313bed39e96f21bc2f9faf2868e267ae3girish#CFLAGS += -DNIU_HV_WORKAROUND
4496171313bed39e96f21bc2f9faf2868e267ae3girish# STREAMS, DDI API limitations and other ON header file definitions such as ethernet.h
4496171313bed39e96f21bc2f9faf2868e267ae3girish# force us to turn off these lint checks.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Driver depends on mac & IP
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Default build targets.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Include common targets.