Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen#
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# CDDL HEADER START
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye#
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# The contents of this file are subject to the terms of the
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen# Common Development and Distribution License (the "License").
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# You may not use this file except in compliance with the License.
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye#
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# or http://www.opensolaris.org/os/licensing.
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# See the License for the specific language governing permissions
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# and limitations under the License.
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye#
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# If applicable, add the following below this CDDL HEADER, with the
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# information: Portions Copyright [yyyy] [name of copyright owner]
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye#
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye# CDDL HEADER END
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye#
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen# Use is subject to license terms.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# This makefile drives the production of the oce driver kernel module.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# Path to the base of the uts directory tree (usually /usr/src/uts).
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerUTSBASE = ../../
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# Define the module and object file sets.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerMODULE = oce
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerOBJECTS = $(OCE_OBJS:%=$(OBJS_DIR)/%)
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerLINTS = $(OCE_OBJS:%.o=$(LINTS_DIR)/%.ln)
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders HatlenROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# Include common rules.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerARCHDIR = sparc
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatleninclude ../Makefile.$(ARCHDIR)
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# Define targets
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerALL_TARGET = $(BINARY)
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders HatlenLINT_TARGET = $(MODULE).lint
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders HatlenINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# Overrides and depends_on
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
888273610a036b1d0d39339d0057352922648a5bVladimir KotalINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/oce
888273610a036b1d0d39339d0057352922648a5bVladimir Kotal
888273610a036b1d0d39339d0057352922648a5bVladimir KotalLDFLAGS += -dy -Nmisc/mac
888273610a036b1d0d39339d0057352922648a5bVladimir Kotal
888273610a036b1d0d39339d0057352922648a5bVladimir KotalCERRWARN += -_gcc=-Wno-switch
888273610a036b1d0d39339d0057352922648a5bVladimir KotalCERRWARN += -_gcc=-Wno-unused-label
888273610a036b1d0d39339d0057352922648a5bVladimir KotalCERRWARN += -_gcc=-Wno-uninitialized
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerCERRWARN += -_gcc=-Wno-parentheses
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# Default build targets.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner.KEEP_STATE:
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
14a41f02433890d19b2f871156271e3388cd0845Jens Elknerdef: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include ../Makefile.targ