xref: /illumos-gate/usr/src/uts/intel/fcoei/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
17ff83669SZhong Wang#
27ff83669SZhong Wang# CDDL HEADER START
37ff83669SZhong Wang#
47ff83669SZhong Wang# The contents of this file are subject to the terms of the
57ff83669SZhong Wang# Common Development and Distribution License (the "License").
67ff83669SZhong Wang# You may not use this file except in compliance with the License.
77ff83669SZhong Wang#
87ff83669SZhong Wang# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97ff83669SZhong Wang# or http://www.opensolaris.org/os/licensing.
107ff83669SZhong Wang# See the License for the specific language governing permissions
117ff83669SZhong Wang# and limitations under the License.
127ff83669SZhong Wang#
137ff83669SZhong Wang# When distributing Covered Code, include this CDDL HEADER in each
147ff83669SZhong Wang# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157ff83669SZhong Wang# If applicable, add the following below this CDDL HEADER, with the
167ff83669SZhong Wang# fields enclosed by brackets "[]" replaced with your own identifying
177ff83669SZhong Wang# information: Portions Copyright [yyyy] [name of copyright owner]
187ff83669SZhong Wang#
197ff83669SZhong Wang# CDDL HEADER END
207ff83669SZhong Wang#
217ff83669SZhong Wang#
227ff83669SZhong Wang# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237ff83669SZhong Wang# Use is subject to license terms.
247ff83669SZhong Wang#
25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
267ff83669SZhong Wang
277ff83669SZhong Wang#
287ff83669SZhong Wang#	Path to the base of the uts directory tree (usually /usr/src/uts).
297ff83669SZhong Wang#
307ff83669SZhong WangUTSBASE	= ../..
317ff83669SZhong WangARCHDIR:sh = cd ..; basename `pwd`
327ff83669SZhong Wang
337ff83669SZhong Wang#
347ff83669SZhong Wang#	Define the module and object file sets.
357ff83669SZhong Wang#
367ff83669SZhong WangMODULE		= fcoei
377ff83669SZhong WangOBJECTS		= $(FCOEI_OBJS:%=$(OBJS_DIR)/%)
387ff83669SZhong WangROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
397ff83669SZhong WangCONF_SRCDIR	= $(UTSBASE)/common/io/fibre-channel/fca/fcoei
407ff83669SZhong Wang
41b6b206fcSJohn Levon# needs work
42b6b206fcSJohn LevonSMOFF += all_func_returns
43b6b206fcSJohn Levon
447ff83669SZhong Wang#
457ff83669SZhong Wang#	Include common rules.
467ff83669SZhong Wang#
477ff83669SZhong Wanginclude ../Makefile.$(ARCHDIR)
487ff83669SZhong Wang
497ff83669SZhong Wang#
507ff83669SZhong Wang#	Define targets
517ff83669SZhong Wang#
527ff83669SZhong WangALL_TARGET	= $(BINARY) $(SRC_CONFILE)
537ff83669SZhong WangINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
547ff83669SZhong Wang
557ff83669SZhong Wang#
567ff83669SZhong Wang#	Overrides and depends_on
577ff83669SZhong Wang#
58*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/fctl -Ndrv/fcoe
597ff83669SZhong WangINC_PATH	+= -I$(UTSBASE)/common/io/fibre-channel/fca/fcoei
607ff83669SZhong Wang
617ff83669SZhong Wang#
627ff83669SZhong Wang#	Default build targets.
637ff83669SZhong Wang#
647ff83669SZhong Wang.KEEP_STATE:
657ff83669SZhong Wang
667ff83669SZhong Wangdef:		$(DEF_DEPS)
677ff83669SZhong Wang
687ff83669SZhong Wangall:		$(ALL_DEPS)
697ff83669SZhong Wang
707ff83669SZhong Wangclean:		$(CLEAN_DEPS)
717ff83669SZhong Wang
727ff83669SZhong Wangclobber:	$(CLOBBER_DEPS)
737ff83669SZhong Wang
747ff83669SZhong Wanginstall:	$(INSTALL_DEPS)
757ff83669SZhong Wang
767ff83669SZhong Wang#
777ff83669SZhong Wang#	Include common targets.
787ff83669SZhong Wang#
797ff83669SZhong Wanginclude ../Makefile.targ
80