Makefile revision 7b1019a6d29ccb7999dc76cba3dde1c627e8e609
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# CDDL HEADER START
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# The contents of this file are subject to the terms of the
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Common Development and Distribution License (the "License").
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# You may not use this file except in compliance with the License.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# or http://www.opensolaris.org/os/licensing.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# See the License for the specific language governing permissions
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# and limitations under the License.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# When distributing Covered Code, include this CDDL HEADER in each
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# If applicable, add the following below this CDDL HEADER, with the
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# fields enclosed by brackets "[]" replaced with your own identifying
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# information: Portions Copyright [yyyy] [name of copyright owner]
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# CDDL HEADER END
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Use is subject to license terms.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Copyright 2016 Joyent, Inc.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# This makefile drives the production of the xpv_uppc mach
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# kernel module.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# i86xpv implementation architecture dependent
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Path to the base of the uts directory tree (usually /usr/src/uts).
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerUTSBASE = ../..
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Define the module and object file sets.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerMODULE = xpv_uppc
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerOBJECTS = $(XPV_UPPC_OBJS:%=$(OBJS_DIR)/%)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerLINTS = $(XPV_UPPC_OBJS:%.o=$(LINTS_DIR)/%.ln)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerROOTMODULE = $(ROOT_PSM_MACH_DIR)/$(MODULE)
#
# Include common rules.
#
include $(UTSBASE)/i86xpv/Makefile.i86xpv
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Overrides.
#
DEBUG_FLGS =
DEBUG_DEFS += $(DEBUG_FLGS)
CERRWARN += -_gcc=-Wno-unused-function
#
#
# Depends on ACPI CA interpreter
#
LDFLAGS += -dy -N misc/acpica
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
# 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)/i86xpv/Makefile.targ