f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# CDDL HEADER START
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# The contents of this file are subject to the terms of the
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Common Development and Distribution License (the "License").
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# You may not use this file except in compliance with the License.
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# or http://www.opensolaris.org/os/licensing.
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# See the License for the specific language governing permissions
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# and limitations under the License.
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# When distributing Covered Code, include this CDDL HEADER in each
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# If applicable, add the following below this CDDL HEADER, with the
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# fields enclosed by brackets "[]" replaced with your own identifying
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# information: Portions Copyright [yyyy] [name of copyright owner]
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# CDDL HEADER END
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Use is subject to license terms.
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# This makefile drives the production of NS/SiS
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Fast Ethernet (SFE) driver module in sparc systems
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Path to the base of the uts directory tree (usually /usr/src/uts).
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffUTSBASE = ../..
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Define the module and object file sets.
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffMODULE = sfe
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffOBJECTS = $(SFE_OBJS:%=$(OBJS_DIR)/%)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffLINTS = $(SFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Include common rules.
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffinclude $(UTSBASE)/sparc/Makefile.sparc
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Define targets
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffALL_TARGET = $(BINARY)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffLINT_TARGET = $(MODULE).lint
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# GENERAL PURPOUSE GEM FLAGS: Tuning GEM for Solaris specific modes
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffVFLAGS = -DVERSION='"2.6.1"'
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffAFLAGS = -Dsun4u
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffDFLAGS = -D"__INLINE__="
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffCFGFLAGS = -DGEM_CONFIG_POLLING -DGEM_CONFIG_GLDv3 -DGEM_CONFIG_VLAN \
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff -DGEM_CONFIG_CKSUM_OFFLOAD -DGEM_CONFIG_ND \
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff -DCONFIG_DP83815 -DCONFIG_SIS900 -DCONFIG_SIS7016 \
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff -DCONFIG_MAC_ADDR_SIS630E -DCONFIG_OPT_IO -UCONFIG_OO \
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff -DCONFIG_PATTERN_MATCH_DP83815
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# FAST PATH SECTION: Will activate usage of inlines as a regular functions
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# on fast data path
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffCPPFLAGS += $(VFLAGS) $(AFLAGS) $(DFLAGS) $(CFGFLAGS) $(CCVERBOSE) \
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff -I$(UTSBASE)/common/io/sfe
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffCFLAGS += $(CPPFLAGS) -xc99=%all
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Driver depends on MAC & IP
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffLDFLAGS += -dy -N misc/mac -N drv/ip
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Default build targets.
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff.KEEP_STATE:
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffdef: $(DEF_DEPS)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffall: $(ALL_DEPS)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffclean: $(CLEAN_DEPS)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffclobber: $(CLOBBER_DEPS)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615dubofflint: $(LINT_DEPS)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffmodlintlib: $(MODLINTLIB_DEPS)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffclean.lint: $(CLEAN_LINT_DEPS)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffinstall: $(INSTALL_DEPS)
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff# Include common targets.
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboff#
f8919bdadda3ebb97bd55cc14a16e0271ed57615duboffinclude $(UTSBASE)/sparc/Makefile.targ