cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# CDDL HEADER START
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# The contents of this file are subject to the terms of the
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Common Development and Distribution License (the "License").
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# You may not use this file except in compliance with the License.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# or http://www.opensolaris.org/os/licensing.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# See the License for the specific language governing permissions
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# and limitations under the License.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# When distributing Covered Code, include this CDDL HEADER in each
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# If applicable, add the following below this CDDL HEADER, with the
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# fields enclosed by brackets "[]" replaced with your own identifying
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# information: Portions Copyright [yyyy] [name of copyright owner]
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# CDDL HEADER END
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Use is subject to license terms.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek# Copyright 2016 Joyent, Inc.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# This makefile drives the production of the xpv_uppc mach
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# kernel module.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# i86xpv implementation architecture dependent
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Path to the base of the uts directory tree (usually /usr/src/uts).
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjUTSBASE = ../..
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Define the module and object file sets.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjMODULE = xpv_uppc
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjOBJECTS = $(XPV_UPPC_OBJS:%=$(OBJS_DIR)/%)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjLINTS = $(XPV_UPPC_OBJS:%.o=$(LINTS_DIR)/%.ln)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjROOTMODULE = $(ROOT_PSM_MACH_DIR)/$(MODULE)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Include common rules.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Define targets
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjALL_TARGET = $(BINARY)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjLINT_TARGET = $(MODULE).lint
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Overrides.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjDEBUG_FLGS =
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjDEBUG_DEFS += $(DEBUG_FLGS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry JelinekCERRWARN += -_gcc=-Wno-unused-function
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Depends on ACPI CA interpreter
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjLDFLAGS += -dy -N misc/acpica
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Default build targets.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj.KEEP_STATE:
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjdef: $(DEF_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjall: $(ALL_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjclean: $(CLEAN_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjclobber: $(CLOBBER_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjlint: $(LINT_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjmodlintlib: $(MODLINTLIB_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjclean.lint: $(CLEAN_LINT_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjinstall: $(INSTALL_DEPS)
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj# Include common targets.
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrj#
cc7a88b54b4969574f03e1a1225bb13be487f5dbmrjinclude $(UTSBASE)/i86xpv/Makefile.targ