xref: /titanic_50/usr/src/uts/sparc/e1000g/Makefile (revision 42cc51e07cdbcad3b9aca8d9d991fc09b251feb7)
108057504Sxy150489#
208057504Sxy150489# CDDL HEADER START
308057504Sxy150489#
408057504Sxy150489# The contents of this file are subject to the terms of the
508057504Sxy150489# Common Development and Distribution License (the "License").
608057504Sxy150489# You may not use this file except in compliance with the License.
708057504Sxy150489#
808057504Sxy150489# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
908057504Sxy150489# or http://www.opensolaris.org/os/licensing.
1008057504Sxy150489# See the License for the specific language governing permissions
1108057504Sxy150489# and limitations under the License.
1208057504Sxy150489#
1308057504Sxy150489# When distributing Covered Code, include this CDDL HEADER in each
1408057504Sxy150489# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1508057504Sxy150489# If applicable, add the following below this CDDL HEADER, with the
1608057504Sxy150489# fields enclosed by brackets "[]" replaced with your own identifying
1708057504Sxy150489# information: Portions Copyright [yyyy] [name of copyright owner]
1808057504Sxy150489#
1908057504Sxy150489# CDDL HEADER END
2008057504Sxy150489#
2108057504Sxy150489#
224045d941Ssowmini# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2308057504Sxy150489# Use is subject to license terms.
2408057504Sxy150489#
2508057504Sxy150489# uts/sparc/e1000g/Makefile
2608057504Sxy150489#
2708057504Sxy150489#	This makefile drives the production of the iprb
2808057504Sxy150489#	network driver kernel module.
2908057504Sxy150489#
3008057504Sxy150489#	intel architecture dependent
3108057504Sxy150489#
3208057504Sxy150489
3308057504Sxy150489#
3408057504Sxy150489#	Path to the base of the uts directory tree (usually /usr/src/uts).
3508057504Sxy150489#
3608057504Sxy150489UTSBASE	= ../..
3708057504Sxy150489
3808057504Sxy150489#
3908057504Sxy150489#	Define the module and object file sets.
4008057504Sxy150489#
4108057504Sxy150489MODULE		= e1000g
4208057504Sxy150489OBJECTS		= $(E1000G_OBJS:%=$(OBJS_DIR)/%)
4375eba5b6SRobert MustacchiOBJECTS		+= $(E1000API_OBJS:%=$(OBJS_DIR)/%)
4408057504Sxy150489LINTS		= $(E1000G_OBJS:%.o=$(LINTS_DIR)/%.ln)
4508057504Sxy150489ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4608057504Sxy150489CONF_SRCDIR	= $(UTSBASE)/common/io/e1000g
4708057504Sxy150489
4808057504Sxy150489#
4908057504Sxy150489#	Include common rules.
5008057504Sxy150489#
5108057504Sxy150489include $(UTSBASE)/sparc/Makefile.sparc
5208057504Sxy150489
5308057504Sxy150489#
5408057504Sxy150489#	Define targets
5508057504Sxy150489#
5608057504Sxy150489ALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
5708057504Sxy150489LINT_TARGET	= $(MODULE).lint
5808057504Sxy150489INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
5908057504Sxy150489
6075eba5b6SRobert MustacchiLINTFLAGS  += \
6175eba5b6SRobert Mustacchi	-I$(UTSBASE)/common/io/e1000g \
6275eba5b6SRobert Mustacchi	-I$(UTSBASE)/common/io/e1000api
6375eba5b6SRobert Mustacchi
6475eba5b6SRobert Mustacchi
657014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
667014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
677014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
687014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
697014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
7075eba5b6SRobert MustacchiCERRWARN	+= -_cc=-erroff=E_STATEMENT_NOT_REACHED
717014882cSRichard Lowe
72*42cc51e0SRobert MustacchiLINTTAGS	+= -erroff=E_CONSTANT_CONDITION
73*42cc51e0SRobert Mustacchi
7408057504Sxy150489#
7508057504Sxy150489#	Override defaults
7608057504Sxy150489#
7775eba5b6SRobert MustacchiINC_PATH	+= -I$(CONF_SRCDIR) -I$(UTSBASE)/common/io/e1000api
7875eba5b6SRobert Mustacchi
7908057504Sxy150489
8008057504Sxy150489#
8108057504Sxy150489# lint pass one enforcement
8208057504Sxy150489#
8308057504Sxy150489CFLAGS          += $(CCVERBOSE)
8408057504Sxy150489
8508057504Sxy150489#
8608057504Sxy150489# Turn on doubleword alignment for 64 bit registers
8708057504Sxy150489#
8808057504Sxy150489CFLAGS		+= -dalign
8908057504Sxy150489
9008057504Sxy150489#
914045d941Ssowmini# Driver depends on MAC
9208057504Sxy150489#
934045d941SsowminiLDFLAGS		+= -dy -N misc/mac
9408057504Sxy150489
9508057504Sxy150489#
9608057504Sxy150489#	Default build targets.
9708057504Sxy150489#
9808057504Sxy150489.KEEP_STATE:
9908057504Sxy150489
10008057504Sxy150489def:		$(DEF_DEPS)
10108057504Sxy150489
10208057504Sxy150489all:		$(ALL_DEPS)
10308057504Sxy150489
10408057504Sxy150489clean:		$(CLEAN_DEPS)
10508057504Sxy150489
10608057504Sxy150489clobber:	$(CLOBBER_DEPS)
10708057504Sxy150489
10808057504Sxy150489
10908057504Sxy150489
110fe62dec3SChen-Liang Xulint:		$(LINT_DEPS)
111fe62dec3SChen-Liang Xu
112fe62dec3SChen-Liang Xumodlintlib:	$(MODLINTLIB_DEPS)
11308057504Sxy150489
11408057504Sxy150489clean.lint:	$(CLEAN_LINT_DEPS)
11508057504Sxy150489
11608057504Sxy150489install:	$(INSTALL_DEPS)
11708057504Sxy150489
11808057504Sxy150489#
11908057504Sxy150489#	Include common targets.
12008057504Sxy150489#
12108057504Sxy150489include $(UTSBASE)/sparc/Makefile.targ
12208057504Sxy150489
123