Makefile revision d8d810637042c2a73a269f125dee75e8ed1421d1
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# CDDL HEADER START
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License").
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# See the License for the specific language governing permissions
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# and limitations under the License.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner]
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# CDDL HEADER END
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# Use is subject to license terms.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# This makefile drives the production of the rwd driver kernel module.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# i86pc architecture dependent
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# Path to the base of the uts directory tree (usually /usr/src/uts).
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# Define the module and object file sets.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing ChinaOBJECTS = $(MWL_OBJS:%=$(OBJS_DIR)/%)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing ChinaLINTS = $(MWL_OBJS:%.o=$(LINTS_DIR)/%.ln)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing ChinaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# Include common rules.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.intel
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing ChinaALL_TARGET = $(BINARY)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing ChinaLINT_TARGET = $(MODULE).lint
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing ChinaINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# Driver depends on GLDv3 & wifi kernel support module.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing ChinaLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing ChinaLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# Default build targets.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing Chinaclean: $(CLEAN_DEPS)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing Chinaclobber: $(CLOBBER_DEPS)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing Chinalint: $(LINT_DEPS)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing Chinamodlintlib: $(MODLINTLIB_DEPS)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing Chinaclean.lint: $(CLEAN_LINT_DEPS)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing Chinainstall: $(INSTALL_DEPS)
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# Include common targets.
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# If you have any special case that general
d8d810637042c2a73a269f125dee75e8ed1421d1fei feng - Sun Microsystems - Beijing China# Makefile rules don't serve for you, just do