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# 22b86efd96Sagiri# Copyright 2006 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 = rds 42b86efd96SagiriOBJECTS = $(RDS_OBJS:%=$(OBJS_DIR)/%) 43b86efd96SagiriLINTS = $(RDS_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-uninitialized 65*7014882cSRichard Lowe 66b86efd96SagiriLDFLAGS += -dy -Nfs/sockfs -Ndrv/ip 67b86efd96Sagiri 68b86efd96Sagiri# 69b86efd96Sagiri# Default build targets. 70b86efd96Sagiri# 71b86efd96Sagiri.KEEP_STATE: 72b86efd96Sagiri 73b86efd96Sagiridef: $(DEF_DEPS) 74b86efd96Sagiri 75b86efd96Sagiriall: $(ALL_DEPS) 76b86efd96Sagiri 77b86efd96Sagiriclean: $(CLEAN_DEPS) 78b86efd96Sagiri 79b86efd96Sagiriclobber: $(CLOBBER_DEPS) 80b86efd96Sagiri 81b86efd96Sagirilint: $(LINT_DEPS) 82b86efd96Sagiri 83b86efd96Sagirimodlintlib: $(MODLINTLIB_DEPS) lint64 84b86efd96Sagiri 85b86efd96Sagiriclean.lint: $(CLEAN_LINT_DEPS) 86b86efd96Sagiri 87b86efd96Sagiriinstall: $(INSTALL_DEPS) 88b86efd96Sagiri 89b86efd96Sagiri$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOTMODULE) 90b86efd96Sagiri -$(RM) $@; ln $(ROOTMODULE) $@ 91b86efd96Sagiri 92b86efd96Sagiri# 93b86efd96Sagiri# Include common targets. 94b86efd96Sagiri# 95b86efd96Sagiriinclude $(UTSBASE)/sparc/Makefile.targ 96