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