Makefile revision 112f9fc1e25dcac8b980e034e763f96fb9736261
342N/A#
2018N/A# CDDL HEADER START
342N/A#
342N/A# The contents of this file are subject to the terms of the
342N/A# Common Development and Distribution License (the "License").
342N/A# You may not use this file except in compliance with the License.
342N/A#
342N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
342N/A# or http://www.opensolaris.org/os/licensing.
342N/A# See the License for the specific language governing permissions
342N/A# and limitations under the License.
342N/A#
342N/A# When distributing Covered Code, include this CDDL HEADER in each
342N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
342N/A# If applicable, add the following below this CDDL HEADER, with the
342N/A# fields enclosed by brackets "[]" replaced with your own identifying
342N/A# information: Portions Copyright [yyyy] [name of copyright owner]
342N/A#
1472N/A# CDDL HEADER END
1472N/A#
1472N/A#
342N/A# uts/intel/tun/Makefile
342N/A#
342N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1879N/A# Use is subject to license terms.
1879N/A#
1879N/A#ident "%Z%%M% %I% %E% SMI"
1879N/A#
1879N/A# This makefile drives the production of the configured tunneling
1879N/A# streams kernel module.
1879N/A#
342N/A# intel architecture dependent
342N/A#
342N/A
342N/A#
342N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
342N/A#
342N/AUTSBASE = ../..
342N/A
342N/A#
342N/A# Define the module and object file sets.
342N/A#
342N/AMODULE = tun
342N/AOBJECTS = $(TUN_OBJS:%=$(OBJS_DIR)/%)
342N/ALINTS = $(TUN_OBJS:%.o=$(LINTS_DIR)/%.ln)
342N/AROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
342N/A
342N/A#
342N/A# Extra for $(MODULE).check target
342N/A#
342N/A# Need to remove ipddi.o since it has non-static defines for _init etc.
342N/AIP_CHECK_OBJS = $(IP_OBJS:ipddi.o=ip.o)
342N/AEXTRA_CHECK_OBJS = $(IP_CHECK_OBJS:%=../ip/$(OBJS_DIR)/%)
342N/A
342N/A#
342N/A# Include common rules.
342N/A#
342N/Ainclude $(UTSBASE)/intel/Makefile.intel
342N/A
342N/A#
342N/A# Define targets
342N/A#
342N/AALL_TARGET = $(BINARY)
342N/ALINT_TARGET = $(MODULE).lint
342N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
342N/A
342N/A#
342N/A# depends on ip and ip6
342N/A#
342N/ALDFLAGS += -dy -Ndrv/ip -Ndrv/ip6
342N/A
342N/A#
342N/A# For now, disable these lint checks; maintainers should endeavor
342N/A# to investigate and remove these for maximum lint coverage.
342N/A# Please do not carry these forward to new Makefiles.
342N/A#
342N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
342N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
342N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
342N/A
342N/A#
342N/A# Default build targets.
342N/A#
342N/A.KEEP_STATE:
342N/A
342N/Adef: $(DEF_DEPS)
342N/A
342N/Aall: $(ALL_DEPS) $(SISCHECK_DEPS)
342N/A
342N/Aclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
342N/A
342N/Aclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
342N/A
342N/Alint: $(LINT_DEPS)
342N/A
342N/Amodlintlib: $(MODLINTLIB_DEPS)
342N/A
342N/Aclean.lint: $(CLEAN_LINT_DEPS)
342N/A
342N/Ainstall: $(INSTALL_DEPS) $(SISCHECK_DEPS)
342N/A
342N/A#
342N/A# Include common targets.
342N/A#
342N/Ainclude $(UTSBASE)/intel/Makefile.targ
342N/A