Makefile revision 2b24ab6b3865caeede9eeb9db6b83e1d89dcd1ea
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf#
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# CDDL HEADER START
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf#
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# The contents of this file are subject to the terms of the
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# Common Development and Distribution License (the "License").
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# You may not use this file except in compliance with the License.
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf#
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# or http://www.opensolaris.org/os/licensing.
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# See the License for the specific language governing permissions
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# and limitations under the License.
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf#
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# When distributing Covered Code, include this CDDL HEADER in each
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# If applicable, add the following below this CDDL HEADER, with the
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# fields enclosed by brackets "[]" replaced with your own identifying
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# information: Portions Copyright [yyyy] [name of copyright owner]
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf#
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# CDDL HEADER END
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf#
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby# Use is subject to license terms.
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf#
e1c679fa4b0ab8c4bcaa6263974ca0c46e5b027faf# This makefile drives the production of the mac_ipv4 plugin
b695575577bae0337af339d76949713bfe1c9013Robert Johnston# kernel module.
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert Johnston# Path to the base of the uts directory tree (usually /usr/src/uts).
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonUTSBASE = ../..
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert Johnston# Define the module and object file sets.
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonMODULE = mac_ipv4
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonOBJECTS = $(MAC_IPV4_OBJS:%=$(OBJS_DIR)/%)
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonLINTS = $(MAC_IPV4_OBJS:%.o=$(LINTS_DIR)/%.ln)
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonROOTMODULE = $(ROOT_MAC_DIR)/$(MODULE)
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert Johnston# Include common rules.
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert Johnstoninclude $(UTSBASE)/intel/Makefile.intel
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby#
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby# Define targets
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonALL_TARGET = $(BINARY)
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonLINT_TARGET = $(MODULE).lint
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert Johnston# Overrides.
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonCFLAGS += $(CCVERBOSE)
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonLDFLAGS += -dy -Nmisc/mac
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
b695575577bae0337af339d76949713bfe1c9013Robert JohnstonLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert Johnston# Default build targets.
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert Johnston.KEEP_STATE:
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnstondef: $(DEF_DEPS)
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
654b400c387942fc00d4f6869539adbd7b25fbceJoshua M. Clulowall: $(ALL_DEPS)
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnstonclean: $(CLEAN_DEPS)
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnstonclobber: $(CLOBBER_DEPS)
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnstonlint: $(LINT_DEPS)
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnstonmodlintlib: $(MODLINTLIB_DEPS)
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnstonclean.lint: $(CLEAN_LINT_DEPS)
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnstoninstall: $(INSTALL_DEPS)
b695575577bae0337af339d76949713bfe1c9013Robert Johnston
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert Johnston# Include common targets.
b695575577bae0337af339d76949713bfe1c9013Robert Johnston#
b695575577bae0337af339d76949713bfe1c9013Robert Johnstoninclude $(UTSBASE)/intel/Makefile.targ
b695575577bae0337af339d76949713bfe1c9013Robert Johnston