4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER START
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# The contents of this file are subject to the terms of the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Common Development and Distribution License (the "License").
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You may not use this file except in compliance with the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# or http://www.opensolaris.org/os/licensing.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# See the License for the specific language governing permissions
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# and limitations under the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# When distributing Covered Code, include this CDDL HEADER in each
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If applicable, add the following below this CDDL HEADER, with the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# fields enclosed by brackets "[]" replaced with your own identifying
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# information: Portions Copyright [yyyy] [name of copyright owner]
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER END
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# uts/intel/smbfs/Makefile
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Use is subject to license terms.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# This makefile drives the production of the smbfs (Server
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# message block file system) kernel module.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# intel architecture dependent
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Path to the base of the uts directory tree (usually /usr/src/uts).
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowUTSBASE = ../..
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Define the module and object file sets.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE = smbfs
4bff34e37def8a90f9194d81bc345c52ba20086athurlowOBJECTS = $(SMBFS_OBJS:%=$(OBJS_DIR)/%)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLINTS = $(SMBFS_OBJS:%.o=$(LINTS_DIR)/%.ln)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowROOTMODULE = $(USR_FS_DIR)/$(MODULE)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Include common rules.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinclude $(UTSBASE)/intel/Makefile.intel
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Define targets
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowALL_TARGET = $(BINARY)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLINT_TARGET = $(MODULE).lint
9c9af2590af49bb395bc8d2eace0f2d4ea16d165Gordon RossINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Overrides.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODSTUBS_DIR = $(OBJS_DIR)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(MODSTUBS_O) := AS_CPPFLAGS += -DSMBFS_MODULE
4bff34e37def8a90f9194d81bc345c52ba20086athurlowCLEANFILES += $(MODSTUBS_O)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowC99MODE = $(C99_ENABLE)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowINC_PATH += -I$(UTSBASE)/common/fs/smbclnt
02d09e03eb27f3a2dc299de704e45dae5173f43fGordon RossINC_PATH += -I$(COMMONBASE)/smbclnt
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLDFLAGS += -dy -Ndrv/nsmb
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross# Until CR 4994570 is fixed...
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon RossLINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross# The mb_put/md_get functions are intentionally used with and without
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross# return value checks, so filter those out like LGREP.2 does.
02d09e03eb27f3a2dc299de704e45dae5173f43fGordon RossLGREP.nsmb = egrep -v ' ignored: (mb_init|mb_put|md_get)'
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon RossLTAIL += 2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Default build targets.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow.KEEP_STATE:
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowdef: $(DEF_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowall: $(ALL_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclean: $(CLEAN_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclobber: $(CLOBBER_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowlint: $(LINT_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowmodlintlib: $(MODLINTLIB_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclean.lint: $(CLEAN_LINT_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall: $(INSTALL_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Include common targets.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinclude $(UTSBASE)/intel/Makefile.targ