Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
0a35160f4eb349188a988d2857e0b3052ad4b778Evan Hunt#
0a35160f4eb349188a988d2857e0b3052ad4b778Evan Hunt# CDDL HEADER START
3249da26fc28297265d444a1f3647f1e6700a2a0Evan Hunt#
3249da26fc28297265d444a1f3647f1e6700a2a0Evan Hunt# The contents of this file are subject to the terms of the
3249da26fc28297265d444a1f3647f1e6700a2a0Evan Hunt# Common Development and Distribution License (the "License").
d0803df3310ad09447c34b972e7594d576f5cbb5Evan Hunt# You may not use this file except in compliance with the License.
d0803df3310ad09447c34b972e7594d576f5cbb5Evan Hunt#
d0803df3310ad09447c34b972e7594d576f5cbb5Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
47c847e286ac1d9dcc1b6dec5430ad9d2abad7b2Evan Hunt# or http://www.opensolaris.org/os/licensing.
47c847e286ac1d9dcc1b6dec5430ad9d2abad7b2Evan Hunt# See the License for the specific language governing permissions
47c847e286ac1d9dcc1b6dec5430ad9d2abad7b2Evan Hunt# and limitations under the License.
63add83a2699aac4e01be6d1f2d093cfed4f744aMark Andrews#
63add83a2699aac4e01be6d1f2d093cfed4f744aMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
75d747e1c5a30d6ef6c6238c6e27baa11d6f3bf6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
75d747e1c5a30d6ef6c6238c6e27baa11d6f3bf6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
fbc0e37e0c3732b20b0629056e98d712a118637fMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
fbc0e37e0c3732b20b0629056e98d712a118637fMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark Andrews#
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark Andrews# CDDL HEADER END
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark Andrews#
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark Andrews#
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark Andrews# uts/sparc/md_sp/Makefile
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark Andrews# Use is subject to license terms.
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt#
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt# This makefile drives the production of the soft partitioning module.
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt#
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt# sparc implementation architecture dependent
d58e33bfabfee19a035031dac633d36659738d56Evan Hunt#
d58e33bfabfee19a035031dac633d36659738d56Evan Hunt
d58e33bfabfee19a035031dac633d36659738d56Evan Hunt#
d58e33bfabfee19a035031dac633d36659738d56Evan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt#
e45d0508c3460db87afb1f743bc5210522721bb3Evan HuntUTSBASE = ../..
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt#
f8c990f6c2d3f75120bd67a55e87f21e88e9e5a6Evan Hunt# Define the module and object file sets.
f8c990f6c2d3f75120bd67a55e87f21e88e9e5a6Evan Hunt#
f8c990f6c2d3f75120bd67a55e87f21e88e9e5a6Evan HuntMODULE = md_sp
f8c990f6c2d3f75120bd67a55e87f21e88e9e5a6Evan HuntOBJECTS = $(SOFTPART_OBJS:%=$(OBJS_DIR)/%)
db8938c993d3eaeae1d86feb1b5da511831a9014Mark AndrewsLINTS = $(SOFTPART_OBJS:%.o=$(LINTS_DIR)/%.ln)
db8938c993d3eaeae1d86feb1b5da511831a9014Mark AndrewsROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
db8938c993d3eaeae1d86feb1b5da511831a9014Mark Andrews
db8938c993d3eaeae1d86feb1b5da511831a9014Mark Andrews#
a147de10fe5e19e593d42152ffd6879eca69860dEvan Hunt# Include common rules.
a147de10fe5e19e593d42152ffd6879eca69860dEvan Hunt#
a147de10fe5e19e593d42152ffd6879eca69860dEvan Huntinclude $(UTSBASE)/sparc/Makefile.sparc
a147de10fe5e19e593d42152ffd6879eca69860dEvan Hunt
702958d20247bb9e34019cf02d8ec18d4f3b1005Mark Andrews#
702958d20247bb9e34019cf02d8ec18d4f3b1005Mark Andrews# Define targets
702958d20247bb9e34019cf02d8ec18d4f3b1005Mark Andrews#
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark AndrewsALL_TARGET = $(BINARY)
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark AndrewsLINT_TARGET = $(MODULE).lint
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews#
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews# Define dependency on md
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews#
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark AndrewsLDFLAGS += -dy -N drv/md
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews#
4882e183cac5772ea522811c758c402cd7e8ad5bEvan Hunt# For now, disable these lint checks; maintainers should endeavor
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews# to investigate and remove these for maximum lint coverage.
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews# Please do not carry these forward to new Makefiles.
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews#
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark AndrewsLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark AndrewsLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews#
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews# Default build targets.
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews#
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews.KEEP_STATE:
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrews
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark Andrewsdef: $(DEF_DEPS)
a18fc12ba3d48b66bea298c80f3e3f09f3c91527Evan Hunt
a18fc12ba3d48b66bea298c80f3e3f09f3c91527Evan Huntall: $(ALL_DEPS)
a18fc12ba3d48b66bea298c80f3e3f09f3c91527Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntclean: $(CLEAN_DEPS)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntclobber: $(CLOBBER_DEPS)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntlint: $(LINT_DEPS)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntmodlintlib: $(MODLINTLIB_DEPS)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntclean.lint: $(CLEAN_LINT_DEPS)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
07fb9b83308daea64e50a1f07052addc25c15ec3Mark Andrewsinstall: $(INSTALL_DEPS)
07fb9b83308daea64e50a1f07052addc25c15ec3Mark Andrews
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt#
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# Include common targets.
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt#
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Huntinclude $(UTSBASE)/sparc/Makefile.targ
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt