Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# CDDL HEADER START
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# The contents of this file are subject to the terms of the
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# Common Development and Distribution License (the "License").
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# You may not use this file except in compliance with the License.
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# or http://www.opensolaris.org/os/licensing.
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# See the License for the specific language governing permissions
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# and limitations under the License.
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# When distributing Covered Code, include this CDDL HEADER in each
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# If applicable, add the following below this CDDL HEADER, with the
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# fields enclosed by brackets "[]" replaced with your own identifying
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# information: Portions Copyright [yyyy] [name of copyright owner]
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# CDDL HEADER END
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# uts/sparc/md_sp/Makefile
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# Use is subject to license terms.
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# This makefile drives the production of the soft partitioning module.
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# sparc implementation architecture dependent
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# Path to the base of the uts directory tree (usually /usr/src/uts).
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk HoganUTSBASE = ../..
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# Define the module and object file sets.
4a642b683ca0842ad671e9e1972110e0a3b1cf60Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk HoganMODULE = md_sp
9d406c6b25ce9f6bf266b077443e723b95962914Dirk HoganOBJECTS = $(SOFTPART_OBJS:%=$(OBJS_DIR)/%)
9d406c6b25ce9f6bf266b077443e723b95962914Dirk HoganLINTS = $(SOFTPART_OBJS:%.o=$(LINTS_DIR)/%.ln)
9d406c6b25ce9f6bf266b077443e723b95962914Dirk HoganROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
4a642b683ca0842ad671e9e1972110e0a3b1cf60Dirk Hogan
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
e6d7ebe1d98f7f030969e521b061f8643253475eDirk Hogan# Include common rules.
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hoganinclude $(UTSBASE)/sparc/Makefile.sparc
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# Define targets
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan#
9d406c6b25ce9f6bf266b077443e723b95962914Dirk HoganALL_TARGET = $(BINARY)
9d406c6b25ce9f6bf266b077443e723b95962914Dirk HoganLINT_TARGET = $(MODULE).lint
9d406c6b25ce9f6bf266b077443e723b95962914Dirk HoganINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Define dependency on md
#
LDFLAGS += -dy -N drv/md
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# Default build targets.
#
.KEEP_STATE:
def: $(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 $(UTSBASE)/sparc/Makefile.targ