Makefile revision bd670b35a010421b6e1a5536c34453a827007c81
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews#
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# CDDL HEADER START
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews#
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# The contents of this file are subject to the terms of the
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# Common Development and Distribution License (the "License").
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# You may not use this file except in compliance with the License.
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews#
092f7679306989293bbe755f31ade0a5f456b370Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
092f7679306989293bbe755f31ade0a5f456b370Mark Andrews# or http://www.opensolaris.org/os/licensing.
437404e8313481329baa5897eeda8c45bf748553Mark Andrews# See the License for the specific language governing permissions
437404e8313481329baa5897eeda8c45bf748553Mark Andrews# and limitations under the License.
841fc0fd70881499b62f15e35980dd14b905ba45Mark Andrews#
841fc0fd70881499b62f15e35980dd14b905ba45Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
e5a5c60a5e690ee9858c9e3facba189b8646f0b7Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e5a5c60a5e690ee9858c9e3facba189b8646f0b7Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
e5a5c60a5e690ee9858c9e3facba189b8646f0b7Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
afa3f2fab7144761bbf481b9d40d667529c6ec76Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
afa3f2fab7144761bbf481b9d40d667529c6ec76Mark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
2941824604f9c5aa70f216d1f2941b3c59aa37dcMark Andrews# uts/sparc/arp/Makefile
2941824604f9c5aa70f216d1f2941b3c59aa37dcMark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
b4028939fdffc92cf659764deb9c6e3c805cc948Mark Andrews# Use is subject to license terms.
b4028939fdffc92cf659764deb9c6e3c805cc948Mark Andrews#
b4028939fdffc92cf659764deb9c6e3c805cc948Mark Andrews# This makefile drives the production of the arp driver kernel module.
9840a0767d02f6c6b9d1f73d54e0cab2e8192a93Mark Andrews#
9840a0767d02f6c6b9d1f73d54e0cab2e8192a93Mark Andrews# sparc architecture dependent
9840a0767d02f6c6b9d1f73d54e0cab2e8192a93Mark Andrews#
57ed0bab5b92f66af3dc3b86081bd42ab8d4ba09Rob Austein
57ed0bab5b92f66af3dc3b86081bd42ab8d4ba09Rob Austein#
57ed0bab5b92f66af3dc3b86081bd42ab8d4ba09Rob Austein# Path to the base of the uts directory tree (usually /usr/src/uts).
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinUTSBASE = ../..
1cb73c69f76c8c2c66b767a8b9ad04f3988cf6a9Mark Andrews
1cb73c69f76c8c2c66b767a8b9ad04f3988cf6a9Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Define the module and object file sets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE = arp
f754fa97bc698cc251d227173a95e4d39a88ac01Mark AndrewsOBJECTS = $(ARP_OBJS:%=$(OBJS_DIR)/%)
f754fa97bc698cc251d227173a95e4d39a88ac01Mark AndrewsLINTS = $(ARP_OBJS:%.o=$(LINTS_DIR)/%.ln)
a8f1c013b0fdc405ca4b5ec8316d3c9e3ad9d31bMark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
a8f1c013b0fdc405ca4b5ec8316d3c9e3ad9d31bMark AndrewsROOTLINK = $(ROOT_STRMOD_DIR)/$(MODULE)
a8f1c013b0fdc405ca4b5ec8316d3c9e3ad9d31bMark AndrewsCONF_SRCDIR = $(UTSBASE)/common/inet/arp
a8f1c013b0fdc405ca4b5ec8316d3c9e3ad9d31bMark Andrews
959fb01017fa83578e7c8776ed3baba3076a2409Mark Andrews#
959fb01017fa83578e7c8776ed3baba3076a2409Mark Andrews# Extra for $(MODULE).check target
959fb01017fa83578e7c8776ed3baba3076a2409Mark Andrews#
d73541ea2eebe01cafc5ff1b2ba4b9a8f75237b1Mark Andrews# Need to remove ipddi.o since it has non-static defines for _init etc.
d73541ea2eebe01cafc5ff1b2ba4b9a8f75237b1Mark AndrewsIP_CHECK_OBJS = $(IP_OBJS:ipddi.o=ip.o)
d73541ea2eebe01cafc5ff1b2ba4b9a8f75237b1Mark AndrewsEXTRA_CHECK_OBJS = $(IP_CHECK_OBJS:%=../ip/$(OBJS_DIR)/%)
46cb442c5c53f16ece23bfe7f7f7bf44f78b0e46Mark Andrews
0f222d322b25373c4ef59d7c79f265b082ee98cdMark Andrews#
0f222d322b25373c4ef59d7c79f265b082ee98cdMark Andrews# Include common rules.
0f222d322b25373c4ef59d7c79f265b082ee98cdMark Andrews#
0f222d322b25373c4ef59d7c79f265b082ee98cdMark Andrewsinclude $(UTSBASE)/sparc/Makefile.sparc
0f222d322b25373c4ef59d7c79f265b082ee98cdMark Andrews
0f222d322b25373c4ef59d7c79f265b082ee98cdMark Andrews#
ae4f85dde3abb7d4afef9e869a83783cbf0aa29cMark Andrews# Define targets
ae4f85dde3abb7d4afef9e869a83783cbf0aa29cMark Andrews#
ae4f85dde3abb7d4afef9e869a83783cbf0aa29cMark AndrewsALL_TARGET = $(BINARY) $(SRC_CONFFILE)
ae4f85dde3abb7d4afef9e869a83783cbf0aa29cMark AndrewsLINT_TARGET = $(MODULE).lint
ae4f85dde3abb7d4afef9e869a83783cbf0aa29cMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
2132a56b5c6628925838165ae0640e55e3f36188Mark Andrews
2132a56b5c6628925838165ae0640e55e3f36188Mark Andrews#
b514e0cd0e7959a98dd59665553c8a3635ada10eMark Andrews# lint pass one enforcement
b514e0cd0e7959a98dd59665553c8a3635ada10eMark Andrews#
30884083d4149a8ff838b84dac1ad55c86948da8Mark AndrewsCFLAGS += $(CCVERBOSE)
d9ec2891475b8ed894a524a83370cfce30328569Mark Andrews
6e8a8077faf96d8da0b6cf738913f5f1f86e4008Mark Andrews#
6e8a8077faf96d8da0b6cf738913f5f1f86e4008Mark Andrews# depends on ip
5cb7e15551f502ab6948689cf3bc7dac6b56571eMark Andrews#
5cb7e15551f502ab6948689cf3bc7dac6b56571eMark AndrewsLDFLAGS += -dy -Ndrv/ip
5a6874e4ed544186ccb8519765be8c3a1804e033Mark Andrews
5a6874e4ed544186ccb8519765be8c3a1804e033Mark Andrews#
2ab6dfca4b7432de4fb7da4cd21ee0e02a695c01Mark Andrews# For now, disable these lint checks; maintainers should endeavor
2ab6dfca4b7432de4fb7da4cd21ee0e02a695c01Mark Andrews# to investigate and remove these for maximum lint coverage.
c553b3308e34edfaddbec57b3308bbbe362ef715Mark Andrews# Please do not carry these forward to new Makefiles.
c553b3308e34edfaddbec57b3308bbbe362ef715Mark Andrews#
24efdccd68d157b400bf68926798bc8f3f71c24cMark AndrewsLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
24efdccd68d157b400bf68926798bc8f3f71c24cMark AndrewsLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
a5bb4ad5dbd08f9178e807b1e55cb449b69d8173Mark Andrews
a5bb4ad5dbd08f9178e807b1e55cb449b69d8173Mark Andrews#
5e5b467e8c8abda496b7896241a46b05256cd22cMark Andrews# Default build targets.
5e5b467e8c8abda496b7896241a46b05256cd22cMark Andrews#
713ad87a7f95d06f4bb3e0b92b91172cbebd6c68Mark Andrews.KEEP_STATE:
713ad87a7f95d06f4bb3e0b92b91172cbebd6c68Mark Andrews
713ad87a7f95d06f4bb3e0b92b91172cbebd6c68Mark Andrewsdef: $(DEF_DEPS)
cb2d565b507027f9e5664fa7e167bb24faa7c8fbMark Andrews
cb2d565b507027f9e5664fa7e167bb24faa7c8fbMark Andrewsall: $(ALL_DEPS) $(SISCHECK_DEPS)
4f21f7feaff27d5356827e39a4537a60a5e4054cMark Andrews
4f21f7feaff27d5356827e39a4537a60a5e4054cMark Andrewsclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
1439214380abcc123e27a42d43a23ba441209ebeMark Andrews
1439214380abcc123e27a42d43a23ba441209ebeMark Andrewsclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
7d9b632906c756b215d65a3a08d77fe022807c2dMark Andrews
7d9b632906c756b215d65a3a08d77fe022807c2dMark Andrewslint: $(LINT_DEPS)
7d9b632906c756b215d65a3a08d77fe022807c2dMark Andrews
5d3083c4b5b11dfb653b15fd0eeb8e0cc9b175e0Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
5d3083c4b5b11dfb653b15fd0eeb8e0cc9b175e0Mark Andrews
52188225731669cd571984c45a1407a55c74ee78Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
52188225731669cd571984c45a1407a55c74ee78Mark Andrews
52188225731669cd571984c45a1407a55c74ee78Mark Andrewsinstall: $(INSTALL_DEPS) $(SISCHECK_DEPS)
52188225731669cd571984c45a1407a55c74ee78Mark Andrews
52188225731669cd571984c45a1407a55c74ee78Mark Andrews$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOTMODULE)
3cbc87c31f76262980d54ddbcdda7875be37b684Mark Andrews -$(RM) $@; ln $(ROOTMODULE) $@
bc29bb9062ab804cd79f4a1f8f366af8a040b636Mark Andrews
bc29bb9062ab804cd79f4a1f8f366af8a040b636Mark Andrews#
bc29bb9062ab804cd79f4a1f8f366af8a040b636Mark Andrews# Include common targets.
5a4854e226ce5eca99bcfb5557b36ea210bb25bcMark Andrews#
5a4854e226ce5eca99bcfb5557b36ea210bb25bcMark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
5a4854e226ce5eca99bcfb5557b36ea210bb25bcMark Andrews