1b86efd96Sagiri# 2b86efd96Sagiri# CDDL HEADER START 3b86efd96Sagiri# 4b86efd96Sagiri# The contents of this file are subject to the terms of the 5b86efd96Sagiri# Common Development and Distribution License (the "License"). 6b86efd96Sagiri# You may not use this file except in compliance with the License. 7b86efd96Sagiri# 8b86efd96Sagiri# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9b86efd96Sagiri# or http://www.opensolaris.org/os/licensing. 10b86efd96Sagiri# See the License for the specific language governing permissions 11b86efd96Sagiri# and limitations under the License. 12b86efd96Sagiri# 13b86efd96Sagiri# When distributing Covered Code, include this CDDL HEADER in each 14b86efd96Sagiri# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15b86efd96Sagiri# If applicable, add the following below this CDDL HEADER, with the 16b86efd96Sagiri# fields enclosed by brackets "[]" replaced with your own identifying 17b86efd96Sagiri# information: Portions Copyright [yyyy] [name of copyright owner] 18b86efd96Sagiri# 19b86efd96Sagiri# CDDL HEADER END 20b86efd96Sagiri# 21b86efd96Sagiri# 225ce5f367Srshoaib# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23b86efd96Sagiri# Use is subject to license terms. 24b86efd96Sagiri# 25*7014882cSRichard Lowe 26b86efd96Sagiri# 27b86efd96Sagiri# This makefile drives the production of the rds driver 28b86efd96Sagiri# kernel module. 29b86efd96Sagiri# 30b86efd96Sagiri# sparc architecture dependent 31b86efd96Sagiri# 32b86efd96Sagiri 33b86efd96Sagiri# 34b86efd96Sagiri# Path to the base of the uts directory tree (usually /usr/src/uts). 35b86efd96Sagiri# 36b86efd96SagiriUTSBASE = ../.. 37b86efd96Sagiri 38b86efd96Sagiri# 39b86efd96Sagiri# Define the module and object file sets. 40b86efd96Sagiri# 41b86efd96SagiriMODULE = rdsib 42b86efd96SagiriOBJECTS = $(RDSIB_OBJS:%=$(OBJS_DIR)/%) 43b86efd96SagiriLINTS = $(RDSIB_OBJS:%.o=$(LINTS_DIR)/%.ln) 44b86efd96SagiriROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 45b86efd96SagiriCONF_SRCDIR = $(UTSBASE)/common/io/ib/clients/rds 46b86efd96Sagiri 47b86efd96Sagiri# 48b86efd96Sagiri# Include common rules. 49b86efd96Sagiri# 50b86efd96Sagiriinclude $(UTSBASE)/sparc/Makefile.sparc 51b86efd96Sagiri 52b86efd96Sagiri# 53b86efd96Sagiri# Define targets 54b86efd96Sagiri# 55b86efd96SagiriALL_TARGET = $(BINARY) $(SRC_CONFILE) 56b86efd96SagiriLINT_TARGET = $(MODULE).lint 57b86efd96SagiriINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 58b86efd96Sagiri 59b86efd96Sagiri# 60b86efd96Sagiri# lint pass one enforcement and OS version 61b86efd96Sagiri# 62b86efd96SagiriCFLAGS += $(CCVERBOSE) 63b86efd96Sagiri 64*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 65*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 66*7014882cSRichard Lowe 675ce5f367SrshoaibLDFLAGS += -dy -Ndrv/rds -Nmisc/ibtl -Nmisc/ibcm -Ndrv/ip 68b86efd96Sagiri 69b86efd96Sagiri# 70b86efd96Sagiri# Default build targets. 71b86efd96Sagiri# 72b86efd96Sagiri.KEEP_STATE: 73b86efd96Sagiri 74b86efd96Sagiridef: $(DEF_DEPS) 75b86efd96Sagiri 76b86efd96Sagiriall: $(ALL_DEPS) 77b86efd96Sagiri 78b86efd96Sagiriclean: $(CLEAN_DEPS) 79b86efd96Sagiri 80b86efd96Sagiriclobber: $(CLOBBER_DEPS) 81b86efd96Sagiri 82b86efd96Sagirilint: $(LINT_DEPS) 83b86efd96Sagiri 84b86efd96Sagirimodlintlib: $(MODLINTLIB_DEPS) lint64 85b86efd96Sagiri 86b86efd96Sagiriclean.lint: $(CLEAN_LINT_DEPS) 87b86efd96Sagiri 88b86efd96Sagiriinstall: $(INSTALL_DEPS) 89b86efd96Sagiri 90b86efd96Sagiri$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOTMODULE) 91b86efd96Sagiri -$(RM) $@; ln $(ROOTMODULE) $@ 92b86efd96Sagiri 93b86efd96Sagiri# 94b86efd96Sagiri# Include common targets. 95b86efd96Sagiri# 96b86efd96Sagiriinclude $(UTSBASE)/sparc/Makefile.targ 97