Makefile revision c533a883a71cff9ff32df1c53c31201e1cbf371f
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# CDDL HEADER START
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# The contents of this file are subject to the terms of the
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Common Development and Distribution License (the "License").
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# You may not use this file except in compliance with the License.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# or http://www.opensolaris.org/os/licensing.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# See the License for the specific language governing permissions
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# and limitations under the License.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen#
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# When distributing Covered Code, include this CDDL HEADER in each
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If applicable, add the following below this CDDL HEADER, with the
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# fields enclosed by brackets "[]" replaced with your own identifying
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# information: Portions Copyright [yyyy] [name of copyright owner]
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen#
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# CDDL HEADER END
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# Use is subject to license terms.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# ident "%Z%%M% %I% %E% SMI"
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
11495c9f0bd33e51a25b4d532beadfbcf9b944a3nilgun# This makefile drives the production of the iwk driver kernel module.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung# i86pc architecture dependent
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Path to the base of the uts directory tree (usually /usr/src/uts).
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndUTSBASE = ../..
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Define the module and object file sets.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndMODULE = iwk
a78048ccbdb6256da15e6b0e7e95355e480c2301ndOBJECTS = $(IWK_OBJS:%=$(OBJS_DIR)/%)
a78048ccbdb6256da15e6b0e7e95355e480c2301ndLINTS = $(IWK_OBJS:%.o=$(LINTS_DIR)/%.ln)
a78048ccbdb6256da15e6b0e7e95355e480c2301ndROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Include common rules.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
aa2ff7f8e8477e2b9d20dc2e72737d6bd5145465sfinclude $(UTSBASE)/intel/Makefile.intel
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
acf65805923cf80834c39689cc0e2a8e7201c186sf#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Define targets
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
a78048ccbdb6256da15e6b0e7e95355e480c2301ndLINT_TARGET = $(MODULE).lint
a78048ccbdb6256da15e6b0e7e95355e480c2301ndINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Overrides
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301ndLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
a78048ccbdb6256da15e6b0e7e95355e480c2301ndLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndCPPFLAGS += -I. -D_KERNEL -DIWL=4965
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Default build targets.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd.KEEP_STATE:
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nddef: $(DEF_DEPS)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndall: $(ALL_DEPS)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndclean: $(CLEAN_DEPS)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndclobber: $(CLOBBER_DEPS)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndlint: $(LINT_DEPS)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndmodlintlib: $(MODLINTLIB_DEPS)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndclean.lint: $(CLEAN_LINT_DEPS)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndinstall: $(INSTALL_DEPS)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Include common targets.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
aa2ff7f8e8477e2b9d20dc2e72737d6bd5145465sfinclude $(UTSBASE)/intel/Makefile.targ
aa2ff7f8e8477e2b9d20dc2e72737d6bd5145465sf