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/intel/smbfs/Makefile 234bff34e3Sthurlow# 24878eeb1bSGordon Ross# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 254bff34e3Sthurlow# Use is subject to license terms. 264bff34e3Sthurlow# 27b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 284bff34e3Sthurlow 294bff34e3Sthurlow# 304bff34e3Sthurlow# Path to the base of the uts directory tree (usually /usr/src/uts). 314bff34e3Sthurlow# 324bff34e3SthurlowUTSBASE = ../.. 334bff34e3Sthurlow 344bff34e3Sthurlow# 354bff34e3Sthurlow# Define the module and object file sets. 364bff34e3Sthurlow# 374bff34e3SthurlowMODULE = smbfs 384bff34e3SthurlowOBJECTS = $(SMBFS_OBJS:%=$(OBJS_DIR)/%) 394bff34e3SthurlowROOTMODULE = $(USR_FS_DIR)/$(MODULE) 404bff34e3Sthurlow 414bff34e3Sthurlow# 424bff34e3Sthurlow# Include common rules. 434bff34e3Sthurlow# 444bff34e3Sthurlowinclude $(UTSBASE)/intel/Makefile.intel 454bff34e3Sthurlow 464bff34e3Sthurlow# 474bff34e3Sthurlow# Define targets 484bff34e3Sthurlow# 494bff34e3SthurlowALL_TARGET = $(BINARY) 509c9af259SGordon RossINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 514bff34e3Sthurlow 524bff34e3Sthurlow# 534bff34e3Sthurlow# Overrides. 544bff34e3Sthurlow# 554bff34e3SthurlowINC_PATH += -I$(UTSBASE)/common/fs/smbclnt 5602d09e03SGordon RossINC_PATH += -I$(COMMONBASE)/smbclnt 57*82d0151aSRichard LoweLDFLAGS += -Ndrv/nsmb 584bff34e3Sthurlow 590aaef2f5SRichard Lowe# 600aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 610aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 620aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles. 630aaef2f5SRichard Lowe# 647014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 65d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 66878eeb1bSGordon Ross 67878eeb1bSGordon Ross# The mb_put/md_get functions are intentionally used with and without 680aaef2f5SRichard Lowe# return value checks, so filter those out. 690aaef2f5SRichard Lowe# 700aaef2f5SRichard Lowe# also needs further work. 710aaef2f5SRichard LoweSMOFF += all_func_returns,signed,deref_check 72878eeb1bSGordon Ross 734bff34e3Sthurlow# 744bff34e3Sthurlow# Default build targets. 754bff34e3Sthurlow# 764bff34e3Sthurlow.KEEP_STATE: 774bff34e3Sthurlow 784bff34e3Sthurlowdef: $(DEF_DEPS) 794bff34e3Sthurlow 804bff34e3Sthurlowall: $(ALL_DEPS) 814bff34e3Sthurlow 824bff34e3Sthurlowclean: $(CLEAN_DEPS) 834bff34e3Sthurlow 844bff34e3Sthurlowclobber: $(CLOBBER_DEPS) 854bff34e3Sthurlow 864bff34e3Sthurlowinstall: $(INSTALL_DEPS) 874bff34e3Sthurlow 884bff34e3Sthurlow# 894bff34e3Sthurlow# Include common targets. 904bff34e3Sthurlow# 914bff34e3Sthurlowinclude $(UTSBASE)/intel/Makefile.targ 92