1*7ff83669SZhong Wang# 2*7ff83669SZhong Wang# CDDL HEADER START 3*7ff83669SZhong Wang# 4*7ff83669SZhong Wang# The contents of this file are subject to the terms of the 5*7ff83669SZhong Wang# Common Development and Distribution License (the "License"). 6*7ff83669SZhong Wang# You may not use this file except in compliance with the License. 7*7ff83669SZhong Wang# 8*7ff83669SZhong Wang# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*7ff83669SZhong Wang# or http://www.opensolaris.org/os/licensing. 10*7ff83669SZhong Wang# See the License for the specific language governing permissions 11*7ff83669SZhong Wang# and limitations under the License. 12*7ff83669SZhong Wang# 13*7ff83669SZhong Wang# When distributing Covered Code, include this CDDL HEADER in each 14*7ff83669SZhong Wang# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*7ff83669SZhong Wang# If applicable, add the following below this CDDL HEADER, with the 16*7ff83669SZhong Wang# fields enclosed by brackets "[]" replaced with your own identifying 17*7ff83669SZhong Wang# information: Portions Copyright [yyyy] [name of copyright owner] 18*7ff83669SZhong Wang# 19*7ff83669SZhong Wang# CDDL HEADER END 20*7ff83669SZhong Wang# 21*7ff83669SZhong Wang# 22*7ff83669SZhong Wang# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*7ff83669SZhong Wang# Use is subject to license terms. 24*7ff83669SZhong Wang# 25*7ff83669SZhong Wang# This makefile drives the production of the fcoei driver for 26*7ff83669SZhong Wang# LEADVILLE. 27*7ff83669SZhong Wang 28*7ff83669SZhong Wang# 29*7ff83669SZhong Wang# Path to the base of the uts directory tree (usually /usr/src/uts). 30*7ff83669SZhong Wang# 31*7ff83669SZhong WangUTSBASE = ../.. 32*7ff83669SZhong WangARCHDIR:sh = cd ..; basename `pwd` 33*7ff83669SZhong Wang 34*7ff83669SZhong Wang# 35*7ff83669SZhong Wang# Define the module and object file sets. 36*7ff83669SZhong Wang# 37*7ff83669SZhong WangMODULE = fcoei 38*7ff83669SZhong WangOBJECTS = $(FCOEI_OBJS:%=$(OBJS_DIR)/%) 39*7ff83669SZhong WangLINTS = $(FCOEI_OBJS:%.o=$(LINTS_DIR)/%.ln) 40*7ff83669SZhong WangROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 41*7ff83669SZhong WangCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/fca/fcoei 42*7ff83669SZhong Wang 43*7ff83669SZhong Wang# 44*7ff83669SZhong Wang# Include common rules. 45*7ff83669SZhong Wang# 46*7ff83669SZhong Wanginclude ../Makefile.$(ARCHDIR) 47*7ff83669SZhong Wang 48*7ff83669SZhong Wang# 49*7ff83669SZhong Wang# Define targets 50*7ff83669SZhong Wang# 51*7ff83669SZhong WangALL_TARGET = $(BINARY) $(SRC_CONFILE) 52*7ff83669SZhong WangLINT_TARGET = $(MODULE).lint 53*7ff83669SZhong WangINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 54*7ff83669SZhong Wang 55*7ff83669SZhong Wang# 56*7ff83669SZhong Wang# Overrides and depends_on 57*7ff83669SZhong Wang# 58*7ff83669SZhong WangLDFLAGS += -dy -Nmisc/fctl -Ndrv/fcoe 59*7ff83669SZhong WangINC_PATH += -I$(UTSBASE)/common/io/fibre-channel/fca/fcoei 60*7ff83669SZhong Wang 61*7ff83669SZhong Wang# 62*7ff83669SZhong Wang# Default build targets. 63*7ff83669SZhong Wang# 64*7ff83669SZhong Wang.KEEP_STATE: 65*7ff83669SZhong Wang 66*7ff83669SZhong Wangdef: $(DEF_DEPS) 67*7ff83669SZhong Wang 68*7ff83669SZhong Wangall: $(ALL_DEPS) 69*7ff83669SZhong Wang 70*7ff83669SZhong Wangclean: $(CLEAN_DEPS) 71*7ff83669SZhong Wang 72*7ff83669SZhong Wangclobber: $(CLOBBER_DEPS) 73*7ff83669SZhong Wang 74*7ff83669SZhong Wanglint: $(LINT_DEPS) 75*7ff83669SZhong Wang 76*7ff83669SZhong Wangmodlintlib: $(MODLINTLIB_DEPS) 77*7ff83669SZhong Wang 78*7ff83669SZhong Wangclean.lint: $(CLEAN_LINT_DEPS) 79*7ff83669SZhong Wang 80*7ff83669SZhong Wanginstall: $(INSTALL_DEPS) 81*7ff83669SZhong Wang 82*7ff83669SZhong Wang# 83*7ff83669SZhong Wang# Include common targets. 84*7ff83669SZhong Wang# 85*7ff83669SZhong Wanginclude ../Makefile.targ 86