Makefile revision d62bc4badc1c1f1549c961cfb8b420e650e1272b
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# CDDL HEADER START
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# The contents of this file are subject to the terms of the
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Common Development and Distribution License (the "License").
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# You may not use this file except in compliance with the License.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# or http://www.opensolaris.org/os/licensing.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# See the License for the specific language governing permissions
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# and limitations under the License.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# When distributing Covered Code, include this CDDL HEADER in each
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# If applicable, add the following below this CDDL HEADER, with the
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# fields enclosed by brackets "[]" replaced with your own identifying
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# information: Portions Copyright [yyyy] [name of copyright owner]
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# CDDL HEADER END
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Use is subject to license terms.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#ident "%Z%%M% %I% %E% SMI"
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Path to the base of the uts directory tree (usually /usr/src/uts).
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byzUTSBASE = ../..
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Define the module and object file sets.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byzMODULE = softmac
d62bc4badc1c1f1549c961cfb8b420e650e1272byzOBJECTS = $(SOFTMAC_OBJS:%=$(OBJS_DIR)/%)
d62bc4badc1c1f1549c961cfb8b420e650e1272byzLINTS = $(SOFTMAC_OBJS:%.o=$(LINTS_DIR)/%.ln)
d62bc4badc1c1f1549c961cfb8b420e650e1272byzROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
d62bc4badc1c1f1549c961cfb8b420e650e1272byzCONF_SRCDIR = $(UTSBASE)/common/io/softmac
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Include common rules.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byzinclude $(UTSBASE)/intel/Makefile.intel
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Define targets
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byzALL_TARGET = $(BINARY) $(SRC_CONFILE)
d62bc4badc1c1f1549c961cfb8b420e650e1272byzLINT_TARGET = $(MODULE).lint
d62bc4badc1c1f1549c961cfb8b420e650e1272byzINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Overrides
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byzCFLAGS += $(CCVERBOSE)
d62bc4badc1c1f1549c961cfb8b420e650e1272byzLDFLAGS += -dy -Ndrv/dld -Nmisc/mac -Nmisc/strplumb -Nmisc/dls
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# For now, disable these lint checks as it is a generic STREAMS problem;
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# maintainers should endeavor to investigate and remove these for maximum
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# lint coverage.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byzLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
d62bc4badc1c1f1549c961cfb8b420e650e1272byzLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Default build targets.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz.KEEP_STATE:
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byzdef: $(DEF_DEPS)
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byzall: $(ALL_DEPS)
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byzclean: $(CLEAN_DEPS)
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byzclobber: $(CLOBBER_DEPS)
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byzlint: $(LINT_DEPS)
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byzmodlintlib: $(MODLINTLIB_DEPS)
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byzclean.lint: $(CLEAN_LINT_DEPS)
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byzinstall: $(INSTALL_DEPS)
d62bc4badc1c1f1549c961cfb8b420e650e1272byz
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Include common targets.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz#
d62bc4badc1c1f1549c961cfb8b420e650e1272byzinclude $(UTSBASE)/intel/Makefile.targ