Makefile revision 56f9a274cc7ca7f2d6f19959b2db143d94a4e7e0
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# CDDL HEADER START
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# The contents of this file are subject to the terms of the
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Common Development and Distribution License (the "License").
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# You may not use this file except in compliance with the License.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# or http://www.opensolaris.org/os/licensing.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# See the License for the specific language governing permissions
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# and limitations under the License.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# When distributing Covered Code, include this CDDL HEADER in each
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# If applicable, add the following below this CDDL HEADER, with the
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# fields enclosed by brackets "[]" replaced with your own identifying
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# information: Portions Copyright [yyyy] [name of copyright owner]
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# CDDL HEADER END
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Use is subject to license terms.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# This makefile drives the production of the uath driver kernel module.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# i86pc architecture dependent
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Path to the base of the uts directory tree (usually /usr/src/uts).
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjUTSBASE = ../..
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Define the module and object file sets.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjMODULE = uath
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjOBJECTS = $(UATH_OBJS:%=$(OBJS_DIR)/%)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjLINTS = $(UATH_OBJS:%.o=$(LINTS_DIR)/%.ln)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Include common rules.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjinclude $(UTSBASE)/intel/Makefile.intel
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Define targets
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjALL_TARGET = $(BINARY)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjLINT_TARGET = $(MODULE).lint
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Driver depends on GLDv3 & wifi kernel support module.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Nmisc/usba
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Overrides
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry JelinekLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Default build targets.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj.KEEP_STATE:
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjdef: $(DEF_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjall: $(ALL_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjclean: $(CLEAN_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjclobber: $(CLOBBER_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjlint: $(LINT_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjmodlintlib: $(MODLINTLIB_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjclean.lint: $(CLEAN_LINT_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjinstall: $(INSTALL_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Include common targets.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjinclude $(UTSBASE)/intel/Makefile.targ
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# If you have any special case that general
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Makefile rules don't serve for you, just do
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# it yourself.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj