1e6eb57e7SKevin Yu# 2e6eb57e7SKevin Yu# CDDL HEADER START 3e6eb57e7SKevin Yu# 4e6eb57e7SKevin Yu# The contents of this file are subject to the terms of the 5e6eb57e7SKevin Yu# Common Development and Distribution License (the "License"). 6e6eb57e7SKevin Yu# You may not use this file except in compliance with the License. 7e6eb57e7SKevin Yu# 8e6eb57e7SKevin Yu# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9e6eb57e7SKevin Yu# or http://www.opensolaris.org/os/licensing. 10e6eb57e7SKevin Yu# See the License for the specific language governing permissions 11e6eb57e7SKevin Yu# and limitations under the License. 12e6eb57e7SKevin Yu# 13e6eb57e7SKevin Yu# When distributing Covered Code, include this CDDL HEADER in each 14e6eb57e7SKevin Yu# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15e6eb57e7SKevin Yu# If applicable, add the following below this CDDL HEADER, with the 16e6eb57e7SKevin Yu# fields enclosed by brackets "[]" replaced with your own identifying 17e6eb57e7SKevin Yu# information: Portions Copyright [yyyy] [name of copyright owner] 18e6eb57e7SKevin Yu# 19e6eb57e7SKevin Yu# CDDL HEADER END 20e6eb57e7SKevin Yu# 21e6eb57e7SKevin Yu 22e6eb57e7SKevin Yu# 23e6eb57e7SKevin Yu# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24e6eb57e7SKevin Yu# Use is subject to license terms. 25e6eb57e7SKevin Yu# 26e6eb57e7SKevin Yu 27*7ff83669SZhong WangPROGFCOET = svc-fcoet 28*7ff83669SZhong WangPROGFCOEI = svc-fcoei 29*7ff83669SZhong WangPROG = ${PROGFCOET} ${PROGFCOEI} 30e6eb57e7SKevin Yu 31e6eb57e7SKevin Yuinclude ../Makefile.cmd 32e6eb57e7SKevin Yu 33e6eb57e7SKevin YuCOMMONBASE = ../../common 34e6eb57e7SKevin Yu 35*7ff83669SZhong WangOBJSFCOET = fcoetsvc.o 36*7ff83669SZhong WangOBJSFCOEI = fcoeisvc.o 37*7ff83669SZhong WangSRCSFCOET = $(OBJSFCOET:%.o=%.c) 38*7ff83669SZhong WangSRCSFCOEI = $(OBJSFCOEI:%.o=%.c) 39*7ff83669SZhong WangSRCS = $(SRCSFCOET) ${SRCSFCOEI} 40e6eb57e7SKevin Yu 41e6eb57e7SKevin YuLDLIBS += -lfcoe 42e6eb57e7SKevin Yu 43e6eb57e7SKevin YuMANIFEST = fcoe_target.xml 44*7ff83669SZhong WangMANIFEST += fcoe_initiator.xml 45e6eb57e7SKevin YuSVCMETHOD = svc-fcoet 46*7ff83669SZhong WangSVCMETHOD += svc-fcoei 47e6eb57e7SKevin Yu 48e6eb57e7SKevin YuROOTMANIFESTDIR = $(ROOTSVCSYSTEM) 49e6eb57e7SKevin Yu$(ROOTSVCSYSTEM)/fcoe_target.xml := FILEMODE = 0444 50*7ff83669SZhong Wang$(ROOTSVCSYSTEM)/fcoe_initiator.xml := FILEMODE = 0444 51e6eb57e7SKevin Yu 52e6eb57e7SKevin Yu.KEEP_STATE: 53e6eb57e7SKevin Yu 54e6eb57e7SKevin Yuall: $(PROG) 55e6eb57e7SKevin Yu 56*7ff83669SZhong Wang$(PROGFCOET): $(OBJSFCOET) 57*7ff83669SZhong Wang $(LINK.c) -o $@ $(OBJSFCOET) $(LDLIBS) 58*7ff83669SZhong Wang $(POST_PROCESS) 59*7ff83669SZhong Wang 60*7ff83669SZhong Wang$(PROGFCOEI): $(OBJSFCOEI) 61*7ff83669SZhong Wang $(LINK.c) -o $@ $(OBJSFCOEI) $(LDLIBS) 62e6eb57e7SKevin Yu $(POST_PROCESS) 63e6eb57e7SKevin Yu 64e6eb57e7SKevin Yuinstall: all $(ROOTMANIFEST) $(ROOTSVCMETHOD) 65e6eb57e7SKevin Yu 66e6eb57e7SKevin Yucheck: $(CHKMANIFEST) 67e6eb57e7SKevin Yu $(CSTYLE) -pPc $(SRCS:%=%) 68e6eb57e7SKevin Yu 69e6eb57e7SKevin Yuclean: 70*7ff83669SZhong Wang $(RM) $(OBJSFCOET) ${OBJSFCOEI} 71e6eb57e7SKevin Yu 72*7ff83669SZhong Wanglint: 73*7ff83669SZhong Wang $(LINT.c) $(SRCSFCOET) $(LDLIBS) 74*7ff83669SZhong Wang $(LINT.c) $(SRCSFCOEI) ${LDLIBS} 75e6eb57e7SKevin Yu 76e6eb57e7SKevin Yuinclude ../Makefile.targ 77