Makefile revision 02d09e03eb27f3a2dc299de704e45dae5173f43f
123N/A#
123N/A# CDDL HEADER START
1276N/A#
123N/A# The contents of this file are subject to the terms of the
1377N/A# Common Development and Distribution License (the "License").
123N/A# You may not use this file except in compliance with the License.
123N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# uts/intel/smbfs/Makefile
919N/A#
919N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
123N/A# Use is subject to license terms.
123N/A#
123N/A# This makefile drives the production of the smbfs (Server
123N/A# message block file system) kernel module.
493N/A#
123N/A# intel architecture dependent
123N/A#
1408N/A
123N/A#
911N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1408N/A#
1408N/AUTSBASE = ../..
1408N/A
911N/A#
123N/A# Define the module and object file sets.
1377N/A#
851N/AMODULE = smbfs
851N/AOBJECTS = $(SMBFS_OBJS:%=$(OBJS_DIR)/%)
851N/ALINTS = $(SMBFS_OBJS:%.o=$(LINTS_DIR)/%.ln)
123N/AROOTMODULE = $(USR_FS_DIR)/$(MODULE)
123N/A
123N/A#
123N/A# Include common rules.
123N/A#
169N/Ainclude $(UTSBASE)/intel/Makefile.intel
493N/A
969N/A#
123N/A# Define targets
1292N/A#
1292N/AALL_TARGET = $(BINARY)
1292N/ALINT_TARGET = $(MODULE).lint
123N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
493N/A
123N/A#
1196N/A# Overrides.
1196N/A#
1196N/AMODSTUBS_DIR = $(OBJS_DIR)
1196N/A$(MODSTUBS_O) := AS_CPPFLAGS += -DSMBFS_MODULE
1196N/ACLEANFILES += $(MODSTUBS_O)
123N/AC99MODE = $(C99_ENABLE)
123N/AINC_PATH += -I$(UTSBASE)/common/fs/smbclnt
123N/AINC_PATH += -I$(COMMONBASE)/smbclnt
970N/ALDFLAGS += -dy -Ndrv/nsmb
970N/A
970N/A# Until CR 4994570 is fixed...
123N/ALINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
123N/A
# 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_init|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