Makefile revision 4045d94132614e1de2073685a6cdd4fbd86bec33
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# CDDL HEADER START
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# The contents of this file are subject to the terms of the
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# Common Development and Distribution License (the "License").
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# You may not use this file except in compliance with the License.
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin#
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# or http://www.opensolaris.org/os/licensing.
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# See the License for the specific language governing permissions
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin# and limitations under the License.
ea6ff3396df1d6d43ee0ecfa3e26ada981d8e9a3sctemme#
ea6ff3396df1d6d43ee0ecfa3e26ada981d8e9a3sctemme# When distributing Covered Code, include this CDDL HEADER in each
8a0c75e992cc657a98317e78374b800d16963cfatrawick# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin# If applicable, add the following below this CDDL HEADER, with the
8315a125b56710a222167e4d65b96c3c891f4b25sf# fields enclosed by brackets "[]" replaced with your own identifying
8315a125b56710a222167e4d65b96c3c891f4b25sf# information: Portions Copyright [yyyy] [name of copyright owner]
8315a125b56710a222167e4d65b96c3c891f4b25sf#
8315a125b56710a222167e4d65b96c3c891f4b25sf# CDDL HEADER END
3f985866b9b5b49fb57735b5eb135591163f30dfsf#
3f985866b9b5b49fb57735b5eb135591163f30dfsf#
7f51e5c395d431b8c20226f77de28efe13272bfasf# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
7f51e5c395d431b8c20226f77de28efe13272bfasf# Use is subject to license terms.
7f51e5c395d431b8c20226f77de28efe13272bfasf#
7f51e5c395d431b8c20226f77de28efe13272bfasf#ident "%Z%%M% %I% %E% SMI"
17d64c884a44f5ca72f6901afd3e50991bfc1c63sf#
17d64c884a44f5ca72f6901afd3e50991bfc1c63sf# This makefile drives the production of the Broadcom BCM57xx
17d64c884a44f5ca72f6901afd3e50991bfc1c63sf# Gigabit Ethernet (BGE) driver module in sparc systems
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf#
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf#
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf# Path to the base of the uts directory tree (usually /usr/src/uts).
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf#
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sfUTSBASE = ../..
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf
a96ba81cada826f2a9ab1e24218a77bfadfc31d8sf#
a96ba81cada826f2a9ab1e24218a77bfadfc31d8sf# Define the module and object file sets.
a96ba81cada826f2a9ab1e24218a77bfadfc31d8sf#
a96ba81cada826f2a9ab1e24218a77bfadfc31d8sfMODULE = bge
4f133508c93204c06e1acba9774ff184e5812606niqOBJECTS = $(BGE_OBJS:%=$(OBJS_DIR)/%)
4f133508c93204c06e1acba9774ff184e5812606niqLINTS = $(BGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
4f133508c93204c06e1acba9774ff184e5812606niqROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
87587593f1a53030e840acc0dec6cc881022ea40covenerCONF_SRCDIR = $(UTSBASE)/common/io/bge
87587593f1a53030e840acc0dec6cc881022ea40covener
87587593f1a53030e840acc0dec6cc881022ea40covener#
87587593f1a53030e840acc0dec6cc881022ea40covener# Include common rules.
87587593f1a53030e840acc0dec6cc881022ea40covener#
52071e4b9f49c3a1c2c767c7ea80ec92cf9032c9covenerinclude $(UTSBASE)/sparc/Makefile.sparc
52071e4b9f49c3a1c2c767c7ea80ec92cf9032c9covener
52071e4b9f49c3a1c2c767c7ea80ec92cf9032c9covener#
89b8bbc89404e7071e573c4f0a17f528996e855djorton# Define targets
89b8bbc89404e7071e573c4f0a17f528996e855djorton#
89b8bbc89404e7071e573c4f0a17f528996e855djortonALL_TARGET = $(BINARY)
e1d4c4e8366f46dc5dc1e6e24b4c7ac448dfa061sfLINT_TARGET = $(MODULE).lint
e1d4c4e8366f46dc5dc1e6e24b4c7ac448dfa061sfINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
6bc4f334a04802bab835893d0c42af8bfb9c3c41sf
6bc4f334a04802bab835893d0c42af8bfb9c3c41sf#
53593dbd8fece82cb66a23f0b7024d8d713d66f1sf# lint pass one enforcement
53593dbd8fece82cb66a23f0b7024d8d713d66f1sf#
79e3f2f950745953fff4a6a8dfe1f7cce31ce287sfCFLAGS += $(CCVERBOSE)
79e3f2f950745953fff4a6a8dfe1f7cce31ce287sf
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem#
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem# Turn on doubleword alignment for 64 bit registers
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem#
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sfCFLAGS += -dalign
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sf
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sf#
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf# Driver depends on MAC
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf#
3709b26f3370ae89c5324a3c03fab56a93b09ecdsfLDFLAGS += -dy -N misc/mac
03577bc320125eaa2b27ee7af78b894ee6dfe121takashi
03577bc320125eaa2b27ee7af78b894ee6dfe121takashi#
03577bc320125eaa2b27ee7af78b894ee6dfe121takashi# For now, disable these lint checks; maintainers should endeavor
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin# to investigate and remove these for maximum lint coverage.
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin# Please do not carry these forward to new Makefiles.
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin#
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrinLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
f74d35a61a835e15412b99b8aebe4958fe4e94a5takashiLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
94713632faf403489b3f8b4e0ed65e1011ac4991takashiLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
f74d35a61a835e15412b99b8aebe4958fe4e94a5takashiLINTTAGS += -erroff=E_STATIC_UNUSED
20216b769716c4346cce373f2028d7dbebf03886poirierLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
20216b769716c4346cce373f2028d7dbebf03886poirier
20216b769716c4346cce373f2028d7dbebf03886poirier#
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf# Default build targets.
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf#
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf.KEEP_STATE:
ecc6e723b804fb4b8f858910eff3f88242ec56fasf
ecc6e723b804fb4b8f858910eff3f88242ec56fasfdef: $(DEF_DEPS)
ecc6e723b804fb4b8f858910eff3f88242ec56fasf
ecc6e723b804fb4b8f858910eff3f88242ec56fasfall: $(ALL_DEPS)
ecc6e723b804fb4b8f858910eff3f88242ec56fasf
ecc6e723b804fb4b8f858910eff3f88242ec56fasfclean: $(CLEAN_DEPS)
727d68c6009030f56a350b4603384ce4fb844341minfrin
727d68c6009030f56a350b4603384ce4fb844341minfrinclobber: $(CLOBBER_DEPS)
727d68c6009030f56a350b4603384ce4fb844341minfrin
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrinlint: $(LINT_DEPS)
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrin
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrinmodlintlib: $(MODLINTLIB_DEPS)
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsf
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsfclean.lint: $(CLEAN_LINT_DEPS)
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsf
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sfinstall: $(INSTALL_DEPS)
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf#
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf# Include common targets.
58015652ffe00f004c6404a0631474f23dadc7dasf#
58015652ffe00f004c6404a0631474f23dadc7dasfinclude $(UTSBASE)/sparc/Makefile.targ
58015652ffe00f004c6404a0631474f23dadc7dasf