Makefile revision 922d2c76afbee21520ffa2088c4e60dcb80d3945
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# CDDL HEADER START
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# The contents of this file are subject to the terms of the
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Common Development and Distribution License (the "License").
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# You may not use this file except in compliance with the License.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# or http://www.opensolaris.org/os/licensing.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# See the License for the specific language governing permissions
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# and limitations under the License.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# When distributing Covered Code, include this CDDL HEADER in each
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# If applicable, add the following below this CDDL HEADER, with the
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# fields enclosed by brackets "[]" replaced with your own identifying
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# information: Portions Copyright [yyyy] [name of copyright owner]
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# CDDL HEADER END
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Use is subject to license terms.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# ident "%Z%%M% %I% %E% SMI"
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# This makefile drives the production of the ipw driver kernel module.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# i86pc architecture dependent
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Path to the base of the uts directory tree (usually /usr/src/uts).
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarUTSBASE = ../..
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Define the module and object file sets.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarMODULE = iwi
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarOBJECTS = $(IWI_OBJS:%=$(OBJS_DIR)/%)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarLINTS = $(IWI_OBJS:%.o=$(LINTS_DIR)/%.ln)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Include common rules.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarinclude $(UTSBASE)/intel/Makefile.intel
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Define targets
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarLINT_TARGET = $(MODULE).lint
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarCPPFLAGS += -I. -D_KERNEL
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Default build targets.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar.KEEP_STATE:
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikardef: $(DEF_DEPS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarall: $(ALL_DEPS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarclean: $(CLEAN_DEPS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarclobber: $(CLOBBER_DEPS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarlint: $(LINT_DEPS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarmodlintlib: $(MODLINTLIB_DEPS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarclean.lint: $(CLEAN_LINT_DEPS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarinstall: $(INSTALL_DEPS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Include common targets.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarinclude $(UTSBASE)/intel/Makefile.targ
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar