xref: /illumos-gate/usr/src/uts/intel/fcoe/Makefile (revision 41e0a469)
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 WangROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
392a8164dfSZhong WangCONF_SRCDIR	= $(UTSBASE)/common/io/fcoe
402a8164dfSZhong Wang
412a8164dfSZhong Wang#
422a8164dfSZhong Wang#	Include common rules.
432a8164dfSZhong Wang#
442a8164dfSZhong Wanginclude ../Makefile.$(ARCHDIR)
452a8164dfSZhong Wang
462a8164dfSZhong Wang#
472a8164dfSZhong Wang#	Define targets
482a8164dfSZhong Wang#
492a8164dfSZhong WangALL_TARGET	= $(BINARY) $(SRC_CONFILE)
502a8164dfSZhong WangINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
512a8164dfSZhong Wang
522a8164dfSZhong Wang#
532a8164dfSZhong Wang#	Overrides and depends_on
542a8164dfSZhong Wang#
55*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/mac
562a8164dfSZhong WangINC_PATH	+= -I$(UTSBASE)/common/io/fcoe
572a8164dfSZhong Wang
587014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
597014882cSRichard Lowe
602a8164dfSZhong Wang#
612a8164dfSZhong Wang#	Default build targets.
622a8164dfSZhong Wang#
632a8164dfSZhong Wang.KEEP_STATE:
642a8164dfSZhong Wang
652a8164dfSZhong Wangdef:		$(DEF_DEPS)
662a8164dfSZhong Wang
672a8164dfSZhong Wangall:		$(ALL_DEPS)
682a8164dfSZhong Wang
692a8164dfSZhong Wangclean:		$(CLEAN_DEPS)
702a8164dfSZhong Wang
712a8164dfSZhong Wangclobber:	$(CLOBBER_DEPS)
722a8164dfSZhong Wang
732a8164dfSZhong Wanginstall:	$(INSTALL_DEPS)
742a8164dfSZhong Wang
752a8164dfSZhong Wang#
762a8164dfSZhong Wang#	Include common targets
772a8164dfSZhong Wang#
782a8164dfSZhong Wanginclude ../Makefile.targ
79