Makefile revision 75eba5b6d79ed4d2ce3daf7b2806306b6b69a938
cfba646ddfa9d543f0c40e4c7788c65b4a24b34dPhill Cunnington#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Common Development and Distribution License (the "License").
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You may not use this file except in compliance with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# or http://www.opensolaris.org/os/licensing.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Use is subject to license terms.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# uts/sparc/e1000g/Makefile
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
cfba646ddfa9d543f0c40e4c7788c65b4a24b34dPhill Cunnington# This makefile drives the production of the iprb
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# network driver kernel module.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# intel architecture dependent
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
cfba646ddfa9d543f0c40e4c7788c65b4a24b34dPhill Cunnington# Path to the base of the uts directory tree (usually /usr/src/uts).
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterUTSBASE = ../..
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Define the module and object file sets.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterMODULE = e1000g
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterOBJECTS = $(E1000G_OBJS:%=$(OBJS_DIR)/%)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterOBJECTS += $(E1000API_OBJS:%=$(OBJS_DIR)/%)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLINTS = $(E1000G_OBJS:%.o=$(LINTS_DIR)/%.ln)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONF_SRCDIR = $(UTSBASE)/common/io/e1000g
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
4344231ce9ffebc050cdb169438cd4fb58801714Alin Brici# Include common rules.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude $(UTSBASE)/sparc/Makefile.sparc
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Define targets
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterALL_TARGET = $(BINARY) $(SRC_CONFFILE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLINT_TARGET = $(MODULE).lint
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLINTFLAGS += \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster -I$(UTSBASE)/common/io/e1000g \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster -I$(UTSBASE)/common/io/e1000api
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCERRWARN += -_gcc=-Wno-uninitialized
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCERRWARN += -_gcc=-Wno-parentheses
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCERRWARN += -_gcc=-Wno-switch
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCERRWARN += -_gcc=-Wno-unused-label
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCERRWARN += -_gcc=-Wno-unused-variable
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Override defaults
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterINC_PATH += -I$(CONF_SRCDIR) -I$(UTSBASE)/common/io/e1000api
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# lint pass one enforcement
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCFLAGS += $(CCVERBOSE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Turn on doubleword alignment for 64 bit registers
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCFLAGS += -dalign
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Driver depends on MAC
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLDFLAGS += -dy -N misc/mac
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Default build targets.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster.KEEP_STATE:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterdef: $(DEF_DEPS)
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenk
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenkall: $(ALL_DEPS)
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenk
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenkclean: $(CLEAN_DEPS)
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenk
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenkclobber: $(CLOBBER_DEPS)
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenk
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenk
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenk
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenklint: $(LINT_DEPS)
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenk
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenkmodlintlib: $(MODLINTLIB_DEPS)
56ed5bbb263838f338eb8afc978091c01a4f2a2bjeff.schenk
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterclean.lint: $(CLEAN_LINT_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall: $(INSTALL_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Include common targets.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude $(UTSBASE)/sparc/Makefile.targ
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster