4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# CDDL HEADER START
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# The contents of this file are subject to the terms of the
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Common Development and Distribution License (the "License").
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# You may not use this file except in compliance with the License.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# or http://www.opensolaris.org/os/licensing.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# See the License for the specific language governing permissions
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# and limitations under the License.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# When distributing Covered Code, include this CDDL HEADER in each
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# If applicable, add the following below this CDDL HEADER, with the
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# fields enclosed by brackets "[]" replaced with your own identifying
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# information: Portions Copyright [yyyy] [name of copyright owner]
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# CDDL HEADER END
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Use is subject to license terms.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# This makefile drives the production of the oce driver kernel module.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Path to the base of the uts directory tree (usually /usr/src/uts).
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanUTSBASE = ../../
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Define the module and object file sets.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanMODULE = oce
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanOBJECTS = $(OCE_OBJS:%=$(OBJS_DIR)/%)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanLINTS = $(OCE_OBJS:%.o=$(LINTS_DIR)/%.ln)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Include common rules.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanARCHDIR = intel
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathaninclude ../Makefile.$(ARCHDIR)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Define targets
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanALL_TARGET = $(BINARY)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanLINT_TARGET = $(MODULE).lint
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Overrides and depends_on
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/oce
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanLDFLAGS += -dy -Nmisc/mac
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Default build targets.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan.KEEP_STATE:
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathandef: $(DEF_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathanall: $(ALL_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathanclean: $(CLEAN_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathanclobber: $(CLOBBER_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathanlint: $(LINT_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathanmodlintlib: $(MODLINTLIB_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathanclean.lint: $(CLEAN_LINT_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathaninstall: $(INSTALL_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Include common targets.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathaninclude ../Makefile.targ