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# 26b6b206fcSJohn Levon# Copyright (c) 2018, 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)/%) 44cc7a88b5SmrjROOTMODULE = $(ROOT_PSM_MACH_DIR)/$(MODULE) 45cc7a88b5Smrj 46cc7a88b5Smrj# 47cc7a88b5Smrj# Include common rules. 48cc7a88b5Smrj# 49cc7a88b5Smrjinclude $(UTSBASE)/i86xpv/Makefile.i86xpv 50cc7a88b5Smrj 51cc7a88b5Smrj# 52cc7a88b5Smrj# Define targets 53cc7a88b5Smrj# 54cc7a88b5SmrjALL_TARGET = $(BINARY) 55cc7a88b5SmrjINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56cc7a88b5Smrj 57cc7a88b5Smrj# 58cc7a88b5Smrj# Overrides. 59cc7a88b5Smrj# 60cc7a88b5SmrjDEBUG_FLGS = 61cc7a88b5SmrjDEBUG_DEFS += $(DEBUG_FLGS) 62cc7a88b5Smrj 637b1019a6SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function 647b1019a6SJerry Jelinek 65b6b206fcSJohn Levon# needs work 66b6b206fcSJohn Levon$(OBJS_DIR)/psm_common.o := SMOFF += deref_check 67b6b206fcSJohn Levon 68cc7a88b5Smrj# 69cc7a88b5Smrj# 70cc7a88b5Smrj# Depends on ACPI CA interpreter 71cc7a88b5Smrj# 72*82d0151aSRichard LoweLDFLAGS += -N misc/acpica 73cc7a88b5Smrj 74cc7a88b5Smrj 75cc7a88b5Smrj# Default build targets. 76cc7a88b5Smrj# 77cc7a88b5Smrj.KEEP_STATE: 78cc7a88b5Smrj 79cc7a88b5Smrjdef: $(DEF_DEPS) 80cc7a88b5Smrj 81cc7a88b5Smrjall: $(ALL_DEPS) 82cc7a88b5Smrj 83cc7a88b5Smrjclean: $(CLEAN_DEPS) 84cc7a88b5Smrj 85cc7a88b5Smrjclobber: $(CLOBBER_DEPS) 86cc7a88b5Smrj 87cc7a88b5Smrjinstall: $(INSTALL_DEPS) 88cc7a88b5Smrj 89cc7a88b5Smrj# 90cc7a88b5Smrj# Include common targets. 91cc7a88b5Smrj# 92cc7a88b5Smrjinclude $(UTSBASE)/i86xpv/Makefile.targ 93