Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# CDDL HEADER START
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# The contents of this file are subject to the terms of the
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Common Development and Distribution License (the "License").
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# You may not use this file except in compliance with the License.
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15a44745412679c30a6d022733925af70a38b715David Lawrence# or http://www.opensolaris.org/os/licensing.
15a44745412679c30a6d022733925af70a38b715David Lawrence# See the License for the specific language governing permissions
15a44745412679c30a6d022733925af70a38b715David Lawrence# and limitations under the License.
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# When distributing Covered Code, include this CDDL HEADER in each
15a44745412679c30a6d022733925af70a38b715David Lawrence# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If applicable, add the following below this CDDL HEADER, with the
0e40083fdd5445703bd30e46e5bfe7d047bced12Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# CDDL HEADER END
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# uts/intel/nfssrv/Makefile
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
c2bc56dc65b4b103a5600565680eb5f33fa4c90bMark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Use is subject to license terms.
dfe3edd7cd2cf9d22abfc8985bc25551583b3d46Andreas Gustafsson#
dfe3edd7cd2cf9d22abfc8985bc25551583b3d46Andreas Gustafsson
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# This makefile drives the production of the nfs server-specific
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# kernel module.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington# intel implementation architecture dependent
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington#
08a768e82ad64ede97f640c88e02984b59122753Michael Graff
0e40083fdd5445703bd30e46e5bfe7d047bced12Brian Wellington#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Path to the base of the uts directory tree (usually /usr/src/uts).
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington#
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonUTSBASE = ../..
08a768e82ad64ede97f640c88e02984b59122753Michael Graff
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence#
08a768e82ad64ede97f640c88e02984b59122753Michael Graff# Define the module and object file sets.
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence#
4cd765650776027d05fe7fca248478918e02e63bDavid LawrenceMODULE = nfssrv
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceOBJECTS = $(NFSSRV_OBJS:%=$(OBJS_DIR)/%)
4cd765650776027d05fe7fca248478918e02e63bDavid LawrenceLINTS = $(NFSSRV_OBJS:%.o=$(LINTS_DIR)/%.ln)
09f3e7461fd22076c01999b40435648de8c9da73Brian WellingtonROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews#
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# Include common rules.
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrenceinclude $(UTSBASE)/intel/Makefile.intel
259b1b8c037eb0c306f799a7880ed6b2c43c28d3Andreas Gustafsson
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley#
259b1b8c037eb0c306f799a7880ed6b2c43c28d3Andreas Gustafsson# Define targets
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyALL_TARGET = $(BINARY)
01b8865b1462ba219c90cf6c00f1bf0fdf780d9bBrian WellingtonLINT_TARGET = $(MODULE).lint
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Overrides.
42833075debe1b1d4c4d39e94cb8f66e3fba2a0fBrian Wellington#
dfe3edd7cd2cf9d22abfc8985bc25551583b3d46Andreas GustafssonLDFLAGS += -dy -Nstrmod/rpcmod -Nfs/nfs -Nmisc/rpcsec
4cd765650776027d05fe7fca248478918e02e63bDavid LawrenceLDFLAGS += -Nmisc/klmmod
5da31b1ebedaedf1aa83d7ef853e1db843027f61Andreas Gustafsson
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews#
1ecd9d30a037218f01f8e15817d00ee431be0160Andreas Gustafsson# For now, disable these lint checks; maintainers should endeavor
87983da955bf63128de85d180359bdc418516c3cDavid Lawrence# to investigate and remove these for maximum lint coverage.
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence# Please do not carry these forward to new Makefiles.
dfe3edd7cd2cf9d22abfc8985bc25551583b3d46Andreas Gustafsson#
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark AndrewsLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
dfe3edd7cd2cf9d22abfc8985bc25551583b3d46Andreas GustafssonLINTTAGS += -erroff=E_STATIC_UNUSED
4cd765650776027d05fe7fca248478918e02e63bDavid LawrenceLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
4cd765650776027d05fe7fca248478918e02e63bDavid LawrenceLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
4cd765650776027d05fe7fca248478918e02e63bDavid LawrenceLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence
4cd765650776027d05fe7fca248478918e02e63bDavid LawrenceCERRWARN += -_gcc=-Wno-parentheses
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark AndrewsCERRWARN += -_gcc=-Wno-type-limits
4cd765650776027d05fe7fca248478918e02e63bDavid LawrenceCERRWARN += -_gcc=-Wno-unused-variable
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark AndrewsCERRWARN += -_gcc=-Wno-unused-label
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceCERRWARN += -_gcc=-Wno-unused-function
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCERRWARN += -_gcc=-Wno-uninitialized
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCERRWARN += -_gcc=-Wno-switch
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# Default build targets.
c229b778b82c40f2186bfd6afcad2ee34c657216David Lawrence#
922e6a3c2ac4ef900dd9dc99f0cc137f18372583Andreas Gustafsson.KEEP_STATE:
01b8865b1462ba219c90cf6c00f1bf0fdf780d9bBrian Wellington
01b8865b1462ba219c90cf6c00f1bf0fdf780d9bBrian Wellingtondef: $(DEF_DEPS)
c229b778b82c40f2186bfd6afcad2ee34c657216David Lawrence
01b8865b1462ba219c90cf6c00f1bf0fdf780d9bBrian Wellingtonall: $(ALL_DEPS)
c229b778b82c40f2186bfd6afcad2ee34c657216David Lawrence
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrenceclean: $(CLEAN_DEPS)
53aba5065d2ee3c103912ecfe865418bad6fa576Brian Wellington
a91e1db13ea5ac84de5f96374fd24b5aa0ad249fMark Andrewsclobber: $(CLOBBER_DEPS)
53aba5065d2ee3c103912ecfe865418bad6fa576Brian Wellington
c229b778b82c40f2186bfd6afcad2ee34c657216David Lawrencelint: $(LINT_DEPS)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencemodlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ