Makefile revision 0ba2cbe97e0678a691742f98d2532caed0a2c4aa
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# CDDL HEADER START
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# The contents of this file are subject to the terms of the
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Common Development and Distribution License (the "License").
4b22b9337f359bfd063322244f5336cc7c6ffcfars# You may not use this file except in compliance with the License.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4b22b9337f359bfd063322244f5336cc7c6ffcfars# or http://www.opensolaris.org/os/licensing.
4b22b9337f359bfd063322244f5336cc7c6ffcfars# See the License for the specific language governing permissions
4b22b9337f359bfd063322244f5336cc7c6ffcfars# and limitations under the License.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# When distributing Covered Code, include this CDDL HEADER in each
4b22b9337f359bfd063322244f5336cc7c6ffcfars# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4b22b9337f359bfd063322244f5336cc7c6ffcfars# If applicable, add the following below this CDDL HEADER, with the
4b22b9337f359bfd063322244f5336cc7c6ffcfars# fields enclosed by brackets "[]" replaced with your own identifying
4b22b9337f359bfd063322244f5336cc7c6ffcfars# information: Portions Copyright [yyyy] [name of copyright owner]
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# CDDL HEADER END
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Use is subject to license terms.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# ident "%Z%%M% %I% %E% SMI"
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# This makefile drives the production of the mac_wifi plugin
4b22b9337f359bfd063322244f5336cc7c6ffcfars# kernel module.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Path to the base of the uts directory tree (usually /usr/src/uts).
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfarsUTSBASE = ../..
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Define the module and object file sets.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfarsMODULE = mac_wifi
4b22b9337f359bfd063322244f5336cc7c6ffcfarsOBJECTS = $(MAC_WIFI_OBJS:%=$(OBJS_DIR)/%)
4b22b9337f359bfd063322244f5336cc7c6ffcfarsLINTS = $(MAC_WIFI_OBJS:%.o=$(LINTS_DIR)/%.ln)
4b22b9337f359bfd063322244f5336cc7c6ffcfarsROOTMODULE = $(ROOT_MAC_DIR)/$(MODULE)
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Include common rules.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
include $(UTSBASE)/intel/Makefile.intel
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Overrides.
#
CFLAGS += $(CCVERBOSE)
LDFLAGS += -dy -Nmisc/mac
#
# STREAMS API limitations force us to turn off these lint checks.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ