11bdd6c0eSSue Gleeson# 21bdd6c0eSSue Gleeson# CDDL HEADER START 31bdd6c0eSSue Gleeson# 41bdd6c0eSSue Gleeson# The contents of this file are subject to the terms of the 51bdd6c0eSSue Gleeson# Common Development and Distribution License (the "License"). 61bdd6c0eSSue Gleeson# You may not use this file except in compliance with the License. 71bdd6c0eSSue Gleeson# 81bdd6c0eSSue Gleeson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91bdd6c0eSSue Gleeson# or http://www.opensolaris.org/os/licensing. 101bdd6c0eSSue Gleeson# See the License for the specific language governing permissions 111bdd6c0eSSue Gleeson# and limitations under the License. 121bdd6c0eSSue Gleeson# 131bdd6c0eSSue Gleeson# When distributing Covered Code, include this CDDL HEADER in each 141bdd6c0eSSue Gleeson# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151bdd6c0eSSue Gleeson# If applicable, add the following below this CDDL HEADER, with the 161bdd6c0eSSue Gleeson# fields enclosed by brackets "[]" replaced with your own identifying 171bdd6c0eSSue Gleeson# information: Portions Copyright [yyyy] [name of copyright owner] 181bdd6c0eSSue Gleeson# 191bdd6c0eSSue Gleeson# CDDL HEADER END 201bdd6c0eSSue Gleeson# 211bdd6c0eSSue Gleeson# 22*4558d122SViswanathan Kannappan# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 231bdd6c0eSSue Gleeson# 241bdd6c0eSSue Gleeson# This makefile drives the production of the srpt pseudo-driver for 251bdd6c0eSSue Gleeson# COMSTAR. 261bdd6c0eSSue Gleeson 271bdd6c0eSSue Gleeson# 281bdd6c0eSSue Gleeson# Path to the base of the uts directory tree (usually /usr/src/uts). 291bdd6c0eSSue Gleeson# 301bdd6c0eSSue Gleeson 311bdd6c0eSSue Gleeson 321bdd6c0eSSue GleesonUTSBASE = ../.. 331bdd6c0eSSue Gleeson 341bdd6c0eSSue GleesonARCHDIR:sh = cd ..; basename `pwd` 351bdd6c0eSSue Gleeson 361bdd6c0eSSue Gleeson# 371bdd6c0eSSue Gleeson# Define the module and object file sets. 381bdd6c0eSSue Gleeson# 391bdd6c0eSSue GleesonMODULE = srpt 401bdd6c0eSSue GleesonOBJECTS = $(SRPT_OBJS:%=$(OBJS_DIR)/%) 411bdd6c0eSSue GleesonLINTS = $(SRPT_OBJS:%.o=$(LINTS_DIR)/%.ln) 421bdd6c0eSSue GleesonROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 431bdd6c0eSSue GleesonCONF_SRCDIR = $(UTSBASE)/common/io/comstar/port/srpt 441bdd6c0eSSue Gleeson 451bdd6c0eSSue Gleeson# 461bdd6c0eSSue Gleeson# Include common rules. 471bdd6c0eSSue Gleeson# 481bdd6c0eSSue Gleesoninclude ../Makefile.$(ARCHDIR) 491bdd6c0eSSue Gleeson 501bdd6c0eSSue Gleeson# 511bdd6c0eSSue Gleeson# Define targets 521bdd6c0eSSue Gleeson# 531bdd6c0eSSue GleesonALL_TARGET = $(BINARY) $(SRC_CONFILE) 541bdd6c0eSSue GleesonLINT_TARGET = $(MODULE).lint 551bdd6c0eSSue GleesonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 561bdd6c0eSSue Gleeson 571bdd6c0eSSue Gleeson# 581bdd6c0eSSue Gleeson# Overrides and depends_on 591bdd6c0eSSue Gleeson# 601bdd6c0eSSue GleesonMODSTUBS_DIR = $(OBJS_DIR) 611bdd6c0eSSue GleesonLDFLAGS += -dy -Ndrv/stmf -Nmisc/ibtl -Nmisc/ibcm 621bdd6c0eSSue Gleeson 631bdd6c0eSSue GleesonC99MODE= -xc99=%all 641bdd6c0eSSue GleesonC99LMODE= -Xc99=%all 651bdd6c0eSSue Gleeson 661bdd6c0eSSue Gleeson# 671bdd6c0eSSue Gleeson# Default build targets. 681bdd6c0eSSue Gleeson# 691bdd6c0eSSue Gleeson.KEEP_STATE: 701bdd6c0eSSue Gleeson 711bdd6c0eSSue Gleesondef: $(DEF_DEPS) 721bdd6c0eSSue Gleeson 731bdd6c0eSSue Gleesonall: $(ALL_DEPS) 741bdd6c0eSSue Gleeson 751bdd6c0eSSue Gleesonclean: $(CLEAN_DEPS) 761bdd6c0eSSue Gleeson 771bdd6c0eSSue Gleesonclobber: $(CLOBBER_DEPS) 781bdd6c0eSSue Gleeson 791bdd6c0eSSue Gleesonlint: $(LINT_DEPS) 801bdd6c0eSSue Gleeson 811bdd6c0eSSue Gleesonmodlintlib: $(MODLINTLIB_DEPS) 821bdd6c0eSSue Gleeson 831bdd6c0eSSue Gleesonclean.lint: $(CLEAN_LINT_DEPS) 841bdd6c0eSSue Gleeson 851bdd6c0eSSue Gleesoninstall: $(INSTALL_DEPS) 861bdd6c0eSSue Gleeson 871bdd6c0eSSue Gleeson# 881bdd6c0eSSue Gleeson# Include common targets. 891bdd6c0eSSue Gleeson# 901bdd6c0eSSue Gleesoninclude ../Makefile.targ 91