1c0dd49bdSEiji Ota# 2c0dd49bdSEiji Ota# CDDL HEADER START 3c0dd49bdSEiji Ota# 4c0dd49bdSEiji Ota# The contents of this file are subject to the terms of the 5c0dd49bdSEiji Ota# Common Development and Distribution License (the "License"). 6c0dd49bdSEiji Ota# You may not use this file except in compliance with the License. 7c0dd49bdSEiji Ota# 8c0dd49bdSEiji Ota# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9c0dd49bdSEiji Ota# or http://www.opensolaris.org/os/licensing. 10c0dd49bdSEiji Ota# See the License for the specific language governing permissions 11c0dd49bdSEiji Ota# and limitations under the License. 12c0dd49bdSEiji Ota# 13c0dd49bdSEiji Ota# When distributing Covered Code, include this CDDL HEADER in each 14c0dd49bdSEiji Ota# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15c0dd49bdSEiji Ota# If applicable, add the following below this CDDL HEADER, with the 16c0dd49bdSEiji Ota# fields enclosed by brackets "[]" replaced with your own identifying 17c0dd49bdSEiji Ota# information: Portions Copyright [yyyy] [name of copyright owner] 18c0dd49bdSEiji Ota# 19c0dd49bdSEiji Ota# CDDL HEADER END 20c0dd49bdSEiji Ota# 21c0dd49bdSEiji Ota# 22c0dd49bdSEiji Ota# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 23c0dd49bdSEiji Ota# 24b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 25c0dd49bdSEiji Ota 26c0dd49bdSEiji Ota# 27c0dd49bdSEiji Ota# Path to the base of the uts directory tree (usually /usr/src/uts). 28c0dd49bdSEiji Ota# 29c0dd49bdSEiji OtaUTSBASE = ../.. 30c0dd49bdSEiji Ota 31c0dd49bdSEiji Ota# 32c0dd49bdSEiji Ota# Define the module and object file sets. 33c0dd49bdSEiji Ota# 34c0dd49bdSEiji OtaMODULE = rdsv3 35c0dd49bdSEiji OtaOBJECTS = $(RDSV3_OBJS:%=$(OBJS_DIR)/%) 36c0dd49bdSEiji OtaLINTS = $(RDSV3_OBJS:%.o=$(LINTS_DIR)/%.ln) 37c0dd49bdSEiji OtaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 38c0dd49bdSEiji OtaCFLAGS += $(CCVERBOSE) $(_XPG4_2) 39b27516f5SagiriLDFLAGS += -dy -Nfs/sockfs -Nmisc/ksocket -Ndrv/ip -Nmisc/ibtl -Nmisc/ibcm -Nmisc/sol_ofs 40c0dd49bdSEiji OtaCONF_SRCDIR = $(UTSBASE)/common/io/ib/clients/rdsv3 41c0dd49bdSEiji Ota# 42c0dd49bdSEiji Ota# Include common rules. 43c0dd49bdSEiji Ota# 44c0dd49bdSEiji Otainclude $(UTSBASE)/intel/Makefile.intel 45c0dd49bdSEiji Ota 46c0dd49bdSEiji Ota# CFLAGS += -DOFA_SOLARIS 47c0dd49bdSEiji Ota 48c0dd49bdSEiji Ota# 49c0dd49bdSEiji Ota# Disable these lint checks since some errors suppressed here are 50c0dd49bdSEiji Ota# in the OFED code, but we'd like to keep it as is as much as possible. 51c0dd49bdSEiji Ota# Note. maintainers should endeavor to investigate and remove these for 52c0dd49bdSEiji Ota# maximum lint coverage, but please do not carry these forward to new 53c0dd49bdSEiji Ota# Makefiles blindly. 54c0dd49bdSEiji Ota# 55c0dd49bdSEiji OtaLINTTAGS += -erroff=E_STATIC_UNUSED 56c0dd49bdSEiji OtaLINTTAGS += -erroff=E_CONSTANT_CONDITION 57c0dd49bdSEiji OtaLINTTAGS += -erroff=E_FUNC_VAR_UNUSED 58c0dd49bdSEiji OtaLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 59c0dd49bdSEiji OtaLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 60c0dd49bdSEiji OtaLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 61c0dd49bdSEiji OtaLINTTAGS += -erroff=E_FUNC_SET_NOT_USED 62c0dd49bdSEiji Ota 637014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 647014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 657014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 66*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 677014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 687014882cSRichard Lowe 69b6b206fcSJohn Levon# needs work 70b6b206fcSJohn LevonSMATCH=off 71b6b206fcSJohn Levon 72c0dd49bdSEiji Ota# 73c0dd49bdSEiji Ota# Define targets 74c0dd49bdSEiji Ota# 75c0dd49bdSEiji OtaALL_TARGET = $(BINARY) $(SRC_CONFILE) 76c0dd49bdSEiji OtaLINT_TARGET = $(MODULE).lint 77c0dd49bdSEiji OtaINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 78c0dd49bdSEiji Ota 79c0dd49bdSEiji Ota# 80c0dd49bdSEiji Ota# Default build targets. 81c0dd49bdSEiji Ota# 82c0dd49bdSEiji Ota.KEEP_STATE: 83c0dd49bdSEiji Ota 84c0dd49bdSEiji Otadef: $(DEF_DEPS) 85c0dd49bdSEiji Ota 86c0dd49bdSEiji Otaall: $(ALL_DEPS) 87c0dd49bdSEiji Ota 88c0dd49bdSEiji Otaclean: $(CLEAN_DEPS) 89c0dd49bdSEiji Ota 90c0dd49bdSEiji Otaclobber: $(CLOBBER_DEPS) 91c0dd49bdSEiji Ota 92c0dd49bdSEiji Otalint: $(LINT_DEPS) 93c0dd49bdSEiji Ota 94c0dd49bdSEiji Otamodlintlib: $(MODLINTLIB_DEPS) 95c0dd49bdSEiji Ota 96c0dd49bdSEiji Otaclean.lint: $(CLEAN_LINT_DEPS) 97c0dd49bdSEiji Ota 98c0dd49bdSEiji Otainstall: $(INSTALL_DEPS) 99c0dd49bdSEiji Ota 100c0dd49bdSEiji Ota# 101c0dd49bdSEiji Ota# Include common targets. 102c0dd49bdSEiji Ota# 103c0dd49bdSEiji Otainclude $(UTSBASE)/intel/Makefile.targ 104c0dd49bdSEiji Ota 105