xref: /titanic_44/usr/src/uts/intel/fcoe/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
12a8164dfSZhong Wang#
22a8164dfSZhong Wang# CDDL HEADER START
32a8164dfSZhong Wang#
42a8164dfSZhong Wang# The contents of this file are subject to the terms of the
52a8164dfSZhong Wang# Common Development and Distribution License (the "License").
62a8164dfSZhong Wang# You may not use this file except in compliance with the License.
72a8164dfSZhong Wang#
82a8164dfSZhong Wang# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92a8164dfSZhong Wang# or http://www.opensolaris.org/os/licensing.
102a8164dfSZhong Wang# See the License for the specific language governing permissions
112a8164dfSZhong Wang# and limitations under the License.
122a8164dfSZhong Wang#
132a8164dfSZhong Wang# When distributing Covered Code, include this CDDL HEADER in each
142a8164dfSZhong Wang# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152a8164dfSZhong Wang# If applicable, add the following below this CDDL HEADER, with the
162a8164dfSZhong Wang# fields enclosed by brackets "[]" replaced with your own identifying
172a8164dfSZhong Wang# information: Portions Copyright [yyyy] [name of copyright owner]
182a8164dfSZhong Wang#
192a8164dfSZhong Wang# CDDL HEADER END
202a8164dfSZhong Wang#
212a8164dfSZhong Wang#
222a8164dfSZhong Wang# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
232a8164dfSZhong Wang# Use is subject to license terms.
242a8164dfSZhong Wang#
252a8164dfSZhong Wang#	This makefile drives the production of the fcoe driver
262a8164dfSZhong Wang
272a8164dfSZhong Wang#
282a8164dfSZhong Wang#	Path to the base of the uts directory tree (usually /usr/src/uts)
292a8164dfSZhong Wang#
302a8164dfSZhong WangUTSBASE	= ../..
312a8164dfSZhong WangARCHDIR:sh = cd ..; basename `pwd`
322a8164dfSZhong Wang
332a8164dfSZhong Wang#
342a8164dfSZhong Wang#	Define the module and object file sets
352a8164dfSZhong Wang#
362a8164dfSZhong WangMODULE		= fcoe
372a8164dfSZhong WangOBJECTS		= $(FCOE_OBJS:%=$(OBJS_DIR)/%)
382a8164dfSZhong WangLINTS		= $(FCOE_OBJS:%.o=$(LINTS_DIR)/%.ln)
392a8164dfSZhong WangROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
402a8164dfSZhong WangCONF_SRCDIR	= $(UTSBASE)/common/io/fcoe
412a8164dfSZhong Wang
422a8164dfSZhong Wang#
432a8164dfSZhong Wang#	Include common rules.
442a8164dfSZhong Wang#
452a8164dfSZhong Wanginclude ../Makefile.$(ARCHDIR)
462a8164dfSZhong Wang
472a8164dfSZhong Wang#
482a8164dfSZhong Wang#	Define targets
492a8164dfSZhong Wang#
502a8164dfSZhong WangALL_TARGET	= $(BINARY) $(SRC_CONFILE)
512a8164dfSZhong WangLINT_TARGET	= $(MODULE).lint
522a8164dfSZhong WangINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
532a8164dfSZhong Wang
542a8164dfSZhong Wang#
552a8164dfSZhong Wang#	Overrides and depends_on
562a8164dfSZhong Wang#
572a8164dfSZhong WangMODSTUBS_DIR	 = $(OBJS_DIR)
5859f783efSduo liu - Sun Microsystems - Beijing ChinaLDFLAGS		+= -dy -Nmisc/mac
592a8164dfSZhong WangINC_PATH	+= -I$(UTSBASE)/common/io/fcoe
602a8164dfSZhong Wang
61*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
62*7014882cSRichard Lowe
632a8164dfSZhong Wang#
642a8164dfSZhong Wang#	Default build targets.
652a8164dfSZhong Wang#
662a8164dfSZhong Wang.KEEP_STATE:
672a8164dfSZhong Wang
682a8164dfSZhong Wangdef:		$(DEF_DEPS)
692a8164dfSZhong Wang
702a8164dfSZhong Wangall:		$(ALL_DEPS)
712a8164dfSZhong Wang
722a8164dfSZhong Wangclean:		$(CLEAN_DEPS)
732a8164dfSZhong Wang
742a8164dfSZhong Wangclobber:	$(CLOBBER_DEPS)
752a8164dfSZhong Wang
762a8164dfSZhong Wanglint:		$(LINT_DEPS)
772a8164dfSZhong Wang
782a8164dfSZhong Wangmodlintlib:	$(MODLINTLIB_DEPS)
792a8164dfSZhong Wang
802a8164dfSZhong Wangclean.lint:	$(CLEAN_LINT_DEPS)
812a8164dfSZhong Wang
822a8164dfSZhong Wanginstall:	$(INSTALL_DEPS)
832a8164dfSZhong Wang
842a8164dfSZhong Wang#
852a8164dfSZhong Wang#	Include common targets
862a8164dfSZhong Wang#
872a8164dfSZhong Wanginclude ../Makefile.targ
88