Makefile revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# CDDL HEADER START
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# The contents of this file are subject to the terms of the
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Common Development and Distribution License (the "License").
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# You may not use this file except in compliance with the License.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# or http://www.opensolaris.org/os/licensing.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# See the License for the specific language governing permissions
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# and limitations under the License.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# When distributing Covered Code, include this CDDL HEADER in each
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If applicable, add the following below this CDDL HEADER, with the
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# fields enclosed by brackets "[]" replaced with your own identifying
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# information: Portions Copyright [yyyy] [name of copyright owner]
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# CDDL HEADER END
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Use is subject to license terms.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Path to the base of the uts directory tree (usually /usr/src/uts).
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndUTSBASE = ../..
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Define the module and object file sets.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndMODULE = dls
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndOBJECTS = $(DLS_OBJS:%=$(OBJS_DIR)/%)
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndLINTS = $(DLS_OBJS:%.o=$(LINTS_DIR)/%.ln)
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Include common rules.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinclude $(UTSBASE)/sparc/Makefile.sparc
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Define targets
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndALL_TARGET = $(BINARY)
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndLINT_TARGET = $(MODULE).lint
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Overrides.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCFLAGS += $(CCVERBOSE)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd$(RELEASE_BUILD)CFLAGS += -xinline=auto -xcrossfile
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd$(RELEASE_BUILD)COPTIMIZE = -xO5
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndLDFLAGS += -dy -N misc/mac
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndINC_PATH += -I$(UTSBASE)/common/io/bpf
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# For now, disable these lint checks; maintainers should endeavor
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# to investigate and remove these for maximum lint coverage.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Please do not carry these forward to new Makefiles.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndLINTTAGS += -erroff=E_STATIC_UNUSED
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Default build targets.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd.KEEP_STATE:
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgdef: $(DEF_DEPS)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndall: $(ALL_DEPS)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndclean: $(CLEAN_DEPS)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndclobber: $(CLOBBER_DEPS)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndlint: $(LINT_DEPS)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndmodlintlib: $(MODLINTLIB_DEPS)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndclean.lint: $(CLEAN_LINT_DEPS)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinstall: $(INSTALL_DEPS)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Include common targets.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinclude $(UTSBASE)/sparc/Makefile.targ
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd