Makefile revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
c78c39caab4cf8b5daefc9c65878f7f5ed3eb7a0Tinderbox User#
f536382c59dd492a14667b753816d920f9981f1cTinderbox User# The contents of this file are subject to the terms of the
ab496cc3df1648e9ad992a87c35c2c0870fdc69dTinderbox User# Common Development and Distribution License (the "License").
7c1468ed500356839a4a222517364e6ce18cb1a2Tinderbox User# You may not use this file except in compliance with the License.
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
287a6a8f9040dc43560cd69cddf83bfc0f53b76fTinderbox User# or http://www.opensolaris.org/os/licensing.
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# See the License for the specific language governing permissions
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# and limitations under the License.
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User#
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# If applicable, add the following below this CDDL HEADER, with the
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews#
d5637bdbb931ff79fced3d4858d83212ea58ed15Tinderbox User# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# uts/intel/spdsock/Makefile
d5637bdbb931ff79fced3d4858d83212ea58ed15Tinderbox User# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# This makefile drives the production of the spdsock driver
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# kernel module.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# intel implementation architecture dependent
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsUTSBASE = ../..
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Define the module and object file sets.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserMODULE = spdsock
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsOBJECTS = $(SPDSOCK_OBJS:%=$(OBJS_DIR)/%)
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox UserLINTS = $(SPDSOCK_OBJS:%.o=$(LINTS_DIR)/%.ln)
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONF_SRCDIR = $(UTSBASE)/common/inet/ip
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Include common rules.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox Userinclude $(UTSBASE)/intel/Makefile.intel
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt#
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User# Define targets
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntALL_TARGET = $(BINARY) $(SRC_CONFFILE)
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox UserLINT_TARGET = $(MODULE).lint
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Linkage dependencies
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsLDFLAGS += -dy -Ndrv/ip
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsINC_PATH += -I$(UTSBASE)/common/io/bpf
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# For now, disable these lint checks; maintainers should endeavor
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# to investigate and remove these for maximum lint coverage.
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox User# Please do not carry these forward to new Makefiles.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Default build targets.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User.KEEP_STATE:
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntdef: $(DEF_DEPS)
e40c4e4c17d4df338e2a7db0f84d8dbb3858964cTinderbox User
95637507c3d47481fbf0a8a8c750a57f944f677fMark Andrewsall: $(ALL_DEPS) $(SISCHECK_DEPS)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntlint: $(LINT_DEPS)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
7cc0a5d21ef046bfd630c4769943d896a7d7472cTinderbox Usermodlintlib: $(MODLINTLIB_DEPS)
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
ee11dfc481f2ef6a032a715454f6290961a722d2Tinderbox User
ee11dfc481f2ef6a032a715454f6290961a722d2Tinderbox Userinstall: $(INSTALL_DEPS) $(SISCHECK_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
e40c4e4c17d4df338e2a7db0f84d8dbb3858964cTinderbox User#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Include common targets.
e40c4e4c17d4df338e2a7db0f84d8dbb3858964cTinderbox User#
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox Userinclude $(UTSBASE)/intel/Makefile.targ
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews