Makefile revision 2b24ab6b3865caeede9eeb9db6b83e1d89dcd1ea
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER START
f0aad5341752aefe5059832f6cf3abc3283c6e16Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# If applicable, add the following below this CDDL HEADER, with the
0c6ada0a814f3c5417daa1654129bc2af56ed504Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use is subject to license terms.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
0c6ada0a814f3c5417daa1654129bc2af56ed504Automatic Updater#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This makefile drives the production of the mac_ipv4 plugin
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# kernel module.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserUTSBASE = ../..
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Define the module and object file sets.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE = mac_ipv4
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserOBJECTS = $(MAC_IPV4_OBJS:%=$(OBJS_DIR)/%)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINTS = $(MAC_IPV4_OBJS:%.o=$(LINTS_DIR)/%.ln)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsROOTMODULE = $(ROOT_MAC_DIR)/$(MODULE)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Include common rules.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.sparc
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Define targets
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsALL_TARGET = $(BINARY)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINT_TARGET = $(MODULE).lint
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Overrides.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCFLAGS += $(CCVERBOSE)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLDFLAGS += -dy -Nmisc/mac
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Default build targets.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User.KEEP_STATE:
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userdef: $(DEF_DEPS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsall: $(ALL_DEPS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclean: $(CLEAN_DEPS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclobber: $(CLOBBER_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslint: $(LINT_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Usermodlintlib: $(MODLINTLIB_DEPS)
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox Userclean.lint: $(CLEAN_LINT_DEPS)
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinstall: $(INSTALL_DEPS)
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User#
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User# Include common targets.
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews