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