Makefile revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER START
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf# You may not use this file except in compliance with the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f808c858fa61e7769218966759510a8b1190dfcfraf# or http://www.opensolaris.org/os/licensing.
f808c858fa61e7769218966759510a8b1190dfcfraf# See the License for the specific language governing permissions
f808c858fa61e7769218966759510a8b1190dfcfraf# and limitations under the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# When distributing Covered Code, include this CDDL HEADER in each
f808c858fa61e7769218966759510a8b1190dfcfraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f808c858fa61e7769218966759510a8b1190dfcfraf# If applicable, add the following below this CDDL HEADER, with the
f808c858fa61e7769218966759510a8b1190dfcfraf# fields enclosed by brackets "[]" replaced with your own identifying
f808c858fa61e7769218966759510a8b1190dfcfraf# information: Portions Copyright [yyyy] [name of copyright owner]
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER END
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
f808c858fa61e7769218966759510a8b1190dfcfraf# Use is subject to license terms.
f808c858fa61e7769218966759510a8b1190dfcfraf#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# This makefile drives the production of the mac_wifi plugin
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# kernel module.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Path to the base of the uts directory tree (usually /usr/src/uts).
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiUTSBASE = ../..
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Define the module and object file sets.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiMODULE = mac_wifi
f808c858fa61e7769218966759510a8b1190dfcfrafOBJECTS = $(MAC_WIFI_OBJS:%=$(OBJS_DIR)/%)
f808c858fa61e7769218966759510a8b1190dfcfrafLINTS = $(MAC_WIFI_OBJS:%.o=$(LINTS_DIR)/%.ln)
602ca9ea8f9ce0933f0944601cc5d230e91a950dcthROOTMODULE = $(ROOT_MAC_DIR)/$(MODULE)
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth#
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth# Include common rules.
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth#
602ca9ea8f9ce0933f0944601cc5d230e91a950dcthinclude $(UTSBASE)/intel/Makefile.intel
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth#
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth# Define targets
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth#
602ca9ea8f9ce0933f0944601cc5d230e91a950dcthALL_TARGET = $(BINARY)
602ca9ea8f9ce0933f0944601cc5d230e91a950dcthLINT_TARGET = $(MODULE).lint
602ca9ea8f9ce0933f0944601cc5d230e91a950dcthINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth#
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth# Overrides.
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth#
602ca9ea8f9ce0933f0944601cc5d230e91a950dcthCFLAGS += $(CCVERBOSE)
602ca9ea8f9ce0933f0944601cc5d230e91a950dcthLDFLAGS += -dy -Nmisc/mac
602ca9ea8f9ce0933f0944601cc5d230e91a950dcthINC_PATH += -I$(UTSBASE)/common/io/bpf
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth#
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth# Default build targets.
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth#
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth.KEEP_STATE:
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth
602ca9ea8f9ce0933f0944601cc5d230e91a950dcthdef: $(DEF_DEPS)
602ca9ea8f9ce0933f0944601cc5d230e91a950dcth
f808c858fa61e7769218966759510a8b1190dfcfrafall: $(ALL_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafclean: $(CLEAN_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafclobber: $(CLOBBER_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraflint: $(LINT_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafmodlintlib: $(MODLINTLIB_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafclean.lint: $(CLEAN_LINT_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafinstall: $(INSTALL_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Include common targets.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafinclude $(UTSBASE)/intel/Makefile.targ
f808c858fa61e7769218966759510a8b1190dfcfraf