Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
4983N/A#
4983N/A# CDDL HEADER START
4983N/A#
4983N/A# The contents of this file are subject to the terms of the
4983N/A# Common Development and Distribution License (the "License").
4983N/A# You may not use this file except in compliance with the License.
4983N/A#
4983N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6983N/A# or http://www.opensolaris.org/os/licensing.
6983N/A# See the License for the specific language governing permissions
4983N/A# and limitations under the License.
4983N/A#
4983N/A# When distributing Covered Code, include this CDDL HEADER in each
4983N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6983N/A# If applicable, add the following below this CDDL HEADER, with the
6983N/A# fields enclosed by brackets "[]" replaced with your own identifying
6983N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6983N/A#
4983N/A# CDDL HEADER END
4983N/A#
4983N/A#
4983N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
4983N/A# Use is subject to license terms.
5065N/A#
6978N/A
4983N/A#
4983N/A# This makefile drives the production of NS/SiS
4983N/A# Fast Ethernet (SFE) driver module in sparc systems
5532N/A#
4983N/A
4983N/A#
4983N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
4983N/A#
4983N/AUTSBASE = ../..
4983N/A
4983N/A#
4983N/A# Define the module and object file sets.
4983N/A#
4983N/AMODULE = sfe
4983N/AOBJECTS = $(SFE_OBJS:%=$(OBJS_DIR)/%)
4983N/ALINTS = $(SFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
4983N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
4983N/A
4983N/A#
4983N/A# Include common rules.
4983N/A#
4983N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
4983N/A
4983N/A#
4983N/A# Define targets
4983N/A#
4983N/AALL_TARGET = $(BINARY)
4983N/ALINT_TARGET = $(MODULE).lint
5065N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
5065N/A
4983N/A#
4983N/A# GENERAL PURPOUSE GEM FLAGS: Tuning GEM for Solaris specific modes
4983N/A#
4983N/AVFLAGS = -DVERSION='"2.6.1"'
4983N/AAFLAGS = -Dsun4u
4983N/ADFLAGS = -D"__INLINE__="
4983N/ACFGFLAGS = -DGEM_CONFIG_POLLING -DGEM_CONFIG_GLDv3 -DGEM_CONFIG_VLAN \
4983N/A -DGEM_CONFIG_CKSUM_OFFLOAD -DGEM_CONFIG_ND \
4983N/A -DCONFIG_DP83815 -DCONFIG_SIS900 -DCONFIG_SIS7016 \
6978N/A -DCONFIG_MAC_ADDR_SIS630E -DCONFIG_OPT_IO -UCONFIG_OO \
4983N/A -DCONFIG_PATTERN_MATCH_DP83815
4983N/A#
4983N/A# FAST PATH SECTION: Will activate usage of inlines as a regular functions
4983N/A# on fast data path
4983N/A
4983N/ACPPFLAGS += $(VFLAGS) $(AFLAGS) $(DFLAGS) $(CFGFLAGS) $(CCVERBOSE) \
6978N/A -I$(UTSBASE)/common/io/sfe
4983N/A
4983N/ACFLAGS += $(CPPFLAGS) -xc99=%all
4983N/A
4983N/ACERRWARN += -_gcc=-Wno-unused-label
5532N/ACERRWARN += -_gcc=-Wno-switch
4983N/ACERRWARN += -_gcc=-Wno-parentheses
5065N/ACERRWARN += -_gcc=-Wno-uninitialized
4983N/A
5532N/A#
5532N/A# Driver depends on MAC & IP
5065N/A#
5065N/ALDFLAGS += -dy -N misc/mac -N drv/ip
5065N/A
5065N/A#
4983N/A# Default build targets.
5219N/A#
5219N/A.KEEP_STATE:
5065N/A
5065N/Adef: $(DEF_DEPS)
5065N/A
5065N/Aall: $(ALL_DEPS)
5532N/A
5532N/Aclean: $(CLEAN_DEPS)
5532N/A
5532N/Aclobber: $(CLOBBER_DEPS)
5532N/A
5532N/Alint: $(LINT_DEPS)
5532N/A
5532N/Amodlintlib: $(MODLINTLIB_DEPS)
5532N/A
5532N/Aclean.lint: $(CLEAN_LINT_DEPS)
5532N/A
5532N/Ainstall: $(INSTALL_DEPS)
5532N/A
5532N/A#
5532N/A# Include common targets.
5532N/A#
5065N/Ainclude $(UTSBASE)/sparc/Makefile.targ
4983N/A