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'AmoreLINTS = $(ELXL_OBJS:%.o=$(LINTS_DIR)/%.ln) 4169b3e104SGarrett D'AmoreROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 4269b3e104SGarrett D'Amore 4369b3e104SGarrett D'Amore# 4469b3e104SGarrett D'Amore# Include common rules. 4569b3e104SGarrett D'Amore# 4669b3e104SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel 4769b3e104SGarrett D'Amore 4869b3e104SGarrett D'Amore# 4969b3e104SGarrett D'Amore# Define targets 5069b3e104SGarrett D'Amore# 5169b3e104SGarrett D'AmoreALL_TARGET = $(BINARY) 5269b3e104SGarrett D'AmoreLINT_TARGET = $(MODULE).lint 5369b3e104SGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 5469b3e104SGarrett D'Amore 5569b3e104SGarrett D'Amore# 5669b3e104SGarrett D'Amore# Driver depends on MAC 5769b3e104SGarrett D'Amore# 5869b3e104SGarrett D'AmoreLDFLAGS += -dy -N misc/mac -N misc/mii 5969b3e104SGarrett D'Amore 6069b3e104SGarrett D'Amore# Lint flag 6169b3e104SGarrett D'Amore# 6269b3e104SGarrett D'Amore 63*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 64*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 65*7014882cSRichard 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'Amorelint: $(LINT_DEPS) 8169b3e104SGarrett D'Amore 8269b3e104SGarrett D'Amoremodlintlib: $(MODLINTLIB_DEPS) 8369b3e104SGarrett D'Amore 8469b3e104SGarrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS) 8569b3e104SGarrett D'Amore 8669b3e104SGarrett D'Amoreinstall: $(INSTALL_DEPS) 8769b3e104SGarrett D'Amore 8869b3e104SGarrett D'Amore# 8969b3e104SGarrett D'Amore# Include common targets. 9069b3e104SGarrett D'Amore# 9169b3e104SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ 92