14bff34e3Sthurlow# 24bff34e3Sthurlow# CDDL HEADER START 34bff34e3Sthurlow# 44bff34e3Sthurlow# The contents of this file are subject to the terms of the 54bff34e3Sthurlow# Common Development and Distribution License (the "License"). 64bff34e3Sthurlow# You may not use this file except in compliance with the License. 74bff34e3Sthurlow# 84bff34e3Sthurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94bff34e3Sthurlow# or http://www.opensolaris.org/os/licensing. 104bff34e3Sthurlow# See the License for the specific language governing permissions 114bff34e3Sthurlow# and limitations under the License. 124bff34e3Sthurlow# 134bff34e3Sthurlow# When distributing Covered Code, include this CDDL HEADER in each 144bff34e3Sthurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154bff34e3Sthurlow# If applicable, add the following below this CDDL HEADER, with the 164bff34e3Sthurlow# fields enclosed by brackets "[]" replaced with your own identifying 174bff34e3Sthurlow# information: Portions Copyright [yyyy] [name of copyright owner] 184bff34e3Sthurlow# 194bff34e3Sthurlow# CDDL HEADER END 204bff34e3Sthurlow# 214bff34e3Sthurlow# 224bff34e3Sthurlow# uts/sparc/smbfs/Makefile 234bff34e3Sthurlow# 24878eeb1bSGordon Ross# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 254bff34e3Sthurlow# Use is subject to license terms. 264bff34e3Sthurlow# 274bff34e3Sthurlow# This makefile drives the production of the smbfs (Server 284bff34e3Sthurlow# message block file system) kernel module. 294bff34e3Sthurlow# 304bff34e3Sthurlow# sparc architecture dependent 314bff34e3Sthurlow# 324bff34e3Sthurlow 334bff34e3Sthurlow# 344bff34e3Sthurlow# Path to the base of the uts directory tree (usually /usr/src/uts). 354bff34e3Sthurlow# 364bff34e3SthurlowUTSBASE = ../.. 374bff34e3Sthurlow 384bff34e3Sthurlow# 394bff34e3Sthurlow# Define the module and object file sets. 404bff34e3Sthurlow# 414bff34e3SthurlowMODULE = smbfs 424bff34e3SthurlowOBJECTS = $(SMBFS_OBJS:%=$(OBJS_DIR)/%) 434bff34e3SthurlowLINTS = $(SMBFS_OBJS:%.o=$(LINTS_DIR)/%.ln) 444bff34e3SthurlowROOTMODULE = $(USR_FS_DIR)/$(MODULE) 454bff34e3Sthurlow 464bff34e3Sthurlow# 474bff34e3Sthurlow# Include common rules. 484bff34e3Sthurlow# 494bff34e3Sthurlowinclude $(UTSBASE)/sparc/Makefile.sparc 504bff34e3Sthurlow 514bff34e3Sthurlow# 524bff34e3Sthurlow# Define targets 534bff34e3Sthurlow# 544bff34e3SthurlowALL_TARGET = $(BINARY) 554bff34e3SthurlowLINT_TARGET = $(MODULE).lint 569c9af259SGordon RossINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 574bff34e3Sthurlow 584bff34e3Sthurlow# 594bff34e3Sthurlow# Overrides. 604bff34e3Sthurlow# 614bff34e3SthurlowMODSTUBS_DIR = $(OBJS_DIR) 624bff34e3Sthurlow$(MODSTUBS_O) := AS_CPPFLAGS += -DSMBFS_MODULE 634bff34e3SthurlowCLEANFILES += $(MODSTUBS_O) 644bff34e3SthurlowC99MODE = $(C99_ENABLE) 654bff34e3SthurlowINC_PATH += -I$(UTSBASE)/common/fs/smbclnt 6602d09e03SGordon RossINC_PATH += -I$(COMMONBASE)/smbclnt 674bff34e3SthurlowLDFLAGS += -dy -Ndrv/nsmb 684bff34e3Sthurlow 69878eeb1bSGordon Ross# Until CR 4994570 is fixed... 70878eeb1bSGordon RossLINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2 71*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 72*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 73878eeb1bSGordon Ross 74878eeb1bSGordon Ross# The mb_put/md_get functions are intentionally used with and without 75878eeb1bSGordon Ross# return value checks, so filter those out like LGREP.2 does. 7602d09e03SGordon RossLGREP.nsmb = egrep -v ' ignored: (mb_init|mb_put|md_get)' 77878eeb1bSGordon RossLTAIL += 2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true 78878eeb1bSGordon Ross 7930167f6bSgwr# 8030167f6bSgwr# Default build targets. 8130167f6bSgwr# 824bff34e3Sthurlow.KEEP_STATE: 834bff34e3Sthurlow 8430167f6bSgwrdef: $(DEF_DEPS) 8530167f6bSgwr 864bff34e3Sthurlowall: $(ALL_DEPS) 874bff34e3Sthurlow 884bff34e3Sthurlowclean: $(CLEAN_DEPS) 894bff34e3Sthurlow 904bff34e3Sthurlowclobber: $(CLOBBER_DEPS) 914bff34e3Sthurlow 924bff34e3Sthurlowlint: $(LINT_DEPS) 934bff34e3Sthurlow 944bff34e3Sthurlowmodlintlib: $(MODLINTLIB_DEPS) 954bff34e3Sthurlow 964bff34e3Sthurlowclean.lint: $(CLEAN_LINT_DEPS) 974bff34e3Sthurlow 984bff34e3Sthurlowinstall: $(INSTALL_DEPS) 994bff34e3Sthurlow 1004bff34e3Sthurlow# 1014bff34e3Sthurlow# Include common targets. 1024bff34e3Sthurlow# 1034bff34e3Sthurlowinclude $(UTSBASE)/sparc/Makefile.targ 104