Makefile revision d62bc4badc1c1f1549c961cfb8b420e650e1272b
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# CDDL HEADER START
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# The contents of this file are subject to the terms of the
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Common Development and Distribution License (the "License").
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# You may not use this file except in compliance with the License.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# or http://www.opensolaris.org/os/licensing.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# See the License for the specific language governing permissions
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# and limitations under the License.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# When distributing Covered Code, include this CDDL HEADER in each
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# If applicable, add the following below this CDDL HEADER, with the
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# fields enclosed by brackets "[]" replaced with your own identifying
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# information: Portions Copyright [yyyy] [name of copyright owner]
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# CDDL HEADER END
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Use is subject to license terms.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#ident "%Z%%M% %I% %E% SMI"
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell#
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Path to the base of the uts directory tree (usually /usr/src/uts).
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfUTSBASE = ../..
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Define the module and object file sets.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfMODULE = softmac
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfOBJECTS = $(SOFTMAC_OBJS:%=$(OBJS_DIR)/%)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfLINTS = $(SOFTMAC_OBJS:%.o=$(LINTS_DIR)/%.ln)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfCONF_SRCDIR = $(UTSBASE)/common/io/softmac
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Include common rules.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfinclude $(UTSBASE)/sparc/Makefile.sparc
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Define targets
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfALL_TARGET = $(BINARY) $(SRC_CONFILE)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfLINT_TARGET = $(MODULE).lint
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Overrides
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfCFLAGS += $(CCVERBOSE)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfLDFLAGS += -dy -Ndrv/dld -Nmisc/mac -Nmisc/strplumb -Nmisc/dls
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# For now, disable these lint checks as it is a generic STREAMS problem;
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek# maintainers should endeavor to investigate and remove these for maximum
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek# lint coverage.
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Default build targets.
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe.KEEP_STATE:
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Belldef: $(DEF_DEPS)
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bellall: $(ALL_DEPS)
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfclean: $(CLEAN_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfclobber: $(CLOBBER_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyflint: $(LINT_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfmodlintlib: $(MODLINTLIB_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfclean.lint: $(CLEAN_LINT_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfinstall: $(INSTALL_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Include common targets.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfinclude $(UTSBASE)/sparc/Makefile.targ
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf