Makefile revision 112f9fc1e25dcac8b980e034e763f96fb9736261
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER START
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# The contents of this file are subject to the terms of the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Common Development and Distribution License (the "License").
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You may not use this file except in compliance with the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
843e19887f64dde75055cf8842fc4db2171eff45johnlev# or http://www.opensolaris.org/os/licensing.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# See the License for the specific language governing permissions
843e19887f64dde75055cf8842fc4db2171eff45johnlev# and limitations under the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# When distributing Covered Code, include this CDDL HEADER in each
843e19887f64dde75055cf8842fc4db2171eff45johnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# If applicable, add the following below this CDDL HEADER, with the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# fields enclosed by brackets "[]" replaced with your own identifying
843e19887f64dde75055cf8842fc4db2171eff45johnlev# information: Portions Copyright [yyyy] [name of copyright owner]
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER END
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# uts/sparc/tun/Makefile
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Use is subject to license terms.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev#ident "%Z%%M% %I% %E% SMI"
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# This makefile drives the production of the configured tunneling
843e19887f64dde75055cf8842fc4db2171eff45johnlev# streams kernel module.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# SPARC architecture dependent
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz# Path to the base of the uts directory tree (usually /usr/src/uts).
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczUTSBASE = ../..
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz# Define the module and object file sets.
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczMODULE = tun
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczOBJECTS = $(TUN_OBJS:%=$(OBJS_DIR)/%)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczLINTS = $(TUN_OBJS:%.o=$(LINTS_DIR)/%.ln)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz# Extra for $(MODULE).check target
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz# Need to remove ipddi.o since it has non-static defines for _init etc.
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczIP_CHECK_OBJS = $(IP_OBJS:ipddi.o=ip.o)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczEXTRA_CHECK_OBJS = $(IP_CHECK_OBJS:%=../ip/$(OBJS_DIR)/%)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz# Include common rules.
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowiczinclude $(UTSBASE)/sparc/Makefile.sparc
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz# Define targets
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczALL_TARGET = $(BINARY)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczLINT_TARGET = $(MODULE).lint
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz# lint pass one enforcement
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlevCFLAGS += $(CCVERBOSE)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
06bbe1e05e4f6fd0773ee85a50c0de7adfc4fa06edp# depends on ip and ip6
551bc2a66868b5cb5be6b70ab9f55515e77a39a9mrj#
551bc2a66868b5cb5be6b70ab9f55515e77a39a9mrjLDFLAGS += -dy -Ndrv/ip -Ndrv/ip6
551bc2a66868b5cb5be6b70ab9f55515e77a39a9mrj
551bc2a66868b5cb5be6b70ab9f55515e77a39a9mrj#
551bc2a66868b5cb5be6b70ab9f55515e77a39a9mrj# For now, disable these lint checks; maintainers should endeavor
551bc2a66868b5cb5be6b70ab9f55515e77a39a9mrj# to investigate and remove these for maximum lint coverage.
551bc2a66868b5cb5be6b70ab9f55515e77a39a9mrj# Please do not carry these forward to new Makefiles.
06bbe1e05e4f6fd0773ee85a50c0de7adfc4fa06edp#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward PilatowiczLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
551bc2a66868b5cb5be6b70ab9f55515e77a39a9mrj
551bc2a66868b5cb5be6b70ab9f55515e77a39a9mrj#
551bc2a66868b5cb5be6b70ab9f55515e77a39a9mrj# Default build targets.
a576ab5b6e08c47732b3dedca9eaa8a8cbb85720rab#
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz.KEEP_STATE:
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowiczdef: $(DEF_DEPS)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowiczall: $(ALL_DEPS) $(SISCHECK_DEPS)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowiczclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowiczclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowiczlint: $(LINT_DEPS)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
843e19887f64dde75055cf8842fc4db2171eff45johnlevmodlintlib: $(MODLINTLIB_DEPS)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowiczclean.lint: $(CLEAN_LINT_DEPS)
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowiczinstall: $(INSTALL_DEPS) $(SISCHECK_DEPS)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Include common targets.
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz#
843e19887f64dde75055cf8842fc4db2171eff45johnlevinclude $(UTSBASE)/sparc/Makefile.targ
7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1fEdward Pilatowicz