Makefile revision 087a28d18c24cf4938e8a2617b5127a2fd29ddf4
10017N/A#
10017N/A# CDDL HEADER START
10017N/A#
10017N/A# The contents of this file are subject to the terms of the
10017N/A# Common Development and Distribution License (the "License").
10017N/A# You may not use this file except in compliance with the License.
10017N/A#
10017N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10017N/A# or http://www.opensolaris.org/os/licensing.
10017N/A# See the License for the specific language governing permissions
10017N/A# and limitations under the License.
10017N/A#
10017N/A# When distributing Covered Code, include this CDDL HEADER in each
10017N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10017N/A# If applicable, add the following below this CDDL HEADER, with the
10017N/A# fields enclosed by brackets "[]" replaced with your own identifying
10017N/A# information: Portions Copyright [yyyy] [name of copyright owner]
10017N/A#
10017N/A# CDDL HEADER END
10017N/A#
10017N/A
10017N/A#
10017N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
10017N/A# Use is subject to license terms.
10017N/A#
10017N/A
10017N/A#
10017N/A# This makefile drives the production of the Broadcom BCM57xx
10017N/A# Gigabit Ethernet (BGE) driver module in sparc systems
10017N/A#
10017N/A
10017N/A#
10017N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
10017N/A#
10017N/AUTSBASE = ../..
10017N/A
10017N/A#
10017N/A# Define the module and object file sets.
10017N/A#
10017N/AMODULE = bge
10017N/AOBJECTS = $(BGE_OBJS:%=$(OBJS_DIR)/%)
10017N/ALINTS = $(LINTS_DIR)/bge_lint.ln
10017N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
10017N/ACONF_SRCDIR = $(UTSBASE)/common/io/bge
10017N/A
#
# Include common rules.
#
include $(UTSBASE)/sparc/Makefile.sparc
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# Turn on doubleword alignment for 64 bit registers
#
CFLAGS += -dalign
#
# Driver depends on MAC
#
LDFLAGS += -dy -N misc/mac
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-parentheses
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ