Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
c3323789511ac5199d6f6d000a407d77072182ebJames Phillpotts# CDDL HEADER START
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# The contents of this file are subject to the terms of the
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# Common Development and Distribution License (the "License").
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# You may not use this file except in compliance with the License.
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# or http://www.opensolaris.org/os/licensing.
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# See the License for the specific language governing permissions
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# and limitations under the License.
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# When distributing Covered Code, include this CDDL HEADER in each
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# If applicable, add the following below this CDDL HEADER, with the
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# fields enclosed by brackets "[]" replaced with your own identifying
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# information: Portions Copyright [yyyy] [name of copyright owner]
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# CDDL HEADER END
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# Use is subject to license terms.
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# This makefile drives the production of the Atheros/Attansic Fast/1Gb Ethernet
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# driver module in intel systems
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# Path to the base of the uts directory tree (usually /usr/src/uts).
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter MajorUTSBASE = ../..
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# Define the module and object file sets.
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter MajorMODULE = atge
386650a8957e131311273ee84a4a4113ad5e3fe2Peter MajorOBJECTS = $(ATGE_OBJS:%=$(OBJS_DIR)/%)
386650a8957e131311273ee84a4a4113ad5e3fe2Peter MajorLINTS = $(ATGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
386650a8957e131311273ee84a4a4113ad5e3fe2Peter MajorROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# Include common rules.
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Majorinclude $(UTSBASE)/intel/Makefile.intel
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# Define targets
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter MajorALL_TARGET = $(BINARY)
386650a8957e131311273ee84a4a4113ad5e3fe2Peter MajorLINT_TARGET = $(MODULE).lint
386650a8957e131311273ee84a4a4113ad5e3fe2Peter MajorINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major# Overrides
386650a8957e131311273ee84a4a4113ad5e3fe2Peter Major#
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
#
# Driver depends on GLD
#
LDFLAGS += -dy -N misc/mac -Nmisc/mii
#
# 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)/intel/Makefile.targ