bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# CDDL HEADER START
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# The contents of this file are subject to the terms of the
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Common Development and Distribution License (the "License").
bb5e3b2f129cc39517b925419c22f69a378ec023eh# You may not use this file except in compliance with the License.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb5e3b2f129cc39517b925419c22f69a378ec023eh# or http://www.opensolaris.org/os/licensing.
bb5e3b2f129cc39517b925419c22f69a378ec023eh# See the License for the specific language governing permissions
bb5e3b2f129cc39517b925419c22f69a378ec023eh# and limitations under the License.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# When distributing Covered Code, include this CDDL HEADER in each
bb5e3b2f129cc39517b925419c22f69a378ec023eh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb5e3b2f129cc39517b925419c22f69a378ec023eh# If applicable, add the following below this CDDL HEADER, with the
bb5e3b2f129cc39517b925419c22f69a378ec023eh# fields enclosed by brackets "[]" replaced with your own identifying
bb5e3b2f129cc39517b925419c22f69a378ec023eh# information: Portions Copyright [yyyy] [name of copyright owner]
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# CDDL HEADER END
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
922d2c76afbee21520ffa2088c4e60dcb80d3945eh# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Use is subject to license terms.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# This makefile drives the production of the ipw driver kernel module.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# i86pc architecture dependent
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Path to the base of the uts directory tree (usually /usr/src/uts).
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehUTSBASE = ../..
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Define the module and object file sets.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehMODULE = ipw
bb5e3b2f129cc39517b925419c22f69a378ec023ehOBJECTS = $(IPW_OBJS:%=$(OBJS_DIR)/%)
bb5e3b2f129cc39517b925419c22f69a378ec023ehLINTS = $(IPW_OBJS:%.o=$(LINTS_DIR)/%.ln)
bb5e3b2f129cc39517b925419c22f69a378ec023ehROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Include common rules.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehinclude $(UTSBASE)/intel/Makefile.intel
bb5e3b2f129cc39517b925419c22f69a378ec023eh
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Define targets
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
bb5e3b2f129cc39517b925419c22f69a378ec023ehLINT_TARGET = $(MODULE).lint
bb5e3b2f129cc39517b925419c22f69a378ec023ehINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehCPPFLAGS += -I. -D_KERNEL
bb5e3b2f129cc39517b925419c22f69a378ec023ehLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Default build targets.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh.KEEP_STATE:
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehdef: $(DEF_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehall: $(ALL_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehclean: $(CLEAN_DEPS)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
bb5e3b2f129cc39517b925419c22f69a378ec023ehclobber: $(CLOBBER_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehlint: $(LINT_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehmodlintlib: $(MODLINTLIB_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehclean.lint: $(CLEAN_LINT_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehinstall: $(INSTALL_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Include common targets.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehinclude $(UTSBASE)/intel/Makefile.targ