7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# CDDL HEADER START
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# The contents of this file are subject to the terms of the
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Common Development and Distribution License (the "License").
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# You may not use this file except in compliance with the License.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# or http://www.opensolaris.org/os/licensing.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# See the License for the specific language governing permissions
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# and limitations under the License.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# When distributing Covered Code, include this CDDL HEADER in each
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# If applicable, add the following below this CDDL HEADER, with the
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# fields enclosed by brackets "[]" replaced with your own identifying
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# information: Portions Copyright [yyyy] [name of copyright owner]
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# CDDL HEADER END
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# uts/i86pc/apix/Makefile
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek# Copyright 2016, Joyent, Inc.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# This makefile drives the production of the pcplusmp "mach"
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# kernel module.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# pcplusmp implementation architecture dependent
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Path to the base of the uts directory tree (usually /usr/src/uts).
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesUTSBASE = ../..
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Define the module and object file sets.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesMODULE = apix
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesOBJECTS = $(APIX_OBJS:%=$(OBJS_DIR)/%)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesLINTS = $(APIX_OBJS:%.o=$(LINTS_DIR)/%.ln)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesROOTMODULE = $(ROOT_PSM_MACH_DIR)/$(MODULE)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Include common rules.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesinclude $(UTSBASE)/i86pc/Makefile.i86pc
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Define targets
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesALL_TARGET = $(BINARY)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesLINT_TARGET = $(MODULE).lint
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesDEBUG_FLGS =
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Depends on ACPI CA interpreter
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesLDFLAGS += -dy -N misc/acpica
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry JelinekCERRWARN += -_gcc=-Wno-unused-function
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Default build targets.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases.KEEP_STATE:
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesdef: $(DEF_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesall: $(ALL_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesclean: $(CLEAN_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesclobber: $(CLOBBER_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayaseslint: $(LINT_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesmodlintlib: $(MODLINTLIB_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesclean.lint: $(CLEAN_LINT_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesinstall: $(INSTALL_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Include common targets.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesinclude $(UTSBASE)/i86pc/Makefile.targ
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases