Makefile revision 2a8164df8a5f42c8a00f10c67d7bc84f80ae9c41
8d10c10ec928e4680a0c74280287a17a580120a7Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# CDDL HEADER START
816e576f77e2c46df3e3d97d65822aa8aded7c4bDavid Lawrence#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# The contents of this file are subject to the terms of the
5d2568aa9d3218e32bcbe795473e6d2d710a4ab6Mark Andrews# Common Development and Distribution License (the "License").
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# You may not use this file except in compliance with the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# See the License for the specific language governing permissions
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# and limitations under the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson#
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# CDDL HEADER END
aff4e48c82c1de198a627fe7a57fb6f400d6d3c1Andreas Gustafsson#
aff4e48c82c1de198a627fe7a57fb6f400d6d3c1Andreas Gustafsson#
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# Use is subject to license terms.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# This makefile drives the production of the fcoe driver.
b3651a8e87c12ea0428eeb5cf4b304be5bcd9db0Brian Wellington
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson#
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson#
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonUTSBASE = ../..
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonARCHDIR:sh = cd ..; basename `pwd`
bfe7da9c6b20573c2da09ad2e7cac0a54c8cd47bMark Andrews
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson#
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson# Define the module and object file sets.
c5b14e2676e8832de77bf63b8f58890d13a6c1e2Andreas Gustafsson#
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonMODULE = fcoe
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark AndrewsOBJECTS = $(FCOE_OBJS:%=$(OBJS_DIR)/%)
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark AndrewsLINTS = $(FCOE_OBJS:%.o=$(LINTS_DIR)/%.ln)
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark AndrewsCONF_SRCDIR = $(UTSBASE)/common/io/fcoe
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson#
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson# Include common rules.
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson#
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafssoninclude ../Makefile.$(ARCHDIR)
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafsson#
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafsson# Define targets
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson#
c5b14e2676e8832de77bf63b8f58890d13a6c1e2Andreas GustafssonALL_TARGET = $(BINARY) $(SRC_CONFILE)
d075bd326e34600c036c905eea6c80f565ea951fAndreas GustafssonLINT_TARGET = $(MODULE).lint
d075bd326e34600c036c905eea6c80f565ea951fAndreas GustafssonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson
7f800a6b10b0172e36e6fef855f48109717b6a2cAndreas Gustafsson#
7f800a6b10b0172e36e6fef855f48109717b6a2cAndreas Gustafsson# Overrides and depends_on
b976f9c60a09f4a098852d0653ad5df6842557a7Andreas Gustafsson#
a1bb4b0e4f71fb2878050905087d279cfa87b786Andreas GustafssonMODSTUBS_DIR = $(OBJS_DIR)
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas GustafssonLDFLAGS += -dy -Ndrv/mac
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonINC_PATH += -I$(UTSBASE)/common/io/fcoe
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson#
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson# Default build targets.
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson#
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson.KEEP_STATE:
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafssondef: $(DEF_DEPS)
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonall: $(ALL_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonclean: $(CLEAN_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonclobber: $(CLOBBER_DEPS)
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonlint: $(LINT_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonmodlintlib: $(MODLINTLIB_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonclean.lint: $(CLEAN_LINT_DEPS)
6af37648dd5e0cb407cbef1fed5255dd874e61efAndreas Gustafsson
6af37648dd5e0cb407cbef1fed5255dd874e61efAndreas Gustafssoninstall: $(INSTALL_DEPS)
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson
2357f291c53de433c39ce844d2f0abc0bccfa9fcAndreas Gustafsson#
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson# Include common targets.
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson#
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafssoninclude ../Makefile.targ
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson