169b3e104SGarrett D'Amore# 269b3e104SGarrett D'Amore# CDDL HEADER START 369b3e104SGarrett D'Amore# 469b3e104SGarrett D'Amore# The contents of this file are subject to the terms of the 569b3e104SGarrett D'Amore# Common Development and Distribution License (the "License"). 669b3e104SGarrett D'Amore# You may not use this file except in compliance with the License. 769b3e104SGarrett D'Amore# 869b3e104SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 969b3e104SGarrett D'Amore# or http://www.opensolaris.org/os/licensing. 1069b3e104SGarrett D'Amore# See the License for the specific language governing permissions 1169b3e104SGarrett D'Amore# and limitations under the License. 1269b3e104SGarrett D'Amore# 1369b3e104SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each 1469b3e104SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1569b3e104SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the 1669b3e104SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying 1769b3e104SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner] 1869b3e104SGarrett D'Amore# 1969b3e104SGarrett D'Amore# CDDL HEADER END 2069b3e104SGarrett D'Amore# 2169b3e104SGarrett D'Amore# 2269b3e104SGarrett D'Amore# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 2369b3e104SGarrett D'Amore# Use is subject to license terms. 2469b3e104SGarrett D'Amore# 2569b3e104SGarrett D'Amore# 2669b3e104SGarrett D'Amore# This makefile drives the production of the EtherLink XL 2769b3e104SGarrett D'Amore# Ethernet driver module in x86 systems 2869b3e104SGarrett D'Amore# 2969b3e104SGarrett D'Amore 3069b3e104SGarrett D'Amore# 3169b3e104SGarrett D'Amore# Paths to the base of the uts directory trees 3269b3e104SGarrett D'Amore# 3369b3e104SGarrett D'AmoreUTSBASE = ../.. 3469b3e104SGarrett D'Amore 3569b3e104SGarrett D'Amore# 3669b3e104SGarrett D'Amore# Define the module and object file sets. 3769b3e104SGarrett D'Amore# 3869b3e104SGarrett D'AmoreMODULE = elxl 3969b3e104SGarrett D'AmoreOBJECTS = $(ELXL_OBJS:%=$(OBJS_DIR)/%) 4069b3e104SGarrett D'AmoreROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 4169b3e104SGarrett D'Amore 4269b3e104SGarrett D'Amore# 4369b3e104SGarrett D'Amore# Include common rules. 4469b3e104SGarrett D'Amore# 4569b3e104SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel 4669b3e104SGarrett D'Amore 4769b3e104SGarrett D'Amore# 4869b3e104SGarrett D'Amore# Define targets 4969b3e104SGarrett D'Amore# 5069b3e104SGarrett D'AmoreALL_TARGET = $(BINARY) 5169b3e104SGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 5269b3e104SGarrett D'Amore 5369b3e104SGarrett D'Amore# 5469b3e104SGarrett D'Amore# Driver depends on MAC 5569b3e104SGarrett D'Amore# 56*82d0151aSRichard LoweLDFLAGS += -N misc/mac -N misc/mii 5769b3e104SGarrett D'Amore 5869b3e104SGarrett D'Amore# 590aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 600aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 610aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles. 620aaef2f5SRichard Lowe# 637014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 64d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 657014882cSRichard Lowe 6669b3e104SGarrett D'Amore# 6769b3e104SGarrett D'Amore# 6869b3e104SGarrett D'Amore# Default build targets. 6969b3e104SGarrett D'Amore# 7069b3e104SGarrett D'Amore.KEEP_STATE: 7169b3e104SGarrett D'Amore 7269b3e104SGarrett D'Amoredef: $(DEF_DEPS) 7369b3e104SGarrett D'Amore 7469b3e104SGarrett D'Amoreall: $(ALL_DEPS) 7569b3e104SGarrett D'Amore 7669b3e104SGarrett D'Amoreclean: $(CLEAN_DEPS) 7769b3e104SGarrett D'Amore 7869b3e104SGarrett D'Amoreclobber: $(CLOBBER_DEPS) 7969b3e104SGarrett D'Amore 8069b3e104SGarrett D'Amoreinstall: $(INSTALL_DEPS) 8169b3e104SGarrett D'Amore 8269b3e104SGarrett D'Amore# 8369b3e104SGarrett D'Amore# Include common targets. 8469b3e104SGarrett D'Amore# 8569b3e104SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ 86