10ba2cbe9Sxc151355# 20ba2cbe9Sxc151355# CDDL HEADER START 30ba2cbe9Sxc151355# 40ba2cbe9Sxc151355# The contents of this file are subject to the terms of the 50ba2cbe9Sxc151355# Common Development and Distribution License (the "License"). 60ba2cbe9Sxc151355# You may not use this file except in compliance with the License. 70ba2cbe9Sxc151355# 80ba2cbe9Sxc151355# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90ba2cbe9Sxc151355# or http://www.opensolaris.org/os/licensing. 100ba2cbe9Sxc151355# See the License for the specific language governing permissions 110ba2cbe9Sxc151355# and limitations under the License. 120ba2cbe9Sxc151355# 130ba2cbe9Sxc151355# When distributing Covered Code, include this CDDL HEADER in each 140ba2cbe9Sxc151355# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150ba2cbe9Sxc151355# If applicable, add the following below this CDDL HEADER, with the 160ba2cbe9Sxc151355# fields enclosed by brackets "[]" replaced with your own identifying 170ba2cbe9Sxc151355# information: Portions Copyright [yyyy] [name of copyright owner] 180ba2cbe9Sxc151355# 190ba2cbe9Sxc151355# CDDL HEADER END 200ba2cbe9Sxc151355# 210ba2cbe9Sxc151355# 220a0e9771SDarren Reed# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230ba2cbe9Sxc151355# Use is subject to license terms. 240ba2cbe9Sxc151355# 250ba2cbe9Sxc151355# This makefile drives the production of the mac_wifi plugin 260ba2cbe9Sxc151355# kernel module. 270ba2cbe9Sxc151355# 280ba2cbe9Sxc151355 290ba2cbe9Sxc151355# 300ba2cbe9Sxc151355# Path to the base of the uts directory tree (usually /usr/src/uts). 310ba2cbe9Sxc151355# 320ba2cbe9Sxc151355UTSBASE = ../.. 330ba2cbe9Sxc151355 340ba2cbe9Sxc151355# 350ba2cbe9Sxc151355# Define the module and object file sets. 360ba2cbe9Sxc151355# 370ba2cbe9Sxc151355MODULE = mac_wifi 380ba2cbe9Sxc151355OBJECTS = $(MAC_WIFI_OBJS:%=$(OBJS_DIR)/%) 390ba2cbe9Sxc151355ROOTMODULE = $(ROOT_MAC_DIR)/$(MODULE) 400ba2cbe9Sxc151355 410ba2cbe9Sxc151355# 420ba2cbe9Sxc151355# Include common rules. 430ba2cbe9Sxc151355# 440ba2cbe9Sxc151355include $(UTSBASE)/intel/Makefile.intel 450ba2cbe9Sxc151355 467014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 477014882cSRichard Lowe 480ba2cbe9Sxc151355# 490ba2cbe9Sxc151355# Define targets 500ba2cbe9Sxc151355# 510ba2cbe9Sxc151355ALL_TARGET = $(BINARY) 520ba2cbe9Sxc151355INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 530ba2cbe9Sxc151355 540ba2cbe9Sxc151355# 550ba2cbe9Sxc151355# Overrides. 560ba2cbe9Sxc151355# 570ba2cbe9Sxc151355CFLAGS += $(CCVERBOSE) 58*82d0151aSRichard LoweLDFLAGS += -Nmisc/mac 590a0e9771SDarren ReedINC_PATH += -I$(UTSBASE)/common/io/bpf 600ba2cbe9Sxc151355 610ba2cbe9Sxc151355# 620ba2cbe9Sxc151355# Default build targets. 630ba2cbe9Sxc151355# 640ba2cbe9Sxc151355.KEEP_STATE: 650ba2cbe9Sxc151355 660ba2cbe9Sxc151355def: $(DEF_DEPS) 670ba2cbe9Sxc151355 680ba2cbe9Sxc151355all: $(ALL_DEPS) 690ba2cbe9Sxc151355 700ba2cbe9Sxc151355clean: $(CLEAN_DEPS) 710ba2cbe9Sxc151355 720ba2cbe9Sxc151355clobber: $(CLOBBER_DEPS) 730ba2cbe9Sxc151355 740ba2cbe9Sxc151355install: $(INSTALL_DEPS) 750ba2cbe9Sxc151355 760ba2cbe9Sxc151355# 770ba2cbe9Sxc151355# Include common targets. 780ba2cbe9Sxc151355# 790ba2cbe9Sxc151355include $(UTSBASE)/intel/Makefile.targ 80