12a8164dfSZhong Wang# 22a8164dfSZhong Wang# CDDL HEADER START 32a8164dfSZhong Wang# 42a8164dfSZhong Wang# The contents of this file are subject to the terms of the 52a8164dfSZhong Wang# Common Development and Distribution License (the "License"). 62a8164dfSZhong Wang# You may not use this file except in compliance with the License. 72a8164dfSZhong Wang# 82a8164dfSZhong Wang# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92a8164dfSZhong Wang# or http://www.opensolaris.org/os/licensing. 102a8164dfSZhong Wang# See the License for the specific language governing permissions 112a8164dfSZhong Wang# and limitations under the License. 122a8164dfSZhong Wang# 132a8164dfSZhong Wang# When distributing Covered Code, include this CDDL HEADER in each 142a8164dfSZhong Wang# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152a8164dfSZhong Wang# If applicable, add the following below this CDDL HEADER, with the 162a8164dfSZhong Wang# fields enclosed by brackets "[]" replaced with your own identifying 172a8164dfSZhong Wang# information: Portions Copyright [yyyy] [name of copyright owner] 182a8164dfSZhong Wang# 192a8164dfSZhong Wang# CDDL HEADER END 202a8164dfSZhong Wang# 212a8164dfSZhong Wang# uts/intel/fcoet/Makefile 222a8164dfSZhong Wang# 23*4558d122SViswanathan Kannappan# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 242a8164dfSZhong Wang# 252a8164dfSZhong Wang# This makefile drives the production of the fcoet driver for COMSTAR. 262a8164dfSZhong Wang# 272a8164dfSZhong Wang 282a8164dfSZhong Wang# 292a8164dfSZhong Wang# Path to the base of the uts directory tree (usually /usr/src/uts). 302a8164dfSZhong Wang# 312a8164dfSZhong WangUTSBASE = ../.. 322a8164dfSZhong WangARCHDIR:sh = cd ..; basename `pwd` 332a8164dfSZhong Wang 342a8164dfSZhong Wang# 352a8164dfSZhong Wang# Define the module and object file sets. 362a8164dfSZhong Wang# 372a8164dfSZhong WangMODULE = fcoet 382a8164dfSZhong WangOBJECTS = $(FCOET_OBJS:%=$(OBJS_DIR)/%) 392a8164dfSZhong WangLINTS = $(FCOET_OBJS:%.o=$(LINTS_DIR)/%.ln) 402a8164dfSZhong WangROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 412a8164dfSZhong Wang 422a8164dfSZhong Wang# 432a8164dfSZhong Wang# Include common rules. 442a8164dfSZhong Wang# 452a8164dfSZhong Wanginclude ../Makefile.$(ARCHDIR) 462a8164dfSZhong Wang 472a8164dfSZhong Wang# 482a8164dfSZhong Wang# Define targets 492a8164dfSZhong Wang# 502a8164dfSZhong WangALL_TARGET = $(BINARY) 512a8164dfSZhong WangLINT_TARGET = $(MODULE).lint 522a8164dfSZhong WangINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 532a8164dfSZhong Wang 542a8164dfSZhong Wang# 552a8164dfSZhong Wang# Overrides and depends_on 562a8164dfSZhong Wang# 572a8164dfSZhong WangMODSTUBS_DIR = $(OBJS_DIR) 582a8164dfSZhong WangLDFLAGS += -dy -Ndrv/stmf -Ndrv/fct -Ndrv/fcoe 592a8164dfSZhong Wang 602a8164dfSZhong Wang# 612a8164dfSZhong Wang# Default build targets. 622a8164dfSZhong Wang# 632a8164dfSZhong Wang.KEEP_STATE: 642a8164dfSZhong Wang 652a8164dfSZhong Wangdef: $(DEF_DEPS) 662a8164dfSZhong Wang 672a8164dfSZhong Wangall: $(ALL_DEPS) 682a8164dfSZhong Wang 692a8164dfSZhong Wangclean: $(CLEAN_DEPS) 702a8164dfSZhong Wang 712a8164dfSZhong Wangclobber: $(CLOBBER_DEPS) 722a8164dfSZhong Wang 732a8164dfSZhong Wanglint: $(LINT_DEPS) 742a8164dfSZhong Wang 752a8164dfSZhong Wangmodlintlib: $(MODLINTLIB_DEPS) 762a8164dfSZhong Wang 772a8164dfSZhong Wangclean.lint: $(CLEAN_LINT_DEPS) 782a8164dfSZhong Wang 792a8164dfSZhong Wanginstall: $(INSTALL_DEPS) 802a8164dfSZhong Wang 812a8164dfSZhong Wang# 822a8164dfSZhong Wang# Include common targets. 832a8164dfSZhong Wang# 842a8164dfSZhong Wanginclude ../Makefile.targ 85