xref: /titanic_52/usr/src/uts/intel/fcoet/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# uts/intel/fcoet/Makefile
22*2a8164dfSZhong Wang#
23*2a8164dfSZhong Wang# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24*2a8164dfSZhong Wang# Use is subject to license terms.
25*2a8164dfSZhong Wang#
26*2a8164dfSZhong Wang# This makefile drives the production of the fcoet driver for COMSTAR.
27*2a8164dfSZhong Wang#
28*2a8164dfSZhong Wang
29*2a8164dfSZhong Wang#
30*2a8164dfSZhong Wang#	Path to the base of the uts directory tree (usually /usr/src/uts).
31*2a8164dfSZhong Wang#
32*2a8164dfSZhong WangUTSBASE	= ../..
33*2a8164dfSZhong WangARCHDIR:sh = cd ..; basename `pwd`
34*2a8164dfSZhong Wang
35*2a8164dfSZhong Wang#
36*2a8164dfSZhong Wang#	Define the module and object file sets.
37*2a8164dfSZhong Wang#
38*2a8164dfSZhong WangMODULE		= fcoet
39*2a8164dfSZhong WangOBJECTS		= $(FCOET_OBJS:%=$(OBJS_DIR)/%)
40*2a8164dfSZhong WangLINTS		= $(FCOET_OBJS:%.o=$(LINTS_DIR)/%.ln)
41*2a8164dfSZhong WangROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
42*2a8164dfSZhong Wang
43*2a8164dfSZhong Wang#
44*2a8164dfSZhong Wang#	Include common rules.
45*2a8164dfSZhong Wang#
46*2a8164dfSZhong Wanginclude ../Makefile.$(ARCHDIR)
47*2a8164dfSZhong Wang
48*2a8164dfSZhong Wang#
49*2a8164dfSZhong Wang#	Define targets
50*2a8164dfSZhong Wang#
51*2a8164dfSZhong WangALL_TARGET	= $(BINARY)
52*2a8164dfSZhong WangLINT_TARGET	= $(MODULE).lint
53*2a8164dfSZhong WangINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54*2a8164dfSZhong Wang
55*2a8164dfSZhong Wang#
56*2a8164dfSZhong Wang#	Overrides and depends_on
57*2a8164dfSZhong Wang#
58*2a8164dfSZhong WangMODSTUBS_DIR	 = $(OBJS_DIR)
59*2a8164dfSZhong WangLDFLAGS		+= -dy -Ndrv/stmf -Ndrv/fct -Ndrv/fcoe
60*2a8164dfSZhong WangINC_PATH	+= -I$(UTSBASE)/common/io/comstar/port/fcoet
61*2a8164dfSZhong Wang
62*2a8164dfSZhong Wang#
63*2a8164dfSZhong Wang#	Default build targets.
64*2a8164dfSZhong Wang#
65*2a8164dfSZhong Wang.KEEP_STATE:
66*2a8164dfSZhong Wang
67*2a8164dfSZhong Wangdef:		$(DEF_DEPS)
68*2a8164dfSZhong Wang
69*2a8164dfSZhong Wangall:		$(ALL_DEPS)
70*2a8164dfSZhong Wang
71*2a8164dfSZhong Wangclean:		$(CLEAN_DEPS)
72*2a8164dfSZhong Wang
73*2a8164dfSZhong Wangclobber:	$(CLOBBER_DEPS)
74*2a8164dfSZhong Wang
75*2a8164dfSZhong Wanglint:		$(LINT_DEPS)
76*2a8164dfSZhong Wang
77*2a8164dfSZhong Wangmodlintlib:	$(MODLINTLIB_DEPS)
78*2a8164dfSZhong Wang
79*2a8164dfSZhong Wangclean.lint:	$(CLEAN_LINT_DEPS)
80*2a8164dfSZhong Wang
81*2a8164dfSZhong Wanginstall:	$(INSTALL_DEPS)
82*2a8164dfSZhong Wang
83*2a8164dfSZhong Wang#
84*2a8164dfSZhong Wang#	Include common targets.
85*2a8164dfSZhong Wang#
86*2a8164dfSZhong Wanginclude ../Makefile.targ
87