1b494511aSVenki Rajagopalan# 2b494511aSVenki Rajagopalan# CDDL HEADER START 3b494511aSVenki Rajagopalan# 4b494511aSVenki Rajagopalan# The contents of this file are subject to the terms of the 5b494511aSVenki Rajagopalan# Common Development and Distribution License (the "License"). 6b494511aSVenki Rajagopalan# You may not use this file except in compliance with the License. 7b494511aSVenki Rajagopalan# 8b494511aSVenki Rajagopalan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9b494511aSVenki Rajagopalan# or http://www.opensolaris.org/os/licensing. 10b494511aSVenki Rajagopalan# See the License for the specific language governing permissions 11b494511aSVenki Rajagopalan# and limitations under the License. 12b494511aSVenki Rajagopalan# 13b494511aSVenki Rajagopalan# When distributing Covered Code, include this CDDL HEADER in each 14b494511aSVenki Rajagopalan# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15b494511aSVenki Rajagopalan# If applicable, add the following below this CDDL HEADER, with the 16b494511aSVenki Rajagopalan# fields enclosed by brackets "[]" replaced with your own identifying 17b494511aSVenki Rajagopalan# information: Portions Copyright [yyyy] [name of copyright owner] 18b494511aSVenki Rajagopalan# 19b494511aSVenki Rajagopalan# CDDL HEADER END 20b494511aSVenki Rajagopalan# 21b494511aSVenki Rajagopalan 22b494511aSVenki Rajagopalan# 23b494511aSVenki Rajagopalan# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 24b494511aSVenki Rajagopalan# 25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 26b494511aSVenki Rajagopalan 27b494511aSVenki Rajagopalan# 28b494511aSVenki Rajagopalan# This makefile drives the production of the EoIB Nexus driver 29b494511aSVenki Rajagopalan# 30b494511aSVenki Rajagopalan# intel architecture dependent 31b494511aSVenki Rajagopalan# 32b494511aSVenki Rajagopalan 33b494511aSVenki Rajagopalan# 34b494511aSVenki Rajagopalan# Path to the base of the uts directory tree (usually /usr/src/uts) 35b494511aSVenki Rajagopalan# 36b494511aSVenki RajagopalanUTSBASE = ../.. 37b494511aSVenki Rajagopalan 38b494511aSVenki Rajagopalan# 39b494511aSVenki Rajagopalan# Define the module and object file sets 40b494511aSVenki Rajagopalan# 41b494511aSVenki RajagopalanMODULE = eibnx 42b494511aSVenki RajagopalanOBJECTS = $(EIBNX_OBJS:%=$(OBJS_DIR)/%) 43b494511aSVenki RajagopalanROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 44b494511aSVenki RajagopalanCONF_SRCDIR = $(UTSBASE)/common/io/ib/clients/eoib 45b494511aSVenki Rajagopalan 46b494511aSVenki Rajagopalan# 47b494511aSVenki Rajagopalan# Include common rules 48b494511aSVenki Rajagopalan# 49b494511aSVenki Rajagopalaninclude $(UTSBASE)/intel/Makefile.intel 50b494511aSVenki Rajagopalan 51b494511aSVenki Rajagopalan# 52b494511aSVenki Rajagopalan# Define targets 53b494511aSVenki Rajagopalan# 54b494511aSVenki RajagopalanALL_TARGET = $(BINARY) $(SRC_CONFILE) 55b494511aSVenki RajagopalanINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 56b494511aSVenki Rajagopalan 57b494511aSVenki Rajagopalan# Module specific debug flag 58b494511aSVenki Rajagopalan# 59b494511aSVenki RajagopalanCPPFLAGS += -DENX_DEBUG 60b494511aSVenki Rajagopalan 61b494511aSVenki Rajagopalan# 62b494511aSVenki Rajagopalan# Depends on misc/ibtl 63b494511aSVenki Rajagopalan# 64*82d0151aSRichard LoweLDFLAGS += -Nmisc/ibcm -Nmisc/ibtl 65b494511aSVenki Rajagopalan 66b494511aSVenki Rajagopalan# 670aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 680aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 690aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles. 70b494511aSVenki Rajagopalan# 710aaef2f5SRichard LoweCFLAGS += $(CCVERBOSE) 727014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 73d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 747014882cSRichard Lowe 75b6b206fcSJohn Levon# needs work 76b6b206fcSJohn Levon$(OBJS_DIR)/enx_ibt.o := SMOFF += deref_check 77b6b206fcSJohn Levon 78b494511aSVenki Rajagopalan# 79b494511aSVenki Rajagopalan# Default build targets 80b494511aSVenki Rajagopalan# 81b494511aSVenki Rajagopalan.KEEP_STATE: 82b494511aSVenki Rajagopalan 83b494511aSVenki Rajagopalandef: $(DEF_DEPS) 84b494511aSVenki Rajagopalan 85b494511aSVenki Rajagopalanall: $(ALL_DEPS) 86b494511aSVenki Rajagopalan 87b494511aSVenki Rajagopalanclean: $(CLEAN_DEPS) 88b494511aSVenki Rajagopalan 89b494511aSVenki Rajagopalanclobber: $(CLOBBER_DEPS) 90b494511aSVenki Rajagopalan 91b494511aSVenki Rajagopalaninstall: $(INSTALL_DEPS) 92b494511aSVenki Rajagopalan 93b494511aSVenki Rajagopalan# 94b494511aSVenki Rajagopalan# Include common targets 95b494511aSVenki Rajagopalan# 96b494511aSVenki Rajagopalaninclude $(UTSBASE)/intel/Makefile.targ 97