16007Sthurlow# 26007Sthurlow# CDDL HEADER START 36007Sthurlow# 46007Sthurlow# The contents of this file are subject to the terms of the 56007Sthurlow# Common Development and Distribution License (the "License"). 66007Sthurlow# You may not use this file except in compliance with the License. 76007Sthurlow# 86007Sthurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 96007Sthurlow# or http://www.opensolaris.org/os/licensing. 106007Sthurlow# See the License for the specific language governing permissions 116007Sthurlow# and limitations under the License. 126007Sthurlow# 136007Sthurlow# When distributing Covered Code, include this CDDL HEADER in each 146007Sthurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 156007Sthurlow# If applicable, add the following below this CDDL HEADER, with the 166007Sthurlow# fields enclosed by brackets "[]" replaced with your own identifying 176007Sthurlow# information: Portions Copyright [yyyy] [name of copyright owner] 186007Sthurlow# 196007Sthurlow# CDDL HEADER END 206007Sthurlow# 216007Sthurlow# 226007Sthurlow# uts/intel/smbfs/Makefile 236007Sthurlow# 2410631SGordon.Ross@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 256007Sthurlow# Use is subject to license terms. 266007Sthurlow# 276007Sthurlow# This makefile drives the production of the smbfs (Server 286007Sthurlow# message block file system) kernel module. 296007Sthurlow# 306007Sthurlow# intel architecture dependent 316007Sthurlow# 326007Sthurlow 336007Sthurlow# 346007Sthurlow# Path to the base of the uts directory tree (usually /usr/src/uts). 356007Sthurlow# 366007SthurlowUTSBASE = ../.. 376007Sthurlow 386007Sthurlow# 396007Sthurlow# Define the module and object file sets. 406007Sthurlow# 416007SthurlowMODULE = smbfs 426007SthurlowOBJECTS = $(SMBFS_OBJS:%=$(OBJS_DIR)/%) 436007SthurlowLINTS = $(SMBFS_OBJS:%.o=$(LINTS_DIR)/%.ln) 446007SthurlowROOTMODULE = $(USR_FS_DIR)/$(MODULE) 456007Sthurlow 466007Sthurlow# 476007Sthurlow# Include common rules. 486007Sthurlow# 496007Sthurlowinclude $(UTSBASE)/intel/Makefile.intel 506007Sthurlow 516007Sthurlow# 526007Sthurlow# Define targets 536007Sthurlow# 546007SthurlowALL_TARGET = $(BINARY) 556007SthurlowLINT_TARGET = $(MODULE).lint 568271SGordon.Ross@Sun.COMINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 576007Sthurlow 586007Sthurlow# 596007Sthurlow# Overrides. 606007Sthurlow# 616007SthurlowMODSTUBS_DIR = $(OBJS_DIR) 626007Sthurlow$(MODSTUBS_O) := AS_CPPFLAGS += -DSMBFS_MODULE 636007SthurlowCLEANFILES += $(MODSTUBS_O) 646007SthurlowC99MODE = $(C99_ENABLE) 656007SthurlowINC_PATH += -I$(UTSBASE)/common/fs/smbclnt 66*11332SGordon.Ross@Sun.COMINC_PATH += -I$(COMMONBASE)/smbclnt 676007SthurlowLDFLAGS += -dy -Ndrv/nsmb 686007Sthurlow 6910631SGordon.Ross@Sun.COM# Until CR 4994570 is fixed... 7010631SGordon.Ross@Sun.COMLINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2 7110631SGordon.Ross@Sun.COM 7210631SGordon.Ross@Sun.COM# The mb_put/md_get functions are intentionally used with and without 7310631SGordon.Ross@Sun.COM# return value checks, so filter those out like LGREP.2 does. 74*11332SGordon.Ross@Sun.COMLGREP.nsmb = egrep -v ' ignored: (mb_init|mb_put|md_get)' 7510631SGordon.Ross@Sun.COMLTAIL += 2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true 7610631SGordon.Ross@Sun.COM 776007Sthurlow# 786007Sthurlow# Default build targets. 796007Sthurlow# 806007Sthurlow.KEEP_STATE: 816007Sthurlow 826007Sthurlowdef: $(DEF_DEPS) 836007Sthurlow 846007Sthurlowall: $(ALL_DEPS) 856007Sthurlow 866007Sthurlowclean: $(CLEAN_DEPS) 876007Sthurlow 886007Sthurlowclobber: $(CLOBBER_DEPS) 896007Sthurlow 906007Sthurlowlint: $(LINT_DEPS) 916007Sthurlow 926007Sthurlowmodlintlib: $(MODLINTLIB_DEPS) 936007Sthurlow 946007Sthurlowclean.lint: $(CLEAN_LINT_DEPS) 956007Sthurlow 966007Sthurlowinstall: $(INSTALL_DEPS) 976007Sthurlow 986007Sthurlow# 996007Sthurlow# Include common targets. 1006007Sthurlow# 1016007Sthurlowinclude $(UTSBASE)/intel/Makefile.targ 102