1015a6ef6SSaurabh Misra# 2015a6ef6SSaurabh Misra# CDDL HEADER START 3015a6ef6SSaurabh Misra# 4015a6ef6SSaurabh Misra# The contents of this file are subject to the terms of the 5015a6ef6SSaurabh Misra# Common Development and Distribution License (the "License"). 6015a6ef6SSaurabh Misra# You may not use this file except in compliance with the License. 7015a6ef6SSaurabh Misra# 8015a6ef6SSaurabh Misra# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9015a6ef6SSaurabh Misra# or http://www.opensolaris.org/os/licensing. 10015a6ef6SSaurabh Misra# See the License for the specific language governing permissions 11015a6ef6SSaurabh Misra# and limitations under the License. 12015a6ef6SSaurabh Misra# 13015a6ef6SSaurabh Misra# When distributing Covered Code, include this CDDL HEADER in each 14015a6ef6SSaurabh Misra# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15015a6ef6SSaurabh Misra# If applicable, add the following below this CDDL HEADER, with the 16015a6ef6SSaurabh Misra# fields enclosed by brackets "[]" replaced with your own identifying 17015a6ef6SSaurabh Misra# information: Portions Copyright [yyyy] [name of copyright owner] 18015a6ef6SSaurabh Misra# 19015a6ef6SSaurabh Misra# CDDL HEADER END 20015a6ef6SSaurabh Misra# 21015a6ef6SSaurabh Misra# 22015a6ef6SSaurabh Misra# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23015a6ef6SSaurabh Misra# Use is subject to license terms. 24015a6ef6SSaurabh Misra# 25015a6ef6SSaurabh Misra 26015a6ef6SSaurabh Misra# This makefile drives the production of the Atheros/Attansic Fast/1Gb Ethernet 27015a6ef6SSaurabh Misra# driver module in intel systems 28015a6ef6SSaurabh Misra# 29015a6ef6SSaurabh Misra 30015a6ef6SSaurabh Misra# 31015a6ef6SSaurabh Misra# Path to the base of the uts directory tree (usually /usr/src/uts). 32015a6ef6SSaurabh Misra# 33015a6ef6SSaurabh MisraUTSBASE = ../.. 34015a6ef6SSaurabh Misra 35015a6ef6SSaurabh Misra# 36015a6ef6SSaurabh Misra# Define the module and object file sets. 37015a6ef6SSaurabh Misra# 38015a6ef6SSaurabh MisraMODULE = atge 39015a6ef6SSaurabh MisraOBJECTS = $(ATGE_OBJS:%=$(OBJS_DIR)/%) 40015a6ef6SSaurabh MisraLINTS = $(ATGE_OBJS:%.o=$(LINTS_DIR)/%.ln) 41015a6ef6SSaurabh MisraROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 42015a6ef6SSaurabh Misra 43015a6ef6SSaurabh Misra# 44015a6ef6SSaurabh Misra# Include common rules. 45015a6ef6SSaurabh Misra# 46015a6ef6SSaurabh Misrainclude $(UTSBASE)/intel/Makefile.intel 47015a6ef6SSaurabh Misra 48015a6ef6SSaurabh Misra# 49015a6ef6SSaurabh Misra# Define targets 50015a6ef6SSaurabh Misra# 51015a6ef6SSaurabh MisraALL_TARGET = $(BINARY) 52015a6ef6SSaurabh MisraLINT_TARGET = $(MODULE).lint 53015a6ef6SSaurabh MisraINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 54015a6ef6SSaurabh Misra 55015a6ef6SSaurabh Misra# 56015a6ef6SSaurabh Misra# Overrides 57015a6ef6SSaurabh Misra# 58015a6ef6SSaurabh Misra 59*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 60*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 61*7014882cSRichard Lowe 62015a6ef6SSaurabh Misra# 63015a6ef6SSaurabh Misra# Driver depends on GLD 64015a6ef6SSaurabh Misra# 65015a6ef6SSaurabh MisraLDFLAGS += -dy -N misc/mac -Nmisc/mii 66015a6ef6SSaurabh Misra 67015a6ef6SSaurabh Misra# 68015a6ef6SSaurabh Misra# Default build targets. 69015a6ef6SSaurabh Misra# 70015a6ef6SSaurabh Misra.KEEP_STATE: 71015a6ef6SSaurabh Misra 72015a6ef6SSaurabh Misradef: $(DEF_DEPS) 73015a6ef6SSaurabh Misra 74015a6ef6SSaurabh Misraall: $(ALL_DEPS) 75015a6ef6SSaurabh Misra 76015a6ef6SSaurabh Misraclean: $(CLEAN_DEPS) 77015a6ef6SSaurabh Misra 78015a6ef6SSaurabh Misraclobber: $(CLOBBER_DEPS) 79015a6ef6SSaurabh Misra 80015a6ef6SSaurabh Misralint: $(LINT_DEPS) 81015a6ef6SSaurabh Misra 82015a6ef6SSaurabh Misramodlintlib: $(MODLINTLIB_DEPS) 83015a6ef6SSaurabh Misra 84015a6ef6SSaurabh Misraclean.lint: $(CLEAN_LINT_DEPS) 85015a6ef6SSaurabh Misra 86015a6ef6SSaurabh Misrainstall: $(INSTALL_DEPS) 87015a6ef6SSaurabh Misra 88015a6ef6SSaurabh Misra# 89015a6ef6SSaurabh Misra# Include common targets. 90015a6ef6SSaurabh Misra# 91015a6ef6SSaurabh Misrainclude $(UTSBASE)/intel/Makefile.targ 92