Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# uts/intel/fp/Makefile
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use is subject to license terms.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater# ident "@(#)Makefile 1.10 08/07/25 SMI"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This makefile drives the production of fp driver kernel module.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# i86pc architecture dependent
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic UpdaterUTSBASE = ../..
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Define the module and object file sets.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE = fp
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsOBJECTS = $(FP_OBJS:%=$(OBJS_DIR)/%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTS = $(FP_OBJS:%.o=$(LINTS_DIR)/%.ln)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONF_SRCDIR = $(UTSBASE)/intel/io/fibre-channel/impl/
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Include common rules.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterinclude $(UTSBASE)/Makefile.uts
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(UTSBASE)/intel/Makefile.intel
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Define targets
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews#ALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterALL_TARGET = $(BINARY)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterLINT_TARGET = $(MODULE).lint
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater#
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater# header file directories
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater#
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic UpdaterINCS += -I$(SRC)/uts/common/
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater# Overrides
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLDFLAGS += -dy -Ndrv/fcp -Nmisc/fctl -Nmisc/scsi
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Lint tags
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterLINTTAGS += -erroff=E_STATIC_UNUSED
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCERRWARN += -_gcc=-Wno-uninitialized
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCERRWARN += -_gcc=-Wno-unused-function
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Default build targets.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews.KEEP_STATE:
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updaterdef: $(DEF_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsall: $(ALL_DEPS)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterclean: $(CLEAN_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclobber: $(CLOBBER_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updaterlint: $(LINT_DEPS)
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall: $(INSTALL_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Include common targets.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterinclude $(UTSBASE)/intel/Makefile.targ
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater