Makefile revision bdb9230ac765cb7af3fc1f4119caf2c5720dceb3
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# CDDL HEADER START
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# The contents of this file are subject to the terms of the
1959748cbddf37d4734c107dadfa449e076045e3gd# Common Development and Distribution License (the "License").
1959748cbddf37d4734c107dadfa449e076045e3gd# You may not use this file except in compliance with the License.
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1959748cbddf37d4734c107dadfa449e076045e3gd# or http://www.opensolaris.org/os/licensing.
1959748cbddf37d4734c107dadfa449e076045e3gd# See the License for the specific language governing permissions
1959748cbddf37d4734c107dadfa449e076045e3gd# and limitations under the License.
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# When distributing Covered Code, include this CDDL HEADER in each
1959748cbddf37d4734c107dadfa449e076045e3gd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1959748cbddf37d4734c107dadfa449e076045e3gd# If applicable, add the following below this CDDL HEADER, with the
1959748cbddf37d4734c107dadfa449e076045e3gd# fields enclosed by brackets "[]" replaced with your own identifying
1959748cbddf37d4734c107dadfa449e076045e3gd# information: Portions Copyright [yyyy] [name of copyright owner]
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# CDDL HEADER END
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1959748cbddf37d4734c107dadfa449e076045e3gd# Use is subject to license terms.
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# This makefile drives the production of the ADMtek
1959748cbddf37d4734c107dadfa449e076045e3gd# Ethernet (AFE) driver module in sparc systems
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# Path to the base of the uts directory tree (usually /usr/src/uts).
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gdUTSBASE = ../..
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# Define the module and object file sets.
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gdMODULE = afe
1959748cbddf37d4734c107dadfa449e076045e3gdOBJECTS = $(AFE_OBJS:%=$(OBJS_DIR)/%)
1959748cbddf37d4734c107dadfa449e076045e3gdLINTS = $(AFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
1959748cbddf37d4734c107dadfa449e076045e3gdROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# Include common rules.
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gdinclude $(UTSBASE)/sparc/Makefile.sparc
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# Define targets
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gdALL_TARGET = $(BINARY)
1959748cbddf37d4734c107dadfa449e076045e3gdLINT_TARGET = $(MODULE).lint
1959748cbddf37d4734c107dadfa449e076045e3gdINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# lint pass one enforcement
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gdCFLAGS += $(CCVERBOSE)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# Driver depends on GLD
1959748cbddf37d4734c107dadfa449e076045e3gd#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreLDFLAGS += -dy -N misc/mac -Nmisc/mii
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# Default build targets.
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd.KEEP_STATE:
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gddef: $(DEF_DEPS)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gdall: $(ALL_DEPS)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gdclean: $(CLEAN_DEPS)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gdclobber: $(CLOBBER_DEPS)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gdlint: $(LINT_DEPS)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gdmodlintlib: $(MODLINTLIB_DEPS)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gdclean.lint: $(CLEAN_LINT_DEPS)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gdinstall: $(INSTALL_DEPS)
1959748cbddf37d4734c107dadfa449e076045e3gd
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gd# Include common targets.
1959748cbddf37d4734c107dadfa449e076045e3gd#
1959748cbddf37d4734c107dadfa449e076045e3gdinclude $(UTSBASE)/sparc/Makefile.targ