Makefile revision 878eeb1b7b5326d4b564b97bcde1b89342878beb
2086N/A#
2086N/A# CDDL HEADER START
2086N/A#
2086N/A# The contents of this file are subject to the terms of the
2086N/A# Common Development and Distribution License (the "License").
2086N/A# You may not use this file except in compliance with the License.
2086N/A#
2086N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2086N/A# or http://www.opensolaris.org/os/licensing.
2086N/A# See the License for the specific language governing permissions
2086N/A# and limitations under the License.
2086N/A#
2086N/A# When distributing Covered Code, include this CDDL HEADER in each
2086N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2086N/A# If applicable, add the following below this CDDL HEADER, with the
2086N/A# fields enclosed by brackets "[]" replaced with your own identifying
2086N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2086N/A#
2086N/A# CDDL HEADER END
2086N/A#
2086N/A#
2086N/A# uts/intel/smbfs/Makefile
3140N/A#
2122N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2086N/A# Use is subject to license terms.
2086N/A#
2086N/A# This makefile drives the production of the smbfs (Server
2086N/A# message block file system) kernel module.
2086N/A#
2086N/A# intel architecture dependent
2086N/A#
2086N/A
2086N/A#
2086N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
2086N/A#
2086N/AUTSBASE = ../..
2086N/A
2086N/A#
2086N/A# Define the module and object file sets.
2086N/A#
2086N/AMODULE = smbfs
2086N/AOBJECTS = $(SMBFS_OBJS:%=$(OBJS_DIR)/%)
2086N/ALINTS = $(SMBFS_OBJS:%.o=$(LINTS_DIR)/%.ln)
2086N/AROOTMODULE = $(USR_FS_DIR)/$(MODULE)
2086N/A
2086N/A#
2086N/A# Include common rules.
2086N/A#
2086N/Ainclude $(UTSBASE)/intel/Makefile.intel
2086N/A
2086N/A#
2086N/A# Define targets
2086N/A#
2086N/AALL_TARGET = $(BINARY)
2086N/ALINT_TARGET = $(MODULE).lint
2086N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
2086N/A
2086N/A#
2086N/A# Overrides.
2086N/A#
2086N/AMODSTUBS_DIR = $(OBJS_DIR)
2086N/A$(MODSTUBS_O) := AS_CPPFLAGS += -DSMBFS_MODULE
2086N/ACLEANFILES += $(MODSTUBS_O)
2086N/AC99MODE = $(C99_ENABLE)
2086N/AINC_PATH += -I$(UTSBASE)/common/fs/smbclnt
3140N/ALDFLAGS += -dy -Ndrv/nsmb
3140N/A
3140N/ALINTTAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
3140N/ALINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
3140N/A# Until CR 4994570 is fixed...
3140N/ALINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
# The mb_put/md_get functions are intentionally used with and without
# return value checks, so filter those out like LGREP.2 does.
LGREP.nsmb = egrep -v ' ignored: (mb_put|md_get)'
LTAIL += 2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ