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