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