1cc7a88b5Smrj# 2cc7a88b5Smrj# CDDL HEADER START 3cc7a88b5Smrj# 4cc7a88b5Smrj# The contents of this file are subject to the terms of the 5cc7a88b5Smrj# Common Development and Distribution License (the "License"). 6cc7a88b5Smrj# You may not use this file except in compliance with the License. 7cc7a88b5Smrj# 8cc7a88b5Smrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9cc7a88b5Smrj# or http://www.opensolaris.org/os/licensing. 10cc7a88b5Smrj# See the License for the specific language governing permissions 11cc7a88b5Smrj# and limitations under the License. 12cc7a88b5Smrj# 13cc7a88b5Smrj# When distributing Covered Code, include this CDDL HEADER in each 14cc7a88b5Smrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15cc7a88b5Smrj# If applicable, add the following below this CDDL HEADER, with the 16cc7a88b5Smrj# fields enclosed by brackets "[]" replaced with your own identifying 17cc7a88b5Smrj# information: Portions Copyright [yyyy] [name of copyright owner] 18cc7a88b5Smrj# 19cc7a88b5Smrj# CDDL HEADER END 20cc7a88b5Smrj# 21cc7a88b5Smrj 22cc7a88b5Smrj# 23cc7a88b5Smrj# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24cc7a88b5Smrj# Use is subject to license terms. 25cc7a88b5Smrj# 26*385cc6b4SJerry Jelinek# Copyright 2016 Joyent, Inc. 27cc7a88b5Smrj# 28cc7a88b5Smrj# This makefile drives the production of the xpv_uppc mach 29cc7a88b5Smrj# kernel module. 30cc7a88b5Smrj# 31cc7a88b5Smrj# i86xpv implementation architecture dependent 32cc7a88b5Smrj# 33cc7a88b5Smrj 34cc7a88b5Smrj# 35cc7a88b5Smrj# Path to the base of the uts directory tree (usually /usr/src/uts). 36cc7a88b5Smrj# 37cc7a88b5SmrjUTSBASE = ../.. 38cc7a88b5Smrj 39cc7a88b5Smrj# 40cc7a88b5Smrj# Define the module and object file sets. 41cc7a88b5Smrj# 42cc7a88b5SmrjMODULE = xpv_uppc 43cc7a88b5SmrjOBJECTS = $(XPV_UPPC_OBJS:%=$(OBJS_DIR)/%) 44cc7a88b5SmrjLINTS = $(XPV_UPPC_OBJS:%.o=$(LINTS_DIR)/%.ln) 45cc7a88b5SmrjROOTMODULE = $(ROOT_PSM_MACH_DIR)/$(MODULE) 46cc7a88b5Smrj 47cc7a88b5Smrj# 48cc7a88b5Smrj# Include common rules. 49cc7a88b5Smrj# 50cc7a88b5Smrjinclude $(UTSBASE)/i86xpv/Makefile.i86xpv 51cc7a88b5Smrj 52cc7a88b5Smrj# 53cc7a88b5Smrj# Define targets 54cc7a88b5Smrj# 55cc7a88b5SmrjALL_TARGET = $(BINARY) 56cc7a88b5SmrjLINT_TARGET = $(MODULE).lint 57cc7a88b5SmrjINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 58cc7a88b5Smrj 59cc7a88b5Smrj# 60cc7a88b5Smrj# Overrides. 61cc7a88b5Smrj# 62cc7a88b5SmrjDEBUG_FLGS = 63cc7a88b5SmrjDEBUG_DEFS += $(DEBUG_FLGS) 64cc7a88b5Smrj 65*385cc6b4SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function 66*385cc6b4SJerry Jelinek 67cc7a88b5Smrj# 68cc7a88b5Smrj# 69cc7a88b5Smrj# Depends on ACPI CA interpreter 70cc7a88b5Smrj# 71cc7a88b5SmrjLDFLAGS += -dy -N misc/acpica 72cc7a88b5Smrj 73cc7a88b5SmrjLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 74cc7a88b5SmrjLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 75cc7a88b5SmrjLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 76cc7a88b5SmrjLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 77cc7a88b5Smrj 78cc7a88b5Smrj# Default build targets. 79cc7a88b5Smrj# 80cc7a88b5Smrj.KEEP_STATE: 81cc7a88b5Smrj 82cc7a88b5Smrjdef: $(DEF_DEPS) 83cc7a88b5Smrj 84cc7a88b5Smrjall: $(ALL_DEPS) 85cc7a88b5Smrj 86cc7a88b5Smrjclean: $(CLEAN_DEPS) 87cc7a88b5Smrj 88cc7a88b5Smrjclobber: $(CLOBBER_DEPS) 89cc7a88b5Smrj 90cc7a88b5Smrjlint: $(LINT_DEPS) 91cc7a88b5Smrj 92cc7a88b5Smrjmodlintlib: $(MODLINTLIB_DEPS) 93cc7a88b5Smrj 94cc7a88b5Smrjclean.lint: $(CLEAN_LINT_DEPS) 95cc7a88b5Smrj 96cc7a88b5Smrjinstall: $(INSTALL_DEPS) 97cc7a88b5Smrj 98cc7a88b5Smrj# 99cc7a88b5Smrj# Include common targets. 100cc7a88b5Smrj# 101cc7a88b5Smrjinclude $(UTSBASE)/i86xpv/Makefile.targ 102