Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
217N/A#
217N/A# CDDL HEADER START
217N/A#
217N/A# The contents of this file are subject to the terms of the
217N/A# Common Development and Distribution License (the "License").
217N/A# You may not use this file except in compliance with the License.
217N/A#
217N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
217N/A# or http://www.opensolaris.org/os/licensing.
217N/A# See the License for the specific language governing permissions
217N/A# and limitations under the License.
217N/A#
217N/A# When distributing Covered Code, include this CDDL HEADER in each
217N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
217N/A# If applicable, add the following below this CDDL HEADER, with the
217N/A# fields enclosed by brackets "[]" replaced with your own identifying
217N/A# information: Portions Copyright [yyyy] [name of copyright owner]
217N/A#
217N/A# CDDL HEADER END
217N/A#
217N/A#
217N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
844N/A# Use is subject to license terms.
217N/A#
217N/A
217N/A#
217N/A# This makefile drives the production of the iwk driver kernel module.
217N/A#
296N/A# i86pc architecture dependent
217N/A#
618N/A
217N/A#
844N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
844N/A#
217N/AUTSBASE = ../..
1273N/A
217N/A#
217N/A# Define the module and object file sets.
217N/A#
217N/AMODULE = iwk
217N/AOBJECTS = $(IWK_OBJS:%=$(OBJS_DIR)/%)
217N/ALINTS = $(IWK_OBJS:%.o=$(LINTS_DIR)/%.ln)
217N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
217N/A
217N/A#
217N/A# Include common rules.
217N/A#
217N/Ainclude $(UTSBASE)/intel/Makefile.intel
217N/A
217N/A#
217N/A# Define targets
217N/A#
217N/AALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
217N/ALINT_TARGET = $(MODULE).lint
217N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
217N/A
217N/A#
# Overrides
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
CPPFLAGS += -I. -D_KERNEL -DIWL=4965
LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-uninitialized
#
# 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