Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
5d92fff82718cd018f0b61a10b9ad4d2b8064c95rpluem#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# CDDL HEADER START
8f066564bfc0fd6ddc6ca4b2f2410615554597d1jim#
8f066564bfc0fd6ddc6ca4b2f2410615554597d1jim# The contents of this file are subject to the terms of the
a503caacf7ab36d5bc42cb7c78256e1221642656jim# Common Development and Distribution License (the "License").
a503caacf7ab36d5bc42cb7c78256e1221642656jim# You may not use this file except in compliance with the License.
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrin#
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrin# or http://www.opensolaris.org/os/licensing.
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrin# See the License for the specific language governing permissions
59d316b83d42d2a07e25c20d8c35a07b369618bdsf# and limitations under the License.
59d316b83d42d2a07e25c20d8c35a07b369618bdsf#
59d316b83d42d2a07e25c20d8c35a07b369618bdsf# When distributing Covered Code, include this CDDL HEADER in each
59d316b83d42d2a07e25c20d8c35a07b369618bdsf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf# If applicable, add the following below this CDDL HEADER, with the
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf# fields enclosed by brackets "[]" replaced with your own identifying
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf# information: Portions Copyright [yyyy] [name of copyright owner]
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf#
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf# CDDL HEADER END
3e2582713ed6883683272fbc628a27419d0ed543minfrin#
3e2582713ed6883683272fbc628a27419d0ed543minfrin#
3e2582713ed6883683272fbc628a27419d0ed543minfrin# uts/sparc/md/Makefile
3e2582713ed6883683272fbc628a27419d0ed543minfrin# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2c132b1e3610da2fb9e6b3594a313efa3ff29e22minfrin# Use is subject to license terms.
2c132b1e3610da2fb9e6b3594a313efa3ff29e22minfrin# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
2c132b1e3610da2fb9e6b3594a313efa3ff29e22minfrin#
a46801e6532423aa7bd184471eb49158d7c9ae62sf# This makefile drives the production of the SLVM's md driver module.
a46801e6532423aa7bd184471eb49158d7c9ae62sf#
a46801e6532423aa7bd184471eb49158d7c9ae62sf# sparc implementation architecture dependent
808a26d70f28498b9d7252a70d9fb23def781901minfrin#
808a26d70f28498b9d7252a70d9fb23def781901minfrin
ef12246b88300687bf1faaf56d115dd8d8d82761jorton#
6f9bf764bc79571d1da19dfbbd78527fca278a8eminfrin# Path to the base of the uts directory tree (usually /usr/src/uts).
6f9bf764bc79571d1da19dfbbd78527fca278a8eminfrin#
6f9bf764bc79571d1da19dfbbd78527fca278a8eminfrinUTSBASE = ../..
6f9bf764bc79571d1da19dfbbd78527fca278a8eminfrin
7d59a9f282af9dce031b61062a0d941641101237rpluem#
7d59a9f282af9dce031b61062a0d941641101237rpluem# Define the module and object file sets.
7d59a9f282af9dce031b61062a0d941641101237rpluem#
e63e8b4b886d2144fed7946d0fbe8d27386be2dcjortonMODULE = md
e63e8b4b886d2144fed7946d0fbe8d27386be2dcjortonOBJECTS = $(MD_OBJS:%=$(OBJS_DIR)/%)
e63e8b4b886d2144fed7946d0fbe8d27386be2dcjortonOBJECTS += $(MD_COMMON_OBJS:%=$(OBJS_DIR)/%)
223c64b836fbc2bc8611da9604379dfe13f56abasfOBJECTS += $(MD_DERIVED_OBJS:%=$(OBJS_DIR)/%)
223c64b836fbc2bc8611da9604379dfe13f56abasfLINTS = $(MD_OBJS:%.o=$(LINTS_DIR)/%.ln)
223c64b836fbc2bc8611da9604379dfe13f56abasfLINTS += $(MD_COMMON_OBJS:%.o=$(LINTS_DIR)/%.ln)
bf507cc1e6ad55303c3d436c6ca153f46c788be6sfROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
bf507cc1e6ad55303c3d436c6ca153f46c788be6sfCONF_SRCDIR = $(UTSBASE)/common/io/lvm/md
bf507cc1e6ad55303c3d436c6ca153f46c788be6sf
bf507cc1e6ad55303c3d436c6ca153f46c788be6sf#
93cf7fc650197b941ae31a7c7e51e901b129e954igalic# Include common rules.
93cf7fc650197b941ae31a7c7e51e901b129e954igalic#
93cf7fc650197b941ae31a7c7e51e901b129e954igalicinclude $(UTSBASE)/sparc/Makefile.sparc
a1b1c78faf7969affb320f5c8eb270ffa21314c4rjung
a1b1c78faf7969affb320f5c8eb270ffa21314c4rjung#
a1b1c78faf7969affb320f5c8eb270ffa21314c4rjung# Define targets
a2558ec3af4391b7da7fe61e1e53383bbd0174b9jorton#
a2558ec3af4391b7da7fe61e1e53383bbd0174b9jortonALL_TARGET = $(BINARY)
a2558ec3af4391b7da7fe61e1e53383bbd0174b9jortonLINT_TARGET = $(MODULE).lint
a2558ec3af4391b7da7fe61e1e53383bbd0174b9jortonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
8d6b3720340d0bd7f8d25e2a8563527e97a48df8jorton
8d6b3720340d0bd7f8d25e2a8563527e97a48df8jorton#
8d6b3720340d0bd7f8d25e2a8563527e97a48df8jorton# Overrides.
8d6b3720340d0bd7f8d25e2a8563527e97a48df8jorton#
48e4b65042d94992c50f1db6c0b0cdbd99ca77e8sfCFLAGS += $(CCVERBOSE)
48e4b65042d94992c50f1db6c0b0cdbd99ca77e8sf
48e4b65042d94992c50f1db6c0b0cdbd99ca77e8sf#
48e4b65042d94992c50f1db6c0b0cdbd99ca77e8sf# Define dependency on rpcmod
48e4b65042d94992c50f1db6c0b0cdbd99ca77e8sf#
48e4b65042d94992c50f1db6c0b0cdbd99ca77e8sfLDFLAGS += -dy -N strmod/rpcmod
47ae8ca3c79d279b2e5424d6b8cf5e4e61ea968fjim
47ae8ca3c79d279b2e5424d6b8cf5e4e61ea968fjim#
47ae8ca3c79d279b2e5424d6b8cf5e4e61ea968fjim# For now, disable these lint checks; maintainers should endeavor
47ae8ca3c79d279b2e5424d6b8cf5e4e61ea968fjim# to investigate and remove these for maximum lint coverage.
47ae8ca3c79d279b2e5424d6b8cf5e4e61ea968fjim# Please do not carry these forward to new Makefiles.
397df70abe0bdd78a84fb6c38c02641bcfeadceasf#
397df70abe0bdd78a84fb6c38c02641bcfeadceasfLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
397df70abe0bdd78a84fb6c38c02641bcfeadceasfLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
9b5fe1d4ec48643fb819bbce9dc80f93f444fb48sfLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
9b5fe1d4ec48643fb819bbce9dc80f93f444fb48sfLINTTAGS += -erroff=E_STATIC_UNUSED
9b5fe1d4ec48643fb819bbce9dc80f93f444fb48sfLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
dd9f60fdfeb73f829fe0b260b7975b4b22be0838sfLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
dd9f60fdfeb73f829fe0b260b7975b4b22be0838sf
dd9f60fdfeb73f829fe0b260b7975b4b22be0838sf#
135e1d6a301398168e3b2e5125508828591e1673niq# Default build targets.
135e1d6a301398168e3b2e5125508828591e1673niq#
135e1d6a301398168e3b2e5125508828591e1673niq.KEEP_STATE:
135e1d6a301398168e3b2e5125508828591e1673niq
135e1d6a301398168e3b2e5125508828591e1673niqdef: derived_h .WAIT $(DEF_DEPS)
135e1d6a301398168e3b2e5125508828591e1673niq
135e1d6a301398168e3b2e5125508828591e1673niqall: derived_h .WAIT $(ALL_DEPS)
c7de70e936ac1e36c25676fe62e65dbacb947619minfrin
c7de70e936ac1e36c25676fe62e65dbacb947619minfrinclean: derived_h .WAIT $(CLEAN_DEPS)
c7de70e936ac1e36c25676fe62e65dbacb947619minfrin
c7de70e936ac1e36c25676fe62e65dbacb947619minfrinclobber: derived_h .WAIT $(CLOBBER_DEPS)
c7de70e936ac1e36c25676fe62e65dbacb947619minfrin
c7de70e936ac1e36c25676fe62e65dbacb947619minfrinlint: $(LINT_DEPS)
c7de70e936ac1e36c25676fe62e65dbacb947619minfrin
1b1621900bd89ddc496d721c865a726f635ebd7esfmodlintlib: derived_h .WAIT $(MODLINTLIB_DEPS)
1b1621900bd89ddc496d721c865a726f635ebd7esf
1b1621900bd89ddc496d721c865a726f635ebd7esfclean.lint: derived_h .WAIT $(CLEAN_LINT_DEPS)
1b1621900bd89ddc496d721c865a726f635ebd7esf
1b1621900bd89ddc496d721c865a726f635ebd7esfinstall: derived_h .WAIT $(INSTALL_DEPS)
4203a35c28d7c60adb7e9ef3be87aad34951c79asf
4203a35c28d7c60adb7e9ef3be87aad34951c79asfderived_h:
4203a35c28d7c60adb7e9ef3be87aad34951c79asf cd $(UTSBASE)/common/sys/lvm; pwd; $(MAKE) $(TARGET)
c094add0a23fe1120fd33711ba2e2d084f5629a1sf#
c094add0a23fe1120fd33711ba2e2d084f5629a1sf# Include common targets.
c094add0a23fe1120fd33711ba2e2d084f5629a1sf#
12b26f433fd7d6fc9f76413d7c2cabf4fa5cb300sfinclude $(UTSBASE)/sparc/Makefile.targ
12b26f433fd7d6fc9f76413d7c2cabf4fa5cb300sf