12311Sseb# 22311Sseb# CDDL HEADER START 32311Sseb# 42311Sseb# The contents of this file are subject to the terms of the 52311Sseb# Common Development and Distribution License (the "License"). 62311Sseb# You may not use this file except in compliance with the License. 72311Sseb# 82311Sseb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92311Sseb# or http://www.opensolaris.org/os/licensing. 102311Sseb# See the License for the specific language governing permissions 112311Sseb# and limitations under the License. 122311Sseb# 132311Sseb# When distributing Covered Code, include this CDDL HEADER in each 142311Sseb# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152311Sseb# If applicable, add the following below this CDDL HEADER, with the 162311Sseb# fields enclosed by brackets "[]" replaced with your own identifying 172311Sseb# information: Portions Copyright [yyyy] [name of copyright owner] 182311Sseb# 192311Sseb# CDDL HEADER END 202311Sseb# 212311Sseb# 22*10639SDarren.Reed@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 232311Sseb# Use is subject to license terms. 242311Sseb# 252311Sseb# This makefile drives the production of the mac_ether MAC-Type plugin 262311Sseb# kernel module. 272311Sseb# 282311Sseb 292311Sseb# 302311Sseb# Path to the base of the uts directory tree (usually /usr/src/uts). 312311Sseb# 322311SsebUTSBASE = ../.. 332311Sseb 342311Sseb# 352311Sseb# Define the module and object file sets. 362311Sseb# 372311SsebMODULE = mac_ether 382311SsebOBJECTS = $(MAC_ETHER_OBJS:%=$(OBJS_DIR)/%) 392311SsebLINTS = $(MAC_ETHER_OBJS:%.o=$(LINTS_DIR)/%.ln) 402311SsebROOTMODULE = $(ROOT_MAC_DIR)/$(MODULE) 412311Sseb 422311Sseb# 432311Sseb# Include common rules. 442311Sseb# 452311Ssebinclude $(UTSBASE)/intel/Makefile.intel 462311Sseb 472311Sseb# 482311Sseb# Define targets 492311Sseb# 502311SsebALL_TARGET = $(BINARY) 512311SsebLINT_TARGET = $(MODULE).lint 522311SsebINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 532311Sseb 542311Sseb# 552311Sseb# Overrides. 562311Sseb# 572311SsebCFLAGS += $(CCVERBOSE) 582311SsebLDFLAGS += -dy -N misc/mac 59*10639SDarren.Reed@Sun.COMINC_PATH += -I$(UTSBASE)/common/io/bpf 602311Sseb 612311Sseb# 622311Sseb# Default build targets. 632311Sseb# 642311Sseb.KEEP_STATE: 652311Sseb 662311Ssebdef: $(DEF_DEPS) 672311Sseb 682311Sseball: $(ALL_DEPS) 692311Sseb 702311Ssebclean: $(CLEAN_DEPS) 712311Sseb 722311Ssebclobber: $(CLOBBER_DEPS) 732311Sseb 742311Sseblint: $(LINT_DEPS) 752311Sseb 762311Ssebmodlintlib: $(MODLINTLIB_DEPS) 772311Sseb 782311Ssebclean.lint: $(CLEAN_LINT_DEPS) 792311Sseb 802311Ssebinstall: $(INSTALL_DEPS) 812311Sseb 822311Sseb# 832311Sseb# Include common targets. 842311Sseb# 852311Ssebinclude $(UTSBASE)/intel/Makefile.targ 86